/* =============================================================================
   Rice Logic Consulting · About (founder) page
   Same design system as the homepage and Work pages (v1.5.1): tokens, header, menu, section index,
   buttons, page-transition veil and footer are carried over unchanged; page components follow.
   Mobile first. Motion only with JS and when the visitor allows it; everything reads without either.
   ============================================================================= */

/* ---------- tokens ---------- */
:root {
  --bg: #0A0A09;
  --bg2: #0E0E0C;
  --bg3: #141412;
  --ink: #F1EEE7;          /* 17.1:1 on --bg */
  --ink2: #D8D4CC;         /* 13.4:1 */
  --mute: #A8A398;         /* 7.9:1 */
  --dim: #8C877D;          /* 5.5:1, smallest text it carries is 10 px mono labels */
  --gold: #C9A45D;         /* 8.4:1 */
  --navy: #13263B;         /* supporting tone, used only as light behind the portrait */
  --line: rgba(241, 238, 231, .10);
  --line2: rgba(241, 238, 231, .20);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 5vw, 96px);
  --sec: clamp(88px, 10vw, 168px);
  --sticky-top: 120px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* motion tokens: mirror MOTION in about.js and RL_MOTION on the other pages */
  --m-fast: .18s;
  --m-std: .44s;
  --m-cine: .76s;
  --e-settle: cubic-bezier(.16, 1, .3, 1);
  --e-enter: cubic-bezier(.22, 1, .36, 1);
  --e-exit: cubic-bezier(.64, 0, .78, 0);
  --e-weight: cubic-bezier(.65, 0, .35, 1);
  --d0: 0s;                /* hero entrance offset; set when arriving through the dark page transition */
}
.rl-late { --d0: .3s; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-width: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
::selection { background: var(--gold); color: #0A0A09; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100; padding: 14px 18px; background: var(--ink); color: #0A0A09;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  transform: translateY(-180%); transition: transform .2s var(--e-enter);
}
.skip:focus { transform: none; }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
@media (min-width: 1180px) { .wrap { padding-left: 148px; padding-right: 96px; } }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); line-height: 1.5; }
.g { color: var(--gold); }
em { font-style: italic; }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.cols > * { grid-column: 1 / -1; min-width: 0; }
.dash { display: block; width: 40px; height: 1px; background: var(--gold); }
.nowrap { white-space: nowrap; }

/* ---------- header (from the site) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 76px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; border-bottom: 1px solid transparent;
  transition: background .6s var(--ease), border-color .6s var(--ease), height .6s var(--ease);
}
.nav.is-scrolled { height: 64px; background: rgba(10, 10, 9, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.brand img { height: 46px; width: auto; transition: height .6s var(--ease); }
.nav.is-scrolled .brand img { height: 40px; }
.brand-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; padding-left: 16px; border-left: 1px solid var(--line2); line-height: 1.4; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { position: relative; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); min-height: 44px; display: inline-flex; align-items: center; transition: color .3s, opacity var(--m-fast) var(--e-enter); }
.nav-links a:hover { color: var(--ink); }
.nav-links a sup { font-size: 9px; color: var(--dim); margin-left: 4px; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--m-fast) var(--e-settle); }
.nav-links a[aria-current], .nav-links a.is-ack { color: var(--ink); }
.nav-links a[aria-current]::after, .nav-links a.is-ack::after { transform: scaleX(1); }
.nav-links.is-routing a:not(.is-ack) { opacity: .45; }
.nav-r { display: flex; align-items: center; gap: 12px; }
.nav-cta { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--line2); padding: 0 18px; height: 44px; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); transition: border-color .4s, color .4s; }
.nav-cta:hover { border-color: var(--gold); color: var(--gold); }
.menu-btn { all: unset; box-sizing: border-box; cursor: pointer; display: none; align-items: center; gap: 12px; height: 44px; padding: 0 4px 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.menu-btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.burger { display: flex; flex-direction: column; gap: 6px; width: 22px; }
.burger i { display: block; height: 1px; background: var(--ink); }
.burger i:last-child { width: 14px; align-self: flex-end; background: var(--gold); }
.menu-fallback { display: none; }
@media (max-width: 1240px) { .brand-sub { display: none; } }
@media (max-width: 1100px) { .nav-links { gap: 24px; } }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { height: 64px; }
  .brand img, .nav.is-scrolled .brand img { height: 44px; }
  /* Until about.js has wired the menu (class .rl-menu), "Menu" is a link to the footer's navigation, with the same
     look as the button. So the control works with JavaScript off, blocked, or failed to load. */
  .menu-fallback { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 4px 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
  .rl-menu .menu-fallback { display: none; }
  .rl-menu .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) { .nav-cta { display: none; } }

