/* ============================================================
   Rinniti Advisory — shared stylesheet
   Palette: white / near-black ink / deep navy accent / bronze hairline
   Fonts:  Cormorant Garamond (display serif) + Inter (sans)
   ============================================================ */

:root {
  /* Colour system */
  --c-bg:        #ffffff;
  --c-bg-alt:    #f6f7f9;
  --c-ink:       #16202b;
  --c-ink-soft:  #4b5665;
  --c-ink-faint: #8b94a1;
  --c-accent:    #1a3a5c;   /* deep professional navy */
  --c-accent-2:  #2c5580;
  --c-accent-dk: #122a44;
  --c-accent-lt: #e8eef5;
  --c-bronze:    #b08d57;   /* metallic accent — rules, numerals, large text */
  --c-bronze-lt: #c9a468;   /* lighter bronze for navy/dark grounds */
  --c-bronze-dk: #8f6f42;   /* deepest bronze — small accents on white */
  --c-line:      #e2e6ec;
  --c-white:     #ffffff;

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

  /* Spacing scale */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6.5rem;

  --radius: 4px;

  /* Layered shadow system */
  --shadow-sm: 0 1px 2px rgba(22, 32, 43, 0.05), 0 2px 8px rgba(22, 32, 43, 0.05);
  --shadow-md: 0 2px 6px rgba(22, 32, 43, 0.06), 0 14px 34px rgba(22, 32, 43, 0.10);
  --shadow-lg: 0 4px 10px rgba(18, 42, 68, 0.08), 0 26px 60px rgba(18, 42, 68, 0.15);

  --header-h: 76px;
  --container: 1180px;

  /* Background textures (inline SVG data-URIs, ~3–7% opacity) */
  --tex-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1' cy='1' r='1' fill='%231a3a5c' fill-opacity='0.07'/%3E%3C/svg%3E");
  --tex-grid-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M72 0H0V72' fill='none' stroke='%231a3a5c' stroke-opacity='0.045'/%3E%3C/svg%3E");
  --tex-grid-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 0H0V64' fill='none' stroke='%23ffffff' stroke-opacity='0.05'/%3E%3C/svg%3E");
  --tex-arcs-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07'%3E%3Ccircle cx='280' cy='280' r='268'/%3E%3Ccircle cx='280' cy='280' r='214'/%3E%3Ccircle cx='280' cy='280' r='160' stroke-dasharray='2 7'/%3E%3Ccircle cx='280' cy='280' r='106'/%3E%3Ccircle cx='280' cy='280' r='52'/%3E%3C/g%3E%3C/svg%3E");
  --tex-arcs-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560'%3E%3Cg fill='none' stroke='%231a3a5c' stroke-opacity='0.09'%3E%3Ccircle cx='280' cy='280' r='268'/%3E%3Ccircle cx='280' cy='280' r='214'/%3E%3Ccircle cx='280' cy='280' r='160' stroke-dasharray='2 7'/%3E%3Ccircle cx='280' cy='280' r='106'/%3E%3Ccircle cx='280' cy='280' r='52'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0 0 var(--s-2); font-weight: 600; line-height: 1.15; }
p { margin: 0 0 var(--s-2); }
ul { margin: 0; padding: 0; }

a { color: var(--c-accent); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--c-accent-dk); }

::selection { background: var(--c-accent); color: var(--c-white); }

/* Smooth, consistent keyboard focus */
:focus-visible {
  outline: 2px solid var(--c-accent-2);
  outline-offset: 3px;
  border-radius: 2px;
  transition: outline-offset 0.15s ease;
}
.cta-band :focus-visible,
.contact-card :focus-visible,
.site-footer :focus-visible,
.hero--dark :focus-visible,
.section--dark :focus-visible,
.expertise-section--dark :focus-visible,
.site-header--overhero:not(.is-solid) :focus-visible { outline-color: rgba(255, 255, 255, 0.85); }

/* Anchored sections clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 1.25rem); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

.display {
  font-family: var(--f-serif);
  font-weight: 600;
  letter-spacing: 0.005em;
}

/* Kicker / eyebrow — letterspaced caps with a short bronze rule */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 var(--s-2);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 2.6rem;
  height: 3px;
  background: linear-gradient(90deg, var(--c-bronze), rgba(176, 141, 87, 0.25));
}

.section {
  padding: var(--s-6) 0;
}

.section--alt {
  position: relative;
  background:
    var(--tex-dots),
    linear-gradient(180deg, #f7f8fa 0%, #f4f6f9 100%);
}

/* Gradient hairline dividers framing alternate sections */
.section--alt::before,
.section--alt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-line) 18%, var(--c-line) 82%, transparent);
  pointer-events: none;
}
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }

