/* ==========================================================================
   Ishara Saldin — "Cinema" design system (v4)
   Dark, photo-led and editorial. One clean stylesheet; no legacy layers.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --black: #FAF8F4;
  --night: #F1EEE7;
  --navy: #E7E2D8;
  --ivory: #14161B;
  --ivory-2: #3A3E47;
  --mute: rgba(20, 22, 27, 0.66);
  --faint: rgba(20, 22, 27, 0.16);
  --gold: #8A6B1C;
  --gold-2: #96761F;

  --display: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --serif: "Newsreader", "Georgia", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --max: 1320px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (max-width: 760px) { :root { --header-h: 68px; } }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--black); color: var(--ivory);
  font-family: var(--sans); font-size: clamp(1rem, .96rem + .2vw, 1.125rem); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* Film grain over everything for a cinematic finish */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ---------- Type helpers ---------- */
.kicker { font-family: var(--display); font-size: .8125rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 14px; }
.kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.kicker--plain::before { display: none; }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 300; }
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 30px;
  font-family: var(--display); font-weight: 500; font-size: .875rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--gold); color: var(--black); background: var(--gold);
  overflow: hidden; isolation: isolate; transition: color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ivory); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(20,22,27,.4); }
.btn--ghost::before { background: var(--gold); }
.btn--ghost:hover { color: var(--black); border-color: var(--gold); }

/* ---------- Intro curtain ---------- */
.intro { position: fixed; inset: 0; z-index: 200; background: var(--black); display: grid; place-items: center; pointer-events: none; }
.intro__mark { font-family: var(--display); font-weight: 400; font-size: clamp(1rem, .8rem + .6vw, 1.25rem); letter-spacing: .6em; text-transform: uppercase; color: var(--ivory); overflow: hidden; }
.intro__mark span { display: inline-block; }
.intro__line { position: absolute; left: 50%; top: calc(50% + 34px); width: 180px; height: 1px; margin-left: -90px; background: var(--faint); overflow: hidden; }
.intro__line i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
html:not(.js) .intro, html.intro-seen .intro { display: none; }

/* ---------- Header ---------- */
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 300; padding: 12px 18px; background: var(--gold); color: var(--black); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: transform .5s var(--ease), background-color .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
.hdr.is-solid { background: rgba(250,248,244,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--faint); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--display); font-weight: 500; font-size: 1.0625rem; letter-spacing: .32em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.brand b { color: var(--gold); font-weight: 500; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav ul { display: flex; gap: clamp(16px, 2.2vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { position: relative; font-family: var(--display); font-size: .8125rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ivory); padding: 10px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: .75rem; }
.burger { display: none; align-items: center; gap: 12px; min-height: 44px; background: none; border: 0; font-family: var(--display); font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase; }
.burger i { width: 26px; height: 9px; position: relative; display: block; }
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; }
.burger i::before { top: 0; } .burger i::after { bottom: 0; }
@media (max-width: 1180px) { .nav { display: none; } .burger { display: inline-flex; } }

.menu { position: fixed; inset: 0; z-index: 150; background: var(--black); display: flex; flex-direction: column; padding-bottom: 40px; overflow-y: auto; }
.menu__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.menu__close { background: none; border: 0; min-height: 44px; font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: .8125rem; }
.menu nav ul { list-style: none; padding: 0; margin: 28px 0 0; }
.menu nav a { display: block; padding: 10px 0; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 9vw, 3rem); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--faint); }
.menu nav a:hover { color: var(--gold); }
.menu .btn { margin-top: 32px; }
body.menu-open { overflow: hidden; }

/* ---------- 1. Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--black); isolation: isolate; }
.hero__glow { position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 60% 42%, rgba(138,107,28,.22) 0%, rgba(138,107,28,0) 60%),
    radial-gradient(90% 70% at 50% 110%, #16203A 0%, rgba(226,220,206,0) 70%),
    var(--black); }
.hero__name { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 7vh); z-index: -1; text-align: center; white-space: nowrap; line-height: .82;
  font-family: var(--display); font-weight: 500; font-size: 12.4vw; letter-spacing: -.01em; text-transform: uppercase;
  color: var(--ivory); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(20,22,27,0.10) 100%); mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(20,22,27,0.10) 100%); }
.hero__name .ln { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .06em; }
.hero__name .ch { display: inline-block; }
.hero__portrait { position: absolute; left: 50%; bottom: 0; width: min(76vh, 54vw); transform: translateX(-50%); z-index: 1; }
.hero__portrait img { width: 100%; filter: drop-shadow(0 30px 60px rgba(20,22,27,0.17)); }
.hero__fade { position: absolute; inset: auto 0 0 0; height: 46vh; z-index: 2; background: linear-gradient(0deg, var(--black) 6%, rgba(250,248,244,.55) 45%, rgba(250,248,244,0) 100%), linear-gradient(90deg, rgba(250,248,244,.7) 0%, rgba(250,248,244,0) 40%, rgba(250,248,244,0) 60%, rgba(250,248,244,.5) 100%); pointer-events: none; }
.hero__copy { position: absolute; left: 0; right: 0; bottom: clamp(32px, 6vh, 72px); z-index: 3; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero__titles { font-family: var(--display); font-size: .8125rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero__titles span + span::before { content: "|"; margin-right: 14px; color: rgba(20,22,27,.35); }
.hero h1 { margin-top: clamp(40px, 8vh, 110px); font-family: var(--serif); font-weight: 300; font-size: clamp(1.75rem, .95rem + 2.4vw, 3.25rem); line-height: 1.02; letter-spacing: -.025em; max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero__side { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; padding-bottom: 8px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); text-decoration: none; }
.hero__scroll i { width: 1px; height: 46px; background: var(--faint); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-width: 860px) {
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .hero__name { position: relative; top: auto; padding-top: calc(var(--header-h) + 24px); font-size: 18vw; line-height: .8; white-space: normal; }
  .hero__name .ln { display: block; }
  .hero__portrait { position: relative; left: auto; transform: none; width: 86vw; margin: -16vw auto 0; }
  .hero__fade { height: 40%; }
  .hero__copy { position: relative; bottom: auto; margin-top: -22vw; padding-bottom: 48px; }
  .hero__row { flex-direction: column; align-items: flex-start; }
  .hero__side { align-items: flex-start; }
  .hero__scroll { display: none; }
}

/* ---------- 2. Photo tiles (Aaron-style routes) ---------- */
.routes { background: var(--black); padding: clamp(12px, 2vw, 28px) 0 clamp(36px, 4vw, 64px); }
.routes__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.route { position: relative; display: block; aspect-ratio: 3 / 4.6; overflow: hidden; text-decoration: none; background: var(--night); }
.route__img { position: absolute; inset: 0; overflow: hidden; }
.route__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 25%); filter: grayscale(1) contrast(1.08) brightness(.72); transform: scale(1.02); transition: filter .7s var(--ease), transform 1.2s var(--ease); }
.route::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(250,248,244,.92) 0%, rgba(250,248,244,0) 55%); }
.route__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 18px 26px; text-align: center; }
.route__label b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(1rem, .85rem + .6vw, 1.4rem); letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; }
.route__label small { display: block; margin-top: 8px; font-family: var(--display); font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); opacity: .85; }
.route__line { display: block; width: 28px; height: 1px; margin: 14px auto 0; background: var(--gold); transition: width .6s var(--ease); }
.route:hover .route__img img, .route:focus-visible .route__img img { filter: grayscale(0) contrast(1) brightness(.95); transform: scale(1.08); }
.route:hover .route__line { width: 80px; }
.route:focus-visible { outline-offset: -3px; }
@media (max-width: 1080px) { .routes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .routes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .route:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; } }

