/* ==========================================================
   B16 Group site styles
   Palette taken directly from the brand mark
   ========================================================== */
:root {
  --navy: #1a1a2e;
  --navy-2: #222239;
  --navy-3: #2c2c47;
  --gold: #c9a64a;
  --gold-deep: #b8962f;
  --white: #ffffff;
  --ivory: #f7f5f0;
  --ink: #1a1a2e;
  --ink-soft: #4a4a5e;
  --mist: #b1b4be;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(26, 26, 46, 0.12);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section: clamp(6rem, 12vw, 10rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--navy); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 1rem; z-index: 100;
  background: var(--gold); color: var(--navy); padding: .6rem 1rem; font-size: .85rem;
}
.skip:focus { left: 1rem; }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- Typographic primitives ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 2rem;
}
.eyebrow--dark { color: var(--ink-soft); }

.label {
  display: flex; align-items: center; gap: .9rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.label .num { font-family: var(--serif); font-size: 1rem; letter-spacing: .05em; color: var(--gold-deep); }
.on-dark .label { color: var(--mist); }
.on-dark .label .num { color: var(--gold); }

.diamond {
  display: inline-block; width: 7px; height: 7px; background: var(--gold);
  transform: rotate(45deg); flex: none;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.8rem, 6.6vw, 5.6rem); line-height: 1.04; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.1; }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
.on-light h2 em { color: var(--gold-deep); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.45;
  font-weight: 400;
  margin: 0;
}
p { margin: 0 0 1.2rem; }
.muted { color: var(--ink-soft); }
.on-dark .muted { color: var(--mist); }

/* Gold rule with centred diamond, echoes the logo */
.rule {
  display: flex; align-items: center; gap: 1rem; width: 100%;
}
.rule::before, .rule::after { content: ""; height: 1px; background: var(--gold); flex: 1; opacity: .85; }
.rule .diamond { width: 9px; height: 9px; }

/* Understated text link */
.link {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--gold);
  transition: gap .4s var(--ease), color .3s;
}
.link:hover { gap: 1.15rem; color: var(--gold); }
.link .arrow { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0; line-height: 1; }
.link--quiet { border-bottom-color: var(--line-dark); color: var(--mist); }
.link--quiet:hover { border-bottom-color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .5s var(--ease), border-color .5s var(--ease), padding .5s var(--ease);
  border-bottom: 1px solid transparent;
  padding: 1.6rem 0;
}
.site-header.scrolled {
  background: rgba(26, 26, 46, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line-dark);
  padding: .95rem 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 1rem; color: var(--white); }
.brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: .2em;
}
.brand-sub {
  font-size: .55rem; letter-spacing: .48em; color: var(--mist); margin-top: .45rem; text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 2.6rem; }
.nav a {
  font-size: .74rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.78); transition: color .3s;
  position: relative;
}
.nav a:hover { color: var(--white); }
.nav a.nav-cta {
  color: var(--white); padding: .7rem 1.3rem; border: 1px solid rgba(201,166,74,.6);
  transition: background .3s, color .3s, border-color .3s;
}
.nav a.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.menu-btn {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--white);
}
.menu-btn span { display: block; width: 24px; height: 1px; background: currentColor; margin: 6px 0; transition: transform .4s var(--ease), opacity .3s; }
.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  padding: 9rem 0 0; overflow: hidden;
}
.hero::before {
  /* very faint architectural grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.hero-mark {
  position: absolute; right: calc(var(--gutter) + 2%); top: 22%;
  width: 11px; height: 11px; background: var(--gold); transform: rotate(45deg);
}
.hero-inner { position: relative; max-width: 980px; }
.hero h1 { margin-bottom: 2.4rem; }
.hero .intro { max-width: 560px; font-size: 1.06rem; color: rgba(255,255,255,.72); margin-bottom: 3rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 2.6rem; align-items: center; }

.hero-foot { position: relative; margin-top: auto; padding: 5rem 0 2.6rem; }
.hero-foot .rule { margin-bottom: 1.6rem; }
.pillars {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .7rem; letter-spacing: .4em; text-transform: uppercase; color: var(--mist);
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.on-dark { background: var(--navy); color: var(--white); }
.ivory { background: var(--ivory); }

.split {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.split > .label { padding-top: 1.2rem; }
.section-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); margin-bottom: clamp(3.5rem, 7vw, 6rem); align-items: end; }
.section-head .label { align-self: start; padding-top: 1.2rem; }

/* Practice */
.principles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin-top: clamp(4rem, 8vw, 6.5rem); border-top: 1px solid var(--line-light);
}
.principle { padding: 2.6rem 2.4rem 0 0; }
.principle + .principle { padding-left: 2.4rem; border-left: 1px solid var(--line-light); }
.principle h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.principle p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Services */
.disciplines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 7vw, 7rem); }
.discipline-head { padding-bottom: 1.8rem; border-bottom: 1px solid var(--ink); margin-bottom: .5rem; }
.discipline-head .eyebrow { margin-bottom: 1rem; color: var(--gold-deep); }
.discipline-head h3 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); }
.service {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem;
  padding: 1.8rem 0; border-bottom: 1px solid var(--line-light);
}
.service .numeral { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-deep); padding-top: .2rem; }
.service h4 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; margin: 0 0 .4rem; }
.service p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.svc { padding: 2.4rem 2rem 2.6rem 0; border-bottom: 1px solid var(--line-light); }
.svc:not(:nth-child(3n+1)) { padding-left: 2rem; border-left: 1px solid var(--line-light); }
.svc .numeral { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--gold-deep); margin-bottom: 1.4rem; }
.svc h4 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin: 0 0 .6rem; }
.svc p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* Approach */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.step { padding: 2.6rem 2rem 0 0; position: relative; }
.step + .step { padding-left: 2rem; border-left: 1px solid var(--line-dark); }
.step .numeral { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--gold); display: block; margin-bottom: 2.2rem; font-weight: 400; }
.step h3 { font-size: 1.6rem; margin-bottom: .9rem; }
.step p { color: var(--mist); font-size: .94rem; margin: 0; }