/* Stronger navy-tinted band with an arc watermark */
.section--tint {
  position: relative;
  overflow: hidden;
  background:
    var(--tex-grid-light),
    linear-gradient(160deg, #edf2f8 0%, #e5ecf4 55%, #e9eff6 100%);
  border-top: 1px solid #d8e0ea;
  border-bottom: 1px solid #d8e0ea;
}

.section--tint::after {
  content: "";
  position: absolute;
  right: -170px;
  top: 50%;
  transform: translateY(-50%);
  width: 540px;
  height: 540px;
  background: var(--tex-arcs-navy) no-repeat center / contain;
  pointer-events: none;
}

.section--tint .container { position: relative; z-index: 1; }

/* Deep navy band used mid-page to break monotone rhythm */
.section--dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 620px at 85% 0%, rgba(44, 85, 128, 0.35), rgba(44, 85, 128, 0) 60%),
    radial-gradient(720px 500px at 4% 100%, rgba(201, 164, 104, 0.10), rgba(201, 164, 104, 0) 60%),
    linear-gradient(150deg, #0d1f33 0%, #122a44 55%, #16324f 100%);
  color: var(--c-white);
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tex-grid-dark);
  pointer-events: none;
}

.section--dark::after {
  content: "";
  position: absolute;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  background: var(--tex-arcs-dark) no-repeat center / contain;
  pointer-events: none;
}

.section--dark .container { position: relative; z-index: 1; }

.section--dark .eyebrow { color: var(--c-bronze-lt); }
.section--dark .eyebrow::before {
  background: linear-gradient(90deg, var(--c-bronze-lt), rgba(201, 164, 104, 0.25));
}
.section--dark .section-head h2 { color: var(--c-white); }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.75); }

.section-head {
  max-width: 720px;
  margin-bottom: var(--s-5);
}

.section-head h2 {
  font-family: var(--f-serif);
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
}

.section-head p {
  color: var(--c-ink-soft);
  font-size: 1.06rem;
  max-width: 62ch;
}

.rule {
  border: none;
  border-top: 1px solid var(--c-line);
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 2.1rem;
  border: 1px solid var(--c-accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
}

/* Subtle arrow that shifts on hover */
.btn::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.7rem;
  font-weight: 400;
  transition: transform 0.25s ease;
}
.btn:hover::after,
.btn:focus-visible::after { transform: translateX(4px); }

.btn--solid {
  background: linear-gradient(150deg, var(--c-accent) 0%, var(--c-accent-dk) 100%);
  color: var(--c-white);
  box-shadow: var(--shadow-sm);
}
.btn--solid:hover {
  background: var(--c-accent-dk);
  border-color: var(--c-accent-dk);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--c-accent);
}
.btn--ghost:hover {
  background: var(--c-accent-lt);
  transform: translateY(-2px);
}

.btn--light {
  background: var(--c-white);
  border-color: var(--c-white);
  color: var(--c-accent);
  box-shadow: 0 10px 26px rgba(9, 20, 34, 0.28);
}
.btn--light:hover {
  background: transparent;
  color: var(--c-white);
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--c-white);
}
.btn--ghost-light:hover {
  border-color: var(--c-white);
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
  transform: translateY(-2px);
}

/* Solid bronze — the primary action on dark grounds */
.btn--bronze {
  background: linear-gradient(150deg, var(--c-bronze-lt) 0%, var(--c-bronze) 100%);
  border-color: var(--c-bronze-lt);
  color: #0d1f33;
  box-shadow: 0 10px 26px rgba(6, 14, 24, 0.38);
}
.btn--bronze:hover {
  background: var(--c-bronze-lt);
  border-color: var(--c-bronze-lt);
  color: #0d1f33;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(6, 14, 24, 0.5);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--c-ink);
}
.brand:hover { color: var(--c-ink); }

