:root {
  /* Palette taken directly from the supplied colour references. */
  --pearl-white: #fbf8f3;
  --soft-white: #fffdf8;
  --warm-ivory: #f6f1e7;
  --champagne: #e7d3b5;
  --warm-beige: #d9c8b2;
  --gold-accent: #c79c5a;
  --soft-taupe: #a99c8f;
  --rose-taupe: #b38d73;
  --deep-taupe: #9d735c;
  --silver: #8a8f97;
  --slate: #2f3a43;

  --page-cream: var(--pearl-white);
  --dark-gold-line: rgba(157, 115, 92, .52);
  --line: rgba(157, 115, 92, .40);
  --ink: var(--slate);
  --muted: #6a6b70;
  --dark-gold: var(--deep-taupe);
  --light-gold: var(--champagne);
  --matte-silver: var(--silver);
  --deep-gold-green: var(--deep-taupe);
  --background-art: url("eight-and-eight-background-20260905.jpeg");
  --wallpaper: url("Eight&Eight-wallpaper.jpeg");

  --header-height: 90px;
  --background-shift: 0px;
  --logo-shift: 0px;
  --logo-layer-opacity: .156;
  --wallpaper-height: 220px;
}

html {
  background: var(--pearl-white);
}

body {
  min-width: 320px;
  background: var(--pearl-white);
  color: var(--slate);
  font-size: 16px;
}

/* Eight rear parallax layers. They all use the same supplied background image,
   begin exactly below the menu bar and end exactly at the upper edge of the
   lower wallpaper strip. Each successive layer is 8% larger. */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: var(--pearl-white);
}

.background-stack {
  position: absolute;
  z-index: 0;
  top: var(--header-height);
  right: 0;
  bottom: var(--wallpaper-height);
  left: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}

.background-layer {
  position: absolute;
  inset: 0;
  background-image: var(--background-art);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto 100%;
  transform-origin: center top;
  will-change: transform;
  mix-blend-mode: multiply;
}

.background-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--layer-tint);
  opacity: .20;
  mix-blend-mode: color;
}

.background-layer-1 { --layer-tint: var(--champagne); opacity: .08; transform: translate3d(0,var(--bg-shift-1,0),0) scale(1); }
.background-layer-2 { --layer-tint: var(--warm-beige); opacity: .16; transform: translate3d(0,var(--bg-shift-2,0),0) scale(1.08); }
.background-layer-3 { --layer-tint: var(--gold-accent); opacity: .24; transform: translate3d(0,var(--bg-shift-3,0),0) scale(1.16); }
.background-layer-4 { --layer-tint: var(--soft-taupe); opacity: .32; transform: translate3d(0,var(--bg-shift-4,0),0) scale(1.24); }
.background-layer-5 { --layer-tint: var(--rose-taupe); opacity: .40; transform: translate3d(0,var(--bg-shift-5,0),0) scale(1.32); }
.background-layer-6 { --layer-tint: var(--deep-taupe); opacity: .48; transform: translate3d(0,var(--bg-shift-6,0),0) scale(1.40); }
.background-layer-7 { --layer-tint: var(--silver); opacity: .56; transform: translate3d(0,var(--bg-shift-7,0),0) scale(1.48); }
.background-layer-8 { --layer-tint: var(--slate); opacity: .64; transform: translate3d(0,var(--bg-shift-8,0),0) scale(1.56); }

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow: clip;
  background: transparent;
}

/* Middle layer: the supplied logo moves a little faster than the wallpaper. */
.parallax-logo {
  position: fixed;
  z-index: 1;
  top: calc(var(--header-height) + clamp(20px, 2vw, 32px));
  left: 50%;
  width: min(52vw, 560px);
  height: calc(100vh - var(--header-height) - clamp(56px, 8vh, 96px));
  max-height: 820px;
  pointer-events: none;
  opacity: var(--logo-layer-opacity);
  transform: translate3d(-50%, var(--logo-shift), 0);
  transform-origin: center top;
  will-change: transform;
  mix-blend-mode: multiply;
}

.parallax-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

main,
.footer,
.wallpaper-end {
  position: relative;
  z-index: 2;
}

main {
  padding-top: 0;
}

.logo-stage {
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  background: transparent;
  border: 0;
  border-radius: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: var(--header-height);
  padding: 14px 5vw;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  background: rgba(251, 248, 243, .12);
  border-bottom: 1px solid var(--dark-gold-line);
  backdrop-filter: blur(8px);
}

