/* The Buckingham Group - homepage concept
   Palette taken from their own theme CSS and their logo lockup.
   Display: Quattrocento. Body: Varela Round. */

:root {
  --ink:        #0a0a0a;   /* their theme CSS */
  --ink-2:      #16150f;   /* their ink, warmed a step, for band alternation */
  --ink-3:      #241f16;   /* deepest gold-shadow, used for hairline grounds */
  --gold:       #9d8254;   /* their theme CSS and the "Group" in their logo */
  --gold-lift:  #c2a874;   /* their gold lightened in hue for type on ink */
  --gold-deep:  #7a6234;   /* their gold deepened for type on paper */
  --paper:      #f8f7f4;   /* their theme CSS */
  --cream:      #f6f3eb;   /* their theme CSS */
  --ash:        #cfcac2;   /* body type on ink */
  --ash-2:      #a8a29a;   /* quiet type on ink */
  --slate:      #3a3733;   /* body type on paper */
  --slate-2:    #5c574f;   /* quiet type on paper */

  --display: "Quattrocento", Georgia, "Times New Roman", serif;
  --body: "Varela Round", "Helvetica Neue", Arial, sans-serif;

  --wrap: min(90%, 1100px);
  --wrap-wide: min(92%, 1420px);
  --nav-h: 84px;
  --pad-y: clamp(4.5rem, 9vw, 9rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--body);
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.075rem);
  line-height: 1.72;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.wrap { width: var(--wrap); margin-inline: auto; }
.wrap-wide { width: var(--wrap-wide); margin-inline: auto; }

.band { padding-block: var(--pad-y); position: relative; }
.band--ink { background: var(--ink); color: var(--ash); }
.band--ink2 { background: var(--ink-2); color: var(--ash); }
.band--paper { background: var(--paper); color: var(--slate); }
.band--cream { background: var(--cream); color: var(--slate); }

.band--ink h2, .band--ink2 h2, .band--ink h3, .band--ink2 h3 { color: var(--paper); }
.band--paper h2, .band--cream h2, .band--paper h3, .band--cream h3 { color: var(--ink); }

/* ---------- shared type ---------- */

.kicker {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(122, 98, 52, 0.34);
  max-width: 7rem;
}
.band--ink .kicker, .band--ink2 .kicker { color: var(--gold-lift); }
.band--ink .kicker::after, .band--ink2 .kicker::after { background: rgba(194, 168, 116, 0.36); }

.h-lg { font-size: clamp(2.05rem, 3.5vw, 3.15rem); }
.h-md { font-size: clamp(1.65rem, 2.4vw, 2.25rem); }
.h-sm { font-size: clamp(1.2rem, 1.5vw, 1.42rem); line-height: 1.24; }