.brand-name {
  font-family: var(--f-serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.30em;
  color: var(--c-accent);
}

.brand-sub {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.62em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin-top: 0.35rem;
}

.site-nav {
  display: flex;
  gap: var(--s-4);
  align-items: center;
}

.site-nav a {
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  padding: 0.4rem 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--c-accent) 55%, var(--c-bronze));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.site-nav a:hover { color: var(--c-accent); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-nav a.active {
  color: var(--c-accent);
  font-weight: 600;
}
.site-nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Transparent header over the dark homepage hero.
       Starts glass-dark with white marks; JS adds .is-solid once
       the viewport scrolls past the hero. --- */

.site-header--overhero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header--overhero .brand-name { color: var(--c-white); transition: color 0.3s ease; }
.site-header--overhero .brand-sub { color: rgba(255, 255, 255, 0.62); transition: color 0.3s ease; }
.site-header--overhero .site-nav a { color: rgba(255, 255, 255, 0.78); transition: color 0.3s ease; }
.site-header--overhero .site-nav a:hover,
.site-header--overhero .site-nav a.active { color: var(--c-white); }
.site-header--overhero .site-nav a::after {
  background: linear-gradient(90deg, var(--c-bronze-lt) 55%, rgba(201, 164, 104, 0.35));
}
.site-header--overhero .nav-toggle span {
  background: var(--c-white);
  transition: background 0.3s ease, transform 0.25s ease, opacity 0.25s ease;
}

/* Keep the transparent state clean even after 8px of scroll */
.site-header--overhero.is-scrolled:not(.is-solid) {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.site-header--overhero.is-solid {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--c-line);
  box-shadow: var(--shadow-sm);
}
.site-header--overhero.is-solid .brand-name { color: var(--c-accent); }
.site-header--overhero.is-solid .brand-sub { color: var(--c-ink-soft); }
.site-header--overhero.is-solid .site-nav a { color: var(--c-ink-soft); }
.site-header--overhero.is-solid .site-nav a:hover,
.site-header--overhero.is-solid .site-nav a.active { color: var(--c-accent); }
.site-header--overhero.is-solid .site-nav a::after {
  background: linear-gradient(90deg, var(--c-accent) 55%, var(--c-bronze));
}
.site-header--overhero.is-solid .nav-toggle span { background: var(--c-ink); }

/* ---------- Brand mark (inline SVG lockups) ---------- */

/* Three inline-SVG lockups replace the old raster logo:
   - .brand-mark--compact : header (emblem left of the two-line wordmark)
   - .hero-mark           : homepage hero centrepiece (stacked)
   - .footer-mark         : footer (stacked)
   The gold emblem carries its own gradient + sheen; the wordmark text uses
   the page web fonts and is recoloured per background via CSS so it stays
   legible on both the dark hero and the white page headers. */

/* Header brand link wraps the emblem image */
.brand--logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 10px;
  transition: transform 0.25s ease;
}
.brand--logo:hover { transform: translateY(-1px); }

/* Header: the exact gold emblem (monogram) on transparency — takes the page
   colour behind it, no plate/patch. Subtle shadow for edge definition. */
.brand-logo {
  display: block;
  width: auto;
  height: 50px;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 1px 2px rgba(18, 34, 56, 0.30));
}
.site-header--overhero:not(.is-solid) .brand-logo {
  filter: drop-shadow(0 3px 9px rgba(0, 0, 0, 0.40));
}

/* Keyboard focus on the brand link */
.brand--logo:focus-visible {
  outline: 2px solid var(--c-accent-2);
  outline-offset: 3px;
}
.site-header--overhero:not(.is-solid) .brand--logo:focus-visible {
  outline-color: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .brand--logo:hover { transform: none; }
}

/* --- Hero centrepiece: stacked gold mark on navy --- */

/* Hero lockup: raster emblem (crisp bold monogram) + CRISP VECTOR wordmark */
.hero-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 var(--s-3);
  animation: hero-logo-in 1s ease both;
}
.hero-emblem {
  display: block;
  width: clamp(96px, 11vw, 132px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.38));
}
.lockup-word {
  display: block;
  height: auto;
}
.hero-lockup .lockup-word { width: clamp(210px, 24vw, 290px); }

@keyframes hero-logo-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

/* --- Footer stacked mark on dark --- */

/* Footer lockup: emblem + crisp vector wordmark on dark */
.footer-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--s-2);
}
.footer-emblem {
  display: block;
  width: 92px;
  height: auto;
}
.footer-lockup .lockup-word { width: 205px; }
.brand--footer { display: inline-block; line-height: 0; }
.brand--footer:focus-visible {
  outline: 2px solid var(--c-bronze-lt);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(26, 58, 92, 0.04) 0%, rgba(255, 255, 255, 0) 55%),
    var(--c-bg);
}

/* Soft radial glow behind the geometric field */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 640px at 80% 22%, rgba(26, 58, 92, 0.10), rgba(26, 58, 92, 0) 62%),
    radial-gradient(700px 480px at 8% 92%, rgba(160, 131, 72, 0.05), rgba(160, 131, 72, 0) 65%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Very slow drift on the diagonal line group */
@keyframes hero-drift {
  from { transform: translate3d(-26px, 26px, 0); }
  to   { transform: translate3d(26px, -26px, 0); }
}

.hero-lines-drift {
  animation: hero-drift 30s ease-in-out infinite alternate;
  will-change: transform;
}

/* Imperceptibly slow rotation, visible only on the dashed arc */
@keyframes hero-arcs-turn {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-arcs {
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-arcs-turn 160s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-lines-drift,
  .hero-arcs { animation: none; }
}

.hero-inner {
  position: relative;
  padding: var(--s-6) var(--s-3) calc(var(--s-6) + 2rem);
  max-width: 860px;
}

.hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(2.9rem, 6.4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin-bottom: var(--s-3);
  max-width: 15ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--c-accent);
}

.hero-lede {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--c-ink-soft);
  max-width: 58ch;
  margin-bottom: var(--s-4);
}

