/* ============================================================
   Anderson Wilcox Companies — Site Stylesheet
   ============================================================ */

:root {
  /* Brand palette */
  --navy:        #1A2A4D;
  --navy-deep:   #131F3D;
  --navy-logo:   #070A49;
  --slate:       #2E3234;
  --slate-soft:  #4A5159;
  --paper:       #FFFFFF;
  --gray-bg:     #F4F4F4;
  --gray-bg-2:   #F8F8F8;
  --rule:        #E2E5EA;
  --rule-faint:  #EEF0F3;
  --ink:         #1A1A1A;
  --ink-soft:    #333333;
  --ink-muted:   #5A6068;
  --ink-faint:   #8B919A;

  /* Live andersonwilcox.com renders system sans throughout (Typekit kit was never wired);
     mirror that here by making --serif and --display resolve to the same sans stack. */
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: var(--sans);
  --display: var(--sans);

  --container: 1320px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  position: relative;
  overflow-x: hidden;
}

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

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

.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

/* ============ TYPOGRAPHY ============ */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow.muted { color: var(--ink-muted); }
.eyebrow.light { color: rgba(255, 255, 255, 0.9); }
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
  opacity: 0.7;
}
.eyebrow.no-rule::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-feature-settings: "kern", "liga";
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.1; }
h3 { font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.2; }
h4 { font-family: var(--sans); font-size: 0.875rem; font-weight: 600; line-height: 1.3; }

p { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); max-width: 64ch; }
.lede { font-size: 1.0625rem; line-height: 1.7; max-width: 60ch; }

em.accent { font-style: normal; font-weight: 400; color: var(--slate); }
em.accent-light { font-style: normal; font-weight: 400; color: rgba(255, 255, 255, 0.96); }

/* ============ HEADER ============ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.solid,
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 0 rgba(26, 42, 77, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo {
  height: 84px;
  width: auto;
  display: block;
}
.brand-logo.color { display: none; }
.site-header.solid .brand-logo.white,
.site-header.scrolled .brand-logo.white { display: none; }
.site-header.solid .brand-logo.color,
.site-header.scrolled .brand-logo.color { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--paper);
  z-index: 110;
}
.site-header.solid .nav-toggle,
.site-header.scrolled .nav-toggle { color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.25em 0;
  transition: color 0.2s ease;
}
.site-header.solid .nav-links a,
.site-header.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--paper); }
.site-header.solid .nav-links a:hover,
.site-header.scrolled .nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  padding: 0.6em 1.25em !important;
  transition: all 0.2s ease !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--paper); color: var(--navy) !important; border-color: var(--paper) !important; }
.site-header.solid .nav-cta,
.site-header.scrolled .nav-cta { border-color: var(--navy) !important; color: var(--navy) !important; }
.site-header.solid .nav-cta:hover,
.site-header.scrolled .nav-cta:hover { background: var(--navy); color: var(--paper) !important; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
    z-index: 105;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--paper) !important; font-size: 1.5rem; font-family: var(--serif); letter-spacing: 0; text-transform: none; }
  .nav-links .nav-cta { font-size: 13px !important; font-family: var(--sans) !important; letter-spacing: 0.18em !important; text-transform: uppercase !important; border-color: var(--paper) !important; color: var(--paper) !important; }
  .nav-toggle.open { color: var(--paper) !important; }
}

/* ============ BUTTONS ============ */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.95rem 1.75rem;
  background: var(--paper);
  color: var(--navy);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid var(--paper);
  transition: all 0.25s ease;
  cursor: pointer;
}
.cta:hover { background: transparent; color: var(--paper); }
.cta .arrow { transition: transform 0.25s ease; font-family: var(--sans); }
.cta:hover .arrow { transform: translateX(4px); }
.cta-ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.cta-ghost-dark:hover { background: var(--navy); color: var(--paper); }
.cta-dark { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.cta-dark:hover { background: transparent; color: var(--navy); }

.text-link {
  color: var(--navy);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: gap 0.25s ease, color 0.2s ease;
}
.text-link:hover { gap: 0.85em; color: var(--slate); }
.text-link.light { color: var(--paper); border-color: rgba(255,255,255,0.5); }
.text-link.light:hover { color: var(--paper); border-color: var(--paper); }

/* ============ PAGE HEADER (non-home pages) ============ */

.page-header {
  background: var(--navy);
  color: var(--paper);
  padding: 11rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-header.with-bg {
  padding: 12rem 0 7rem;
}

.page-header.with-bg .ph-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-header.with-bg .ph-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.35; filter: contrast(1.05) saturate(0.9);
}
.page-header.with-bg .ph-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,42,77,0.45) 0%, rgba(26,42,77,0.85) 100%);
}