/* ---------- menu (900 px and under) ---------- */
.menu { display: none; }
@media (max-width: 900px) {
  .menu {
    position: fixed; inset: 0; z-index: 70; background: #0A0A09; display: flex; flex-direction: column; justify-content: space-between;
    gap: 24px; padding-bottom: 28px; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s;
  }
  .menu.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s 0s; }
  .menu-top { height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .menu-top img { height: 44px; width: auto; }
  .menu-top .menu-btn { display: inline-flex; }
  .menu-links { display: flex; flex-direction: column; }
  .menu-links a { display: flex; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(34px, 9.2vw, 58px); line-height: 1.05; letter-spacing: -.015em; transform: translateY(12px); opacity: 0; transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .menu.is-open .menu-links a { opacity: 1; transform: none; }
  .menu.is-open .menu-links a:nth-child(2) { transition-delay: .05s; }
  .menu.is-open .menu-links a:nth-child(3) { transition-delay: .1s; }
  .menu.is-open .menu-links a:nth-child(4) { transition-delay: .15s; }
  .menu.is-open .menu-links a:nth-child(5) { transition-delay: .2s; }
  .menu.is-open .menu-links a:nth-child(6) { transition-delay: .25s; }
  .menu-links a[aria-current] .mono, .menu-links a.is-ack .mono { color: var(--gold); }
  .menu-foot { display: flex; flex-direction: column; gap: 18px; }
  .menu-foot .btn { justify-content: space-between; }
}

/* ---------- section index (wide screens) ---------- */
.rail { position: fixed; left: 32px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 0; }
.rail a { display: flex; align-items: center; gap: 12px; height: 24px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); transition: opacity var(--m-fast) var(--e-enter); }
.rail .tick { width: 10px; height: 1px; background: var(--line2); transition: width .6s var(--ease), background .6s; }
.rail .lab { opacity: 0; transform: translateX(-6px); transition: opacity .5s, transform .5s var(--ease); white-space: nowrap; }
.rail a:hover .lab, .rail a:focus-visible .lab { opacity: .8; transform: none; }
.rail a.is-on .tick { width: 26px; background: var(--gold); }
.rail a.is-on .lab { opacity: 1; transform: none; color: var(--ink2); }
@media (max-width: 1179px) { .rail { display: none; } }