.hero-ctas {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

/* Scroll-down indicator */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: var(--c-ink-faint);
}

.hero-scroll:hover { color: var(--c-accent); }

.hero-scroll-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero-scroll-line {
  position: relative;
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, var(--c-accent) 0%, rgba(26, 58, 92, 0.08) 100%);
  overflow: hidden;
}

@keyframes hero-scroll-dot {
  0%   { transform: translateY(-6px); opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(52px); opacity: 0; }
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: -1.5px;
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-bronze);
  animation: hero-scroll-dot 2.6s cubic-bezier(0.45, 0, 0.35, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line::after { animation: none; top: 50%; opacity: 0.8; }
}

/* --- Dark hero (homepage) — deep layered navy with bronze glow --- */

.hero--dark {
  min-height: min(100vh, 1000px);
  color: var(--c-white);
  background:
    radial-gradient(1150px 700px at 80% 18%, rgba(44, 85, 128, 0.42), rgba(44, 85, 128, 0) 62%),
    linear-gradient(152deg, #0d1f33 0%, #122a44 52%, #1a3a5c 100%);
}

.hero--dark .hero-glow {
  background:
    radial-gradient(900px 560px at 82% 24%, rgba(58, 100, 145, 0.30), rgba(58, 100, 145, 0) 60%),
    radial-gradient(780px 540px at 10% 90%, rgba(201, 164, 104, 0.13), rgba(201, 164, 104, 0) 62%),
    radial-gradient(520px 380px at 96% 78%, rgba(201, 164, 104, 0.09), rgba(201, 164, 104, 0) 65%);
}

/* The fixed transparent header no longer occupies flow — clear it here */
.hero--dark .hero-inner {
  padding-top: calc(var(--header-h) + var(--s-6));
}

.hero--dark .eyebrow { color: var(--c-bronze-lt); }
.hero--dark .eyebrow::before {
  background: linear-gradient(90deg, var(--c-bronze-lt), rgba(201, 164, 104, 0.25));
}

.hero--dark h1 { color: #f8f6f2; }
.hero--dark h1 em { color: var(--c-bronze-lt); }

.hero--dark .hero-lede { color: rgba(255, 255, 255, 0.76); }

.hero--dark .hero-scroll { color: rgba(255, 255, 255, 0.55); }
.hero--dark .hero-scroll:hover { color: var(--c-white); }
.hero--dark .hero-scroll-line {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.06) 100%);
}
.hero--dark .hero-scroll-line::after { background: var(--c-bronze-lt); }

.hero--dark ::selection { background: var(--c-bronze-lt); color: #0d1f33; }

/* Sub-page hero (shorter) */

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    var(--tex-grid-light),
    radial-gradient(820px 420px at 88% 10%, rgba(26, 58, 92, 0.07), rgba(26, 58, 92, 0) 65%),
    linear-gradient(115deg, rgba(26, 58, 92, 0.05) 0%, rgba(255, 255, 255, 0) 60%),
    var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  padding: var(--s-5) 0 var(--s-5);
}

/* Faint concentric-arc watermark on the right edge */
.page-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: 50%;
  transform: translateY(-50%);
  width: 540px;
  height: 540px;
  background: var(--tex-arcs-navy) no-repeat center / contain;
  pointer-events: none;
}

.page-hero .container { position: relative; }

.page-hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.008em;
  margin-bottom: var(--s-2);
}

.page-hero p {
  color: var(--c-ink-soft);
  font-size: 1.1rem;
  max-width: 62ch;
  margin-bottom: 0;
}

/* ---------- Stats band ---------- */

/* White band — large navy serif numerals over bronze rules,
   deliberately light so it reads crisply after the dark hero */
.stats-band {
  position: relative;
  overflow: hidden;
  background:
    var(--tex-dots),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  padding: var(--s-5) 0;
}

.stats-band::after {
  content: "";
  position: absolute;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  background: var(--tex-arcs-navy) no-repeat center / contain;
  pointer-events: none;
}

.stats-band .container { position: relative; z-index: 1; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  text-align: center;
}

.stat-num {
  font-family: var(--f-serif);
  font-size: clamp(2.9rem, 4.8vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.75rem;
  font-variant-numeric: lining-nums;
  color: var(--c-accent);
}

/* Short solid bronze rule beneath each numeral */
.stat-num::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin: 0.95rem auto 0;
  background: var(--c-bronze);
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
}

/* ---------- Card grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-3);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

/* Navy top edge that warms to bronze on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
  transition: background 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(176, 141, 87, 0.45);
}

.card:hover::before,
.card:focus-visible::before {
  background: linear-gradient(90deg, var(--c-bronze) 0%, var(--c-bronze-lt) 100%);
}

/* Ghost serif numeral in the card's top corner */
.card-num {
  position: absolute;
  top: 0.9rem;
  right: 1.15rem;
  font-family: var(--f-serif);
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(176, 141, 87, 0.30);
  pointer-events: none;
  transition: color 0.3s ease;
}

