/* Pact CFO: styles shared by every page. Page-specific scenes live in each page's own <style>. */
:root {
  --navy: #0F1D2F;
  --navy-2: #15263B;
  --navy-3: #1C3049;
  --stone: #ECEAE3;
  --paper: #F7F6F2;
  --ink: #10192A;
  --slate: #5B6878;
  --slate-dark: #A8B3C2;
  --brass: #C9A96A;
  --brass-ink: #7A6234;
  --bone: #F1EEE6;
  --alert: #E0A08C;
  --rule-dark: rgba(201, 169, 106, 0.32);
  --rule-light: rgba(16, 25, 42, 0.16);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 1;
  overflow-x: hidden;
}
svg { display: block; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bone); color: var(--navy); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.9rem); line-height: 1.02; letter-spacing: -0.022em; color: var(--bone); font-variation-settings: "opsz" 72; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.06; letter-spacing: -0.015em; font-variation-settings: "opsz" 72; }
h3 { font-size: 1.55rem; line-height: 1.2; font-variation-settings: "opsz" 36; }
[data-split] .w { display: inline-block; will-change: transform, opacity; }

.dark { position: relative; background: var(--navy); color: var(--bone); }
.dark h2 { color: var(--bone); }
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.07; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.paper { background: var(--paper); position: relative; }
.light { background: var(--stone); position: relative; }

/* Pointer spotlight on dark sections */
.spot { position: fixed; left: 0; top: 0; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; pointer-events: none; z-index: 2; opacity: 0;
  background: radial-gradient(circle, rgba(201,169,106,0.16) 0%, rgba(201,169,106,0.05) 35%, rgba(201,169,106,0) 70%); mix-blend-mode: screen; }

/* Header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: rgba(15, 29, 47, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule-dark); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.top.hide { transform: translateY(-100%); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { position: relative; text-decoration: none; color: var(--slate-dark); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--bone); }
.nav a[aria-current="page"] { color: var(--bone); }
.nav a[aria-current="page"]:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--brass); }
.nav .nav-cta { color: var(--bone); border: 1px solid var(--rule-dark); padding: 10px 16px; border-radius: 3px; }
.nav .nav-cta:hover { border-color: var(--brass); color: var(--brass); }
.nav-cta .short { display: none; }
.progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--brass); transform-origin: left; transform: scaleX(0); }
.top-end { display: flex; align-items: center; gap: 14px; }

/* Mobile menu */
.menu-btn { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 1px solid var(--rule-dark); border-radius: 3px; background: transparent; color: var(--bone); cursor: pointer; }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .3s cubic-bezier(.2,.7,.2,1), top .3s cubic-bezier(.2,.7,.2,1); }
.menu-btn i:nth-of-type(1) { top: 17px; }
.menu-btn i:nth-of-type(2) { top: 25px; }
.menu-btn[aria-expanded="true"] i:nth-of-type(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-of-type(2) { top: 21px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 29; padding: 110px 0 40px; overflow-y: auto; display: flex; flex-direction: column; }
.menu[hidden] { display: none; }
.menu:not([hidden]) { animation: menu-in .45s cubic-bezier(.2,.7,.2,1) both; }
.menu ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-dark); }
.menu li { border-bottom: 1px solid var(--rule-dark); }
.menu li a { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; text-decoration: none; font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--bone); }
.menu li a span { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--brass); }
.menu li a[aria-current="page"] { color: var(--brass); }
.menu:not([hidden]) li { animation: menu-item .5s cubic-bezier(.2,.7,.2,1) both; }
.menu li:nth-child(2) { animation-delay: .04s; }
.menu li:nth-child(3) { animation-delay: .08s; }
.menu li:nth-child(4) { animation-delay: .12s; }
.menu li:nth-child(5) { animation-delay: .16s; }
.menu li:nth-child(6) { animation-delay: .2s; }
.menu-foot { margin-top: 36px; color: var(--slate-dark); font-size: 1rem; }
.menu-foot a { display: block; color: var(--bone); text-decoration: none; padding: 6px 0; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-item { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 3px; font-weight: 500; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: background-color .15s ease, color .15s ease, border-color .15s ease; will-change: transform; font-family: var(--sans); cursor: pointer; }
.btn-bone { background: var(--bone); color: var(--navy); border-color: var(--bone); }
.btn-bone:hover { background: var(--brass); border-color: var(--brass); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--bone); border-color: rgba(241, 238, 230, 0.45); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn-navy { background: var(--navy); color: var(--bone); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-3); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--rule-light); }
.btn-line:hover { border-color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-weight: 500; text-decoration: none; color: var(--brass-ink); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.dark .text-link { color: var(--brass); }
.text-link::after { content: "\2192"; transition: transform .25s ease; }
.text-link:hover::after { transform: translateX(4px); }

/* Pinned scenes (CSS sticky; GSAP scrubs the timelines) */
.scene { position: relative; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }

/* Subpage hero */
.page-hero { min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero .wrap { padding-top: 150px; padding-bottom: clamp(64px, 9vw, 120px); }
.page-hero h1 { max-width: 15ch; }
.eyebrow { display: block; margin-bottom: 22px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--brass); }
.paper .eyebrow, .light .eyebrow { color: var(--brass-ink); }
.lede { margin-top: 28px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--slate-dark); max-width: 30em; }
.page-hero .actions { margin-top: 36px; }
.hero-ring { position: absolute; right: -14vw; top: 50%; width: min(78vw, 980px); height: auto; margin-top: max(-39vw, -490px); opacity: 0.5; pointer-events: none; z-index: 0; }
.hero-ring circle { fill: none; }