/* ---------- buttons (from the site) ---------- */
.btn { display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 26px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; transition: background .5s var(--ease), color .5s, border-color .5s; cursor: pointer; }
.btn svg { transition: transform .5s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn-solid { background: var(--ink); color: #0A0A09; }
.btn-solid:hover { background: var(--gold); color: #0A0A09; }
.btn-line { border: 1px solid var(--line2); color: var(--ink); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .ctas .btn { flex: 1 1 220px; justify-content: space-between; } }

/* ---------- page-transition veil (from the site) ---------- */
.rl-veil { position: fixed; inset: 0; z-index: 35; background: #0A0A09; opacity: 0; pointer-events: none; }
.rl-veil.is-dark, .rl-arrive .rl-veil { opacity: 1; animation: rlFailsafe .4s linear 1.8s forwards; }
@keyframes rlFailsafe { to { opacity: 0; visibility: hidden; } }
.rl-page { position: relative; }
html.menu-open, html.menu-open body { overflow: hidden; }

/* ---------- sections ---------- */
.sec { position: relative; padding-top: var(--sec); padding-bottom: var(--sec); }
.sec.ruled { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: auto auto 1fr; gap: 20px; align-items: center; margin-bottom: clamp(40px, 5vw, 80px); }
.sec-head .rule { height: 1px; background: var(--line); }
.sec-id { color: var(--ink2); }
@media (max-width: 640px) { .sec-head { grid-template-columns: auto 1fr; } .sec-head .rule { display: none; } }
.h-xl { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 96px); line-height: .98; letter-spacing: -.02em; color: var(--ink); }
.h-xl .ln { display: block; }
.h-xl .ln > * { display: block; text-wrap: balance; }
.prose { display: flex; flex-direction: column; gap: clamp(18px, 1.8vw, 24px); }
.prose p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.75; color: var(--ink2); max-width: 36em; }
.prose p.pull { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.5vw, 40px); line-height: 1.12; letter-spacing: -.01em; color: var(--ink); max-width: 16em; padding: clamp(4px, .6vw, 10px) 0; }
.prose p.closing { display: flex; flex-direction: column; gap: 18px; color: var(--ink); padding-top: 8px; }

/* heading + narrative, side by side from 1000 px; the heading holds its place while the narrative scrolls */
.split { row-gap: clamp(32px, 4vw, 48px); }
@media (min-width: 1000px) {
  .split .split-title { grid-column: 1 / span 5; align-self: start; position: sticky; top: var(--sticky-top); }
  .split .split-body { grid-column: 7 / span 6; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: clamp(96px, 9vw, 132px); padding-bottom: clamp(64px, 8vw, 120px); overflow: hidden; }
/* navy light behind the portrait ties the photograph's cool backdrop to the palette */
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; right: -20vw; top: 0; width: 90vw; height: 100%;
  background: radial-gradient(ellipse 42% 46% at 62% 46%, rgba(19, 38, 59, .62), rgba(19, 38, 59, 0) 72%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "side" "body"; row-gap: clamp(36px, 7vw, 56px); }
.hero-head { grid-area: head; min-width: 0; }
.hero-side { grid-area: side; min-width: 0; }
.hero-body { grid-area: body; min-width: 0; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: none; grid-template-rows: auto 1fr; column-gap: 24px; row-gap: 0; }
  .hero-head { grid-area: auto; grid-column: 1 / span 7; grid-row: 1; }
  .hero-body { grid-area: auto; grid-column: 1 / span 7; grid-row: 2; margin-top: clamp(28px, 3vw, 40px); }
  .hero-side { grid-area: auto; grid-column: 8 / span 5; grid-row: 1 / span 2; align-self: start; justify-self: end; width: 100%; max-width: 540px; margin-top: 6px; }
}

.eyebrow { display: flex; flex-direction: column; gap: 6px; }
.eyebrow-row { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-bottom: 14px; }
.eyebrow-row .rule { height: 1px; background: var(--line); }
.eyebrow-k { color: var(--gold); }
.eyebrow-id { color: var(--ink2); }

.hero-title { margin-top: clamp(24px, 3vw, 40px); font-family: var(--serif); font-weight: 400; color: var(--ink); }
.hero-title .ln { display: block; overflow: hidden; padding: 0 .1em .14em 0; margin: 0 -.1em -.14em 0; }
.hero-title .ln > * { display: block; text-wrap: balance; }
.hero-title .l1 { font-size: clamp(33px, 3.9vw, 60px); line-height: 1.04; letter-spacing: -.02em; }
.hero-title .l1 > * { max-width: 12.5em; }
.hero-title .l2 { margin-top: .1em; font-size: clamp(44px, 5.8vw, 98px); line-height: .96; letter-spacing: -.025em; }
.hero-title em { color: var(--gold); }
/* tablets: the headline keeps its presence while it still sits above the portrait */
@media (min-width: 600px) and (max-width: 899px) {
  .hero-title .l1 { font-size: clamp(33px, 5.6vw, 52px); }
  .hero-title .l2 { font-size: clamp(44px, 7.4vw, 68px); }
}

.hero-rule { position: relative; height: 1px; background: var(--line); margin-bottom: clamp(24px, 2.6vw, 34px); }
.hero-rule i { position: absolute; left: 0; top: 0; width: 64px; height: 1px; background: var(--gold); transform-origin: 0 50%; }
.hero-lede { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.65; color: var(--ink2); max-width: 35em; }
.hero-support { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: clamp(21px, 1.7vw, 27px); line-height: 1.25; letter-spacing: -.005em; color: var(--ink); }
.hero .ctas { margin-top: clamp(26px, 2.6vw, 36px); }
.cred { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.cred-n { flex: none; font-family: var(--serif); font-size: clamp(46px, 4.4vw, 68px); line-height: .9; letter-spacing: -.025em; color: var(--ink); }
.cred-n .g { font-style: italic; }
.cred-l { color: var(--ink2); max-width: 24em; }

/* portrait: the photograph itself is untouched; light and edges come from layers above it */
.portrait { position: relative; margin: 0; }
.portrait-frame { position: relative; aspect-ratio: 820 / 1025; overflow: hidden; background: #2A2B2C; }
.portrait-move { position: absolute; inset: -12px; display: block; }
.portrait-move img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.portrait-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 72% 64% at 50% 34%, rgba(10, 10, 9, 0) 54%, rgba(10, 10, 9, .46) 100%),
    linear-gradient(180deg, rgba(10, 10, 9, 0) 64%, rgba(10, 10, 9, .52) 100%);
}
.portrait-frame::before { content: ""; position: absolute; inset: 14px; z-index: 2; border: 1px solid rgba(241, 238, 231, .14); pointer-events: none; }
.portrait-corner { position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); pointer-events: none; }
.portrait-cap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; }
@media (max-width: 599px) { .hero-side { width: min(100%, 520px); } }
@media (min-width: 600px) and (max-width: 899px) {
  .hero-side { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 24px; align-items: end; }
  .hero-side .portrait { grid-column: 2; grid-row: 1; }
  .hero-side .cred { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 0; }
}