/* ---------- 3. Numbers ---------- */
.numbers { position: relative; background: var(--night); padding: clamp(40px, 4.4vw, 72px) 0; overflow: hidden; }
.numbers__bg { position: absolute; right: -4vw; top: 50%; transform: translateY(-50%); font-family: var(--display); font-weight: 600; font-size: 29vw; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(20,22,27,.05); pointer-events: none; user-select: none; }
.numbers__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(22px, 2.6vw, 38px); }
.stat { position: relative; padding-top: 32px; }
.stat__rule { position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--faint); overflow: hidden; }
.stat__rule i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; }
.stat__num { font-family: var(--display); font-weight: 300; font-size: clamp(4rem, 2.4rem + 5.6vw, 9rem); line-height: .85; letter-spacing: -.04em; display: flex; align-items: flex-start; }
.stat__num sup { font-size: .3em; margin: .2em 0 0 .12em; letter-spacing: 0; color: var(--gold); font-weight: 400; }
.stat__num--word { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(3rem, 1.8rem + 4vw, 6.5rem); letter-spacing: -.03em; padding-top: .12em; }
.stat__label { margin-top: 22px; font-family: var(--display); font-size: .8125rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.stat__desc { margin-top: 10px; color: var(--mute); max-width: 28ch; font-size: 1rem; }
@media (max-width: 760px) { .numbers__grid { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- 4. Scroll-lit statement ---------- */
.statement { position: relative; background: var(--black); min-height: 82svh; display: flex; align-items: center; padding: clamp(46px, 5.2vw, 78px) 0; }
.statement__text { font-family: var(--serif); font-weight: 300; font-size: clamp(1.75rem, .9rem + 3vw, 4.25rem); line-height: 1.08; letter-spacing: -.025em; max-width: 20ch; margin-top: 32px; }
.statement__text .word { opacity: .16; transition: none; }
.statement__text em { font-style: italic; color: var(--gold-2); }
html:not(.js) .statement__text .word { opacity: 1; }

/* ---------- 5. Profile ---------- */
.profile { position: relative; background: linear-gradient(180deg, var(--black) 0%, var(--navy) 100%); padding: clamp(40px, 4.4vw, 72px) 0; overflow: hidden; }
.profile__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.profile__visual { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(70% 60% at 50% 35%, rgba(138,107,28,.28), rgba(138,107,28,0) 70%), linear-gradient(180deg, #151C2E, #0A0D16); }
.profile__visual::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(138,107,28,.35); z-index: 2; pointer-events: none; }
.profile__visual img { position: absolute; left: 50%; bottom: 0; width: 92%; transform: translateX(-50%); }
.profile__visual figcaption { position: absolute; left: 34px; bottom: 30px; z-index: 3; font-family: var(--display); font-size: .6875rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ivory); }
.profile h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.375rem, .9rem + 1.55vw, 2.25rem); line-height: 1.05; letter-spacing: -.02em; margin-top: 24px; }
.profile h2 em { font-style: italic; color: var(--gold-2); }
.profile__body { margin-top: 36px; display: grid; gap: 1.1em; color: rgba(20,22,27,.78); }
.profile__who { margin-top: 48px; border-top: 1px solid var(--faint); }
.profile__who p { font-family: var(--display); font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); padding: 22px 0 6px; }
.profile__who li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--faint); font-family: var(--display); font-weight: 400; font-size: clamp(1.125rem, .95rem + .6vw, 1.5rem); letter-spacing: .02em; text-transform: uppercase; }
.profile__who li span { font-size: .75rem; letter-spacing: .2em; color: var(--mute); }
@media (max-width: 900px) { .profile__grid { grid-template-columns: 1fr; } .profile__visual { position: relative; top: 0; max-width: 520px; } }

/* ---------- 6. Featured in ---------- */
.featured { background: var(--black); padding: clamp(40px, 4.4vw, 70px) 0; overflow: hidden; }
.featured__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.featured__head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.625rem, 1.05rem + 1.9vw, 2.875rem); line-height: 1.02; letter-spacing: -.02em; margin-top: 20px; }
.marquee { margin-top: clamp(24px, 2.8vw, 40px); border-block: 1px solid var(--faint); padding: 26px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; padding-right: 48px; white-space: nowrap; font-family: var(--display); font-weight: 400; font-size: clamp(1.25rem, .9rem + 1.5vw, 2.25rem); letter-spacing: .06em; text-transform: uppercase; color: rgba(20,22,27,.55); }
.marquee__track span::after { content: "✦"; font-size: .45em; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.covers { margin-top: clamp(36px, 4.4vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); perspective: 1400px; }
.cover { text-decoration: none; display: block; }
.cover__img { position: relative; aspect-ratio: 3 / 3.9; overflow: hidden; background: #111; box-shadow: 0 40px 80px -30px rgba(20,22,27,0.22); transition: transform .8s var(--ease), box-shadow .8s var(--ease); transform-style: preserve-3d; }
.cover__img img { width: 100%; height: 100%; object-fit: cover; }
.cover:hover .cover__img { transform: translateY(-10px) rotateX(4deg); box-shadow: 0 60px 90px -30px rgba(138,107,28,.25); }
.cover__meta { margin-top: 20px; font-family: var(--display); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.cover__title { margin-top: 6px; font-family: var(--serif); font-size: clamp(1.125rem, 1rem + .4vw, 1.4375rem); line-height: 1.2; }
@media (max-width: 760px) { .covers { grid-template-columns: 1fr 1fr; } .cover:last-child { display: none; } }

/* ---------- 7. Final CTA ---------- */
.cta { position: relative; min-height: 74svh; display: flex; align-items: center; overflow: hidden; background: var(--black); isolation: isolate; }
.cta__bg { position: absolute; inset: -10% 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 20%; filter: grayscale(1) contrast(1.1) brightness(.45); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(250,248,244,.96) 0%, rgba(250,248,244,.75) 45%, rgba(250,248,244,.2) 100%); }
.cta h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.125rem, 1.05rem + 4vw, 5.25rem); line-height: 1; letter-spacing: -.03em; max-width: 13ch; margin-top: 28px; }
.cta h2 em { font-style: italic; color: var(--gold-2); }
.cta p { margin-top: 28px; max-width: 42ch; color: var(--mute); font-size: clamp(1rem, .96rem + .2vw, 1.125rem); }
.cta .btn { margin-top: 44px; }

