/* ============ TOKENS ============ */
:root {
  --ink: #1a1714;
  --ink-soft: #4a443d;
  --beige: #f3eee7;
  --beige-deep: #e7ded2;
  --sand: #cbb9a3;
  --line: #d8cfc2;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1240px;
  --pad: clamp(1.25rem, 5vw, 5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 500;
  margin-bottom: 1.1rem;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.1rem;
  border: 1px solid currentColor;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-cta, .btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-cta:hover, .btn-dark:hover { background: transparent; color: var(--ink); }
.btn-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--ink); }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled {
  background: var(--white);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.4rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.logo svg { display: block; fill: currentColor; }
.logo-mark { width: 48px; height: 48px; flex: none; }
.logo-text { display: flex; flex-direction: column; gap: 0.32rem; }
.logo-word { height: 22px; width: 142px; }
.logo-caps { font-family: var(--sans); font-size: 0.56rem; letter-spacing: 0.34em; padding-left: 0.15em; line-height: 1; }
@media (max-width: 480px) {
  .logo-mark { width: 40px; height: 40px; }
  .logo-word { height: 19px; width: 123px; }
}

/* color invert while over hero */
.site-header:not(.scrolled) .logo,
.site-header:not(.scrolled) .nav-link { color: var(--white); }

.main-nav ul { list-style: none; display: flex; gap: 2.4rem; }
.main-nav li { position: relative; }
.nav-link {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink); font-weight: 400; padding: 0.5rem 0;
}
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); min-width: 210px; padding: 0.6rem 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  opacity: 0; visibility: hidden; transition: all 0.25s ease;
}
.has-menu:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; padding: 0.6rem 1.6rem; color: var(--ink-soft);
  text-decoration: none; font-size: 0.82rem; letter-spacing: 0.04em; transition: all 0.2s;
}
.dropdown a:hover { background: var(--beige); color: var(--ink); }
.nav-cta { padding: 0.8rem 1.6rem; font-size: 0.68rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 26px; height: 2px; background: var(--ink); transition: 0.3s; }
.site-header:not(.scrolled) .hamburger span { background: var(--white); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; color: var(--white);
  padding: 8rem var(--pad) 5rem;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(135deg, #2b2521 0%, #4a3f34 45%, #6f5f4c 100%);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 35%, transparent 0%, rgba(0,0,0,0.45) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero .eyebrow { color: var(--sand); }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 500; margin-bottom: 1.6rem; }
.hero-sub { font-size: 1.05rem; max-width: 520px; margin: 0 auto 2.4rem; color: rgba(255,255,255,0.85); }
.hero-tagline {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  color: rgba(255,255,255,0.8); width: 90%; max-width: 640px; z-index: 1;
}

/* ============ SECTION HEADS ============ */
.section-head { text-align: center; max-width: 820px; margin: 0 auto 3.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.section-head.light .eyebrow { color: var(--sand); }
.section-lead { margin-top: 1.2rem; color: var(--ink-soft); }

/* ============ PILLARS ============ */
.pillars { padding: clamp(5rem, 10vw, 9rem) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.pillar { border-top: 1px solid var(--line); padding-top: 1.8rem; }
.pillar-num { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--sand); }
.pillar h3 { font-size: 1.7rem; margin: 0.8rem 0 1rem; }
.pillar p { color: var(--ink-soft); }

/* ============ GALLERY ============ */
.gallery { background: var(--ink); color: var(--white); padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.gallery .section-head h2 { color: var(--white); }
.gallery-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem;
}
.case { text-decoration: none; color: var(--white); display: block; }
.case-img {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 1rem;
  background: linear-gradient(160deg, #5a4f42, #837158);
}
.case-img .split { position: absolute; inset: 0; display: flex; }
.case-img .split span {
  flex: 1; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 0.8rem; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.case-img .split span:first-child { background: rgba(0,0,0,0.18); }
.case-link { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); }
.case-title { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0.3rem; }

/* ============ PROCESS ============ */
.process { padding: clamp(5rem, 10vw, 9rem) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-bottom: 3.5rem; }
.step { text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--sand);
  font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin-bottom: 1.4rem;
}
.step h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.step p { color: var(--ink-soft); max-width: 300px; margin: 0 auto; }
.process-cta { text-align: center; }

/* ============ BUZZ ============ */
.buzz { background: var(--beige); padding: clamp(4rem, 8vw, 6rem) var(--pad); text-align: center; }
.buzz h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 2.8rem; }
.buzz-logos {
  max-width: 980px; margin: 0 auto; display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center; gap: 2.4rem 3rem;
}
.buzz-logos span {
  font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.06em;
  color: var(--ink-soft); opacity: 0.7; transition: opacity 0.3s;
}
.buzz-logos span:hover { opacity: 1; }

/* ============ CONSULT BAND ============ */
.consult { position: relative; color: var(--white); text-align: center; padding: clamp(5rem, 10vw, 8rem) var(--pad); }
.consult::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, #3a322a, #6f5f4c);
}
.consult h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.consult p { margin-bottom: 2.2rem; color: rgba(255,255,255,0.85); }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); padding: clamp(4rem, 8vw, 6rem) var(--pad) 2.5rem; }
.footer-top { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 3fr; gap: 3rem; }
.logo-footer { color: var(--white); align-self: start; }
.locations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.location h4 { font-size: 1.2rem; color: var(--white); margin-bottom: 0.7rem; }
.location p { font-size: 0.85rem; margin-bottom: 0.5rem; }
.location a { color: var(--sand); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.04em; }
.location a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--maxw); margin: 3.5rem auto 0; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.social { display: flex; gap: 1.6rem; }
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.08em; }
.footer-bottom a:hover { color: var(--white); }
.legal { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; font-size: 0.72rem; }
.legal span { color: rgba(255,255,255,0.4); }

