/* Frontier Builders — Luxury High-End Site
   Refined palette with gold accents inspired by brand logo */

:root {
  /* Luxury palette */
  --navy: #0B1C2C;          /* Dominant 60% — Midnight Navy */
  --limestone: #F4F0E8;     /* Secondary 30% — Warm Limestone */
  --gold: #C9A14A;          /* Accent 8% — Antique Gold */
  --graphite: #3A3A3A;      /* Support Neutral — Soft Graphite */
  --ivory: #FAF8F4;         /* Highlight Neutral — Pale Ivory */

  /* Mapped aliases used throughout the stylesheet */
  --ink: #0B1C2C;
  --ink-soft: #3A3A3A;
  --slate: #3A3A3A;
  --slate-dark: #0B1C2C;
  --cream: #F4F0E8;
  --cream-dark: #FAF8F4;
  --stone: #E8E2D6;
  --white: #FAF8F4;
  --gold-soft: #D4B56A;
  --gold-dark: #A87F2E;
  --line: rgba(11, 28, 44, 0.12);
  --line-light: rgba(250, 248, 244, 0.15);
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --shadow: 0 20px 50px rgba(11, 28, 44, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--white);
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
}

/* Header */
.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5vw;
  color: var(--ink);
  transition: background 0.3s, color 0.3s;
}
.site-header.solid {
  position: sticky;
  top: 0;
  background: rgba(244, 240, 232, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.site-header.on-dark {
  color: var(--white);
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-logo {
  display: block;
  width: 92px;
  height: auto;
  flex: 0 0 auto;
}
.brand-logo-full {
  width: 180px;
  height: auto;
}
/* Ensure logo stays crisp */
.brand-logo, .brand-logo-full {
  image-rendering: -webkit-optimize-contrast;
}
/* Make logo white/light on dark backgrounds */
.site-header.on-dark .brand-logo,
.site-footer .brand-logo {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}



.brand-name {
  display: block;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.1;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.88rem;
  font-weight: 500;
}
.site-nav a {
  position: relative;
  letter-spacing: 0.02em;
}
.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}
.site-nav a:hover::after {
  width: 100%;
}
.nav-cta {
  border: 1px solid currentColor;
  padding: 10px 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  padding: 8px 14px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  background: linear-gradient(145deg, #0B1C2C 0%, #12263a 55%, #1a3348 100%);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 28, 44, 0.82) 0%, rgba(11, 28, 44, 0.40) 45%, rgba(11, 28, 44, 0.18) 100%),
    linear-gradient(0deg, rgba(11, 28, 44, 0.60) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 6vw 14vh;
  max-width: 920px;
}
.hero .eyebrow {
  color: var(--gold-soft);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6.5vw, 6.2rem);
  line-height: 1.02;
  font-weight: 500;
  margin: 0.25em 0 0.4em;
  letter-spacing: -0.015em;
}
.hero-content > p:not(.eyebrow) {
  font-size: 1.15rem;
  max-width: 540px;
  opacity: 0.92;
  line-height: 1.7;
}
.scroll-cue {
  position: absolute;
  z-index: 2;
  right: 5vw;
  bottom: 5vh;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  font-weight: 500;
}

/* Sections */
.section {
  padding: 120px 6vw;
}
.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate);
}
.eyebrow.light,
.section-kicker.light {
  color: rgba(255, 255, 255, 0.7);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.section-heading h2,
.intro h2,
.process h2,
.about h2,
.contact h2,
.page-hero h2,
.team-intro h2,
.journal-intro h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  line-height: 1.12;
  margin: 0.15em 0 0.4em;
  letter-spacing: -0.012em;
}

/* Intro */
.intro {
  display: grid;
  grid-template-columns: 1fr 2.8fr;
  gap: 5vw;
  align-items: start;
}
.intro-copy {
  max-width: 780px;
}
.intro-copy > p {
  font-size: 1.18rem;
  max-width: 620px;
  color: var(--ink-soft);
}

/* Text links & buttons */
.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 20px;
  letter-spacing: 0.02em;
}
.text-link span {
  transition: transform 0.2s ease;
}
.text-link:hover span {
  transform: translateX(5px);
}
.text-link.light {
  color: var(--white);
}
.button-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.button {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.button-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}
.button-light:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.button-solid {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.button-solid:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.button-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.button-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
}