.page-header .container { z-index: 2; }

.page-header .eyebrow { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.25rem; }
.page-header .eyebrow::before { background: rgba(255, 255, 255, 0.7); }

.page-header h1 {
  color: var(--paper);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.page-header h1 em { font-style: normal; font-weight: 400; color: rgba(255,255,255,0.92); }

.page-header p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 56ch;
}

/* ============ HERO (homepage) ============ */

.hero {
  min-height: 78vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 0 5rem;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 65%;
  opacity: 0.32;
  filter: contrast(1.05) saturate(0.9);
}
.hero-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;            /* 16:9 — covers when viewport is wider than tall */
  min-height: 100%;
  min-width: 177.78vh;        /* 16:9 — covers when viewport is taller than wide */
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  opacity: 0.45;
  filter: contrast(1.02) saturate(0.95);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 42, 77, 0.3) 0%, rgba(26, 42, 77, 0.45) 60%, rgba(26, 42, 77, 0.85) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; }
.hero-logo {
  display: block;
  height: clamp(170px, 22vw, 300px);
  width: auto;
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.4));
}
.hero .eyebrow { margin-bottom: 1.5rem; color: rgba(255,255,255,0.9); }
.hero .eyebrow::before { background: rgba(255,255,255,0.7); }
.hero h1 {
  color: var(--paper);
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.15;
}
.hero h1 em { font-style: normal; font-weight: 400; color: rgba(255, 255, 255, 0.96); }
.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 2.25rem;
}
.hero-meta {
  position: absolute;
  bottom: 4rem;
  right: var(--gutter);
  z-index: 2;
  text-align: right;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  max-width: 200px;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .hero-meta { display: none; }
  .hero { padding-top: 7rem; min-height: auto; }
}

/* ============ STATS BAR ============ */