/* ---------- 02 enterprise experience ---------- */
.firms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 88px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.firms li { position: relative; overflow: hidden; padding: clamp(18px, 3vw, 30px) 0 clamp(16px, 2.6vw, 26px) clamp(16px, 2.4vw, 40px); }
.firms li:nth-child(odd) { padding-left: 0; }
.firms li:nth-child(even) { border-left: 1px solid var(--line); }
.firms li:nth-child(n+3) { border-top: 1px solid var(--line); }
.firms li span { display: block; font-family: var(--serif); font-size: clamp(42px, 6.4vw, 112px); line-height: 1; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
@media (min-width: 760px) {
  .firms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .firms li:nth-child(n+3) { border-top: 0; }
  .firms li:nth-child(3) { padding-left: clamp(16px, 2.4vw, 40px); border-left: 1px solid var(--line); }
}
.firms-note { margin-top: 20px; font-size: 13px; line-height: 1.6; color: var(--mute); max-width: 48em; }
.creds-wrap { margin-top: clamp(56px, 7vw, 112px); }
.creds-h { font-weight: 400; color: var(--dim); margin-bottom: 18px; }
.creds { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.creds li { display: flex; flex-direction: column; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cred-big { font-family: var(--serif); font-size: clamp(26px, 2.3vw, 36px); line-height: 1.06; letter-spacing: -.01em; color: var(--ink); }
.cred-sub { font-size: 14px; line-height: 1.55; color: var(--mute); max-width: 26em; }
@media (min-width: 760px) { .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
@media (min-width: 1180px) { .creds { grid-template-columns: repeat(4, minmax(0, 1fr)); } .creds li { border-bottom: 0; padding: 26px 24px 0 0; } }

/* ---------- 03 what I bring ---------- */
.found-title { max-width: 11em; margin-bottom: clamp(48px, 6vw, 96px); }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(56px, 8vw, 72px); }
.field { position: relative; border-top: 1px solid var(--line); padding-top: 26px; }
.field-k { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 22px; border: 1px solid rgba(201, 164, 93, .5); color: var(--gold); font-size: 12px; letter-spacing: 0; }
.field-t { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.8vw, 48px); line-height: 1.02; letter-spacing: -.015em; color: var(--ink); margin-bottom: clamp(20px, 2vw, 30px); text-wrap: balance; max-width: 12em; }
@media (min-width: 900px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(48px, 6vw, 120px); } }

/* the two fields converge on one path (900 px and up); below that, a short line joins the stack */
.link-diagram { display: none; }
@media (min-width: 900px) {
  .link-diagram { display: block; position: relative; height: clamp(120px, 13vw, 196px); margin-top: clamp(36px, 4vw, 56px); }
  .link-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .link-diagram path { fill: none; vector-effect: non-scaling-stroke; }
  .ld-track { stroke: var(--line2); stroke-width: 1; }
  .ld-draw { stroke: rgba(201, 164, 93, .7); stroke-width: 1; }
  .ld-pulse { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0 1; opacity: 0; }
  .ld-node { position: absolute; display: flex; align-items: center; gap: 12px; transform: translate(-3.5px, -3.5px); }
  .ld-node i { flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(241, 238, 231, .6); background: var(--bg); }
  .ld-node .mono { color: var(--mute); white-space: nowrap; }
  .ld-a { left: 25%; top: 0; }
  .ld-b { left: 75%; top: 0; }
  .ld-c { left: 50%; top: 49%; }
  .ld-c i { border-color: var(--gold); background: var(--gold); }
  .ld-c .mono { position: absolute; left: 18px; top: 12px; }
}
.bridge { position: relative; margin-top: clamp(56px, 8vw, 72px); }
.bridge-join { display: block; width: 1px; height: 48px; margin: 0 0 28px 3px; background: linear-gradient(180deg, rgba(201, 164, 93, 0), var(--gold)); }
.bridge-t { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.2vw, 56px); line-height: 1; letter-spacing: -.015em; color: var(--ink); margin-bottom: clamp(20px, 2vw, 30px); }
.prose p.bridge-lead { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; color: var(--ink); max-width: 20em; }
@media (min-width: 900px) {
  .bridge { margin-top: 0; width: min(100%, 760px); margin-left: auto; margin-right: auto; padding-top: clamp(32px, 3.4vw, 48px); border-top: 1px solid var(--line); }
  .bridge-join { display: none; }
}