.lede { font-size: clamp(1.06rem, 0.55vw + 0.95rem, 1.22rem); line-height: 1.68; }
.quiet { color: var(--slate-2); }
.band--ink .quiet, .band--ink2 .quiet { color: var(--ash-2); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--body);
  font-size: 0.84rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
  min-height: 48px;
}
.btn:focus-visible { outline: 2px solid var(--gold-lift); outline-offset: 3px; }
.btn__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: none;
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn__dot { transform: scale(1.55); }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-lift); }
.btn--ghost-light { color: var(--paper); border-color: rgba(248, 247, 244, 0.42); }
.btn--ghost-light:hover { background: rgba(248, 247, 244, 0.1); border-color: var(--paper); }
.btn--ghost-dark { color: var(--ink); border-color: rgba(10, 10, 10, 0.28); }
.btn--ghost-dark:hover { background: rgba(10, 10, 10, 0.06); border-color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-3); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  /* Pure white: their logo file carries a white ground, so any warmer nav
     colour would show it as a rectangle behind the mark. */
  background: #ffffff;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  z-index: 90;
}
.nav__inner {
  height: 100%;
  width: var(--wrap-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img {
  width: auto;
  height: 46px;
  max-width: 230px;
  object-fit: contain;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.775rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-block: 0.6rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__links a:hover { border-bottom-color: var(--gold); }
.nav__right { display: flex; align-items: center; gap: 1.1rem; }
.nav__tel {
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  white-space: nowrap;
}
.nav__tel:hover { color: var(--gold-deep); }
.nav__cta { padding: 0.8rem 1.4rem; font-size: 0.75rem; }

.burger {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}
.burger span {
  display: block;
  width: 26px; height: 1px;
  background: currentColor;
  position: relative;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 26px; height: 1px; background: currentColor;
}
.burger span::before { top: -8px; }
.burger span::after { top: 8px; }

/* mobile drawer. Close control lives INSIDE the drawer so it shares the
   drawer's stacking context and can never be painted over. */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 1.4rem clamp(1.5rem, 6vw, 3rem) 3rem;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.drawer.is-open { transform: translateY(0); visibility: visible; transition-delay: 0s; }
.drawer__top { display: flex; justify-content: flex-end; }
.drawer__close {
  width: 52px; height: 52px;
  background: none; border: 1px solid rgba(248, 247, 244, 0.3);
  border-radius: 50%;
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.drawer__close:hover { border-color: var(--gold-lift); color: var(--gold-lift); }
.drawer__links {
  list-style: none; margin: auto 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.drawer__links a {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  text-decoration: none;
  color: var(--paper);
  padding: 0.35rem 0;
}
.drawer__links a:hover { color: var(--gold-lift); }
.drawer__foot { border-top: 1px solid rgba(248, 247, 244, 0.16); padding-top: 1.4rem; }
.drawer__foot a { color: var(--gold-lift); text-decoration: none; font-size: 1.1rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,
      rgba(5, 5, 4, 0.82) 0%,
      rgba(5, 5, 4, 0.55) 34%,
      rgba(5, 5, 4, 0.12) 62%,
      rgba(5, 5, 4, 0) 78%),
    linear-gradient(to top,
      rgba(5, 5, 4, 0.94) 0%,
      rgba(5, 5, 4, 0.86) 26%,
      rgba(5, 5, 4, 0.42) 46%,
      rgba(5, 5, 4, 0) 62%);
}
.hero__inner {
  position: relative;
  width: var(--wrap-wide);
  margin-inline: auto;
  padding-bottom: clamp(3rem, 7vh, 6rem);
}
.hero__rule {
  height: 1px;
  background: linear-gradient(to right, var(--gold) 0%, rgba(157, 130, 84, 0.15) 62%, rgba(157, 130, 84, 0) 100%);
  margin-bottom: clamp(1.6rem, 3vh, 2.4rem);
}
.hero__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  /* their gold, lifted further so it clears 4.5:1 over the hero photo */
  color: #ddcda9;
  margin: 0 0 1.4rem;
}
.hero h1 {
  color: #ffffff;
  font-size: clamp(2.45rem, 5.1vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 15ch;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; font-weight: 700; color: var(--gold-lift); }
.hero__sub {
  color: #e8e5e0;
  font-size: clamp(1.04rem, 0.6vw + 0.94rem, 1.24rem);
  max-width: 46ch;
  margin: 0 0 2.2rem;
  line-height: 1.62;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- statement band ---------- */

.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.statement h2 { max-width: 17ch; }
.pillars {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3vw, 3rem);
}
.pillar { border-top: 1px solid rgba(194, 168, 116, 0.34); padding-top: 1.3rem; }
.pillar h3 {
  font-size: 1.16rem;
  color: var(--paper);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.pillar p { font-size: 0.97rem; color: var(--ash-2); margin: 0; }

/* ---------- services ---------- */

.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
.svc:first-of-type { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.svc--flip .svc__media { order: 2; }
.svc__media { position: relative; }
.svc__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.svc__media::after {
  content: "";
  position: absolute;
  inset: auto auto -10px -10px;
  width: 64px; height: 64px;
  border-left: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.svc h3 { margin-bottom: 1rem; }
.svc__list { list-style: none; margin: 1.7rem 0 0; padding: 0; }
.svc__list li {
  border-top: 1px solid rgba(10, 10, 10, 0.12);
  padding: 0.85rem 0 0.9rem;
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 0.4rem 1.4rem;
  align-items: baseline;
}
.svc__list li:last-child { border-bottom: 1px solid rgba(10, 10, 10, 0.12); }
.svc__name {
  font-family: var(--display);
  font-size: 1.06rem;
  color: var(--ink);
}
.svc__note { font-size: 0.95rem; color: var(--slate-2); }

/* ---------- the eight phases ---------- */

.ridge { margin: clamp(2.8rem, 6vw, 4.2rem) 0 clamp(2.4rem, 5vw, 3.4rem); }
.ridge__track {
  position: relative;
  height: 46px;
}
.ridge__line, .ridge__fill {
  position: absolute;
  left: 0; right: 0;
  top: 23px;
  height: 1px;
}
.ridge__line { background: rgba(194, 168, 116, 0.26); }
.ridge__fill {
  background: var(--gold-lift);
  transform-origin: left center;
  transform: scaleX(var(--ridge, 0));
}
.ridge__nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  height: 46px;
}
.ridge__node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--ash-2);
}
.ridge__node::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(194, 168, 116, 0.5);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.ridge__node span {
  position: relative;
  background: var(--ink);
  padding: 0 0.5rem;
  transform: translateY(-20px);
}
.ridge__node.is-lit::before { background: var(--gold-lift); border-color: var(--gold-lift); }
.ridge__node.is-lit { color: var(--gold-lift); }

.phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.6rem);
}
.phase { border-top: 1px solid rgba(194, 168, 116, 0.28); padding-top: 1.1rem; }
.phase__no {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--gold-lift);
  display: block;
  margin-bottom: 0.55rem;
}
.phase h3 { font-size: 1.08rem; color: var(--paper); margin-bottom: 0.5rem; line-height: 1.2; }
.phase p { font-size: 0.94rem; color: var(--ash-2); margin: 0; }

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.6rem, 2.4vw, 2.4rem) clamp(0.9rem, 1.6vw, 1.5rem);
  align-items: start;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.shot { position: relative; margin: 0; }