/* ============ SUB-PAGE: PAGE HERO ============ */
.page-hero {
  position: relative; color: var(--white); text-align: center;
  padding: clamp(9rem, 18vw, 13rem) var(--pad) clamp(4rem, 8vw, 6rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, #2b2521 0%, #4a3f34 50%, #6f5f4c 100%);
}
.page-hero .eyebrow { color: var(--sand); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.page-hero p { max-width: 600px; margin: 1.2rem auto 0; color: rgba(255,255,255,0.85); }

/* ============ SUB-PAGE: PROSE / CONTENT ============ */
.page-section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) var(--pad); }
.page-section.tight { max-width: 780px; }
.prose p { margin-bottom: 1.3rem; color: var(--ink-soft); font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 2.5rem 0 1.2rem; }
.prose h3 { font-size: 1.4rem; margin: 1.8rem 0 0.8rem; }
.prose ul { margin: 0 0 1.4rem 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.5rem; }

.split-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--pad);
}
.split-feature .media {
  aspect-ratio: 4 / 5; background: linear-gradient(160deg, #5a4f42, #9a8467);
}
.split-feature.flip .media { order: -1; }

/* ============ SUB-PAGE: TEAM ============ */
.team-grid, .partner-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(4rem, 8vw, 7rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.member .portrait {
  aspect-ratio: 3 / 4; margin-bottom: 1.1rem;
  background: linear-gradient(160deg, #6a5c4b, #a8927550);
}
.member h3 { font-size: 1.4rem; }
.member .role { color: var(--sand); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0.3rem 0 0.7rem; }
.member p { color: var(--ink-soft); font-size: 0.95rem; }

/* ============ SUB-PAGE: TESTIMONIALS ============ */
.testimonial-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(4rem, 8vw, 7rem);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.quote { background: var(--beige); padding: 2.4rem; }
.quote blockquote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; font-style: italic; margin-bottom: 1.4rem; }
.quote .author { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.quote .stars { color: var(--sand); margin-bottom: 1rem; letter-spacing: 0.2em; }

/* ============ SUB-PAGE: BLOG ============ */
.blog-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(4rem, 8vw, 7rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.post .thumb { aspect-ratio: 16 / 10; margin-bottom: 1.1rem; background: linear-gradient(160deg, #5a4f42, #877152); }
.post .meta { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); margin-bottom: 0.6rem; }
.post h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.post p { color: var(--ink-soft); font-size: 0.95rem; }
.post a.read { display: inline-block; margin-top: 0.8rem; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sand); padding-bottom: 2px; }

/* ============ SUB-PAGE: LOCATIONS ============ */
.loc-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(4rem, 8vw, 7rem);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.loc-card { border: 1px solid var(--line); padding: 2.4rem; }
.loc-card .map { aspect-ratio: 16 / 7; margin-bottom: 1.6rem; background: linear-gradient(160deg, #d8cfc2, #b7a78f); }
.loc-card h3 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.loc-card p { color: var(--ink-soft); margin-bottom: 0.5rem; }
.loc-card a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sand); }

/* ============ SUB-PAGE: PARTNERS ============ */
.partner { text-align: center; }
.partner .mark {
  aspect-ratio: 3 / 2; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center;
  background: var(--beige); font-family: var(--serif); font-size: 1.3rem; color: var(--ink-soft);
}

/* ============ FLUENCY: EASING, HOVER, PAGE & SCROLL MOTION ============ */
:root { --ease: cubic-bezier(.22,.61,.36,1); --ease-soft: cubic-bezier(.4,0,.2,1); }

/* header chrome eases its colour as well as its background */
.logo, .logo-script, .logo-caps,
.hamburger span { transition: color .35s var(--ease-soft), background .35s var(--ease-soft); }

/* animated underline under each top-level nav item */
.nav-link { position: relative; transition: color .35s var(--ease-soft); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: center;
  transition: transform .35s var(--ease);
}
.has-menu:hover .nav-link::after,
.has-menu.active .nav-link::after { transform: scaleX(1); }

/* dropdown: invisible hover bridge + smoother reveal + staggered items */
.dropdown {
  transform: translateX(-50%) translateY(10px);
  transition: opacity .28s var(--ease-soft), transform .3s var(--ease), visibility .28s;
}
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-menu:hover .dropdown { transform: translateX(-50%) translateY(0); }
.dropdown a { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s, color .2s, padding-left .25s var(--ease); }
.has-menu:hover .dropdown a { opacity: 1; transform: none; }
.has-menu:hover .dropdown a:nth-child(1) { transition-delay: .02s; }
.has-menu:hover .dropdown a:nth-child(2) { transition-delay: .06s; }
.has-menu:hover .dropdown a:nth-child(3) { transition-delay: .10s; }
.has-menu:hover .dropdown a:nth-child(4) { transition-delay: .14s; }
.has-menu:hover .dropdown a:nth-child(5) { transition-delay: .18s; }
.dropdown a:hover { padding-left: 1.95rem; }

/* buttons lift on hover */
.btn { transition: background .35s var(--ease-soft), color .35s var(--ease-soft), transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* card hover lifts */
.case, .pillar, .step, .member, .quote, .post, .loc-card, .partner {
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.case:hover { transform: translateY(-6px); }
.member:hover, .post:hover, .partner:hover { transform: translateY(-5px); }
.quote:hover, .loc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(0,0,0,.08); }
.case-link, .post .read, .location a, .loc-card a { transition: color .25s var(--ease-soft), border-color .25s var(--ease-soft); }

/* clearer keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 1px;
}

@media (prefers-reduced-motion: no-preference) {
  /* page enter (no fill, so it never locks opacity for the exit transition) */
  @keyframes pageEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  html.js-ready body { animation: pageEnter .5s var(--ease); }
  body.is-leaving { opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease-soft), transform .3s var(--ease-soft); }

  /* scroll reveal */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */
.mobile-menu {
  display: none; flex-direction: column; gap: 0.4rem; background: var(--white);
  padding: 1rem var(--pad) 1.6rem; box-shadow: 0 18px 30px rgba(0,0,0,0.08);
}
.mobile-menu a { padding: 0.8rem 0; text-decoration: none; color: var(--ink); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; }
.mobile-menu.open { display: flex; }

@media (max-width: 960px) {
  .pillar-grid, .step-grid, .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid, .team-grid, .partner-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .split-feature { grid-template-columns: 1fr; }
  .split-feature.flip .media { order: 0; }
}
@media (max-width: 720px) {
  .main-nav, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .pillar-grid, .step-grid, .gallery-grid, .locations-grid,
  .team-grid, .partner-grid, .blog-grid, .testimonial-grid, .loc-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
