/* ==========================================================================
   Zibuse Group — base, layout, components
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 600;   /* Manrope Semibold */
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: var(--white);
  padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.stack > * + * { margin-top: var(--gap, 1rem); }
.prose { max-width: var(--max-text); }
.prose p { color: var(--body); }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.split {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .split--wide-left { grid-template-columns: 1.15fr 1fr; } }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
  display: block;
}
.eyebrow--light { color: var(--gold-soft); }
.eyebrow--silver { color: var(--silver-300); }

.rule {
  width: 56px; height: 2px; background: var(--gold);
  border: 0; margin: 0 0 26px;
}
.rule--center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform .18s var(--ease);
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-600); border-color: var(--navy-600); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy-900); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn--on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--on-dark:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--sm { padding: 11px 20px; font-size: 0.84rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Text link with arrow */
.link-arrow {
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.02em; text-decoration: none; color: var(--navy);
  display: inline-flex; align-items: center; gap: 8px;
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--light { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,252,253,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.site-header--over {
  position: absolute; inset-inline: 0; top: 0;
  background: transparent; backdrop-filter: none; border-bottom-color: transparent;
  isolation: isolate;
}
/* A hero photograph cannot be relied on to be dark where the logo sits — mist,
   sky and dawn light all drift pale. This veil gives the white mark and the
   nav a consistent ground to sit on without darkening the picture below it. */
.site-header--over::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 190px;
  z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(4,23,48,.62) 0%,
    rgba(4,23,48,.38) 42%,
    rgba(4,23,48,.14) 72%,
    rgba(4,23,48,0) 100%);
}
.site-header--over .brand__mark--rev { filter: drop-shadow(0 2px 12px rgba(4,23,48,.75)); }
.site-header--over .brand__name,
.site-header--over .brand__desc { text-shadow: 0 1px 12px rgba(4,23,48,.7); }
.site-header--over .nav a { text-shadow: 0 1px 10px rgba(4,23,48,.6); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: auto; height: 46px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.16em; color: var(--navy); text-transform: uppercase;
}
.brand__desc {
  font-family: var(--font-display); font-weight: 500; font-size: 0.56rem;
  letter-spacing: 0.30em; color: var(--gold-deep); text-transform: uppercase;
  margin-top: 5px;
}
.site-header--over .brand__name { color: var(--white); }
.site-header--over .brand__desc { color: var(--gold-soft); }

/* The mark is navy artwork, so it disappears against a dark hero. Over the
   hero we show the reversed (white) mark instead; everywhere else, the navy
   one. Both are in the markup so the swap needs no JavaScript and cannot
   flash the wrong mark on load. */
.brand__mark--rev { display: none; }
.site-header--over .brand__mark--navy { display: none; }
.site-header--over .brand__mark--rev { display: block; }
.site-header--over.site-header--solid .brand__mark--navy { display: block; }
.site-header--over.site-header--solid .brand__mark--rev { display: none; }

.nav { display: none; }
@media (min-width: 1040px) {
  .nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); }
}
.nav a {
  font-family: var(--font-display); font-size: 0.86rem; font-weight: 500;
  letter-spacing: 0.02em; color: var(--body); text-decoration: none;
  padding: 6px 0; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--gold); transition: right var(--dur) var(--ease);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.site-header--over .nav a { color: rgba(255,255,255,.86); }
.site-header--over .nav a:hover, .site-header--over .nav a[aria-current="page"] { color: var(--white); }

.nav-cta { display: none; }
@media (min-width: 1040px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
@media (min-width: 1040px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; height: 1.5px; background: var(--navy); transition: all .3s var(--ease); }
.site-header--over .nav-toggle { border-color: rgba(255,255,255,.4); }
.site-header--over .nav-toggle span { background: var(--white); }
.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: 0; z-index: 99;
  background: var(--navy-900);
  padding: 96px var(--gutter) 40px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-100%);
  transition: transform .45s var(--ease);
}
.mobile-nav[data-open="true"] { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
  color: var(--white); text-decoration: none;
  padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.10);
}
.mobile-nav a[aria-current="page"] { color: var(--gold-soft); }
.mobile-nav .btn { margin-top: 26px; }
body[data-nav-open="true"] { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; align-items: center; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--navy-900); }
/* The hero photograph is composed with the eagle in the right third, facing
   left into the headline, so no mirroring or aggressive cropping is needed. */
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 52%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  /* Only as dark as the headline actually needs. The right two thirds stays
     close to clear so the river, mist and dawn sky remain visible. */
  background:
    linear-gradient(90deg,
      rgba(8,23,38,.86) 0%,
      rgba(8,23,38,.72) 26%,
      rgba(8,23,38,.40) 46%,
      rgba(8,23,38,.12) 66%,
      rgba(8,23,38,.02) 100%),
    linear-gradient(180deg,
      rgba(8,23,38,.42) 0%,
      rgba(8,23,38,0) 26%,
      rgba(8,23,38,0) 68%,
      rgba(8,23,38,.34) 100%);
}
.hero__inner { padding-block: clamp(150px, 22vh, 230px) clamp(72px, 12vh, 130px); }
.hero__content { max-width: 30ch; }
.hero h1 { color: var(--white); font-weight: 600; text-shadow: 0 2px 24px rgba(8,23,38,.55); }
.hero__sub {
  color: rgba(255,255,255,.90);
  text-shadow: 0 1px 16px rgba(8,23,38,.55); font-size: var(--step-1);
  max-width: 46ch; margin-top: 26px; line-height: 1.5;
}
.hero__tagline {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 22px;
}
.hero .btn-row { margin-top: 38px; }