.shot img { width: 100%; height: auto; object-fit: cover; }
.shot figcaption {
  font-size: 0.85rem;
  color: var(--slate-2);
  padding-top: 0.7rem;
  line-height: 1.5;
}
.shot--a { grid-column: span 7; }
.shot--a img { aspect-ratio: 5 / 4; }
.shot--b { grid-column: span 5; }
.shot--b img { aspect-ratio: 4 / 5; }
.shot--c { grid-column: span 4; }
.shot--c img { aspect-ratio: 1 / 1; }
.shot--d { grid-column: span 8; }
.shot--d img { aspect-ratio: 16 / 9; }
.shot--e { grid-column: span 6; }
.shot--e img { aspect-ratio: 3 / 2; }

/* ---------- letters ---------- */

.letters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.4rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.letter { border-top: 1px solid rgba(194, 168, 116, 0.3); padding-top: 1.5rem; }
.letter blockquote {
  margin: 0 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(1.02rem, 0.4vw + 0.95rem, 1.14rem);
  line-height: 1.62;
  color: var(--paper);
}
.letter__who {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lift);
  font-style: normal;
}
.letter__what { font-size: 0.85rem; color: var(--ash-2); margin-top: 0.35rem; }

/* ---------- founder ---------- */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.founder__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 52% 34%; }
.founder h2 { margin-bottom: 1.3rem; }

/* ---------- care ---------- */

.care {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.6rem);
  margin-top: clamp(2.2rem, 4vw, 3rem);
}
.care__item { border-top: 1px solid rgba(194, 168, 116, 0.3); padding-top: 1.3rem; }
.care__item h3 { font-size: 1.28rem; color: var(--paper); margin-bottom: 0.7rem; }

/* ---------- closing ---------- */

.closing { background: var(--gold); color: var(--ink); }
.closing h2 { color: var(--ink); max-width: 18ch; }
.closing p { color: var(--ink); }
.closing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.closing__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* ---------- footer ---------- */

.foot { background: var(--ink); color: var(--ash-2); padding-block: clamp(3.5rem, 6vw, 5rem) 2.5rem; }
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.wordmark { font-family: var(--display); line-height: 1.1; }
.wordmark b { display: block; font-weight: 400; font-size: 1.55rem; color: var(--paper); }
.wordmark b em { font-style: normal; color: var(--gold-lift); }
.wordmark span {
  display: block;
  font-family: var(--body);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-lift);
  margin-top: 0.5rem;
}
.foot h4 {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.15rem; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a { text-decoration: none; color: var(--ash-2); }
.foot a:hover { color: var(--gold-lift); }
.foot__area { font-size: 0.93rem; max-width: 42ch; }
.foot__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(248, 247, 244, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* ---------- 404 ---------- */

.err {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--ash);
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
}
.err__code {
  font-family: var(--display);
  font-size: clamp(5rem, 17vw, 12rem);
  line-height: 0.9;
  color: rgba(157, 130, 84, 0.34);
  margin-bottom: 1rem;
}
.err h1 { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--paper); margin-bottom: 1.2rem; }
.err p { max-width: 52ch; margin-bottom: 2rem; }

/* ---------- motion ---------- */

html.js .reveal { opacity: 0; transform: translateY(22px); }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__tel { display: none; }
  .burger { display: flex; }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .hero {
    height: auto;
    min-height: 88svh;
    padding-top: calc(var(--nav-h) + 4.5rem);
  }
  .hero__inner { padding-bottom: clamp(2.5rem, 6vh, 4rem); }
  .hero__scrim {
    background: linear-gradient(to top,
      rgba(5, 5, 4, 0.95) 0%,
      rgba(5, 5, 4, 0.9) 46%,
      rgba(5, 5, 4, 0.55) 66%,
      rgba(5, 5, 4, 0.12) 82%,
      rgba(5, 5, 4, 0) 100%);
  }
  .statement__grid,
  .founder,
  .closing__grid,
  .care,
  .letters { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc--flip .svc__media { order: 0; }
  .founder__media img { aspect-ratio: 3 / 2; }
  .foot__top { grid-template-columns: minmax(0, 1fr); }
  .shot--a, .shot--b, .shot--c, .shot--d, .shot--e { grid-column: span 12; }
  .shot--b img { aspect-ratio: 4 / 3; }
  .shot--c img { aspect-ratio: 3 / 2; }
}

@media (max-width: 700px) {
  .nav__cta { display: none; }
  .ridge { display: none; }
  .phases { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .phase { padding-block: 1.2rem; }
  .phase:last-child { border-bottom: 1px solid rgba(194, 168, 116, 0.28); }
  .svc__list li { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; justify-content: center; }
  .hero__ctas .btn { width: auto; }
}

@media (max-width: 460px) {
  .hero__eyebrow { font-size: 0.62rem; letter-spacing: 0.17em; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}