/* ---------- Footer ---------- */
.ftr { background: var(--black); border-top: 1px solid var(--faint); padding: clamp(56px, 7vw, 96px) 0 32px; }
.ftr__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.ftr__brand .brand { font-size: 1.25rem; }
.ftr__brand p { margin-top: 16px; color: var(--mute); font-size: .9375rem; max-width: 32ch; }
.ftr h3 { font-family: var(--display); font-size: .75rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.ftr ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ftr ul a { text-decoration: none; color: var(--mute); font-size: .9375rem; transition: color .3s; }
.ftr ul a:hover { color: var(--ivory); }
.ftr__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .8125rem; color: rgba(20,22,27,.45); }
.ftr__bottom a { color: inherit; text-decoration: none; margin-left: 20px; }
.ftr__bottom a:hover { color: var(--ivory); }
@media (max-width: 760px) { .ftr__top { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }

/* Prevent a flash of un-animated hero before GSAP takes over (failsafe in JS) */
.js:not(.anim-ready) .hero__name, .js:not(.anim-ready) .hero__portrait, .js:not(.anim-ready) .hero [data-hero], .js:not(.anim-ready) .hero h1 { visibility: hidden; }
.intro__mark { white-space: nowrap; }
@media (max-width: 520px) { .intro__mark { letter-spacing: .32em; font-size: .9375rem; } .intro__line { width: 120px; margin-left: -60px; } }
@media (min-width: 861px) {
  .hero__name { display: flex; justify-content: space-between; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); font-size: 7.6vw; }
  .hero__name .ln { padding: 0; }
}
.statement__text { font-size: clamp(1.625rem, .85rem + 3.1vw, 4.25rem); max-width: 22ch; }

/* ---------- Refinements after review ---------- */
.cta__bg { inset: -10% 0 -10% 42%; }
.cta__bg img { object-position: 50% 18%; }
.cta::before { background: linear-gradient(90deg, var(--black) 0%, var(--black) 40%, rgba(250,248,244,.7) 55%, rgba(250,248,244,.1) 100%); }
.route::after { background: linear-gradient(0deg, rgba(250,248,244,.96) 0%, rgba(250,248,244,.55) 38%, rgba(250,248,244,0) 70%); }
/* SplitText masks: give italic overhangs room so letters are never clipped */
.cinema div[aria-hidden="true"][style*="overflow: clip"] { padding: 0 .14em .1em; margin: 0 -.14em -.1em; }
@media (max-width: 860px) {
  .cta__bg { inset: 0; }
  .cta__bg img { object-position: 60% 15%; }
  .cta::before { background: linear-gradient(0deg, var(--black) 20%, rgba(250,248,244,.6) 60%, rgba(250,248,244,.3) 100%); }
  .cta { align-items: flex-end; padding-bottom: 64px; }
}
@media (max-width: 600px) {
  .hero__titles span:first-child { flex-basis: 100%; }
  .hero__titles span:nth-child(2)::before { display: none; }
}
@media (max-width: 380px) { .brand { letter-spacing: .2em; font-size: .9375rem; } .burger { gap: 8px; letter-spacing: .12em; } }
@media (min-width: 861px) {
  .cta__bg { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%); }
  .cta__bg img { object-position: 50% 6%; }
  .cta::before { background: linear-gradient(90deg, rgba(250,248,244,.2) 0%, rgba(250,248,244,0) 60%, rgba(250,248,244,.25) 100%); }
}

/* ==========================================================================
   v5 — full-site components
   ========================================================================== */

/* Header variants */
.hdr--minimal .hdr__in { justify-content: flex-start; }

/* Brand lockups (match logo casing) */
.lockup { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.lockup__rivex { font-family: var(--display); font-weight: 500; font-size: 1.125rem; letter-spacing: .22em; color: var(--gold); }
.lockup__rivex span { letter-spacing: .02em; color: var(--ivory); font-weight: 400; margin-left: .35em; }
.lockup__r4s { font-family: var(--display); font-weight: 500; font-size: 1.25rem; letter-spacing: .01em; color: var(--ivory); }
.lockup__r4s b { color: var(--gold); font-weight: 500; }
.lockup__with { font-family: var(--serif); font-style: italic; font-size: 1.0625rem; color: var(--mute); }
.brandcase { text-transform: none !important; letter-spacing: .04em !important; font-size: .9375rem !important; }

/* Routes: four tiles */
.routes__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .routes__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .routes__grid--4 .route:last-child { grid-column: auto; aspect-ratio: 3 / 4.6; } }

/* Landing: bio directly under the hero */
.bio { position: relative; background: linear-gradient(180deg, var(--black), var(--night)); padding: clamp(38px, 4.2vw, 66px) 0; }
.bio__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.bio h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.375rem, .9rem + 1.55vw, 2.25rem); line-height: 1.05; letter-spacing: -.02em; margin-top: 24px; }
.bio h2 em { font-style: italic; color: var(--gold-2); }
.bio__body { display: grid; gap: 1.2em; color: rgba(20,22,27,.8); align-content: start; padding-top: 8px; }
.bio__body p:first-child { color: rgba(20,22,27,.86); }
.bio .profile__who { margin-top: 40px; }
@media (min-width: 901px) { .bio__aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
@media (max-width: 900px) { .bio__grid { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.phero { position: relative; min-height: min(100svh, 1040px); overflow: hidden; background: var(--black); isolation: isolate; display: flex; align-items: center; padding: calc(var(--header-h) + 28px) 0 52px; }
.phero__glow { position: absolute; inset: 0; z-index: -3; background: radial-gradient(55% 60% at 74% 48%, #17213A 0%, rgba(23,33,58,0) 70%), radial-gradient(40% 40% at 76% 30%, rgba(138,107,28,.10), rgba(138,107,28,0) 70%), var(--black); }
.phero__ghost { position: absolute; right: -1vw; top: calc(var(--header-h) + 2vh); z-index: -2; font-family: var(--display); font-weight: 600; font-size: clamp(6.5rem, 18vw, 21rem); line-height: .8; letter-spacing: -.02em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(20,22,27,.09); white-space: nowrap; pointer-events: none; user-select: none; }
.phero__media { position: absolute; right: max(var(--gutter), calc((100vw - var(--max)) / 2 - 20px)); bottom: 0; height: 90%; z-index: -1; display: flex; align-items: flex-end; }
.phero__media img { height: 100%; width: auto; max-width: 48vw; object-fit: contain; object-position: bottom; filter: drop-shadow(0 40px 60px rgba(20,22,27,0.17)); }
.phero__fade { position: absolute; inset: auto 0 0 0; height: 26%; z-index: -1; background: linear-gradient(0deg, var(--black) 5%, rgba(250,248,244,0)); pointer-events: none; }
.phero__copy { position: relative; max-width: min(640px, 52vw); }
.phero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.75rem, .95rem + 2.4vw, 3.25rem); line-height: 1; letter-spacing: -.03em; margin-top: 26px; }
.phero h1 em { font-style: italic; color: var(--gold-2); }
.phero__lead { margin-top: 30px; display: grid; gap: 1em; max-width: 54ch; color: var(--mute); font-size: clamp(1rem, .96rem + .18vw, 1.0938rem); }
.phero__lead p:first-child { color: rgba(20,22,27,.88); }
.phero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.textlink { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ivory); padding: 8px 0; border-bottom: 1px solid var(--faint); transition: border-color .3s, color .3s; }
.textlink:hover { color: var(--gold); border-color: var(--gold); }
.textlink svg { width: 16px; height: 16px; }
@media (max-width: 960px) {
  .phero { flex-direction: column; align-items: stretch; padding-bottom: 0; min-height: 0; }
  .phero__copy { max-width: none; }
  .phero__media { position: relative; right: auto; height: auto; justify-content: center; margin-top: 40px; }
  .phero__media img { height: auto; width: min(88vw, 520px); max-width: none; }
  .phero__ghost { font-size: 29vw; top: calc(var(--header-h) + 30vh); }
}

/* ---------- Editorial text block ---------- */
.editorial-x { background: var(--night); padding: clamp(40px, 4.4vw, 72px) 0; }
.editorial-x__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); }
.editorial-x__lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.375rem, 1rem + 1.3vw, 2.25rem); line-height: 1.25; letter-spacing: -.015em; color: var(--ivory); }
.editorial-x__body { margin-top: 32px; color: var(--mute); font-size: clamp(1rem, .96rem + .2vw, 1.125rem); max-width: 62ch; }
@media (max-width: 900px) { .editorial-x__grid { grid-template-columns: 1fr; } }