.stats {
  padding: 3.75rem 0 3.5rem;
  background: var(--gray-bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 0 2rem; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat-value {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 0; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 500px) {
  .stats-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stat { border-left: none !important; padding-left: 0 !important; padding-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
  .stat:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ============ ABOUT / TEXT BLOCK ============ */

.about-intro { padding: 8rem 0; background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 5rem; align-items: start; }
.about-image-frame { position: relative; }
.about-image {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover;
  filter: saturate(0.85);
}
.about-image-caption {
  margin-top: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  font-weight: 600;
}
.about-image-caption .name {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--ink);
}
.about-content .eyebrow { margin-bottom: 1.75rem; }
.about-content h2 { margin-bottom: 1.75rem; max-width: 16ch; color: var(--navy); }
.about-content h2 em { font-style: normal; font-weight: 400; color: var(--slate); }
.about-content p { font-size: 1.0625rem; margin-bottom: 1.5rem; color: var(--ink-soft); }
.about-links { margin-top: 2.5rem; display: flex; gap: 2.25rem; flex-wrap: wrap; }

/* Solo variant: text-only About intro, no founder image */
.about-content-solo { max-width: 65ch; margin-left: auto; margin-right: auto; }
.about-content-solo h2 { max-width: 20ch; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-frame { max-width: 420px; }
}

/* ============ FEATURED / SECTION HEAD ============ */

.featured {
  padding: 8rem 0;
  background: var(--gray-bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 4.5rem;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 18ch; color: var(--navy); }
.section-head h2 em { font-style: normal; font-weight: 400; color: var(--slate); }
.section-head .meta {
  text-align: right;
  font-size: 12.5px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.section-head .meta-num {
  font-family: var(--serif);
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 2.5rem;
}
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.project-card:hover { transform: translateY(-3px); }
.project-card .frame {
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--rule-faint);
  position: relative;
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.project-card:hover img { transform: scale(1.04); }
.project-card.large .frame { aspect-ratio: 4 / 5; }
.project-card.small .frame { aspect-ratio: 4 / 3.2; }
.project-card.large { grid-row: 1 / 3; }
.project-card .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.project-type {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--navy);
}
.project-year {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink-muted);
}
.project-card h3 {
  font-family: var(--display);
  font-size: 1.625rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.project-card.large h3 { font-size: 2.25rem; }
.project-card .location {
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.project-year-restored {
  font-style: italic;
  color: var(--ink-faint);
  margin-left: 0.15em;
  font-size: 0.875em;
}
.featured-cta { margin-top: 5rem; display: flex; justify-content: center; }

/* Standard project grid (portfolio/developments listing) */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
}
.project-grid .project-card .frame { aspect-ratio: 4 / 3.1; }
.project-grid .project-card h3 { font-size: 1.375rem; }

@media (max-width: 1000px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } }

/* Portfolio grid — uniform image sizes across all cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
}
.portfolio-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.portfolio-card:hover { transform: translateY(-3px); }
.portfolio-card .frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--rule-faint);
  position: relative;
}
.portfolio-card .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.portfolio-card:hover .frame img { transform: scale(1.04); }
.portfolio-card-content { display: block; }
.portfolio-card h3 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}
.portfolio-card .location {
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 1000px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; gap: 3rem; }
  .project-card.large { grid-row: auto; }
}

/* ============ PRINCIPLES ============ */

.principles { padding: 5rem 0 5.5rem; background: var(--paper); }
.principles-head { text-align: center; margin-bottom: 3rem; }
.principles-head .eyebrow { margin-bottom: 1rem; }
.principles-head h2 { max-width: 22ch; margin: 0 auto; color: var(--navy); font-size: clamp(1.625rem, 2.8vw, 2.25rem); line-height: 1.2; }
.principles-head h2 em { font-style: normal; font-weight: 400; color: var(--slate); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5rem; }
.principle {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--navy);
}
.principle-num {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}
.principle h3 { font-size: 1.625rem; margin-bottom: 1rem; color: var(--navy); }
.principle p { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 800px) { .principles-grid { grid-template-columns: 1fr; gap: 3rem; } }

/* ============ CTA BLOCK ============ */

.cta-block {
  padding: 9rem 0;
  text-align: center;
  background: var(--navy);
  color: var(--paper);
  position: relative;
}
.cta-block .eyebrow { color: rgba(255, 255, 255, 0.7); margin-bottom: 1.75rem; }
.cta-block .eyebrow::before { background: rgba(255, 255, 255, 0.6); }
.cta-block h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  max-width: 18ch;
  margin: 0 auto 1.75rem;
  color: var(--paper);
  font-weight: 400;
}
.cta-block h2 em { font-style: normal; font-weight: 400; color: rgba(255, 255, 255, 0.85); }
.cta-block p {
  margin: 0 auto 2.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.0625rem;
}

/* ============ FOOTER ============ */

.site-footer { background: var(--navy-deep); color: var(--paper); padding: 5rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}
.footer-logo { height: 36px; width: auto; display: block; margin-bottom: 1.5rem; }
.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.footer-brand a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  font-size: 0.9375rem;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.03em;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============ ANIMATION ============ */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Timeline cascading reveal — applied via JS to .decade-head, .milestone, .entry */
.t-stagger { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.t-stagger.in { opacity: 1; transform: translateY(0); }

/* Stat-value: tabular numbers + reserved width to prevent layout shift during count-up */
.stat-value { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .t-stagger { opacity: 1; transform: none; transition: none; }
}

/* ============ TIMELINE PAGE ============ */

.timeline-stats {
  padding: 5rem 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.timeline-stats .stats-grid { gap: 2rem; }

.timeline-section {
  padding: 6rem 0;
  background: var(--gray-bg);
  border-bottom: 1px solid var(--rule);
}
.timeline-section:nth-child(odd) { background: var(--paper); }

.timeline-decade {
  margin-bottom: 6rem;
}
.timeline-decade:last-child { margin-bottom: 0; }

.decade-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--navy);
  flex-wrap: wrap;
}
.decade-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.decade-head .summary {
  font-size: 13px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  max-width: 60ch;
  text-align: right;
}

.timeline-entries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 3rem;
}
@media (max-width: 800px) {
  .timeline-entries { grid-template-columns: 1fr; }
  .decade-head .summary { text-align: left; }
}

.entry {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.entry:last-child { border-bottom: none; }

.entry-year {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--slate);
  line-height: 1.2;
  white-space: nowrap;
}

.entry-meta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.entry-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.35rem;
  line-height: 1.25;
  text-decoration: none;
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
a.entry-name:hover { border-bottom-color: var(--navy); }