/* Featured projects */
.section-dark {
  background: var(--slate-dark);
  color: var(--white);
}
.section-dark .eyebrow {
  color: var(--gold-soft);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card a {
  display: block;
}
.project-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--stone);
  position: relative;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card:hover img {
  transform: scale(1.04);
}
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  align-items: flex-start;
}
.project-meta p {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 4px;
  opacity: 0.7;
}
.project-meta h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  margin: 0;
  line-height: 1.25;
}
.project-meta > span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  opacity: 0.75;
  padding-top: 4px;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 300px;
  transition: background 0.3s;
}
.service-card:hover {
  background: var(--cream-dark);
}
.service-card span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  font-weight: 600;
}
.service-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  margin: 70px 0 14px;
  line-height: 1.2;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 7vw;
  align-items: center;
  background: var(--cream-dark);
}
.process-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 32%;
}
.process-copy ol {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
}
.process-copy li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.process-copy li strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
}
.process-copy li span {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Stats / About */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.stats div {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}
.stats span {
  display: block;
  font-size: 0.88rem;
  margin-top: 6px;
  color: var(--ink-soft);
}

/* Contact block */
.contact {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 7vw;
  background: var(--slate-dark);
  color: var(--white);
}
.contact .eyebrow {
  color: var(--gold-soft);
}
.contact-panel {
  padding-top: 12px;
}
.contact-panel p {
  opacity: 0.9;
  max-width: 360px;
}
.contact-panel .button {
  margin: 28px 0 18px;
  display: inline-block;
}
.phone-link {
  display: block;
  font-family: var(--serif);
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  margin-top: 8px;
}
.phone-link:hover {
  color: var(--gold-soft);
}

/* Footer */
.site-footer {
  background: #0B1C2C;
  color: rgba(255, 255, 255, 0.85);
  padding: 70px 6vw 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer 

.brand-name {
  color: var(--white);
  margin-top: 10px;
}
.site-footer a {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--gold-soft);
}
.site-footer p {
  margin: 0.25em 0;
  font-size: 0.92rem;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin: 0;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  margin-top: 24px !important;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 160px 6vw 80px;
  background: var(--cream);
}
.page-hero .eyebrow {
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.4em;
}
.page-hero > p {
  max-width: 580px;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

/* Filters */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter {
  background: none;
  border: 1px solid var(--line);
  padding: 10px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.filter.active,
.filter:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* Archive grid */
.archive-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 28px;
}
.archive-grid .project-image {
  aspect-ratio: 3 / 2;
}

/* Project detail */
.project-hero {
  height: 78vh;
  position: relative;
  color: var(--white);
  display: flex;
  align-items: flex-end;
}
.project-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
}
.project-hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 6vw 8vh;
}
.project-hero-copy p {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  opacity: 0.85;
}
.project-hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 400;
  margin: 0.2em 0 0;
}
.project-intro {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 7vw;
  padding-top: 100px;
}
.project-intro h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}
.project-intro ul {
  padding-left: 18px;
  margin-top: 24px;
  color: var(--ink-soft);
}
.project-intro li {
  margin-bottom: 8px;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-top: 20px;
}
.gallery-item {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--stone);
}
.gallery-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.next-project {
  text-align: center;
  background: var(--slate-dark);
  color: var(--white);
}
.next-project .eyebrow {
  color: var(--gold-soft);
}

/* Team */

.team-feature {
  margin: 8px 0 64px;
  overflow: hidden;
}
.team-feature img {
  width: 100%;
  height: clamp(360px, 48vw, 640px);
  object-fit: cover;
  object-position: center 46%;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
  margin-top: 60px;
}
.team-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
}
.team-photo {
  width: 140px;
  height: 160px;
  background: var(--stone);
  object-fit: cover;
}
.team-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 4px;
}
.team-card .role {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  margin-bottom: 14px;
  font-weight: 600;
}
.team-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.65;
}