/* ---------- Section head ---------- */
.shead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(22px, 2.6vw, 38px); }
.shead h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.625rem, 1.05rem + 1.9vw, 2.875rem); line-height: 1.02; letter-spacing: -.02em; margin-top: 20px; max-width: 18ch; }
.shead h2 em { font-style: italic; color: var(--gold-2); }
.shead p { color: var(--mute); max-width: 42ch; }

/* ---------- Pillars / callouts ---------- */
.pillars { background: var(--black); padding: clamp(40px, 4.4vw, 70px) 0; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.pillar { position: relative; padding: 34px 30px 36px; background: linear-gradient(180deg, rgba(20,22,27,.035), rgba(20,22,27,0)); border: 1px solid var(--faint); transition: border-color .5s var(--ease), transform .6s var(--ease), background-color .5s; overflow: hidden; }
.pillar::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 48px; background: var(--gold); transition: width .7s var(--ease); }
.pillar:hover { border-color: rgba(138,107,28,.45); transform: translateY(-6px); }
.pillar:hover::before { width: 100%; }
.pillar__icon { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(138,107,28,.45); display: grid; place-items: center; color: var(--gold); }
.pillar__icon .icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pillar__num { position: absolute; right: 26px; top: 26px; font-family: var(--display); font-size: .75rem; letter-spacing: .2em; color: var(--mute); }
.pillar h3 { margin-top: 28px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.3125rem, 1.1rem + .6vw, 1.75rem); line-height: 1.15; }
.pillar p { margin-top: 12px; color: var(--mute); font-size: 1rem; }
.pillar .for { margin-top: 10px; font-family: var(--display); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 900px) { .pillars__grid { grid-template-columns: 1fr; } }

/* ---------- Principles (big words) ---------- */
.principles { position: relative; background: var(--night); padding: clamp(40px, 4.4vw, 72px) 0; overflow: hidden; }
.principles__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--faint); }
.principle { padding: 36px clamp(16px, 2.4vw, 40px) 12px 0; border-right: 1px solid var(--faint); }
.principle + .principle { padding-left: clamp(16px, 2.4vw, 40px); }
.principle:last-child { border-right: 0; }
.principle__idx { font-family: var(--display); font-size: .75rem; letter-spacing: .24em; color: var(--gold); }
.principle__word { display: block; margin-top: 18px; font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 1.1rem + 2.6vw, 3.75rem); line-height: .95; letter-spacing: -.035em; transition: color .5s var(--ease); }
.principle:hover .principle__word { color: var(--gold-2); font-style: italic; }
.principle p { margin-top: 20px; color: var(--mute); max-width: 30ch; font-size: 1rem; }
@media (max-width: 860px) { .principles__row { grid-template-columns: 1fr; } .principle, .principle + .principle { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--faint); } }

/* ---------- Steps ---------- */
.steps-x { background: var(--black); padding: clamp(38px, 4.2vw, 64px) 0; }
.steps-x__row { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.steps-x__line { position: absolute; left: 28px; right: 28px; top: 28px; height: 1px; background: var(--faint); overflow: hidden; }
.steps-x__line i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; }
.step { position: relative; }
.step__num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; background: var(--black); border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--display); color: var(--gold); letter-spacing: .06em; }
.step h3 { margin-top: 26px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.3125rem, 1.1rem + .6vw, 1.75rem); }
.step p { margin-top: 10px; color: var(--mute); font-size: 1rem; max-width: 32ch; }
@media (max-width: 760px) { .steps-x__row { grid-template-columns: 1fr; } .steps-x__line { display: none; } }

/* ---------- Chips ---------- */
.chips-x { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 30px 0 0; }
.chips-x li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border: 1px solid var(--faint); font-family: var(--display); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory); background: rgba(20,22,27,.03); }
.chips-x .icon { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Education ---------- */
.edu { background: var(--night); padding: clamp(38px, 4.2vw, 64px) 0; }
.edu__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--faint); }
.edu__list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--faint); }
.edu__list .pillar__icon { width: 48px; height: 48px; }
.edu__list h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.05rem + .5vw, 1.625rem); line-height: 1.2; }
.edu__list p { color: var(--mute); font-size: 1rem; margin-top: 4px; }
.edu__list .tag { font-family: var(--display); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
@media (max-width: 640px) { .edu__list li { grid-template-columns: 48px minmax(0, 1fr); } .edu__list .tag { grid-column: 2; } }

/* ---------- Media hero with fanned covers ---------- */
.mhero { position: relative; min-height: min(100svh, 980px); overflow: hidden; background: var(--black); isolation: isolate; display: flex; align-items: center; padding: calc(var(--header-h) + 28px) 0 56px; }
.mhero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; align-items: center; }
.mhero__covers { position: relative; height: min(64vh, 620px); perspective: 1600px; }
.mhero__covers img { position: absolute; top: 50%; left: 50%; width: min(19vw, 290px); aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 50px 90px -30px rgba(20,22,27,0.22); border: 1px solid rgba(20,22,27,.08); }
.mhero__covers img:nth-child(1) { transform: translate(-115%, -48%) rotate(-9deg); }
.mhero__covers img:nth-child(2) { transform: translate(-50%, -54%) rotate(0deg); z-index: 2; width: min(22vw, 330px); }
.mhero__covers img:nth-child(3) { transform: translate(15%, -46%) rotate(9deg); }
@media (max-width: 900px) { .mhero__grid { grid-template-columns: 1fr; } .mhero__covers { height: 70vw; } .mhero__covers img { width: 36vw; } .mhero__covers img:nth-child(2) { width: 42vw; } }