.entry-detail {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.entry-location {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  margin-top: 0.4rem;
  font-weight: 500;
}

/* Milestones — full-width banner above their decade */
.milestone {
  background: var(--navy);
  color: var(--paper);
  padding: 3rem 2.5rem;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  align-items: start;
}
.milestone-year {
  font-family: var(--serif);
  font-style: normal;
  font-size: 2.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}
.milestone-content h3 {
  color: var(--paper);
  font-size: 1.625rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.milestone-content p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 64ch;
}
@media (max-width: 700px) {
  .milestone { grid-template-columns: 1fr; padding: 2.25rem; gap: 1.25rem; }
  .milestone-year { font-size: 2rem; }
}

/* ============ TEAM PAGE ============ */

.team-section {
  padding: 7rem 0;
  background: var(--paper);
}

.team-card-large {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 6rem;
  padding-bottom: 6rem;
  border-bottom: 1px solid var(--rule);
}
.team-card-large:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.team-card-large.reverse { grid-template-columns: 1.5fr 1fr; }
.team-card-large.reverse .team-photo-frame { order: 2; }
.team-photo-frame { position: relative; }
.team-photo {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover;
  filter: saturate(0.85);
}
.team-content .role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--navy);
  margin-bottom: 1rem;
}
.team-content h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  margin-bottom: 1.5rem;
  color: var(--navy);
  font-weight: 400;
}
.team-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .team-card-large, .team-card-large.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .team-card-large.reverse .team-photo-frame { order: 0; }
  .team-photo-frame { max-width: 380px; }
}

/* ============ SERVICES PAGE ============ */

.services-list { padding: 5rem 0 8rem; background: var(--paper); }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--rule);
}
.service-row:last-child { border-bottom: none; }
.service-row.reverse { grid-template-columns: 1.2fr 1fr; }
.service-row.reverse .service-image-frame { order: 2; }
.service-image-frame { position: relative; }
.service-image {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
}
.service-num {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.service-content h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
  max-width: 18ch;
  font-weight: 400;
}
.service-content p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
@media (max-width: 900px) {
  .service-row, .service-row.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 0;
  }
  .service-row.reverse .service-image-frame { order: 0; }
}

/* ============ CONTACT PAGE ============ */

.contact-section { padding: 7rem 0; background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
}
.contact-info h3 {
  font-size: 0.875rem;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--navy);
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.contact-info h3:first-of-type { margin-top: 0; }
.contact-info p, .contact-info a {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  text-decoration: none;
}
.contact-info a:hover { color: var(--navy); }

.contact-form .form-row { margin-bottom: 1.5rem; }
.contact-form .form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.contact-form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--navy);
}
.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}
.contact-form .form-feedback {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
}
.contact-form .form-feedback.success {
  background: #EAF1EE;
  color: #1F5235;
  border-left: 3px solid #2D8055;
}
.contact-form .form-feedback.error {
  background: #FBEEEE;
  color: #6B2A2A;
  border-left: 3px solid #B14747;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-form .form-row.two-col { grid-template-columns: 1fr; }
}

/* ============ PROJECT DETAIL ============ */

.project-detail {
  padding: 11rem 0 4rem;
  background: var(--paper);
}
.project-back {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: gap 0.2s ease;
}
.project-back:hover { gap: 0.85em; }

.project-head {
  display: block;
  margin-bottom: 2.5rem;
  padding-bottom: 0;
  border-bottom: none;
}
.project-head-main { max-width: 56rem; }
.project-head h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.project-head .location {
  font-size: 1rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
/* Status pill (e.g. "Inquire for Availability") — sits above headline */
.project-status {
  display: inline-block;
  margin-bottom: 1.25rem;
}
.project-status span {
  display: inline-block;
  padding: 0.45rem 1rem 0.5rem;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
  line-height: 1;
}

/* Cover image immediately after the head */
.project-cover-frame {
  margin-bottom: 0;
  background: var(--rule-faint);
  overflow: hidden;
}
.project-cover-frame img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Stats band — dark contrast strip under the cover photo.
   Mirrors the visual rhythm museum / monograph catalogs use to break
   between the hero plate and the editorial overview. */
.project-stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--navy);
  color: var(--paper);
  padding: 2.25rem 2.5rem;
  margin-bottom: 4rem;
  gap: 1.5rem;
}
.project-stats-band .stat {
  padding: 0 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.project-stats-band .stat:first-child { border-left: none; padding-left: 0; }
.project-stats-band .stat-value {
  font-family: var(--display);
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.55rem;
}
.project-stats-band .stat-secondary {
  display: inline-block;
  margin-left: 0.6em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.7em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0;
}
.project-stats-band .stat-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.62);
}