/* Journal / Blog */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.journal-card {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.journal-card time {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.journal-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 12px 0 14px;
  line-height: 1.3;
}
.journal-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.social-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.social-links a:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

/* Contact form page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8vw;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 0 0 1em;
}
.contact-details {
  margin-top: 36px;
}
.contact-details p {
  margin: 0 0 18px;
  font-size: 1.05rem;
}
.contact-details strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
  font-weight: 600;
}
.contact-form label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--slate);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  margin-bottom: 22px;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Project card hidden */
.project-card[hidden] {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .project-grid,
  .service-grid,
  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    color: var(--ink);
    padding: 20px 5vw 28px;
    border-bottom: 1px solid var(--line);
    gap: 0;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .nav-cta {
    margin-top: 12px;
    text-align: center;
  }
  .menu-toggle {
    display: block;
  }
  .intro,
  .process,
  .contact,
  .project-intro,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 90px 5vw;
  }
  .hero-content {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .hero h1,
  .page-hero h1 {
    font-size: 2.7rem;
  }
  .button-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .project-grid,
  .archive-grid,
  .service-grid,
  .journal-grid,
  .stats {
    grid-template-columns: 1fr;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .service-card {
    min-height: 220px;
  }
  .service-card h3 {
    margin-top: 40px;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
  .project-hero {
    height: 65vh;
  }
  .project-gallery {
    grid-template-columns: 1fr;
  }
  .gallery-item,
  .gallery-item:first-child {
    aspect-ratio: 3 / 2;
  }
  .site-header {
    padding: 16px 5vw;
  }
  .brand-logo {
    width: 72px;
  }
  

.brand-name {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }
  .team-feature {
    margin-bottom: 42px;
  }
  .team-feature img {
    height: 360px;
  }
  .team-card {
    grid-template-columns: 1fr;
  }
  .team-photo {
    width: 100%;
    height: 220px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Frontier Builders — Light Architectural Direction
   Inspired by the REVIVED & REIMAGINED reference
   ========================================================= */
:root {
  --navy: #31424C;
  --limestone: #F7F6F3;
  --gold: #687D88;
  --graphite: #29343B;
  --ivory: #FCFBF8;
  --ink: #29343B;
  --ink-soft: #5F6970;
  --slate: #647985;
  --slate-dark: #DCE4E7;
  --cream: #F7F6F3;
  --cream-dark: #EEEDEA;
  --stone: #E5E7E6;
  --white: #FFFFFF;
  --gold-soft: #83959D;
  --gold-dark: #516A76;
  --line: rgba(41, 52, 59, 0.22);
  --line-light: rgba(41, 52, 59, 0.13);
  --shadow: 0 16px 40px rgba(41, 52, 59, 0.06);
}

body {
  background: var(--ivory);
  color: var(--ink);
}

/* Header: crisp and architectural rather than dark/luxury */
.site-header,
.site-header.on-dark {
  color: var(--ink);
}
.site-header {
  border-bottom: 1px solid rgba(41, 52, 59, 0.18);
}
.site-header.solid {
  background: rgba(252, 251, 248, 0.96);
}
.site-header.on-dark .brand-logo,
.site-footer .brand-logo {
  filter: none;
  opacity: 1;
}
.brand-name {
  font-weight: 600;
  letter-spacing: 0.17em;
}
.nav-cta {
  border-color: var(--ink);
}
.nav-cta:hover {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--white);
}

/* Hero: brighter overlay with restrained slate tone */
.hero {
  background: #E7EBEC;
  color: var(--ink);
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(239, 241, 240, 0.88) 0%, rgba(239, 241, 240, 0.62) 45%, rgba(239, 241, 240, 0.18) 100%),
    linear-gradient(0deg, rgba(215, 222, 224, 0.30) 0%, transparent 55%);
}
.hero .eyebrow,
.hero-content,
.scroll-cue {
  color: var(--ink);
}
.hero h1 {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1.01;
  font-weight: 400;
  letter-spacing: 0.055em;
}
.hero-content > p:not(.eyebrow) {
  color: var(--ink-soft);
  opacity: 1;
}
.scroll-cue { opacity: .72; }

/* Small italic labels with thin architectural rule */
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  font-weight: 400;
  font-style: italic;
  color: var(--slate);
}
.eyebrow::after,
.section-kicker::after {
  content: '';
  width: 78px;
  height: 1px;
  background: currentColor;
  opacity: .8;
}
.eyebrow.light,
.section-kicker.light,
.section-dark .eyebrow,
.contact .eyebrow,
.next-project .eyebrow {
  color: var(--slate);
}

/* Architectural all-caps headings */
.section-heading h2,
.intro h2,
.process h2,
.about h2,
.contact h2,
.page-hero h1,
.page-hero h2,
.team-intro h2,
.journal-intro h2,
.project-intro h2,
.next-project h2,
.contact-info h2 {
  font-family: var(--sans);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.065em;
  line-height: 1.08;
}
.section-heading h2,
.intro h2,
.process h2,
.about h2,
.contact h2,
.page-hero h2,
.team-intro h2,
.journal-intro h2 {
  font-size: clamp(2.1rem, 4vw, 3.7rem);
}

/* Light panels replace dark navy blocks */
.section-dark {
  background: #E9ECEC;
  color: var(--ink);
}
.section-dark .text-link,
.text-link.light {
  color: var(--ink);
}

/* Buttons */
.button,
.button-light,
.button-solid,
.button-gold {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.button:hover,
.button-light:hover,
.button-solid:hover,
.button-gold:hover {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--white);
}

/* Project cards */
.project-meta h3 {
  font-family: var(--sans);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.07em;
  font-size: 1.18rem;
}
.project-meta p,
.project-meta > span {
  color: var(--slate);
  opacity: 1;
}

/* Services become cleaner, less ornate */
.services {
  background: var(--ivory);
}
.service-card:hover {
  background: #F0F2F1;
}
.service-card span {
  color: var(--slate);
}
.service-card h3 {
  font-family: var(--sans);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.06em;
  font-size: 1.25rem;
}

/* Process + supporting sections */
.process {
  background: #ECEEED;
}
.process-copy li strong,
.stats strong,
.phone-link,
.team-card h3,
.journal-card h3 {
  font-family: var(--sans);
  font-weight: 500;
}

/* Contact block is now a pale blue-gray panel */
.contact {
  background: #DDE5E8;
  color: var(--ink);
}
.contact-panel p { opacity: 1; color: var(--ink-soft); }
.phone-link:hover { color: var(--slate); }

/* Footer: light, clean, and quiet */
.site-footer {
  background: #E9ECEC;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.site-footer .brand-name,
.site-footer strong,
.site-footer a {
  color: var(--ink);
}
.site-footer a:hover { color: var(--slate); }
.site-footer p strong[style] { color: var(--ink) !important; }
.footer-social a {
  border-color: var(--line);
}
.footer-social a:hover {
  border-color: var(--slate);
  color: var(--slate);
}
.copyright {
  border-top-color: var(--line);
}

/* Inner-page hero treatment mirrors the reference card */
.page-hero {
  background: var(--ivory);
  padding-top: 150px;
}
.page-hero > * {
  max-width: 1100px;
}
.page-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  margin-top: .3em;
}

/* Filters */
.filter.active,
.filter:hover {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--white);
}

/* Project detail */
.project-hero-shade {
  background: linear-gradient(0deg, rgba(30, 41, 47, 0.56) 0%, rgba(30, 41, 47, 0.08) 62%);
}
.project-hero-copy h1 {
  font-family: var(--sans);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.065em;
}
.next-project {
  background: #E9ECEC;
  color: var(--ink);
}

/* Forms */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--slate);
}
.social-links a:hover {
  border-color: var(--slate);
  background: var(--slate);
  color: var(--white);
}
.team-card .role {
  color: var(--slate);
}