/* ---------- Coverage grid ---------- */
.coverage { background: var(--night); padding: clamp(40px, 4.4vw, 70px) 0; }
.coverage__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 56px) clamp(20px, 3vw, 44px); }
.ccard { display: flex; flex-direction: column; text-decoration: none; }
.ccard__img { position: relative; aspect-ratio: 4 / 4.8; display: grid; place-items: center; padding: 28px; background: radial-gradient(70% 60% at 50% 40%, #182238, #0A0D16); border: 1px solid var(--faint); overflow: hidden; transition: border-color .5s var(--ease); }
.ccard__img img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 30px 60px -25px rgba(20,22,27,0.22); transition: transform .8s var(--ease); }
.ccard:hover .ccard__img { border-color: rgba(138,107,28,.45); }
.ccard:hover .ccard__img img { transform: translateY(-8px) scale(1.03); }
.ccard__meta { margin-top: 22px; font-family: var(--display); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.ccard__title { margin-top: 8px; font-family: var(--serif); font-size: clamp(1.125rem, 1rem + .4vw, 1.4375rem); line-height: 1.2; }
.ccard__link { margin-top: 14px; align-self: flex-start; }
@media (max-width: 900px) { .coverage__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .coverage__grid { grid-template-columns: 1fr; } }

/* Featured section when used on Media page */
.featured--media { padding-top: clamp(30px, 3.6vw, 54px); }

/* ---------- Contact ---------- */
.contact-hero { padding: calc(var(--header-h) + clamp(40px, 5vw, 68px)) 0 clamp(28px, 3.4vw, 48px); background: radial-gradient(50% 70% at 80% 0%, #16203A, rgba(226,220,206,0) 70%), var(--black); }
.contact-hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.125rem, 1.1rem + 3.3vw, 4.375rem); line-height: 1.02; letter-spacing: -.03em; max-width: 16ch; margin-top: 24px; }
.contact-hero h1 em { font-style: italic; color: var(--gold-2); }
.contact-hero p { margin-top: 24px; color: var(--mute); max-width: 52ch; font-size: clamp(1rem, .96rem + .2vw, 1.125rem); }
.contact-body { background: var(--black); padding: 0 0 clamp(40px, 4.4vw, 70px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 28px; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field { display: grid; gap: 10px; }
.field label, .fieldset legend { font-family: var(--display); font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); }
.req { color: var(--mute); letter-spacing: .08em; text-transform: none; font-family: var(--sans); font-size: .8125rem; }
.hint { color: var(--mute); font-size: .875rem; margin-top: -4px; }
.input, .select, .textarea { width: 100%; min-height: 54px; padding: 14px 16px; background: rgba(20,22,27,.04); border: 1px solid rgba(20,22,27,.2); color: var(--ivory); font: inherit; font-size: 1rem; border-radius: 0; transition: border-color .3s, background-color .3s; }
.input::placeholder, .textarea::placeholder { color: rgba(20,22,27,.35); }
.textarea { min-height: 170px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23C6A15B' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.select option { color: #111; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(20,22,27,.4); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); background-color: rgba(138,107,28,.06); }
input[type="date"] { color-scheme: dark; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.type-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.type-picker input { position: absolute; opacity: 0; pointer-events: none; }
.type-picker label { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 16px; border: 1px solid rgba(20,22,27,.2); cursor: pointer; font-family: var(--sans); font-size: .9375rem; letter-spacing: 0; text-transform: none; color: var(--ivory); transition: border-color .3s, background-color .3s, color .3s; }
.type-picker .dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(20,22,27,.4); flex: none; display: grid; place-items: center; }
.type-picker label:hover { border-color: rgba(138,107,28,.6); }
.type-picker input:checked + label { border-color: var(--gold); background: rgba(138,107,28,.12); }
.type-picker input:checked + label .dot { border-color: var(--gold); }
.type-picker input:checked + label .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.type-picker input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 640px) { .type-picker { grid-template-columns: 1fr 1fr; } }
.conditional { display: grid; gap: 22px; padding: 26px; border: 1px solid var(--faint); background: rgba(20,22,27,.025); }
.conditional__label { font-family: var(--display); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: .9375rem; color: var(--mute); text-transform: none; letter-spacing: 0; font-family: var(--sans); }
.check input { width: 18px; height: 18px; accent-color: #C6A15B; }
.field-error { color: #F2A38F; font-size: .875rem; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #E07A62; }
.error-summary, .form-status--error { border: 1px solid #E07A62; background: rgba(224,122,98,.08); padding: 20px 22px; }
.error-summary h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: #F2A38F; }
.error-summary ul { margin: 10px 0 0; padding-left: 20px; }
.error-summary a { color: #F2A38F; }
.form-privacy { color: var(--mute); font-size: .875rem; max-width: 56ch; }
.form-privacy a { color: var(--ivory); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.success-panel { border: 1px solid var(--gold); padding: clamp(28px, 4vw, 48px); background: rgba(138,107,28,.06); }
.success-panel h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.75rem); margin-top: 12px; }
.success-panel p { color: var(--mute); margin-top: 12px; }
.aside-x { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--faint); padding: 32px; background: linear-gradient(180deg, rgba(20,22,27,.04), rgba(20,22,27,0)); }
.aside-x__person { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--faint); }
.aside-x__person img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); }
.aside-x__person strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.375rem; }
.aside-x__person span { font-size: .8125rem; color: var(--mute); }
.aside-x h2 { margin-top: 24px; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.aside-x p { margin-top: 10px; color: var(--mute); font-size: .9375rem; }
.aside-x ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.aside-x li { display: flex; gap: 12px; color: var(--mute); font-size: .9375rem; }
.aside-x li .icon { width: 18px; height: 18px; flex: none; margin-top: 3px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.aside-x a { color: var(--ivory); }
@media (max-width: 960px) { .aside-x { position: static; } }

/* ---------- Simple / utility pages ---------- */
.simple { min-height: 80svh; padding: calc(var(--header-h) + clamp(56px, 8vw, 120px)) 0 clamp(80px, 10vw, 140px); background: radial-gradient(50% 60% at 85% 0%, #16203A, rgba(226,220,206,0) 70%), var(--black); }
.simple h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 1.3rem + 4vw, 5rem); line-height: 1.02; letter-spacing: -.03em; margin-top: 24px; max-width: 18ch; }
.simple .lead-x { margin-top: 24px; color: var(--mute); max-width: 56ch; font-size: clamp(1rem, .96rem + .2vw, 1.125rem); }
.legal { max-width: 72ch; margin-top: 40px; color: rgba(20,22,27,.78); }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 1.25rem + .6vw, 2rem); margin-top: 2em; color: var(--ivory); }
.legal p, .legal ul { margin-top: 1em; }
.legal a { color: var(--gold-2); }
.linklist { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--faint); max-width: 900px; }
.linklist a { display: flex; justify-content: space-between; align-items: center; padding: 22px 16px 22px 0; border-bottom: 1px solid var(--faint); font-family: var(--serif); font-size: 1.5rem; text-decoration: none; transition: color .3s, padding .4s var(--ease); }
.linklist a:hover { color: var(--gold-2); padding-left: 8px; }
.linklist svg { width: 18px; height: 18px; }

/* Page transitions */
.js body.cinema main { animation: pagein .7s var(--ease) both; }
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }
body.is-leaving main, body.is-leaving .ftr { opacity: 0; transition: opacity .35s ease; }
@media (prefers-reduced-motion: reduce) { .js body.cinema main { animation: none; } }
.cinema .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.phero__copy { z-index: 2; }
.ov-stat { margin-top: 40px; max-width: 320px; }
@media (min-width: 901px) { .editorial-x__aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.mhero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.75rem, .95rem + 2.4vw, 3.25rem); line-height: 1; letter-spacing: -.03em; margin-top: 26px; }
.mhero h1 em { font-style: italic; color: var(--gold-2); }
@media (max-width: 960px) {
  .phero__media { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); margin-bottom: -40px; }
}

/* ---------- About page ---------- */
.ahero__grid { grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr); gap: clamp(32px, 5vw, 72px); }
.ahero__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid rgba(20,22,27,.1); box-shadow: 0 50px 90px -30px rgba(20,22,27,0.22); }
.ahero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 20%); filter: saturate(.9) contrast(1.04); }
.ahero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(250,248,244,0) 55%, rgba(250,248,244,.55) 100%); }
.pillar__more { margin-top: 18px; }
.agallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.agallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid rgba(20,22,27,.08); filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease); }
.agallery img:hover { filter: grayscale(0) contrast(1.02); }
@media (max-width: 900px) { .ahero__grid { grid-template-columns: 1fr; } .ahero__photo { aspect-ratio: 3 / 2; } }
@media (max-width: 640px) { .agallery { grid-template-columns: 1fr 1fr; } .agallery img:last-child { display: none; } }