.card:hover .card-num { color: rgba(176, 141, 87, 0.55); }

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: var(--s-3);
  color: var(--c-accent);
  transition: transform 0.3s ease;
}

.card:hover .card-icon { transform: translateY(-2px); }

.card h3 {
  font-family: var(--f-serif);
  font-size: 1.4rem;
  margin-bottom: var(--s-1);
}

.card p {
  color: var(--c-ink-soft);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: var(--s-2);
}

.card-link::after {
  content: "\2192";
  margin-left: 0.5rem;
  transition: margin-left 0.25s ease;
}

.card:hover .card-link::after { margin-left: 0.9rem; }

.card:hover .card-link { color: var(--c-bronze-dk); }

/* Gentle stagger across grid columns */
.card-grid > .reveal:nth-child(4n + 2) { transition-delay: 0.08s; }
.card-grid > .reveal:nth-child(4n + 3) { transition-delay: 0.16s; }
.card-grid > .reveal:nth-child(4n + 4) { transition-delay: 0.24s; }

/* Why Rinniti pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.pillar {
  position: relative;
  padding-top: var(--s-3);
}

.pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-bronze) 0%, var(--c-bronze) 34%, rgba(26, 58, 92, 0.18) 34%);
}

.pillar h3 {
  font-family: var(--f-serif);
  font-size: 1.5rem;
}

.pillar p { color: var(--c-ink-soft); font-size: 0.97rem; max-width: 44ch; }

.pillar-num {
  font-family: var(--f-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-bronze);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--s-2);
}

.pillars > .reveal:nth-child(2) { transition-delay: 0.08s; }
.pillars > .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 12%, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(ellipse at 8% 100%, rgba(200, 170, 110, 0.07) 0%, rgba(200, 170, 110, 0) 50%),
    linear-gradient(120deg, #0e2238 0%, var(--c-accent-dk) 40%, var(--c-accent) 100%);
  color: var(--c-white);
  padding: var(--s-6) 0;
  text-align: center;
  /* Bronze seam so the band reads as a distinct layer after dark sections */
  border-top: 1px solid rgba(201, 164, 104, 0.4);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tex-grid-dark);
  pointer-events: none;
}

/* Oversized geometric watermark behind the message */
.cta-band::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  background: var(--tex-arcs-dark) no-repeat center / contain;
  opacity: 0.8;
  pointer-events: none;
}

.cta-band .container { position: relative; z-index: 1; }

.cta-band h2 {
  font-family: var(--f-serif);
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  line-height: 1.1;
  max-width: 780px;
  margin: 0 auto var(--s-2);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 auto var(--s-4);
}

.cta-band .hero-ctas { justify-content: center; }

/* ---------- About page ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: start;
}

.split h2 {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.1;
}

/* Oversized serif pull-quote with hanging quotation mark */
.split .lead {
  position: relative;
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 2.3vw, 1.8rem);
  line-height: 1.42;
  color: var(--c-ink);
  padding-top: 2.6rem;
  margin-bottom: var(--s-3);
}

.split .lead::before {
  content: "\201C";
  position: absolute;
  top: -0.6rem;
  left: -0.35rem;
  font-family: var(--f-serif);
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(160, 131, 72, 0.35);
  pointer-events: none;
}

.split p { color: var(--c-ink-soft); max-width: 62ch; }
.split .lead { color: var(--c-ink); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}

.value-block {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
  padding: var(--s-3);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.value-block h3 { font-family: var(--f-serif); font-size: 1.35rem; }
.value-block p { color: var(--c-ink-soft); font-size: 0.95rem; margin: 0; }

.values-grid > .reveal:nth-child(2n) { transition-delay: 0.08s; }

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}