@media (max-width: 900px) {
  .site-nav {
    background: var(--ivory);
  }
}

@media (max-width: 600px) {
  .hero h1,
  .page-hero h1 {
    font-size: 2.45rem;
    letter-spacing: .045em;
  }
  .eyebrow::after,
  .section-kicker::after {
    width: 52px;
  }
}

/* Archived project cards */
.archived-project .project-image img{filter:saturate(.88)}
.archived-project .project-static{display:block}
.archive-label{margin-top:8px!important;font-size:.68rem!important;font-style:italic;text-transform:none!important;letter-spacing:.06em!important;opacity:.68}


/* Clickable service cards */
.service-card { position: relative; color: inherit; text-decoration: none; cursor: pointer; transition: background .25s ease, transform .25s ease, box-shadow .25s ease; }
.service-card:hover { background: rgba(86,109,122,.07); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(40,51,59,.07); }
.service-card:focus-visible { outline: 2px solid var(--slate); outline-offset: -2px; }
.service-arrow { position: absolute; right: 28px; bottom: 24px; font-size: 1.3rem; color: var(--slate); transition: transform .2s ease; }
.service-card:hover .service-arrow { transform: translateX(5px); }

/* Service detail pages */
.service-page-hero { padding: 150px 6vw 88px; background: var(--cream-dark); }
.service-page-hero h1 { font-family: var(--sans); font-weight: 400; text-transform: uppercase; letter-spacing: .055em; font-size: clamp(2.8rem, 6vw, 6.4rem); line-height: 1.05; max-width: 1050px; margin: .3em 0; }
.service-page-hero > p:last-child { max-width: 720px; font-size: 1.1rem; color: var(--ink-soft); }
.service-detail-grid { display:grid; grid-template-columns: 1.15fr .85fr; gap:8vw; align-items:start; }
.service-detail-grid h2 { font-family:var(--sans); font-weight:400; text-transform:uppercase; letter-spacing:.05em; font-size:clamp(2rem,4vw,4rem); line-height:1.1; margin:.2em 0 .65em; }
.service-list { list-style:none; padding:0; margin:0; border-top:1px solid var(--line); }
.service-list li { padding:16px 0; border-bottom:1px solid var(--line); }
.service-actions { display:flex; gap:16px; flex-wrap:wrap; margin-top:28px; }
@media(max-width:900px){ .service-detail-grid{grid-template-columns:1fr;} .service-page-hero{padding:120px 5vw 70px;} }