/* Engagements */
.engagements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.engagement {
  background: var(--white); padding: 3rem 2.4rem 2.6rem; border: 1px solid var(--line-light);
  display: flex; flex-direction: column;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s;
}
.engagement:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(26,26,46,.25); border-color: rgba(201,166,74,.5); }
.engagement .tag { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 2.2rem; display: flex; align-items: center; gap: .7rem; }
.engagement h3 { margin-bottom: 1.2rem; }
.engagement p { color: var(--ink-soft); font-size: .95rem; }
.engagement .meta { margin-top: auto; padding-top: 1.6rem; border-top: 1px solid var(--line-light); font-size: .8rem; letter-spacing: .08em; color: var(--ink); }
.fees-note { margin-top: 3rem; display: flex; gap: 1rem; align-items: baseline; color: var(--ink-soft); font-size: .95rem; max-width: 720px; }

/* Clients */
.clients-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.client { padding: 2.2rem 1.6rem 2.4rem 0; border-bottom: 1px solid var(--line-light); }
.client + .client { padding-left: 1.6rem; border-left: 1px solid var(--line-light); }
.client h3 { font-size: 1.45rem; margin-bottom: .7rem; }
.client p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.reach {
  margin-top: clamp(4rem, 8vw, 6rem);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.markets { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem 0; }
.markets li {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); display: flex; align-items: center;
}
.markets li:not(:last-child)::after {
  content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); margin: 0 1.4rem;
}
.markets li.home { color: var(--ink); }
.markets li:not(.home) { color: var(--ink-soft); }
.sectors { margin-top: 1.8rem; color: var(--ink-soft); font-size: .95rem; max-width: 620px; }

/* Statement band */
.statement { padding: clamp(5rem, 10vw, 8rem) 0; text-align: center; }
.statement blockquote {
  margin: 0 auto; max-width: 900px;
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.3;
}
.statement .rule { max-width: 220px; margin: 0 auto 3rem; }
.statement .rule.bottom { margin: 3rem auto 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 8vw, 8rem); }
.contact-detail { margin-top: 3rem; display: grid; gap: 2rem; }
.contact-detail dt { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mist); margin-bottom: .5rem; }
.contact-detail dd { margin: 0; font-family: var(--serif); font-size: 1.45rem; }
.contact-detail a { border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.contact-detail a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 2rem; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mist); margin-bottom: .7rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.02rem; color: var(--white);
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.25);
  padding: .55rem 0 .8rem; border-radius: 0; outline: none;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; cursor: pointer;
}
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.3); }
.hp { position: absolute; left: -9999px; }

.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: .6rem; }
.form-foot small { color: var(--mist); font-size: .8rem; max-width: 340px; line-height: 1.6; }
.form-foot small a { border-bottom: 1px solid rgba(255,255,255,.3); }
.btn {
  font: inherit; font-size: .76rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  background: var(--gold); color: var(--navy); border: 1px solid var(--gold);
  padding: 1.15rem 2.2rem; cursor: pointer; display: inline-flex; align-items: center; gap: .9rem;
  transition: background .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn[disabled] { opacity: .6; cursor: wait; }
.form-status { grid-column: 1 / -1; font-family: var(--serif); font-size: 1.25rem; color: var(--gold); min-height: 1.5rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); border-top: 1px solid var(--line-dark); color: var(--mist); padding: 5rem 0 2.6rem; font-size: .85rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line-dark); }
.footer-logo { width: 300px; max-width: 100%; height: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-cols h4 { font-size: .66rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--white); margin: 0 0 1.3rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer-cols a { transition: color .3s; }
.footer-cols a:hover { color: var(--gold); }
.footer-legal { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 2rem; font-size: .76rem; color: rgba(177,180,190,.75); }
.footer-legal a:hover { color: var(--gold); }

/* ---------- Legal / simple pages ---------- */
.page-hero { background: var(--navy); color: var(--white); padding: 12rem 0 5rem; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.prose { max-width: 760px; padding: 5rem 0 7rem; }
.prose h2 { font-size: 1.8rem; margin: 3rem 0 1rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--ink); border-bottom: 1px solid var(--gold); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { margin-top: 3rem; }
  .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client:nth-child(3) { padding-left: 0; border-left: 0; }
  .engagements { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .svc:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line-light); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .svc:nth-child(even) { padding-left: 0; border-left: 0; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0; background: var(--navy);
    flex-direction: column; justify-content: center; gap: 2.2rem;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav a { font-size: .9rem; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-btn { display: block; position: relative; z-index: 60; }
  .brand { position: relative; z-index: 60; }

  .split, .section-head, .reach, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .section-head .label { padding-top: 0; }
  .principles, .disciplines { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 2.2rem 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line-light); }
  .pillars { font-size: .6rem; letter-spacing: .28em; }
  .hero-mark { display: none; }
}

@media (max-width: 600px) {
  .steps, .clients-grid { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 2.4rem 0 0; border-left: 0; margin-top: 0 !important; }
  .step + .step { border-top: 1px solid var(--line-dark); margin-top: 2.4rem !important; }
  .client, .client + .client { padding-left: 0; border-left: 0; }
  .form { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .brand-sub { letter-spacing: .38em; }
}