.step {
  counter-increment: step;
  padding: var(--s-3);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.step::before {
  content: "0" counter(step);
  font-family: var(--f-serif);
  font-size: 2.4rem;
  color: transparent;
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: var(--s-2);
  -webkit-text-stroke: 1px var(--c-accent);
}

/* Ghost of the numeral echoed large behind each step */
.step::after {
  content: "0" counter(step);
  position: absolute;
  right: -0.4rem;
  bottom: -1.6rem;
  font-family: var(--f-serif);
  font-size: 6.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(26, 58, 92, 0.045);
  pointer-events: none;
}

.step h3 { font-size: 1.05rem; }
.step p { color: var(--c-ink-soft); font-size: 0.9rem; margin: 0; position: relative; }

.steps > .reveal:nth-child(4n + 2) { transition-delay: 0.08s; }
.steps > .reveal:nth-child(4n + 3) { transition-delay: 0.16s; }
.steps > .reveal:nth-child(4n + 4) { transition-delay: 0.24s; }

/* Steps on the dark navy band (about page) */
.section--dark .step {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.section--dark .step:hover,
.section--dark .step.reveal.is-visible:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 164, 104, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.section--dark .step::before {
  color: var(--c-bronze-lt);
  -webkit-text-stroke: 0;
}

.section--dark .step::after { color: rgba(255, 255, 255, 0.05); }
.section--dark .step h3 { color: var(--c-white); }
.section--dark .step p { color: rgba(255, 255, 255, 0.72); }

/* ---------- Expertise page ---------- */

.expertise-section {
  position: relative;
  overflow: hidden;
  padding: var(--s-6) 0;
}

/* Large ghost serif numeral (01–04) in bronze behind each practice */
.expertise-section::before {
  content: attr(data-num);
  position: absolute;
  top: 0.4rem;
  right: 1.6rem;
  font-family: var(--f-serif);
  font-size: clamp(8rem, 15vw, 14rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(176, 141, 87, 0.13);
  pointer-events: none;
}

.expertise-section .container { position: relative; }

.expertise-section:nth-child(even) {
  position: relative;
  background:
    var(--tex-dots),
    linear-gradient(180deg, #f7f8fa 0%, #f4f6f9 100%);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.expertise-inner {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: var(--s-5);
  align-items: start;
}

.expertise-section:nth-child(even) .expertise-inner {
  grid-template-columns: 4fr 5fr;
}

.expertise-section:nth-child(even) .expertise-copy { order: 2; }
.expertise-section:nth-child(even) .expertise-side { order: 1; }

.expertise-copy h2 {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.1;
}

.expertise-copy p { color: var(--c-ink-soft); max-width: 62ch; }

.expertise-side {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-accent);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-3);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.expertise-section:nth-child(odd) .expertise-side { background: var(--c-bg-alt); }
.expertise-section:nth-child(even) .expertise-side { background: var(--c-white); }

.expertise-side h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-2);
}

.mandate-list {
  list-style: none;
}

.mandate-list li {
  padding: 0.7rem 0 0.7rem 1.6rem;
  border-bottom: 1px solid var(--c-line);
  font-size: 0.94rem;
  color: var(--c-ink-soft);
  position: relative;
}

.mandate-list li:last-child { border-bottom: none; }

.mandate-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.28rem;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--c-accent);
  transform: rotate(45deg);
  transition: background 0.25s ease;
}

.mandate-list li:hover::before { background: var(--c-accent-lt); }

/* Full dark-navy practice band — inverts the panel styling so the
   expertise page alternates light / dark / light / tinted */
.expertise-section.expertise-section--dark {
  background:
    radial-gradient(1000px 600px at 88% 8%, rgba(44, 85, 128, 0.35), rgba(44, 85, 128, 0) 60%),
    radial-gradient(700px 480px at 6% 96%, rgba(201, 164, 104, 0.10), rgba(201, 164, 104, 0) 60%),
    linear-gradient(150deg, #0d1f33 0%, #122a44 55%, #1a3a5c 100%);
  border-top: none;
  border-bottom: none;
  color: var(--c-white);
}

.expertise-section.expertise-section--dark::before { color: rgba(201, 164, 104, 0.16); }

.expertise-section.expertise-section--dark .eyebrow { color: var(--c-bronze-lt); }
.expertise-section.expertise-section--dark .eyebrow::before {
  background: linear-gradient(90deg, var(--c-bronze-lt), rgba(201, 164, 104, 0.25));
}
.expertise-section.expertise-section--dark .expertise-copy h2 { color: var(--c-white); }
.expertise-section.expertise-section--dark .expertise-copy p { color: rgba(255, 255, 255, 0.76); }

.expertise-section.expertise-section--dark .expertise-side {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--c-bronze-lt);
  box-shadow: none;
}
.expertise-section.expertise-section--dark .expertise-side h3 { color: var(--c-bronze-lt); }
.expertise-section.expertise-section--dark .mandate-list li {
  color: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.expertise-section.expertise-section--dark .mandate-list li::before { border-color: var(--c-bronze-lt); }
.expertise-section.expertise-section--dark .mandate-list li:hover::before { background: rgba(201, 164, 104, 0.25); }

/* ---------- Credentials page ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s-3);
  padding: var(--s-3);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  margin-bottom: var(--s-4);
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
}

.filter-field select {
  font-family: var(--f-sans);
  font-size: 0.92rem;
  color: var(--c-ink);
  padding: 0.6rem 2.2rem 0.6rem 0.8rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231a3a5c' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 0.8rem center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-width: 180px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-field select:hover { border-color: #c9d2dd; }

.filter-field select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.12);
}

.filter-field--year select { min-width: 110px; }

.filter-reset {
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: none;
  border: none;
  border-bottom: 1px solid var(--c-accent);
  padding: 0.2rem 0;
  margin-bottom: 0.65rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.filter-reset:hover { opacity: 0.65; }

.filter-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--c-ink-faint);
  margin-bottom: 0.65rem;
}

.tombstone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.tombstone {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tombstone:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: #d5dce6;
}

/* Thin accent underline revealed on hover */
.tombstone::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent) 55%, var(--c-bronze));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.tombstone:hover::after { transform: scaleX(1); }