.project-overview {
  max-width: 720px;
  margin: 0 auto 5rem;
  font-size: 1.0625rem;
  line-height: 1.8;
}
.project-overview p { margin-bottom: 1.5rem; max-width: none; }
.project-overview p:last-child { margin-bottom: 0; }
.project-overview-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.project-overview-h2 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.project-overview-h2 .accent-dot { color: var(--slate); }

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 5rem;
}
.project-gallery .gallery-item {
  cursor: pointer;
  overflow: hidden;
  background: var(--rule-faint);
  position: relative;
  aspect-ratio: 4/3;
}
.project-gallery .gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.project-gallery .gallery-item:hover img { transform: scale(1.04); }

@media (max-width: 800px) {
  .project-stats-band {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.75rem 1.5rem;
  }
  .project-stats-band .stat {
    padding: 1.5rem 0 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
  .project-stats-band .stat:first-child {
    border-top: none;
    padding-top: 0;
  }
  .project-stats-band .stat-value { font-size: 1.625rem; }
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
  .project-cover-frame img { aspect-ratio: 4/3; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(19, 31, 61, 0.95);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 300;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--paper); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============ DEVELOPMENTS / FEATURED ROWS ============ */

.placeholder-flag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--rule);
  padding: 0.3em 0.6em;
  margin-left: 0.5em;
  font-weight: 500;
}

/* ============ FOUNDER SPOTLIGHT (history page) ============ */

.founder-spotlight {
  padding: 7rem 0;
  background: var(--navy, #1a2740);
  color: var(--paper, #f4efe6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.founder-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.04), transparent 40%);
  pointer-events: none;
}
.founder-spotlight .container { position: relative; z-index: 1; }

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: center;
}
.founder-photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}
.founder-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.founder-photo-caption .name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.founder-photo-caption .role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.founder-content .eyebrow {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
}
.founder-content .eyebrow::before { background: rgba(255,255,255,0.5); }
.founder-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 2rem;
  line-height: 1.1;
}
.founder-content h2 em {
  font-style: normal;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
}
.founder-content p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 60ch;
}
.founder-quote {
  font-family: var(--serif);
  font-style: normal;
  font-size: 1.35rem !important;
  line-height: 1.5 !important;
  color: rgba(255,255,255,0.95) !important;
  border-left: 2px solid rgba(255,255,255,0.4);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin-top: 2rem !important;
  margin-bottom: 0 !important;
}

@media (max-width: 900px) {
  .founder-spotlight { padding: 4.5rem 0; }
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .founder-photo-frame { max-width: 460px; margin: 0 auto; }
  .founder-quote { font-size: 1.15rem !important; }
}

/* ============ VISUAL TIMELINE (history page) ============ */