/* ---------- 04 approach ---------- */
.ap-grid { row-gap: clamp(40px, 5vw, 64px); }
.stages-wrap { position: relative; padding-left: clamp(28px, 3vw, 44px); }
.stages-track { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line2); }
.stages-track i { position: absolute; inset: 0; background: var(--gold); transform-origin: 50% 0; transform: scaleY(1); }
.stage { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 12px; padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.stage:first-child { padding-top: 6px; }
.stage::before { content: ""; position: absolute; left: calc(-1 * clamp(28px, 3vw, 44px) - 3px); top: calc(clamp(26px, 3vw, 40px) + .9em); width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--gold); background: var(--gold); transition: background .5s, border-color .5s; }
.stage:first-child::before { top: calc(6px + .9em); }
.stage-n { grid-column: 1; grid-row: 1; padding-top: .95em; color: var(--gold); transition: color .5s; }
.stage-t { grid-column: 2; grid-row: 1; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 60px); line-height: 1; letter-spacing: -.015em; color: var(--ink); transition: color .5s; }
.stage-d { grid-column: 2; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7; color: var(--ink2); max-width: 32em; }
@media (min-width: 1000px) {
  .ap-grid .ap-title { grid-column: 1 / span 5; align-self: start; position: sticky; top: var(--sticky-top); }
  .ap-grid .stages-wrap { grid-column: 7 / span 6; }
}