.tombstone.is-hidden { display: none; }

/* Staggered fade-in across the three columns */
.tombstone-grid > .reveal:nth-child(3n + 2) { transition-delay: 0.09s; }
.tombstone-grid > .reveal:nth-child(3n)     { transition-delay: 0.18s; }

.tombstone-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  color: var(--c-white);
}

/* Faint hairline-grid pattern over every band */
.tombstone-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tex-grid-dark);
  pointer-events: none;
}

/* Bronze hairline separating band from body */
.tombstone-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 170, 110, 0.55), rgba(200, 170, 110, 0.08));
}

.band-debt       { background: linear-gradient(125deg, #0d2136 0%, #122a44 55%, #1a3a5c 100%); }
.band-fi         { background: linear-gradient(125deg, #122a44 0%, #1a3a5c 55%, #2c5580 100%); }
.band-cfo        { background: linear-gradient(125deg, #1c3a59 0%, #24466b 55%, #3a6491 100%); }
.band-compliance { background: linear-gradient(125deg, #091a2b 0%, #0d2136 55%, #1f4468 100%); }

.tombstone-cat {
  position: relative;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

/* Monogram mark framed in a fine ring */
.tombstone-mark {
  position: relative;
  flex-shrink: 0;
  box-sizing: content-box;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0.95;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.tombstone:hover .tombstone-mark {
  border-color: rgba(200, 170, 110, 0.6);
  background: rgba(255, 255, 255, 0.09);
}

.tombstone-body {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tombstone-body h3 {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: var(--s-2);
}

/* Deal-role line set in serif italic, like a printed tombstone */
.tombstone-role {
  font-family: var(--f-serif);
  font-size: 1.06rem;
  font-style: italic;
  color: var(--c-ink-soft);
  flex-grow: 1;
}

.tombstone-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  border-top: 1px solid var(--c-line);
  padding-top: var(--s-2);
  margin-top: var(--s-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
}

.tombstone-meta .year { color: var(--c-bronze-dk); }

.empty-state {
  display: none;
  text-align: center;
  padding: var(--s-6) var(--s-3);
  border: 1px dashed var(--c-line);
  border-radius: var(--radius);
  color: var(--c-ink-faint);
}

.empty-state.is-visible { display: block; }

.empty-state h3 {
  font-family: var(--f-serif);
  font-size: 1.6rem;
  color: var(--c-ink-soft);
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--s-5);
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  transition: color 0.2s ease;
}

/* Label warms to navy while its field is focused */
.form-field:focus-within label { color: var(--c-accent); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--f-sans);
  font-size: 0.98rem;
  color: var(--c-ink);
  padding: 0.85rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fbfcfe;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: #c9d2dd; }

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background: #fbfcfe url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231a3a5c' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 1rem center;
  cursor: pointer;
}

.form-field textarea { resize: vertical; min-height: 140px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: var(--c-white);
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.12);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--c-ink-faint); }

.form-success {
  display: none;
  grid-column: 1 / -1;
  position: relative;
  background:
    linear-gradient(135deg, #eef3f9 0%, var(--c-accent-lt) 100%);
  border: 1px solid rgba(26, 58, 92, 0.35);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-3) var(--s-3) 3.4rem;
  color: var(--c-accent-dk);
  box-shadow: var(--shadow-sm);
}

.form-success::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1.55rem;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--c-accent);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.5l2.5 2.5 4.5-5.5' fill='none' stroke='%231a3a5c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.form-success.is-visible { display: block; }
.form-success h3 { font-family: var(--f-serif); font-size: 1.5rem; margin-bottom: 0.4rem; }
.form-success p { margin: 0; font-size: 0.95rem; }

.contact-card {
  position: sticky;
  top: calc(var(--header-h) + var(--s-3));
  overflow: hidden;
  background:
    radial-gradient(560px 380px at 100% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 60%),
    linear-gradient(150deg, var(--c-accent-dk) 0%, var(--c-accent) 62%, #22496f 100%);
  color: var(--c-white);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-3);
  box-shadow: var(--shadow-lg);
}

.contact-card::before {
  content: "";
  position: absolute;
  right: -190px;
  bottom: -190px;
  width: 480px;
  height: 480px;
  background: var(--tex-arcs-dark) no-repeat center / contain;
  pointer-events: none;
}

.contact-card > * { position: relative; }

.contact-card h3 {
  font-family: var(--f-serif);
  font-size: 1.8rem;
}

.contact-card p { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }

.contact-card ul {
  list-style: none;
  margin: var(--s-3) 0;
}

.contact-card li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-card li:last-child { border-bottom: none; }

.contact-card li svg { flex-shrink: 0; margin-top: 0.2rem; }

.contact-card a { color: var(--c-white); border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.contact-card a:hover { color: var(--c-white); border-bottom-color: var(--c-white); }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0d1620 0%, #101a26 26%);
  color: rgba(255, 255, 255, 0.72);
  padding: var(--s-5) 0 var(--s-3);
  font-size: 0.9rem;
}

/* Gradient hairline along the top edge */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 131, 72, 0.55) 50%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-name {
  color: var(--c-white);
  font-size: 2rem;
}
.footer-brand .brand-sub { color: rgba(255, 255, 255, 0.55); }

.footer-tagline {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--s-2);
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: var(--s-2);
  padding-bottom: 0.7rem;
  position: relative;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1.6rem;
  height: 1px;
  background: rgba(200, 170, 110, 0.5);
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
  color: var(--c-white);
  padding-left: 0.35rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-social svg { flex-shrink: 0; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
  padding-top: var(--s-3);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease,
              box-shadow 0.3s ease, border-color 0.3s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hover lifts must win over the settled reveal state,
   and must never inherit a stagger delay on the way in. */
.card.reveal.is-visible:hover        { transform: translateY(-6px); }
.tombstone.reveal.is-visible:hover   { transform: translateY(-8px); }
.value-block.reveal.is-visible:hover { transform: translateY(-4px); }
.step.reveal.is-visible:hover        { transform: translateY(-4px); }

.card:hover,
.tombstone:hover,
.value-block:hover,
.step:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* no-js fallback */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .tombstone-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .expertise-inner,
  .expertise-section:nth-child(even) .expertise-inner {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  .expertise-section:nth-child(even) .expertise-copy { order: 1; }
  .expertise-section:nth-child(even) .expertise-side { order: 2; }
  .split { grid-template-columns: 1fr; gap: var(--s-4); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }

  .page-hero::after { opacity: 0.55; right: -260px; }

  /* Re-flow stagger for the two-column layouts */
  .tombstone-grid > .reveal:nth-child(3n + 2),
  .tombstone-grid > .reveal:nth-child(3n) { transition-delay: 0s; }
  .tombstone-grid > .reveal:nth-child(2n) { transition-delay: 0.09s; }
  .card-grid > .reveal:nth-child(4n + 2),
  .card-grid > .reveal:nth-child(4n + 3),
  .card-grid > .reveal:nth-child(4n + 4) { transition-delay: 0s; }
  .card-grid > .reveal:nth-child(2n) { transition-delay: 0.08s; }
}

@media (max-width: 720px) {
  .section { padding: var(--s-5) 0; }

  .nav-toggle { display: block; }

  /* Keep the header lockup + hamburger comfortable on small phones */
  .brand-logo { height: 42px; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    padding: var(--s-2) var(--s-3) var(--s-3);
    display: none;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--c-line);
  }

  .site-nav a:last-child { border-bottom: none; }
  .site-nav a::after { display: none; }

  .hero { min-height: 78vh; }
  .hero-scroll { display: none; }
  .hero-inner {
    padding-bottom: var(--s-5);
    padding-left: 0;
    padding-right: 0;
  }

  .hero--dark { min-height: 94vh; }
  .hero--dark .hero-inner { padding-top: calc(var(--header-h) + var(--s-4)); }

  /* Mobile menu over the transparent dark-hero header: dark panel */
  .site-header--overhero:not(.is-solid) .site-nav {
    background: #0d1f33;
    border-bottom-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  }
  .site-header--overhero:not(.is-solid) .site-nav a {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .page-hero::after { display: none; }
  .stats-band::after { opacity: 0.5; }
  .section--dark::after { opacity: 0.5; }
  .section--tint::after { opacity: 0.5; }
  .cta-band::after { width: 480px; height: 480px; }

  .expertise-section::before { font-size: 6.5rem; right: 1rem; }

  .card-grid,
  .card-grid--3,
  .tombstone-grid,
  .pillars,
  .values-grid,
  .steps { grid-template-columns: 1fr; }

  /* Single column — no stagger needed */
  .card-grid > .reveal,
  .tombstone-grid > .reveal,
  .values-grid > .reveal,
  .steps > .reveal,
  .pillars > .reveal { transition-delay: 0s; }

  .contact-form { grid-template-columns: 1fr; }

  .filter-bar { align-items: stretch; }
  .filter-field, .filter-field select { width: 100%; min-width: 0; }
  .filter-count { margin-left: 0; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