/* ==========================================================================
   v5.3 — Ishara's second change list
   ========================================================================== */

/* Brand lockups: role line under the brand */
.lockup { align-items: center; }
.lockup__role { display: block; margin-top: 10px; font-family: var(--display); font-size: .75rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.lockup__logo { display: block; height: clamp(46px, 5vw, 64px); width: auto; margin-bottom: 4px; }
.lockup-block { display: grid; gap: 2px; }
.lockup-block .lockup__name { font-family: var(--display); font-weight: 400; font-size: 1rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory); }

/* Landing: magazine cover in the third stat */
.stat__cover { display: block; margin: 6px 0 18px; width: clamp(130px, 13vw, 190px); aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 12%; border: 1px solid rgba(20,22,27,.12); box-shadow: 0 30px 60px -24px rgba(20,22,27,0.22); }

/* About: smaller hero heading, one font for the write-up, sports quotes */
.ahero h1 { font-size: clamp(1.75rem, .95rem + 2.4vw, 3.25rem); }
.prose-x { display: grid; gap: 1.15em; color: rgba(20,22,27,.82); font-size: clamp(1rem, .96rem + .2vw, 1.125rem); max-width: 68ch; }
.prose-x p { margin: 0; }
.quotes { margin-top: clamp(26px, 3vw, 44px); display: grid; gap: 18px; }
.quote-x { border-left: 1px solid var(--gold); padding: 4px 0 4px 22px; }
.quote-x p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.125rem, 1rem + .55vw, 1.5rem); line-height: 1.35; color: var(--ivory); margin: 0; }
.quote-x cite { display: block; margin-top: 10px; font-family: var(--display); font-style: normal; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }

/* Advisory: two disciplines, difference list, founder note, pull quote */
.pillars__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .pillars__grid--2 { grid-template-columns: 1fr; } }
.dlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); list-style: none; margin: 0; padding: 0; }
.dlist li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--faint); color: rgba(20,22,27,.82); }
.dlist .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (max-width: 760px) { .dlist { grid-template-columns: 1fr; } }
.founder { background: var(--night); padding: clamp(40px, 4.4vw, 72px) 0; }
.founder__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.founder__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.founder__list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; color: rgba(20,22,27,.82); }
.founder__list b { display: block; font-family: var(--display); font-weight: 500; font-size: .8125rem; letter-spacing: .2em; color: var(--gold); }
.founder__sign { margin-top: 26px; font-family: var(--display); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 900px) { .founder__grid { grid-template-columns: 1fr; } }
.pullquote { background: var(--black); padding: clamp(40px, 4.4vw, 72px) 0; }
.pullquote p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, .95rem + 2vw, 3rem); line-height: 1.2; letter-spacing: -.02em; color: var(--ivory); max-width: 24ch; }
.pullquote p em { font-style: italic; color: var(--gold-2); }
.pullquote .kicker { margin-bottom: 18px; }

/* Footer: contact details */
.ftr__addr { margin-top: 18px; display: grid; gap: 4px; font-size: .9375rem; color: var(--mute); }
.ftr__addr a { color: inherit; }
.ftr__addr a:hover { color: var(--ivory); }

.aside-x__contact { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--faint); color: var(--mute); font-size: .9375rem; }
.aside-x__contact h2 { font-family: var(--display); font-size: .75rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.aside-x__contact p { margin: 0 0 6px; }
.aside-x__contact a { color: inherit; }
.aside-x__contact a:hover { color: var(--ivory); }

/* Brand artwork in the page lockups */
.lockup__logo--rivex { height: clamp(112px, 11.5vw, 162px); margin-bottom: 16px; }
.lockup__logo--r4s { height: clamp(74px, 7.6vw, 104px); margin-bottom: 14px; }
.lockup-block .lockup__name { margin-top: 2px; }
@media (max-width: 600px) { .lockup__logo--rivex { height: 88px; } .lockup__logo--r4s { height: 68px; } }

/* ---------- v5.4: brand-page headers, four pillars, in-section quote ---------- */
.brandlock { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; }
.brandlock__logo { width: auto; }
.brandlock__logo--rivex { height: 46px; }
.brandlock__logo--r4s { height: 44px; }
.brandlock__txt { display: grid; gap: 3px; padding-left: 16px; border-left: 1px solid var(--faint); }
.brandlock__txt b { font-family: var(--display); font-weight: 500; font-size: .875rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ivory); white-space: nowrap; }
.brandlock__txt i { font-style: normal; font-family: var(--display); font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.brandlock:hover .brandlock__txt b { color: var(--gold-2); }
@media (max-width: 620px) {
  .brandlock { gap: 10px; }
  .brandlock__logo--rivex { height: 34px; }
  .brandlock__logo--r4s { height: 32px; }
  .brandlock__txt { padding-left: 10px; gap: 1px; }
  .brandlock__txt b { font-size: .6875rem; letter-spacing: .14em; }
  .brandlock__txt i { display: none; }
}

.pillars__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .pillars__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pillars__grid--4 { grid-template-columns: 1fr; } }

/* quote sitting under a section's body copy */
.quote-x--lead { margin-top: clamp(26px, 3vw, 40px); }
.quote-x--lead p { font-size: clamp(1.1875rem, 1rem + .7vw, 1.75rem); }

/* Landing: lift the title line to neck height on wide screens (it clears her hands) */
@media (min-width: 861px) { .hero h1 { margin-top: clamp(190px, 33vh, 380px); } }
/* keep the title legible wherever it crosses the portrait */
.hero__titles { text-shadow: 0 2px 20px rgba(250,248,244,.9), 0 0 6px rgba(250,248,244,.7); }

/* ---------- Video: muted backdrop + In conversation clips ---------- */
.bgvideo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.bgvideo video { width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; opacity: .34; filter: grayscale(1) contrast(1.1) brightness(.95); }
.bgvideo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 12%, rgba(11,15,26,.82) 45%, rgba(11,15,26,.45) 100%), linear-gradient(180deg, var(--night), rgba(11,15,26,.25) 45%, var(--night)); }

.convo { background: var(--black); padding: clamp(40px, 4.4vw, 72px) 0; }
.convo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); max-width: 860px; }
.clip { position: relative; margin: 0; }
.clip__video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--navy); border: 1px solid rgba(20,22,27,.1); box-shadow: 0 40px 80px -34px rgba(20,22,27,0.22); }
.clip__play { position: absolute; left: 0; right: 0; top: 0; bottom: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: linear-gradient(180deg, rgba(250,248,244,.15), rgba(250,248,244,.55)); border: 0; cursor: pointer; color: var(--ivory); font-family: var(--display); font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase; transition: background .4s var(--ease); }
.clip__play i { width: 58px; height: 58px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; transition: background .4s var(--ease), transform .4s var(--ease); }
.clip__play i::after { content: ""; border-left: 13px solid var(--gold); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.clip__play:hover i { background: rgba(138,107,28,.16); transform: scale(1.06); }
.clip__play:hover { background: linear-gradient(180deg, rgba(250,248,244,.05), rgba(250,248,244,.45)); }
.clip.is-playing .clip__play { display: none; }
.clip figcaption { display: grid; gap: 4px; padding-top: 14px; }
.clip figcaption b { font-family: var(--display); font-weight: 500; font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory); }
.clip figcaption span { color: var(--mute); font-size: .875rem; }
@media (max-width: 620px) { .convo__grid { grid-template-columns: 1fr; max-width: 420px; } .clip__play span { display: none; } }
@media (prefers-reduced-motion: reduce) { .bgvideo { display: none; } }