/* ---------- 05 the independent practice ---------- */
.statement { margin-top: clamp(72px, 10vw, 160px); font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.2vw, 92px); line-height: 1; letter-spacing: -.022em; color: var(--ink); max-width: 15.5em; }
.statement .ln { display: block; }
.statement .ln > * { display: block; text-wrap: balance; }
.statement em { color: var(--gold); }
.statement-rule { display: block; width: 56px; height: 1px; background: var(--gold); margin-bottom: clamp(24px, 3vw, 40px); }

/* ---------- 06 closing ---------- */
.close { overflow: hidden; border-top: 1px solid var(--line); background: var(--bg2); isolation: isolate; }
.close::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse 46% 58% at 88% 4%, rgba(201, 164, 93, .08), rgba(201, 164, 93, 0) 70%); }
.close-grid { row-gap: clamp(40px, 5vw, 56px); }
.close-title { font-size: clamp(44px, 6vw, 112px); line-height: .94; letter-spacing: -.025em; }
.close-title em { color: var(--gold); }
.close-body { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.close-body p { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; color: var(--ink2); max-width: 30em; }
.close-body p.close-line { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.15; color: var(--ink); margin-top: 6px; }
.close-body .ctas { margin-top: 14px; }
@media (min-width: 1000px) {
  .close-grid .close-title { grid-column: 1 / span 7; }
  .close-grid .close-body { grid-column: 8 / span 5; align-self: end; }
}

/* ---------- footer (from the site) ---------- */
.foot { padding-top: 72px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.foot-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 20px; }
.foot-brand img { width: clamp(180px, 17vw, 250px); height: auto; }
.foot-h { margin: 0 0 14px; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.foot-grid li a, .foot-grid li span { font-size: 14px; color: var(--ink2); display: inline-flex; min-height: 32px; align-items: center; }
.foot-grid li a:hover { color: var(--gold); }
.foot-grid li a[aria-current] { color: var(--ink); }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 64px; }
.foot-bar a { min-height: 32px; display: inline-flex; align-items: center; gap: .7em; }
.foot-bar a:hover { color: var(--gold); }
@media (min-width: 901px) { .foot-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: auto; } }

/* =============================================================================
   Motion. Hero: CSS only, so it never waits on the script. Reveals, timeline, firms, diagram: only once
   about.js has its observer running (class .io). Reduced motion: none of it.
   ============================================================================= */
