/* ==========================================================================
   ZERO2ONE PARTNERS — Components
   Header · navigation · hero · footer · shared blocks
   ========================================================================== */

/* --------------------------------- Header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Pages that open with a navy hero let the header sit transparent over it. */
body.has-hero .site-header { background: rgba(16, 29, 50, 0); }
body.has-hero .site-header.is-scrolled {
  background: rgba(16, 29, 50, 0.94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--hairline-navy);
}
.site-header.is-open { background: var(--navy); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height 0.3s var(--ease);
}
.site-header.is-scrolled .header-inner { height: calc(var(--header-h) - 12px); }
/* While the drawer is open the header must keep its full height. Scrolled
   state shrinks the inner bar by 12px, but the drawer's inset is pinned to
   --header-h, so shrinking left a 12px transparent strip showing the page
   behind it. This rule must come *after* .is-scrolled: both selectors carry
   the same specificity, so source order alone decides which wins. */
.site-header.is-open .header-inner { height: var(--header-h); }

/* Wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  z-index: 2;
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  display: grid;
  place-items: center;
  transition: border-color 0.3s var(--ease);
}
.brand:hover .brand-mark { border-color: var(--gold); }
.brand-mark svg { width: 20px; height: 20px; display: block; }
.brand-type { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  text-transform: uppercase;
}
.brand-name span { color: var(--gold); }
.brand-sub {
  font-size: 8.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 5px;
}

/* Desktop nav */
.nav-desktop { display: none; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-link.is-current { color: #fff; }
.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
}
.nav-caret { width: 9px; height: 9px; opacity: 0.6; transition: transform 0.25s var(--ease); }
.nav-item:hover .nav-caret { transform: rotate(180deg); }

/* Dropdown panel */
.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(440px, 88vw);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 26px 70px -18px rgba(9, 17, 30, 0.45);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  border: 1px solid rgba(16, 29, 50, 0.07);
}
.nav-item:hover .nav-panel,
.nav-item:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-panel--right { left: auto; right: 0; transform: translate(0, 8px); }
.nav-item:hover .nav-panel--right,
.nav-item:focus-within .nav-panel--right { transform: translate(0, 0); }

.nav-panel-link {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  transition: background 0.18s var(--ease);
}
.nav-panel-link:hover { background: #F3F1EC; }
.nav-panel-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.nav-panel-desc {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--slate);
  margin-top: 3px;
}
.nav-panel-foot {
  margin: 6px 4px 2px;
  padding: 12px 10px 4px;
  border-top: 1px solid var(--hairline);
}
.nav-panel-foot a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.header-cta { display: none; }

/* Mobile toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  cursor: pointer;
  z-index: 2;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--navy);
  padding: 24px var(--gutter) 48px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  z-index: 99;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--hairline-navy); }
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 2px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}
/* The trailing arrow had no size rule, so it fell back to the SVG default of
   300x150 scaled to the flex row — 261px tall, which made every drawer row
   ~295px instead of ~54px. Pinning it keeps the row to one line. */
.mobile-nav-link svg { width: 17px; height: 17px; flex: none; opacity: 0.65; }
.mobile-sub { padding: 0 0 14px 2px; }
.mobile-sub li { border: 0; }
.mobile-sub a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--on-navy-muted);
}
.mobile-sub a:hover { color: #fff; }
.mobile-nav-foot { margin-top: 28px; display: grid; gap: 12px; }
.mobile-nav-foot .btn { width: 100%; }
.mobile-nav-meta {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-navy);
  font-size: 12.5px;
  color: var(--on-navy-muted);
  display: grid;
  gap: 6px;
}

@media (min-width: 1080px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .mobile-nav { display: none; }
}

