/* Stonebridge Advisory: revamp prototype (Nov 2026) */
:root {
  --red: #993333;
  --red-700: #7a2828;
  --red-900: #4c1919;
  --alabaster: #f1f2eb;
  --alabaster-200: #e6e7de;
  --cream: #f8f1e6;      /* Stonebridge brown-50: warm cream, used for the home Capella section only (client, 5 Nov 2026) */
  --cream-200: #efe5d3;  /* deeper cream for alternating bands */
  --black: #07090f;
  --grey: #5c6c76;
  --grey-700: #3f4a52;
  --brown: #ae803b;
  --gold: linear-gradient(90deg, #a98043 0%, #c0a15e 24%, #f3e999 56%, #a98043 100%);
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--alabaster);
  color: var(--black);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 18px;
  font: 500 12px/1.4 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow--light { color: rgba(241, 242, 235, .78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font: 500 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 0;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 12px; }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { filter: brightness(1.05); }
.btn--light { background: var(--alabaster); color: var(--black); }
.btn--light:hover { background: #fff; }
.btn--ghost { border-color: rgba(241, 242, 235, .7); color: var(--alabaster); }
.btn--ghost:hover { background: rgba(241, 242, 235, .12); }
.btn--red { background: var(--red); color: var(--alabaster); }
.btn--red:hover { background: var(--red-700); }
.btn--outline { border-color: var(--black); color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--alabaster); }

/* ---------- Logo mark ---------- */
.mark { display: block; overflow: visible; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  overflow: hidden; background: var(--red);
  display: none;
}
.intro-pending .intro, .intro-playing .intro { display: block; }
body.intro-pending, body.intro-playing { overflow: hidden; }
.intro__ground { position: absolute; inset: 0; background: var(--red); }
.intro__trace { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
/* Light sweep: one registered custom property drives both the reveal mask and the band of light */
@property --sweep { syntax: '<percentage>'; inherits: true; initial-value: 100%; }
.intro__stage { position: absolute; inset: 0; --sweep: 100%; }
.intro__scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.intro__reveal {
  position: absolute; inset: 0; background: var(--red);
  -webkit-mask-image: linear-gradient(135deg, #000 46%, transparent 54%);
          mask-image: linear-gradient(135deg, #000 46%, transparent 54%);
  -webkit-mask-size: 300% 300%; mask-size: 300% 300%;
  -webkit-mask-position: var(--sweep) var(--sweep); mask-position: var(--sweep) var(--sweep);
}
.intro__reveal .intro__trace { opacity: 1; }
.intro__light {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(135deg, transparent 43%, rgba(255, 236, 196, 0) 45%, rgba(255, 236, 196, .42) 50%, rgba(255, 236, 196, 0) 55%, transparent 57%);
  background-size: 300% 300%;
  background-position: var(--sweep) var(--sweep);
}
/* Portrait screens: keep the whole two-arch composition as a band on red */
@media (max-aspect-ratio: 1/1) {
  .intro .intro__scene { object-fit: contain; }
}
.intro__curtain { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--red); }
.intro__curtain--top { top: 0; }
.intro__curtain--bottom { bottom: 0; }
.intro__rule {
  position: absolute; left: 50%; top: 50%;
  width: 140px; height: 2px; margin: -1px 0 0 -70px;
  background: var(--gold); transform: scaleX(0);
}
.intro__lockup {
  position: absolute; left: 50%; top: 50%;
  width: min(300px, 62vw);
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.intro__mark { width: 100%; height: auto; opacity: 0; transform-origin: 0 0; }
.intro__word {
  margin-top: 6%;
  display: flex; flex-direction: column; align-items: center;
  font: 700 clamp(19px, 4.6vw, 27px)/1.12 var(--serif);
  color: var(--alabaster);
}
.intro__word span { display: block; opacity: 0; }
.intro__word .w1 { letter-spacing: .06em; }
.intro__word .w2 { letter-spacing: .33em; margin-right: -.33em; }
.intro__skip {
  position: absolute; right: var(--gutter); bottom: 28px;
  background: none; border: 0; padding: 8px 0;
  font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: rgba(241, 242, 235, .75); cursor: pointer;
}
.intro__skip:hover { color: var(--alabaster); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--gutter);
  color: var(--alabaster);
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-solid { background: rgba(241, 242, 235, .96); color: var(--black); box-shadow: 0 1px 0 rgba(7, 9, 15, .08); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 52px; height: auto; }
.brand__word { display: flex; flex-direction: column; font: 700 14px/1.1 var(--serif); }
.brand__word span:first-child { letter-spacing: .06em; }
.brand__word span:last-child { letter-spacing: .33em; font-size: 11.5px; }
.nav { display: flex; gap: 28px; }
.nav a { font: 400 13px/1 var(--sans); letter-spacing: .06em; text-decoration: none; opacity: .88; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.intro-pending .site-header .brand, .intro-playing .site-header .brand { opacity: 0; }
.site-header .brand { transition: opacity .5s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--alabaster); overflow: hidden;
  background: var(--red-900);
}
.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(1.08); animation: kenburns 24s var(--ease) forwards; }
/* Film keeps the bridge on the right: anchor the crop left so the headline never sits on the bridge */
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
/* When the film ends, a sharp still of its last frame fades in on top (same crop, so nothing moves) */
.hero__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; opacity: 0; transition: opacity .6s var(--ease); }
.hero__still.is-on { opacity: 1; }
@keyframes kenburns { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 15, .5) 0%, rgba(7, 9, 15, 0) 22%),
    linear-gradient(90deg, rgba(7, 9, 15, .72) 0%, rgba(7, 9, 15, .4) 38%, rgba(7, 9, 15, 0) 62%),
    linear-gradient(0deg, rgba(7, 9, 15, .55) 0%, rgba(7, 9, 15, 0) 45%);
}
.hero__content { position: relative; padding: 0 var(--gutter) clamp(72px, 12vh, 128px); max-width: 820px; text-shadow: 0 1px 18px rgba(7, 9, 15, .35); }
/* Always exactly two lines: each line is held together and the size follows the screen width */
/* SEO: the small kicker is the H1; the big line keeps the headline look */
.hero__kicker { margin: 0 0 18px; font: 500 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(241, 242, 235, .85); }
.hero__title { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; font-size: min(72px, 8.2vw); line-height: 1.06; margin-bottom: 24px; }
.hero__title > span { display: block; white-space: nowrap; }
/* Phones: three lines ("Every ambition / needs a way / across.") so the type can be larger */
@media (max-width: 600px) {
  .hero__title { font-size: min(52px, 11vw); }
  .hero__title .hero__brk { display: block; }
}
.hero__lead { max-width: 520px; margin: 0 0 32px; font-weight: 300; font-size: clamp(15px, 1.3vw, 17px); color: rgba(241, 242, 235, .9); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 40px; width: 1px; height: 64px; background: rgba(241, 242, 235, .35); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--alabaster); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Flagship (Capella) on warm Stonebridge cream (client request, 5 Nov 2026) ---------- */
.flagship {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(72px, 11vw, 140px) var(--gutter);
  background: var(--cream); color: var(--black);
}
.flagship .eyebrow { color: var(--red); }
.flagship h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.1; margin-bottom: 20px; }
.flagship h2 em { color: var(--red); }
.flagship__text > p:not(.eyebrow) { max-width: 460px; margin: 0 0 28px; color: var(--grey-700); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin: 0 0 36px; padding: 20px 0; border-top: 1px solid #e0d3bd; border-bottom: 1px solid #e0d3bd; }
.facts dt { font: 500 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.facts dd { margin: 4px 0 0; font: 400 16px/1.3 var(--serif); }
.flagship__media { margin: 0; min-width: 0; }
.flagship__media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 24px 48px rgba(76, 25, 25, .14); }
.flagship__media figcaption { margin-top: 10px; font: 400 12px/1.4 var(--sans); letter-spacing: .04em; color: var(--grey); }

/* ---------- The Build ---------- */
.build { position: relative; height: 520vh; background: var(--red); }
.build__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.build__stage { position: absolute; inset: 0; }
.frame { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.frame[data-k="0"] { opacity: 1; }
/* Red-print: ink drawing inverted and screened onto Stonebridge Red */
.frame--print { background: var(--red); }
.frame--print img { filter: grayscale(1) invert(1) contrast(1.15); mix-blend-mode: screen; opacity: .92; }
.build__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 9, 15, .82) 0%, rgba(7, 9, 15, .6) 38%, rgba(7, 9, 15, .22) 64%, rgba(7, 9, 15, 0) 84%); opacity: var(--shade, 0); transition: opacity .4s; }
.chapters { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(440px, 40vw); height: 400px; }
.chapter { position: absolute; inset: 0; color: var(--alabaster); text-shadow: 0 1px 14px rgba(7, 9, 15, .45); opacity: 0; transform: translateY(24px); transition: opacity .2s var(--ease), transform .2s var(--ease); pointer-events: none; }
/* the outgoing chapter clears quickly, the incoming one fades in just after, so the two texts never overlap */
.chapter.is-active { opacity: 1; transform: none; pointer-events: auto; transition: opacity .5s var(--ease) .2s, transform .5s var(--ease) .2s; }
.chapter .eyebrow { color: #f3e999; }
.chapter h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin-bottom: 18px; }
.chapter p { margin: 0 0 22px; font-weight: 300; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 7px 12px; border: 1px solid rgba(241, 242, 235, .45); background: rgba(7, 9, 15, .25); text-shadow: none; font: 400 12px/1 var(--sans); letter-spacing: .04em; }
.build__index { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; color: var(--alabaster); }
.build__index li { font: 400 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .45; transition: opacity .3s; text-align: right; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.build__index li span { font-family: var(--serif); margin-right: 8px; }
.build__index li.is-active { opacity: 1; }
.build__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(241, 242, 235, .15); }
.build__progress span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Closing ---------- */
.closing { padding: clamp(96px, 14vw, 180px) var(--gutter); text-align: center; background: var(--alabaster); }
.gold-rule { width: 96px; height: 2px; margin: 0 auto 36px; background: var(--gold); }
.closing h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.12; margin-bottom: 20px; }
@media (max-width: 600px) { .closing h2 br { display: none; } .closing h2 { text-wrap: balance; } }
.closing p { color: var(--grey-700); margin: 0 auto 36px; max-width: 520px; }
.closing__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.site-footer { padding: 28px var(--gutter) 36px; border-top: 1px solid #d4d5cb; font-size: 13px; color: var(--grey); }
.site-footer p { margin: 0 0 4px; }
.proto-note { font-style: italic; }

.proto-bar { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; gap: 4px; }
.proto-bar button {
  padding: 9px 12px; border: 0; background: rgba(7, 9, 15, .72); color: var(--alabaster);
  font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .site-header { gap: 12px; }
  .brand__mark { width: 42px; }
  .brand__word { font-size: 12px; }
  .brand__word span:last-child { font-size: 10px; }
  .site-header .btn--sm { padding: 0 12px; font-size: 11px; letter-spacing: .08em; }
  .flagship { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, auto); gap: 8px 20px; }
  .frame img { object-position: 72% 50%; }
  .build__shade { background: linear-gradient(0deg, rgba(7, 9, 15, .88) 0%, rgba(7, 9, 15, .66) 46%, rgba(7, 9, 15, .24) 70%, rgba(7, 9, 15, 0) 88%); }
  .hero__shade { background: linear-gradient(180deg, rgba(7, 9, 15, .5) 0%, rgba(7, 9, 15, 0) 18%), linear-gradient(0deg, rgba(7, 9, 15, .85) 0%, rgba(7, 9, 15, .55) 50%, rgba(7, 9, 15, .1) 80%); }
  .chapters { left: var(--gutter); right: var(--gutter); top: auto; bottom: 40px; transform: none; width: auto; height: 340px; }
  .chapter { top: auto; }
  .chapter h2 { font-size: 28px; }
  .chapter p { font-size: 14px; }
  .build__index { top: calc(var(--header-h) + 20px); transform: none; gap: 8px; }
  .build__index li { font-size: 10px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__video, .hero__still { object-position: 84% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img { animation: none; transform: none; }
  .hero__scroll span { animation: none; }
  .chapter { transition: none; }
}

.email { color: var(--black); font-weight: 500; user-select: all; overflow-wrap: anywhere; }

.chapter__more { display: inline-block; margin-top: 18px; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #f3e999; text-decoration: none; }
.chapter__more:hover { text-decoration: underline; text-underline-offset: 5px; }