@keyframes rlLine { from { transform: translateY(108%); } to { transform: none; } }
@keyframes rlUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rlFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rlFrame { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rlSettle { from { transform: scale(1.04); } to { transform: none; } }
@keyframes rlDraw { from { transform: scaleX(0); } to { transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* hero entrance: eyebrow, headline lines, portrait, then copy (about 1.3 s in all) */
  .js .hero .eyebrow { animation: rlUp .8s var(--e-enter) calc(var(--d0) + .05s) both; }
  .js .hero-title .ln > * { animation: rlLine 1s var(--e-settle) calc(var(--d0) + .12s) both; }
  .js .hero-title .l2 > * { animation-delay: calc(var(--d0) + .26s); }
  .js .portrait-frame { animation: rlFrame 1.3s var(--e-settle) calc(var(--d0) + .1s) both; }
  .js .portrait-move img { animation: rlSettle 1.8s var(--e-settle) calc(var(--d0) + .1s) both; }
  .js .portrait-corner { animation: rlFade .8s var(--e-enter) calc(var(--d0) + .95s) both; }
  .js .portrait-cap { animation: rlUp .8s var(--e-enter) calc(var(--d0) + .8s) both; }
  .js .hero-rule i { animation: rlDraw 1.1s var(--e-settle) calc(var(--d0) + .5s) both; }
  .js .hero-lede { animation: rlUp .8s var(--e-enter) calc(var(--d0) + .45s) both; }
  .js .hero-support { animation: rlUp .8s var(--e-enter) calc(var(--d0) + .53s) both; }
  .js .hero .ctas { animation: rlUp .8s var(--e-enter) calc(var(--d0) + .6s) both; }
  .js .cred { animation: rlUp .8s var(--e-enter) calc(var(--d0) + .7s) both; }

  /* scroll reveals */
  .io .rv { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .io .rv.in { opacity: 1; transform: none; }
  .io .rv-d1 { transition-delay: .1s; }
  .io .rv-d2 { transition-delay: .2s; }
  .io .rv-d3 { transition-delay: .3s; }
  .io .rv-lines .ln { overflow: hidden; padding: 0 .1em .14em 0; margin: 0 -.1em -.14em 0; }
  .io .rv-lines .ln > * { transform: translateY(108%); transition: transform 1.1s var(--e-settle); }
  .io .rv-lines .ln + .ln > * { transition-delay: .1s; }
  .io .rv-lines.in .ln > * { transform: none; }
  .io .statement-rule { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--e-settle); }
  .io .statement.in .statement-rule { transform: none; }

  /* firm names: each rises out of its own mask, in sequence */
  .io .firms li span { transform: translateY(105%); transition: transform 1.1s var(--e-settle); }
  .io .firms li:nth-child(2) span { transition-delay: .09s; }
  .io .firms li:nth-child(3) span { transition-delay: .18s; }
  .io .firms li:nth-child(4) span { transition-delay: .27s; }
  .io .firms.in li span { transform: none; }

  /* converging paths: the gold line draws over the faint track, nodes arrive in order, one pulse runs to the join */
  .io .ld-draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--e-weight); }
  .io .link-diagram.in .ld-draw { stroke-dashoffset: 0; }
  .io .ld-node { opacity: 0; transition: opacity .6s var(--e-enter); }
  .io .ld-a, .io .ld-b { transition-delay: .1s; }
  .io .ld-c { transition-delay: 1.15s; }
  .io .link-diagram.in .ld-node { opacity: 1; }
  .io .link-diagram.in .ld-pulse { animation: ldPulse 1.5s var(--e-weight) 1.5s 1 both; }
  @keyframes ldPulse { 0% { opacity: 0; stroke-dasharray: .05 1; stroke-dashoffset: .05; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; stroke-dasharray: .05 1; stroke-dashoffset: -.95; } }

  /* timeline: the track fills with reading progress; the stage at the reading line is lit, the rest stay readable */
  .io .stages-track i { transform: scaleY(var(--p, 0)); transition: transform .3s linear; }
  .io .stage::before { background: var(--bg); border-color: var(--line2); }
  .io .stage.is-done::before { border-color: rgba(201, 164, 93, .6); }
  .io .stage.is-on::before { background: var(--gold); border-color: var(--gold); }
  .io .stage .stage-n { color: var(--dim); }
  .io .stage.is-on .stage-n { color: var(--gold); }
  .io .stage .stage-t { color: var(--mute); }
  .io .stage.is-on .stage-t { color: var(--ink); }
}

/* reduced motion: interface states change at once (menu, header, index, skip link, button arrows) */
@media (prefers-reduced-motion: reduce) {
  .menu, .menu.is-open, .menu-links a, .nav, .brand img, .skip, .rail .tick, .rail .lab, .nav-links a::after, .btn svg { transition: none !important; }
  .menu-links a { opacity: 1 !important; transform: none !important; }
  .btn:hover svg { transform: none; }
}