@media (min-width: 700px) { .hero__media img { object-position: 52% 54%; } }
@media (max-width: 699px) {
  .hero__media img { object-position: 66% 40%; }
  .hero__scrim { background: linear-gradient(180deg, rgba(8,23,38,.30) 0%, rgba(8,23,38,.55) 42%, rgba(8,23,38,.86) 100%); }
}

/* ---------- Dark section ---------- */
.dark { background: var(--navy-900); color: rgba(255,255,255,.80); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--white); }
.dark a { color: var(--silver-200); }
.dark .rule { background: var(--gold); }

.navy { background: var(--navy); color: rgba(255,255,255,.82); }
.navy h1, .navy h2, .navy h3, .navy h4 { color: var(--white); }

.tint { background: var(--paper-2); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card--link { text-decoration: none; }
.card--link:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--silver-300); }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--body); font-size: 0.96rem; margin: 0; }

/* Service panel with image */
.panel {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.panel:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.panel__img { aspect-ratio: 16/10; overflow: hidden; background: var(--navy-800); }
.panel__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.panel:hover .panel__img img { transform: scale(1.045); }
.panel__body { padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.panel__name {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1);
  color: var(--navy); letter-spacing: -0.01em;
}
.panel__cat {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep);
}
.panel__body p { color: var(--body); font-size: 0.95rem; flex: 1; }

/* ---------- Moment (full-bleed image + card) ---------- */
.moment {
  position: relative; display: grid; align-items: center;
  min-height: min(88vh, 780px);
  isolation: isolate;
  overflow: hidden;   /* the image can never spill or fall short */
}
.moment__img { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--navy-900); }
.moment__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.moment__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,23,38,.90) 0%, rgba(8,23,38,.72) 42%, rgba(8,23,38,.18) 78%, rgba(8,23,38,.05) 100%);
}
.moment--right .moment__scrim {
  background: linear-gradient(270deg, rgba(8,23,38,.90) 0%, rgba(8,23,38,.72) 42%, rgba(8,23,38,.18) 78%, rgba(8,23,38,.05) 100%);
}
@media (max-width: 780px) {
  .moment__scrim, .moment--right .moment__scrim {
    background: linear-gradient(180deg, rgba(8,23,38,.62) 0%, rgba(8,23,38,.78) 55%, rgba(8,23,38,.92) 100%);
  }
  .moment { min-height: 72vh; }
}
.moment__card { max-width: 44ch; padding-block: clamp(60px, 9vw, 110px); }
.moment--right .moment__card { margin-left: auto; }
.moment__card h2 { color: var(--white); }
.moment__card p { color: rgba(255,255,255,.82); margin-top: 20px; font-size: var(--step-1); line-height: 1.55; }
.moment__note {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18);
  font-size: 0.9rem; color: rgba(255,255,255,.66);
}

/* ---------- Editorial statement ---------- */
.statement { text-align: center; }
.statement__quote {
  font-family: var(--font-editorial); font-size: var(--step-3);
  line-height: 1.32; color: var(--navy); font-weight: 400;
  max-width: 24ch; margin-inline: auto; letter-spacing: -0.01em;
}
.dark .statement__quote { color: var(--white); }

/* ---------- Pathways ---------- */
.pathway {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--white);
}
.pathway--dark { background: var(--navy); border-color: var(--navy-600); }
.pathway--dark h3 { color: var(--white); }
.pathway--dark p { color: rgba(255,255,255,.78); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 2px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid var(--line-2);
}
.step:last-child { border-bottom: 0; }
.step__n {
  counter-increment: step;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--gold-deep); padding-top: 4px;
}
.step__n::before { content: "0" counter(step); }
.step h4 { margin-bottom: 5px; }
.step p { font-size: 0.95rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.66); padding-block: clamp(56px, 7vw, 88px) 34px; }
.site-footer h4 {
  color: var(--white); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px;
}
.site-footer a { color: rgba(255,255,255,.70); text-decoration: none; font-size: 0.94rem; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; gap: clamp(32px, 4vw, 56px); grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between;
  font-size: 0.82rem; color: rgba(255,255,255,.48);
}
.footer-tagline {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
}

/* ---------- Reveal on scroll ---------- */
/* Content is visible by default. The hidden state is only applied once an
   inline script has confirmed JavaScript is running, so a no-JS visitor
   never sees a blank page. */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 48ch; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; } .mt-4 { margin-top: 52px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