.visual-timeline-section {
  padding: 6rem 0 8rem;
  background: var(--gray-bg, #F4F4F4);
  border-bottom: 1px solid var(--rule, #E2E5EA);
}

.visual-timeline-section {
  /* Category palette — used by filter pills, card accents, and dot markers. */
  --cat-residential: #2D8055;
  --cat-commercial:  #B07B1F;
  --cat-industrial:  #1A2A4D;
  --cat-mixed-use:   #3D6FB4;
}

/* ---------- Filter pills ---------- */
.tl-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  margin: 0 auto 3.5rem;
  padding: 0 1rem;
}
.tl-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 0;
  padding: 0.4rem 0.25rem;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
  color: var(--ink-muted, #5A6068);
}
.tl-filter:focus { outline: 2px solid currentColor; outline-offset: 4px; }
.tl-filter[data-cat="residential"] { color: var(--cat-residential); }
.tl-filter[data-cat="commercial"]  { color: var(--cat-commercial); }
.tl-filter[data-cat="industrial"]  { color: var(--cat-industrial); }
.tl-filter[data-cat="mixed-use"]   { color: var(--cat-mixed-use); }
.tl-filter:not(.is-active) { opacity: 0.32; }
.tl-filter:not(.is-active):hover { opacity: 0.6; }
.tl-filter.is-active:hover { transform: translateY(-1px); }
.tl-cat-icon { width: 16px; height: 16px; flex: 0 0 auto; }

.visual-timeline {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Center spine */
.visual-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rule, #E2E5EA);
  transform: translateX(-50%);
  z-index: 0;
}

/* Decade pill — sits centered on the spine */
.tl-decade {
  position: relative;
  text-align: center;
  margin: 4rem 0 3.5rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.tl-decade.in { opacity: 1; transform: translateY(0); }
.tl-decade:first-of-type { margin-top: 0; }

.tl-decade-pill {
  display: inline-block;
  background: var(--navy, #1A2A4D);
  color: var(--paper, #fff);
  padding: 0.85rem 2.5rem;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-style: normal;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 20px -10px rgba(26, 42, 77, 0.5);
}
.tl-decade-summary {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted, #5A6068);
  margin-top: 1rem;
  font-weight: 500;
}

/* Rows: 1fr | 60px | 1fr — card / spine / spacer (or reverse) */
.tl-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  margin-bottom: 1.75rem;
  z-index: 1;
}
.tl-row.is-filtered-out { display: none; }

.tl-marker {
  grid-column: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper, #fff);
  border: 3px solid var(--navy, #1A2A4D);
  margin: 0 auto;
  position: relative;
  z-index: 3;
  box-shadow: 0 0 0 4px var(--gray-bg, #F4F4F4);
}

.tl-card {
  background: var(--paper, #fff);
  border: 1px solid var(--rule, #E2E5EA);
  border-left: 4px solid var(--rule, #E2E5EA);
  padding: 1.15rem 1.5rem;
  position: relative;
  box-shadow: 0 4px 18px -10px rgba(26, 42, 77, 0.12);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.18s ease;
}
.tl-card:hover { box-shadow: 0 8px 28px -10px rgba(26, 42, 77, 0.22); transform: translateY(-2px); }

/* Card top row: year on the inner edge, category meta on the outer edge */
.tl-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

/* Connector line from card to spine */
.tl-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--rule, #E2E5EA);
  transform: translateY(-50%);
}

.tl-row-left .tl-card { grid-column: 1; text-align: left; }
.tl-row-left .tl-card::after { right: -30px; }
.tl-row-right .tl-card { grid-column: 3; text-align: left; }
.tl-row-right .tl-card::after { left: -30px; }

/* Per-category accents — left border + marker + meta color */
.tl-row[data-category="residential"] .tl-card    { border-left-color: var(--cat-residential); }
.tl-row[data-category="commercial"]  .tl-card    { border-left-color: var(--cat-commercial); }
.tl-row[data-category="industrial"]  .tl-card    { border-left-color: var(--cat-industrial); }
.tl-row[data-category="mixed-use"]   .tl-card    { border-left-color: var(--cat-mixed-use); }

.tl-row[data-category="residential"] .tl-marker  { border-color: var(--cat-residential); }
.tl-row[data-category="commercial"]  .tl-marker  { border-color: var(--cat-commercial); }
.tl-row[data-category="industrial"]  .tl-marker  { border-color: var(--cat-industrial); }
.tl-row[data-category="mixed-use"]   .tl-marker  { border-color: var(--cat-mixed-use); }

.tl-row[data-category="residential"] .tl-meta    { color: var(--cat-residential); }
.tl-row[data-category="commercial"]  .tl-meta    { color: var(--cat-commercial); }
.tl-row[data-category="industrial"]  .tl-meta    { color: var(--cat-industrial); }
.tl-row[data-category="mixed-use"]   .tl-meta    { color: var(--cat-mixed-use); }

/* Milestones — navy filled, larger emphasis. Border stays navy regardless of side. */
.tl-row.tl-milestone .tl-card {
  background: var(--navy, #1A2A4D);
  color: var(--paper, #fff);
  border-color: var(--navy, #1A2A4D);
  border-left-color: #C9A14A;   /* warm gold accent for milestone marker */
  padding: 1.5rem 1.85rem;
}
.tl-row.tl-milestone .tl-card::after { background: var(--navy, #1A2A4D); height: 2px; }
.tl-row.tl-milestone .tl-marker {
  background: #C9A14A;
  border-color: var(--paper, #fff);
  width: 18px;
  height: 18px;
  box-shadow: 0 0 0 4px var(--gray-bg, #F4F4F4), 0 0 0 6px #C9A14A;
}
.tl-milestone-tag { color: #C9A14A !important; }

/* Card content typography */
.tl-year {
  font-family: var(--serif);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-muted, #5A6068);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.tl-row.tl-milestone .tl-year { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; font-weight: 600; }

.tl-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--navy, #1A2A4D);
  font-weight: 700;
}
.tl-meta .tl-cat-icon { width: 13px; height: 13px; }

.tl-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--ink, #1A1A1A);
  text-decoration: none;
  margin-bottom: 0.3rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
a.tl-name { border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
a.tl-name:hover { border-bottom-color: var(--navy, #1A2A4D); }

.tl-row.tl-milestone .tl-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--paper, #fff);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.tl-detail {
  font-size: 0.875rem;
  color: var(--ink-muted, #5A6068);
  line-height: 1.6;
}
.tl-row.tl-milestone .tl-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: none;
}

.tl-location {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-faint, #8B919A);
  margin-top: 0.5rem;
  font-weight: 500;
}
.tl-location::before { content: "\25C9 "; margin-right: 0.25em; }

/* Reveal animation — slide from each side */
.tl-row {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.tl-row-left { transform: translateX(-30px); }
.tl-row-right { transform: translateX(30px); }
.tl-row.in { opacity: 1; transform: translateX(0); }

/* Mobile: spine moves to the left, all cards align right of it */
@media (max-width: 800px) {
  .visual-timeline { padding-left: 0; }
  .visual-timeline::before {
    left: 22px;
    transform: none;
  }
  .tl-decade { text-align: left; padding-left: 60px; margin: 3rem 0 2rem; }
  .tl-decade-pill { padding: 0.7rem 1.5rem; font-size: 1.125rem; }

  .tl-row {
    grid-template-columns: 50px 1fr;
    gap: 0;
    margin-bottom: 2rem;
  }
  .tl-marker { grid-column: 1; }
  .tl-row-left .tl-card,
  .tl-row-right .tl-card {
    grid-column: 2;
    text-align: left;
  }
  .tl-row-left .tl-card::after,
  .tl-row-right .tl-card::after {
    left: -25px;
    right: auto;
  }
  .tl-row-left,
  .tl-row-right { transform: translateX(-20px); }
  .tl-row-left.in,
  .tl-row-right.in { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .tl-row, .tl-decade { opacity: 1; transform: none; transition: none; }
}

/* ============ Partners page ============ */
.partners-section {
  padding: 4rem 0 6rem;
  background: var(--gray, #F4F4F4);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.partner-card {
  position: relative;
  background: var(--paper, #FFFFFF);
  border: 1px solid var(--rule, #E2E5EA);
  padding: 2rem 2.25rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.partner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(15, 22, 38, 0.25);
  border-color: rgba(26, 42, 77, 0.18);
}
.partner-category {
  display: inline-block;
  align-self: flex-start;
  background: #6E7480;
  color: var(--paper, #FFFFFF);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45em 0.85em;
}
.partner-meta {
  font-size: 12.5px;
  color: var(--ink-muted, #5A6068);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 0.25rem;
}
.partner-name {
  font-family: var(--serif, 'Playfair Display', Georgia, serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 1.8vw, 1.65rem);
  color: var(--navy, #1A2A4D);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
.partner-rule {
  width: 36px;
  height: 1px;
  background: var(--rule, #E2E5EA);
  margin: 0.25rem 0 0.5rem;
}
.partner-blurb {
  color: var(--ink-soft, #333333);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}
.partner-link {
  margin-top: 0.5rem;
  align-self: flex-start;
  color: var(--navy, #1A2A4D);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  border-bottom: 1px solid var(--navy, #1A2A4D);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.partner-link:hover { opacity: 0.7; }
.partner-external {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule, #E2E5EA);
  color: var(--ink-muted, #5A6068);
  background: var(--paper, #FFFFFF);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.partner-external:hover {
  background: var(--navy, #1A2A4D);
  color: var(--paper, #FFFFFF);
  border-color: var(--navy, #1A2A4D);
}
@media (max-width: 800px) {
  .partners-section { padding: 2.5rem 0 4rem; }
  .partners-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .partner-card { padding: 1.5rem 1.5rem 1.75rem; }
  .partner-external { top: 1rem; right: 1rem; }
}