/* Sections */
.section { padding: clamp(80px, 10vw, 150px) 0; }
.side { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.side .sticky { position: sticky; top: 110px; }
.side .sticky p { margin-top: 18px; color: var(--slate); font-size: 1.1rem; max-width: 26em; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-light); }
.index li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 3vw, 48px); padding: 30px 0; border-bottom: 1px solid var(--rule-light); transition: padding-left .35s cubic-bezier(.2,.7,.2,1); }
.index li:hover { padding-left: 14px; }
.index h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); font-variation-settings: "opsz" 48; }
.index p { color: var(--slate); max-width: 30em; }

.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.head p { font-size: 1.15rem; color: var(--slate); max-width: 32em; line-height: 1.55; }
.dark .head p { color: var(--slate-dark); }
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.who > div { border-top: 1px solid var(--ink); padding-top: 22px; }
.who h3 { margin-bottom: 12px; }
.who p { color: var(--slate); }

.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); }
.role { margin-top: 10px; color: var(--brass-ink); font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.bio p { font-size: 1.12rem; line-height: 1.6; }
.bio p + p { margin-top: 18px; }
.facts { margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--rule-light); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--rule-light); }
.facts dt { font-size: 0.85rem; color: var(--slate); }
.facts dd { margin: 2px 0 0; font-weight: 500; }

.qa { border-top: 1px solid var(--rule-light); }
.qa details { border-bottom: 1px solid var(--rule-light); }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; align-items: center; gap: 16px; padding: 24px 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; font-variation-settings: "opsz" 36; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; width: 14px; height: 14px; justify-self: end; background:
    linear-gradient(var(--brass-ink), var(--brass-ink)) center/14px 1.5px no-repeat,
    linear-gradient(var(--brass-ink), var(--brass-ink)) center/1.5px 14px no-repeat; transition: transform .3s ease; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa .a { color: var(--slate); max-width: 40em; padding: 0 0 26px; }

/* Ticks list */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--rule-light); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 1.5px solid var(--brass-ink); border-bottom: 1.5px solid var(--brass-ink); transform: rotate(-45deg); }
.dark .ticks li { border-color: var(--rule-dark); }
.dark .ticks li::before { border-color: var(--brass); }

/* Small print */
.note { margin-top: 18px; font-size: 0.85rem; color: var(--slate); }
.dark .note { color: var(--slate-dark); }

/* Closing call to action */
.contact .wrap { padding-top: clamp(100px, 14vw, 200px); padding-bottom: clamp(100px, 14vw, 200px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.contact h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 11ch; }
.contact p { color: var(--slate-dark); font-size: 1.15rem; max-width: 28em; }
.contact .actions { margin-top: 32px; }
.contact .small { margin-top: 22px; font-size: 0.95rem; }

/* Footer */
footer.dark { border-top: 1px solid var(--rule-dark); padding: 56px 0 44px; }
.foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 32px; color: var(--slate-dark); font-size: 0.92rem; line-height: 1.6; }
.foot .brand { font-size: 1.35rem; }
.foot-tag { margin-top: 14px; max-width: 24em; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li + li { margin-top: 6px; }
.foot a { text-decoration: none; color: var(--slate-dark); }
.foot a:hover { color: var(--bone); }
.foot h2 { font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule-dark); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; color: var(--slate-dark); font-size: 0.85rem; line-height: 1.6; }
.legal p + p { margin-top: 4px; }

/* Scroll reveals (site.js adds .in; the class "js" is set by a line in each page's head) */
.reveal { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .side, .head, .about-grid, .contact-grid, .legal { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .side .sticky { position: static; }
  .index li { grid-template-columns: 1fr; gap: 8px; }
  .who { grid-template-columns: 1fr; }
  .nav { gap: 22px; }
}
@media (max-width: 900px) {
  .nav a:not(.nav-cta) { display: none; }
  .menu-btn { display: inline-block; }
}
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .page-hero .wrap { padding-top: 120px; }
  .page-hero .actions .btn { flex: 1 1 calc(50% - 6px); min-height: 48px; padding: 0 14px; }
  .hero-ring { width: 120vw; right: -60vw; margin-top: -60vw; opacity: 0.35; }
  .menu li a { font-size: 1.7rem; padding: 16px 0; }
}
@media (max-width: 520px) {
  .page-hero .actions .btn { flex-basis: 100%; }
  .nav-cta .long { display: none; }
  .nav-cta .short { display: inline; }
  .top-row { gap: 12px; }
  .top-end { gap: 10px; }
  .brand { font-size: 1.35rem; gap: 10px; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .contact .btn { width: 100%; }
  .nav .nav-cta { padding: 9px 12px; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pin { position: static; height: auto; padding: 120px 0 80px; }
  .index li { transition: none; }
  .menu:not([hidden]), .menu:not([hidden]) li { animation: none; }
  .hero-ring { display: none; }
}