/* ---------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--on-navy);
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 64px;
}
.hero::before {
  /* architectural rule grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.35) 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.35) 70%, transparent);
}
.hero::after {
  content: "";
  position: absolute;
  width: 780px;
  height: 780px;
  right: -280px;
  top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(185, 154, 98, 0.16), transparent 62%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 700px; }
.hero h1 {
  color: #fff;
  margin: 0 0 22px;
}
.hero h1 .line { display: block; }
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  letter-spacing: -0.01em;
  max-width: 30em;
  margin: 0 0 18px;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}
.hero-desc {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--on-navy-muted);
  max-width: 40em;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note {
  margin-top: 30px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-note::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  opacity: 0.8;
  flex: none;
}

/* Hero visual — commissioned photograph, navy overlay, schematic caption */
.hero-visual {
  position: relative;
  border: 1px solid var(--hairline-navy);
  border-radius: var(--radius);
  overflow: hidden;
  display: none;
  background: var(--navy-deep);
}
.hero-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  transform: scale(1.02);
}
.hero-media-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 29, 50, 0.55) 0%, rgba(16, 29, 50, 0.12) 38%, rgba(16, 29, 50, 0.86) 100%),
    linear-gradient(90deg, rgba(16, 29, 50, 0.42) 0%, rgba(16, 29, 50, 0) 55%);
  pointer-events: none;
}
.hero-media-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 26px 24px;
}
.hv-tag {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
  text-align: right;
  max-width: 18ch;
  line-height: 1.5;
}
.hv-stages {
  display: grid;
  gap: 5px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.hv-stages b {
  display: block;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 10.5px;
}
.hv-stages span { display: block; }

@media (min-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 78px); padding-bottom: 92px; }
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .hero-visual { display: block; }
}

/* Trust strip under hero */
.hero-strip {
  border-top: 1px solid var(--hairline-navy);
  margin-top: 56px;
  padding-top: 26px;
  display: grid;
  gap: 18px 32px;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 1;
}
.hero-strip-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.55;
  color: var(--on-navy-muted);
}
.hero-strip-item svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--gold); }
.hero-strip-item b { color: #fff; font-weight: 600; }
@media (min-width: 700px) { .hero-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hero-strip { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

/* ------------------------------ Page hero -------------------------------- */
.page-hero {
  background: var(--navy);
  color: var(--on-navy);
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + 54px);
  padding-bottom: 60px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(100deg, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(100deg, #000, transparent 78%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.125rem, 4.4vw, 3.875rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin-bottom: 24px;
}
.page-hero h1.wide { max-width: 26ch; }
.page-hero .lede { max-width: 60ch; color: var(--on-navy-muted); }
.page-hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 26px;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span[aria-current] { color: rgba(255, 255, 255, 0.82); }
.breadcrumb .sep { opacity: 0.45; }

/* Page hero meta rail */
.page-hero-rail {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-navy);
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.page-hero-rail dt {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
  font-weight: 600;
}
.page-hero-rail dd {
  margin: 0;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  line-height: 1.5;
}
@media (min-width: 760px) {
  .page-hero { padding-bottom: 76px; }
  .page-hero-rail { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* --------------------------------- Footer -------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy-muted);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(185, 154, 98, 0) 42%);
}
.footer-top {
  display: grid;
  gap: 44px;
  padding-bottom: 54px;
}
.footer-brand { max-width: 380px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
}
.footer-desc { font-size: 13.5px; line-height: 1.72; margin: 0 0 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline-navy);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease), background 0.22s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); background: rgba(185, 154, 98, 0.08); }
.footer-social svg { width: 16px; height: 16px; }

.footer-cols {
  display: grid;
  gap: 34px 24px;
  grid-template-columns: repeat(2, 1fr);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none;margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.18s var(--ease);
  display: inline-block;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--hairline-navy);
  padding: 22px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a:hover { color: var(--gold); }

@media (min-width: 720px) {
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1.55fr; gap: 72px; padding-bottom: 62px; }
  .site-footer { padding-top: 88px; }
}

/* ---------------------------- CTA band (navy) ---------------------------- */
.cta-band {
  position: relative;
  background: var(--navy-deep);
  color: var(--on-navy);
  overflow: hidden;
}
.cta-band-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  opacity: 0.34;
  filter: saturate(0.72) contrast(1.04);
  pointer-events: none;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(16, 29, 50, 0.95) 0%, rgba(16, 29, 50, 0.82) 44%, rgba(16, 29, 50, 0.42) 100%),
    radial-gradient(900px 460px at 84% 10%, rgba(185, 154, 98, 0.16), transparent 66%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.cta-band .lede { max-width: 52ch; margin-top: 24px; }
.cta-band-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-band-note { margin-top: 22px; font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }
.cta-band-grid { display: grid; gap: 44px; align-items: end; }
@media (min-width: 900px) {
  .cta-band-grid { grid-template-columns: 1fr auto; gap: 64px; }
}