/* ==========================================================================
   RIVEX Advisory — site-specific components
   ========================================================================== */
.brandlock { display: inline-flex; align-items: center; text-decoration: none; }
.brandlock__logo { height: 42px; width: auto; display: block; }
.hdr--nobrand .hdr__in { justify-content: flex-end; }
@media (max-width: 620px) { .brandlock__logo { height: 32px; } }

/* Home: split panel + full-height photograph */
.rhero { display: grid; grid-template-columns: minmax(0, 5.5fr) minmax(0, 6.5fr); min-height: 100svh; background: var(--black); }
.rhero__panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 40px) clamp(24px, 5vw, 96px) 40px; }
.rhero__lockup img { width: clamp(112px, 13vw, 178px); height: auto; display: block; }
.rhero__slogan { margin-top: clamp(20px, 2.4vw, 32px); font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.125rem, .9rem + .9vw, 1.75rem); line-height: 1.3; color: var(--ivory); max-width: 22ch; }
.rhero__scroll { position: absolute; left: clamp(24px, 5vw, 96px); bottom: 40px; display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: .6875rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); text-decoration: none; }
.rhero__scroll i { width: 42px; height: 1px; background: var(--gold); display: block; transition: width .5s var(--ease); }
.rhero__scroll:hover { color: var(--ivory); } .rhero__scroll:hover i { width: 62px; }
.rhero__media { position: relative; margin: 0; overflow: hidden; }
.rhero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.06); }
.rhero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--black), rgba(250,248,244,0) 32%), linear-gradient(0deg, rgba(250,248,244,.55), rgba(250,248,244,0) 45%); }
@media (max-width: 900px) {
  .rhero { grid-template-columns: 1fr; min-height: 0; }
  .rhero__panel { order: 2; padding: clamp(36px, 8vw, 64px) var(--gutter) 48px; }
  .rhero__scroll { position: static; margin-top: 32px; }
  .rhero__media { order: 1; height: 62svh; margin-top: var(--header-h); }
}