.topbar::before,
.wallpaper-end::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image: var(--wallpaper);
  background-repeat: repeat-x;
  background-size: 1120px auto;
  opacity: .156;
  mix-blend-mode: multiply;
}

.topbar::before {
  background-position: center 24%;
}

.wordmark,
.menu-toggle,
.site-nav {
  position: relative;
  z-index: 1;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--deep-taupe);
  font-family: "Sitka Text", Sitka, Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1;
}

.site-nav {
  gap: clamp(14px, 1.5vw, 24px);
}

.site-nav a,
.site-nav a:hover {
  color: var(--deep-taupe);
  font-size: .875rem;
  letter-spacing: .11em;
}

.site-nav a::after,
.menu-toggle span {
  background: var(--gold-accent);
}

.hero-card,
.section,
.partner-grid,
.service-grid,
.contact-box {
  border-color: var(--dark-gold-line);
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(47, 58, 67, .055);
}

.hero-card,
.hero-copy,
.section,
.contact-panel,
.contact-box,
.footer {
  background: rgba(251, 248, 243, .92);
  backdrop-filter: blur(1.5px);
}

.section-label {
  background: rgba(231, 211, 181, .92);
  border-color: var(--dark-gold-line);
  color: var(--deep-taupe);
  font-size: .875rem;
}

h1,
h2,
h3,
.principles strong,
.process,
.contact-box strong,
.contact-tags {
  color: var(--deep-taupe);
}

p,
.lead {
  color: var(--slate);
}

.eyebrow,
.small-label,
.note {
  color: var(--deep-taupe);
}

.eyebrow,
.small-label {
  font-size: .8125rem;
}

.partner-grid,
.service-grid {
  gap: 0;
  overflow: hidden;
  background: rgba(255, 253, 248, .92);
}

.partner-slot,
.service-grid article {
  border-radius: 0;
  background: rgba(255, 253, 248, .92);
  color: var(--slate);
}

.partner-slot {
  font-size: .8125rem;
}

.partner-slot + .partner-slot,
.service-grid article:nth-child(even) {
  border-left: 1px solid var(--dark-gold-line);
}

.service-grid article:nth-child(n + 3) {
  border-top: 1px solid var(--dark-gold-line);
}

.principles,
.principles div,
.process,
.footer {
  border-color: var(--dark-gold-line);
}

.principles div,
.process {
  background: rgba(231, 211, 181, .92);
}

.process i {
  color: var(--soft-taupe);
}

.contact-links a,
.footer a {
  color: var(--deep-taupe);
  border-color: var(--gold-accent);
}

.footer {
  color: var(--muted);
  font-size: .8125rem;
}

.wallpaper-end {
  display: block;
  width: 100%;
  height: 220px;
  margin-top: 0;
  overflow: hidden;
  isolation: isolate;
  background: rgba(251, 248, 243, .12);
  border-top: 1px solid var(--dark-gold-line);
  border-bottom: 1px solid var(--dark-gold-line);
}

.wallpaper-end::before {
  background-position: center 76%;
}

@media (max-width: 900px) {
  :root {
    --header-height: 78px;
  }

  .topbar {
    min-height: var(--header-height);
    padding: 12px 5vw;
  }

  .site-nav {
    top: var(--header-height);
    background: rgba(251, 248, 243, .96);
    border-color: var(--dark-gold-line);
  }

  .site-nav.open {
    gap: 16px;
  }

  .logo-stage {
    min-height: calc(84vh - var(--header-height));
  }

  .partner-slot + .partner-slot,
  .service-grid article:nth-child(even) {
    border-left: 0;
  }

  .partner-slot + .partner-slot,
  .service-grid article:nth-child(n + 2) {
    border-top: 1px solid var(--dark-gold-line);
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 68px;
    --logo-layer-opacity: .156;
    --wallpaper-height: 170px;
  }

  .topbar {
    min-height: var(--header-height);
    padding: 9px 5vw;
  }

  .site-nav {
    top: var(--header-height);
  }

  .wordmark {
    font-size: 21px;
  }

  .parallax-logo {
    top: calc(var(--header-height) + 7.5vw);
    width: min(72vw, 460px);
    height: calc(78vh - var(--header-height));
  }

  .logo-stage {
    min-height: calc(78vh - var(--header-height));
  }

  .hero-card,
  .section,
  .partner-grid,
  .service-grid,
  .contact-box {
    border-radius: 22px;
  }

  .wallpaper-end {
    height: 170px;
  }

  .topbar::before,
  .wallpaper-end::before {
    background-size: 880px auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .parallax-logo {
    transform: translate3d(-50%, 0, 0);
  }
}