/* ---------- production integration ---------- */
.foot-legal a { min-height: 32px; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; }
.foot-legal a:hover { color: var(--gold); text-decoration-color: var(--gold); }
/* WCAG 1.4.11: the section index ticks are the only visible sign of those links, so they reach 3:1 (3.4:1 here) */
.rail .tick { background: rgba(241, 238, 231, .4); }
/* WCAG 1.4.12: with a reader's own wider letter spacing, a firm name wraps inside its mask instead of being cut off.
   At the design's spacing every name fits on one line, as approved. */
.firms li span { white-space: normal; overflow-wrap: anywhere; }

/* ---------- mobile hero (under 600 px): the introduction and primary action arrive sooner ----------
   The portrait keeps its full width and treatment but crops square from the top (face, collar and tie knot stay in
   frame), and the 15+ years note moves below the introduction. Tablet (600 to 899 px) and desktop are unchanged. */
@media (max-width: 599px) {
  .hero-grid { grid-template-areas: "head" "photo" "body" "cred"; }
  .hero-side { display: contents; }
  .hero-side .portrait { grid-area: photo; width: min(100%, 520px); }
  .hero-side .cred { grid-area: cred; margin-top: 0; }
  .portrait-frame { aspect-ratio: 1 / 1; }
}

/* ---------- supporting photograph (01 / About Jibreel): a supplied photograph, resized only (no recolour, filter or
   overlay). It sits in the narrative at the paragraph measure, under the portrait in weight: no caption, no corner
   mark. Shown whole at every width so no one in it is cropped. Reveal: the portrait's clip and settle, on scroll. ---------- */
.ab-photo { width: 100%; max-width: 36em; margin: clamp(8px, 1.2vw, 16px) 0; font-size: clamp(16px, 1.2vw, 18px); }
.ab-photo-frame { position: relative; aspect-ratio: 1584 / 993; overflow: hidden; background: #2A2B2C; }
.ab-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.ab-photo-frame::before { content: ""; position: absolute; inset: 14px; z-index: 1; border: 1px solid rgba(241, 238, 231, .14); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .io .ab-photo-frame { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--e-settle); }
  .io .ab-photo.in .ab-photo-frame { clip-path: inset(0 0 0 0); }
  .io .ab-photo-frame img { transform: scale(1.04); transition: transform 1.8s var(--e-settle); }
  .io .ab-photo.in .ab-photo-frame img { transform: none; }
}

/* Mobile body and supporting text are 8% larger; display type is tuned separately. */
@media (max-width: 767px) {
  body, .prose p, .close-body p, .ab-photo { font-size: 17.28px; }
  .hero-lede { font-size: 18.36px; }
  .stage-d { font-size: 16.2px; }
  .cred-sub, .foot-grid li a, .foot-grid li span { font-size: 15.12px; }
  .firms-note { font-size: 14.04px; }
  .mono, .nav-cta, .menu-btn, .menu-fallback { font-size: 11.88px; }
  .btn, .skip, .field-k { font-size: 12.96px; }
  .foot-h { font-size: 10.8px; }
  .hero-support { font-size: 22.68px; }
  .prose p.pull { font-size: 28.08px; line-height: 1.18; }
  .prose p.bridge-lead { font-size: 23.76px; line-height: 1.25; }
  .close-body p.close-line { font-size: 25.92px; line-height: 1.2; }
  .hero-title .l1 { line-height: 1.08; }
  .hero-title .l2 { line-height: 1.02; }
  .h-xl, .close-title { line-height: 1.04; }
  .field-t, .bridge-t, .stage-t { line-height: 1.1; text-wrap: balance; }
  .cred-big { line-height: 1.14; text-wrap: balance; }
  .statement { line-height: 1.08; text-wrap: balance; }
  .menu-links a { line-height: 1.1; }
  .btn { height: auto; min-height: 54px; padding-top: 14px; padding-bottom: 14px; line-height: 1.5; }
  .foot-grid > * { min-width: 0; }
  .foot-contact { grid-column: 1 / -1; grid-row: 3; }
  .foot-grid a[href^="mailto:"] { overflow-wrap: anywhere; }
}