/* Home: the four words */
.rwords { background: var(--night); padding: clamp(40px, 4.4vw, 72px) 0; }
.rwords__row { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 64px); list-style: none; margin: 0; padding: 0; }
.rwords__row li { font-family: var(--serif); font-weight: 300; font-size: clamp(1.75rem, 1rem + 2.4vw, 3.25rem); line-height: 1; letter-spacing: -.02em; color: var(--ivory); }
.rwords__row li + li::before { content: "·"; color: var(--gold); margin-right: clamp(20px, 4vw, 64px); }
.rwords__note { margin-top: clamp(22px, 2.6vw, 38px); max-width: 74ch; color: var(--mute); font-size: clamp(1rem, .96rem + .2vw, 1.125rem); }
.rwords__inline { margin-top: 18px; font-family: var(--display); font-size: .8125rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

/* Inner heroes without a portrait */
.phero--plain { min-height: min(62svh, 620px); padding: calc(var(--header-h) + 48px) 0 clamp(36px, 4vw, 64px); }
.phero__copy--wide { max-width: min(880px, 92vw); }

/* The RIVEX Standard, with optional motion backdrop */
.standard { position: relative; overflow: hidden; background: var(--night); padding: clamp(40px, 4.4vw, 72px) 0; isolation: isolate; }
.standard .bgvideo video { object-position: 50% 50%; opacity: .3; }
.standard .bgvideo::after { background: linear-gradient(90deg, var(--night) 8%, rgba(11,15,26,.8) 50%, rgba(11,15,26,.55) 100%), linear-gradient(180deg, var(--night), rgba(11,15,26,.3) 45%, var(--night)); }

/* Roundtable: the practical detail */
.facts { background: var(--black); padding: clamp(40px, 4.4vw, 72px) 0; }
.facts__list { display: grid; gap: 0; margin: 0; }
.facts__list > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(16px, 3vw, 48px); padding: 22px 0; border-bottom: 1px solid var(--faint); }
.facts__list dt { font-family: var(--display); font-size: .8125rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.facts__list dd { margin: 0; color: rgba(20,22,27,.82); }
@media (max-width: 700px) { .facts__list > div { grid-template-columns: 1fr; gap: 8px; } }

/* Plain CTA (no photograph behind it) */
.cta--plain { min-height: 0; padding: clamp(46px, 5.2vw, 88px) 0; background: linear-gradient(180deg, var(--black), var(--night)); }
.cta--plain::before, .cta--plain .cta__bg { display: none; }

/* Forms */
.form-intro { margin: 18px 0 30px; color: var(--mute); max-width: 60ch; }
.form-note { margin-top: 16px; font-size: .8125rem; color: rgba(20,22,27,.45); }
.checks { display: grid; gap: 12px; margin-top: 14px; }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks label { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--faint); cursor: pointer; transition: border-color .3s var(--ease), background .3s var(--ease); }
.checks label::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border: 1px solid rgba(20,22,27,.4); }
.checks input:checked + label { border-color: var(--gold); background: rgba(138,107,28,.07); }
.checks input:checked + label::before { background: var(--gold); border-color: var(--gold); }
.checks input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 3px; }
.contact-grid--rivex { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
@media (max-width: 960px) { .contact-grid--rivex { grid-template-columns: 1fr; } }

.prose-x--wide { max-width: 78ch; }
.prose-x__more { margin-top: 24px; }
.pullquote__by { margin-top: 22px; font-family: var(--display); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.ftr__slogan { margin-top: 16px; font-family: var(--serif); font-style: italic; color: var(--mute); }

/* ---------- paper variant: adjustments the swap cannot infer ---------- */
body.cinema { background: var(--black); color: var(--ivory); }
.grain { opacity: .35; mix-blend-mode: multiply; }
.hdr.is-solid { background: rgba(250,248,244,.9); }
.phero__glow, .hero__glow { opacity: .5; }
.btn { background: var(--gold); color: #FFFBF2; border-color: var(--gold); }
.btn:hover { background: #6F5616; border-color: #6F5616; }
.btn--ghost { background: transparent; color: var(--ivory); border-color: var(--faint); }
.rhero__media img { filter: grayscale(1) contrast(1.02) brightness(1.03); }
.rhero__media::after { background: linear-gradient(90deg, var(--black), rgba(250,248,244,0) 30%), linear-gradient(0deg, rgba(250,248,244,.45), rgba(250,248,244,0) 40%); }
.phero__ghost { -webkit-text-stroke: 1px rgba(20,22,27,.13); }
.numbers__bg { -webkit-text-stroke: 1px rgba(20,22,27,.07); }
.pillar, .step, .ccard__img, .clip__video { background: rgba(255,255,255,.7); }
.pillar { border-color: var(--faint); }
.standard .bgvideo video { opacity: .22; filter: grayscale(1) contrast(1.05) brightness(1.05); }
.standard .bgvideo::after { background: linear-gradient(90deg, var(--night) 8%, rgba(241,238,231,.85) 50%, rgba(241,238,231,.6) 100%); }
.cta--plain { background: linear-gradient(180deg, var(--black), var(--night)); }
.checks input:checked + label { background: rgba(168,132,42,.1); }
.input, .select, .textarea { background: #FFFFFF; border-color: rgba(20,22,27,.22); color: var(--ivory); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); }
.ftr { background: var(--night); }
::selection { background: rgba(168,132,42,.25); }

/* ---------- The RIVEX Standard: one dark band on a light site ---------- */
.standard {
  --ivory: #F4EFE7;
  --ivory-2: #D9D2C6;
  --mute: rgba(244,239,231,.68);
  --faint: rgba(244,239,231,.16);
  --gold: #C8A23C;
  --gold-2: #E2C378;
  background: #0A0B0F;
  color: var(--ivory);
}
.standard .shead h2, .standard .dlist li { color: var(--ivory); }
.standard .dlist li { border-bottom-color: var(--faint); color: rgba(244,239,231,.82); }
.standard::before, .standard::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(200,162,60,.35); }
.standard::before { top: 0; } .standard::after { bottom: 0; }
.standard { padding: clamp(56px, 6vw, 104px) 0; }
@media (prefers-reduced-motion: reduce) { .standard .bgvideo video { display: none; } }

/* ---------- Horses: a full-width strip carrying the quote ---------- */
.hstrip {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(360px, 62vh, 620px); display: flex; align-items: flex-end;
  background: #0A0B0F; padding: clamp(36px, 5vw, 72px) 0 clamp(32px, 4vw, 60px);
  --ivory: #F4EFE7; --mute: rgba(244,239,231,.72); --gold: #C8A23C; --gold-2: #E2C378;
  color: var(--ivory);
}
.hstrip__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: grayscale(.25) contrast(1.05); }
.hstrip__scrim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(0deg, rgba(10,11,15,.9) 0%, rgba(10,11,15,.55) 34%, rgba(10,11,15,.12) 62%, rgba(10,11,15,.35) 100%),
  linear-gradient(90deg, rgba(10,11,15,.7) 0%, rgba(10,11,15,.18) 55%, rgba(10,11,15,0) 100%); }
.hstrip__quote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.375rem, .95rem + 1.7vw, 2.75rem); line-height: 1.2; letter-spacing: -.02em; color: var(--ivory); max-width: 26ch; margin-top: 18px; text-shadow: 0 2px 26px rgba(10,11,15,.85); }
.hstrip__quote em { font-style: italic; color: var(--gold-2); }
.hstrip .kicker { color: var(--gold-2); }
.hstrip .pullquote__by { color: rgba(244,239,231,.72); }
@media (prefers-reduced-motion: reduce) { .hstrip__video { display: none; } .hstrip { background: #0A0B0F url(../img/horses-poster.jpg) center/cover; } }

/* ---------- Alternative home: full-bleed footage hero ---------- */
.vhero { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; background: #0A0B0F; text-align: center;
  /* cap the height at the footage's own 16:9 so the whole frame is visible, never a tight crop */
  min-height: max(520px, min(100svh, 56.25vw)); }
.vhero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: grayscale(.3) contrast(1.05); }
.vhero__scrim { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(64% 54% at 50% 46%, rgba(10,11,15,.16), rgba(10,11,15,.62) 100%),
  linear-gradient(180deg, rgba(10,11,15,.6) 0%, rgba(10,11,15,.06) 38%, rgba(10,11,15,.42) 100%); }
.vhero__copy { display: grid; justify-items: center; }
.vhero__logo { width: clamp(108px, 12vw, 168px); height: auto; filter: drop-shadow(0 6px 30px rgba(10,11,15,.7)); }
.vhero__slogan { margin-top: clamp(22px, 2.6vw, 36px); font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.125rem, .9rem + .9vw, 1.75rem); color: #F4EFE7; text-shadow: 0 2px 24px rgba(10,11,15,.9); }
.vhero__scroll { position: absolute; left: 50%; transform: translateX(-50%); bottom: 34px; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--display); font-size: .6875rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(244,239,231,.8); text-decoration: none; }
.vhero__scroll i { width: 1px; height: 42px; background: var(--gold-2); display: block; }
/* the header sits over dark footage on this page only */
.page-index .nav a, .page-index .burger { color: #F4EFE7; }
.page-index .hdr.is-solid { background: rgba(10,11,15,.82); }
@media (prefers-reduced-motion: reduce) { .vhero__video { display: none; } .vhero { background: #0A0B0F url(../img/horses-poster.jpg) center/cover; } }

/* Alternative home on phones: the 16:9 footage sits as a band rather than a deep crop */
@media (max-width: 760px) {
  .vhero { min-height: 0; grid-template-rows: auto auto; padding-bottom: 44px; }
  .vhero__video { position: relative; inset: auto; z-index: 0; height: max(200px, 56.25vw); margin-top: var(--header-h); }
  .vhero__scrim { inset: 0 0 auto; height: calc(max(200px, 56.25vw) + var(--header-h)); z-index: 1; pointer-events: none; }
  .vhero__copy { position: relative; z-index: 2; padding-top: 34px; }
  .vhero__scroll { position: static; transform: none; margin: 30px auto 0; }
}

/* Quote band without footage behind it */
.hstrip--plain { min-height: 0; padding: clamp(46px, 5.4vw, 84px) 0; display: block; }
.hstrip--plain .hstrip__quote { text-shadow: none; }

/* Our Story: the platform photograph beside the heading */
.ostory__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ostory__photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--faint); }
.ostory__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; filter: grayscale(1) contrast(1.04); }
@media (max-width: 900px) { .ostory__grid { grid-template-columns: 1fr; } .ostory__photo { aspect-ratio: 3 / 2; } }

/* ---------- Ishara's final round ---------- */
/* menu: one step larger and higher contrast */
.nav a:not(.btn) { font-size: .875rem; letter-spacing: .18em; color: var(--ivory); }
.page-index .nav a:not(.btn) { color: #F7F3EC; text-shadow: 0 1px 12px rgba(10,11,15,.6); }
.burger { font-size: .875rem; }

/* logo: larger in the header and the footer */
.brandlock__logo { height: 54px; }
@media (max-width: 620px) { .brandlock__logo { height: 40px; } }
.ftr .brandlock__logo { height: 62px; }

/* footer: the Hours column matches Practice and Engage */
.ftr ul li { color: var(--mute); font-size: .9375rem; }

/* RIVEX picked out of Risk / Insight / Value / Expertise */
.rwords__row b { font-weight: 400; color: var(--gold); }
.rwords__inline b { font-weight: 600; color: inherit; }

/* About: portrait beside the opening copy */
.phero__split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.phero__copy--withimg { max-width: none; }
.phero__portrait { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--faint); }
.phero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 18%); }
@media (max-width: 900px) { .phero__split { grid-template-columns: 1fr; } .phero__portrait { display: none; } }

/* Get in touch: same heading scale as other sections, tighter band */
.cta--plain { padding: clamp(38px, 4.2vw, 64px) 0; }
.cta__head { font-size: clamp(1.625rem, 1.05rem + 1.9vw, 2.875rem) !important; max-width: none; margin-top: 0 !important; }
.cta--plain p { margin-top: 18px; }
.cta--plain .btn { margin-top: 28px; }

/* Services: disciplines sit closer to the opening */
.pillars--tight { padding-top: clamp(20px, 2.2vw, 34px); }