/* Homepage project slideshow */
.hero {
  background: linear-gradient(145deg, #2c3640 0%, #415260 55%, #5a6d7a 100%);
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.15s ease;
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide.active.hero-pan-left {
  animation: heroPanLeft 7s ease-in-out infinite alternate;
}
.hero-slide.active.hero-pan-right {
  animation: heroPanRight 7s ease-in-out infinite alternate;
}
.hero-slide.active.hero-pan-up {
  animation: heroPanUp 7s ease-in-out infinite alternate;
}
.hero-slide.active.hero-pan-down {
  animation: heroPanDown 7s ease-in-out infinite alternate;
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(252, 251, 248, 0.94) 0%, rgba(252, 251, 248, 0.76) 39%, rgba(252, 251, 248, 0.18) 72%, rgba(252, 251, 248, 0.06) 100%),
    linear-gradient(0deg, rgba(41, 52, 59, 0.18) 0%, rgba(41, 52, 59, 0.04) 50%, rgba(41, 52, 59, 0.12) 100%);
}
@keyframes heroPanLeft {
  from { transform: scale(1.04) translateX(1.5%); }
  to   { transform: scale(1.08) translateX(-1.5%); }
}
@keyframes heroPanRight {
  from { transform: scale(1.06) translateX(-1.5%); }
  to   { transform: scale(1.08) translateX(1.5%); }
}
@keyframes heroPanUp {
  from { transform: scale(1.05) translateY(1.3%); }
  to   { transform: scale(1.08) translateY(-1.3%); }
}
@keyframes heroPanDown {
  from { transform: scale(1.07) translateY(-1.2%); }
  to   { transform: scale(1.05) translateY(1.2%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 700px) {
  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(252, 251, 248, 0.88) 0%, rgba(252, 251, 248, 0.62) 50%, rgba(252, 251, 248, 0.20) 100%);
  }
}


/* =========================================================
   Frontier Builders — Mobile Optimization
   Responsive-only refinements; desktop styling unchanged.
   ========================================================= */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video, iframe {
  max-width: 100%;
}

@media (max-width: 900px) {
  .menu-toggle {
    min-height: 44px;
    min-width: 64px;
    cursor: pointer;
  }

  .site-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .site-nav .nav-cta {
    justify-content: center;
  }

  .filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .filter {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
  }

  .contact-map {
    max-width: 100%;
    margin: 24px 0 30px;
  }

  .contact-map iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
  }

  .contact-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
  }

  .contact-map-actions .button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .site-header {
    gap: 12px;
    padding: 13px 4.5vw;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-logo {
    width: 58px;
  }

  .brand-name {
    font-size: 0.69rem;
    letter-spacing: 0.11em;
    white-space: nowrap;
  }

  .menu-toggle {
    flex: 0 0 auto;
    padding: 8px 11px;
    font-size: 0.76rem;
  }

  .site-nav {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    width: 100%;
    max-width: none;
    padding: 0 5vw 96px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3rem);
    line-height: 1.02;
  }

  .hero-content > p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 33rem;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .page-hero,
  .service-page-hero {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .page-hero h1,
  .service-page-hero h1 {
    overflow-wrap: anywhere;
  }

  .button-row {
    width: 100%;
    align-items: stretch;
  }

  .button-row .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .project-hero {
    height: auto;
    min-height: 460px;
  }

  .project-hero > img {
    min-height: 460px;
  }

  .project-hero-copy {
    width: 100%;
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .project-hero-copy h1 {
    overflow-wrap: anywhere;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 16px;
  }

  .contact-form .button {
    min-height: 48px;
  }

  .contact-map iframe {
    height: 250px;
  }

  .contact-map-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-map-actions .button {
    width: 100%;
    text-align: center;
  }

  .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .social-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .journal-article-copy p {
    font-size: 1rem !important;
    line-height: 1.75 !important;
  }

  .journal-article-copy h2 {
    margin-top: 2.6rem !important;
  }

  .site-footer {
    gap: 28px;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-logo {
    width: 50px;
  }

  .brand-name {
    font-size: 0.62rem;
    letter-spacing: 0.085em;
  }

  .menu-toggle {
    min-width: 58px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .before-after-label {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
}
