/* Concept V: Marble & Light. Palette for this concept only (client moodboards). */
:root {
  --ivory: #F4EFE3;
  --cream: #EFE6D2;
  --ink: #141912;      /* olive-black */
  --olive: #2F3B25;    /* wordmark */
  --gold: #C9A45C;
  --gold-hi: #E8CB86;
  --ink-soft: rgba(20, 25, 18, .72);
  --fh: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --fb: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ivory); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--fb);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.record, html.record body { overflow: hidden; scrollbar-width: none; }
html.record::-webkit-scrollbar { display: none; }

a { color: inherit; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }

.fallback { display: none; }
html.no-webgl #gl { display: none; }
html.no-webgl .fallback {
  display: flex; position: fixed; inset: 0; z-index: 0; align-items: center; justify-content: center;
  background: var(--ivory);
}
html.no-webgl .fallback img { height: 78vh; width: auto; opacity: .9; }

.story { position: relative; z-index: 3; height: 700vh; }
html.no-webgl .story, html.no-webgl .ch { position: static; height: auto; opacity: 1 !important; visibility: visible !important; }

/* ---------- layers ---------- */
.layer { position: fixed; inset: 0; z-index: 1; opacity: 0; pointer-events: none; }
.layer--dark {
  background:
    radial-gradient(120% 90% at 70% 40%, rgba(47, 59, 37, .55), transparent 60%),
    var(--ink);
}
.layer--cream {
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(232, 203, 134, .18), transparent 60%),
    linear-gradient(180deg, var(--ivory), var(--cream));
}

/* ---------- gold light line ---------- */
.sweep {
  position: fixed; left: 50%; top: 50%; z-index: 2;
  width: 320vmax; height: 0; pointer-events: none; opacity: 0;
  will-change: transform, opacity;
}
.sweep > span { position: absolute; left: 0; right: 0; }
.sweep__glow {
  top: -90px; height: 180px;
  background: linear-gradient(180deg, transparent, rgba(232, 203, 134, .16) 38%, rgba(232, 203, 134, .34) 50%, rgba(232, 203, 134, .16) 62%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 42%, #000 58%, transparent 82%);
  mask-image: linear-gradient(90deg, transparent 18%, #000 42%, #000 58%, transparent 82%);
}
.sweep__line {
  top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent 12%, rgba(201, 164, 92, .9) 32%, #FFF4D6 50%, rgba(201, 164, 92, .9) 68%, transparent 88%);
  box-shadow: 0 0 10px 1px rgba(232, 203, 134, .75), 0 0 34px 4px rgba(232, 203, 134, .35);
}
.sweep__glint {
  left: calc(50% + var(--g, 0px)) !important; right: auto !important;
  top: -70px; width: 140px; height: 140px; margin-left: -70px;
  background: radial-gradient(circle, rgba(255, 250, 235, 1) 0, rgba(255, 236, 190, .85) 6%, rgba(232, 203, 134, .35) 22%, transparent 60%);
}
.sweep__glint::after {
  content: ""; position: absolute; left: -110px; right: -110px; top: 69px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 214, .9), transparent);
}

/* ---------- top bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 clamp(16px, 3vw, 40px);
  color: var(--olive);
  transition: color .5s ease, background-color .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.bar__logo {
  font-family: var(--fh); font-weight: 500; font-size: 23px; letter-spacing: .34em;
  text-decoration: none; color: inherit; padding-left: .02em;
}
.bar__nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.bar__link { font-size: 13px; letter-spacing: .04em; text-decoration: none; opacity: .85; }
.bar__link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.bar--dark { color: var(--ivory); background-color: rgba(20, 25, 18, .55); border-bottom-color: rgba(201, 164, 92, .18); backdrop-filter: blur(8px); }
.bar--dark .pill { color: var(--gold-hi); border-color: var(--gold); }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .7em;
  border: 1px solid var(--gold); border-radius: 999px;
  padding: 14px 26px; color: var(--olive);
  font-family: var(--fb); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color .3s ease, color .3s ease;
}
.pill b { font-weight: 400; letter-spacing: 0; font-size: 15px; }
.pill:hover { background: var(--gold); color: var(--ink); }
.pill--small { padding: 9px 18px; font-size: 11px; letter-spacing: .14em; }
.pill--solid { background: var(--olive); border-color: var(--olive); color: var(--ivory); }
.pill--solid:hover { background: var(--ink); color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- chapters ---------- */
.ch {
  position: fixed; inset: 0; opacity: 0; visibility: hidden;
  pointer-events: none;
}
.ch.is-on { visibility: visible; }
.ch.is-live a { pointer-events: auto; }

.num {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin: 0; font-family: var(--fh); font-size: 30px; font-weight: 500; color: #9C7A3A;
  letter-spacing: .04em;
}
.num span { display: block; width: 64px; height: 1px; background: var(--gold); }
.num--left { justify-content: flex-start; }
.num--left span:first-child { width: 40px; }
.num--gold { color: var(--gold-hi); }

h1, h2, h3 { font-family: var(--fh); font-weight: 400; margin: 0; }
h2 em, h1 em { font-style: italic; }
.body { font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 30em; margin: 0; }
.body--center { margin: 14px auto 0; text-align: center; }

/* hero */
.ch--hero .num { position: absolute; top: 88px; left: 0; right: 0; }
.mark { position: absolute; left: 0; right: 0; bottom: 5.5vh; text-align: center; }
.wordmark {
  display: inline-block; position: relative;
  font-family: var(--fh); font-weight: 500; color: var(--olive);
  font-size: clamp(54px, 8.6vw, 128px); line-height: 1; letter-spacing: .17em;
  margin: 0 -.17em 0 0;
}
.wordmark__a { position: relative; display: inline-block; }
.swash {
  position: absolute; left: -.12em; top: .40em; width: 1.02em; height: .51em;
  fill: var(--gold); overflow: visible;
  filter: drop-shadow(0 0 3px rgba(232, 203, 134, .6));
}
.tagline {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  margin: 14px 0 0; font-family: var(--fh); font-weight: 500; color: #9C7A3A;
  font-size: clamp(17px, 2vw, 26px); letter-spacing: .2em;
}
.tagline span { display: block; width: clamp(40px, 7vw, 110px); height: 1px; background: var(--gold); }
.cue {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: 28px; margin: 0;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft);
  writing-mode: vertical-rl;
}
.cue::after { content: ""; display: block; width: 1px; height: 46px; margin: 12px auto 0; background: var(--gold); }

/* side text chapters */
.ch--side {
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: 0 0 0 clamp(16px, 7vw, 120px);
}
.ch--side h2 { font-size: clamp(42px, 5vw, 76px); line-height: 1.02; color: var(--olive); }
.ch--side h2 em { color: #8A6A2E; }
.ch--side .body { max-width: 25em; }

/* wordmark chapter */
.ch--word .num { position: absolute; top: 88px; left: 0; right: 0; }
.word-foot { position: absolute; left: 0; right: 0; bottom: 7vh; padding: 0 16px; }

/* photo chapters */
.ch--photo { color: var(--ivory); overflow: hidden; }
.photo__bg { position: absolute; inset: -8%; opacity: .5; }
.photo__bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: blur(36px) brightness(.32) saturate(.8);
  transform: scale(calc(1.05 + var(--k, 0) * .08));
}
.photo__grid {
  position: relative; height: 100%;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(24px, 6vw, 110px);
  padding: 68px clamp(16px, 7vw, 120px) 0;
}
.ch--flip .photo__grid { grid-template-columns: 1fr 1.05fr; }
.ch--flip .panel { order: -1; }
.photo__text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.photo__text > * {
  opacity: var(--e, 0);
  transform: translateY(calc((1 - var(--e, 0)) * 26px));
}
.photo__text h2 { font-size: clamp(38px, 4.5vw, 70px); line-height: 1.03; color: var(--ivory); letter-spacing: -.005em; }
.photo__text h2 em { color: var(--gold-hi); }
.caps {
  margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
  line-height: 2;
}
.caps i { font-style: normal; color: var(--gold-hi); padding: 0 .35em; }
.photo__text .body { color: rgba(244, 239, 227, .7); }
.photo__text .pill { color: var(--gold-hi); }

.panel {
  --dir: 1;
  position: relative; margin: 0; justify-self: center;
  height: min(74vh, 640px); aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  transform:
    perspective(1500px)
    translateY(calc((1 - var(--e, 0)) * 16vh - var(--x, 0) * 10vh))
    rotateY(calc(((1 - var(--e, 0)) * -30deg + var(--x, 0) * 16deg) * var(--dir)))
    rotateX(calc((1 - var(--e, 0)) * 9deg - var(--x, 0) * 4deg))
    scale(calc(.9 + var(--e, 0) * .1));
  opacity: calc(var(--e, 0) * 1.4 - var(--x, 0));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}
.ch--flip .panel { --dir: -1; }
.panel::before {
  content: ""; position: absolute; inset: -14px; border: 1px solid rgba(201, 164, 92, .45); pointer-events: none;
}
.panel::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--gold); pointer-events: none;
}
.panel__img { position: absolute; inset: 0; overflow: hidden; background: #0e110c; }
.panel__img img {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; display: block;
  transform: translateY(calc((var(--k, 0) - .5) * -9%)) scale(calc(1.04 + var(--k, 0) * .14));
  filter: saturate(.92) contrast(1.04);
}
.panel__img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(10, 12, 9, .55));
}
.panel__sweep { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.panel__sweep::after {
  content: ""; position: absolute; top: -30%; left: -70%; width: 55%; height: 160%;
  background: linear-gradient(90deg, transparent, rgba(232, 203, 134, .10) 35%, rgba(255, 240, 205, .75) 50%, rgba(232, 203, 134, .10) 65%, transparent);
  mix-blend-mode: screen;
  transform: translateX(calc(var(--s, 0) * 330%)) rotate(18deg);
}

/* promises + CTA */
.ch--promise {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  padding: 80px clamp(16px, 6vw, 100px) 40px; text-align: center; color: var(--ink);
}
.ch--promise h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; color: var(--olive); }
.ch--promise h2 em { color: #8A6A2E; }
.cards {
  list-style: none; margin: 8px 0 0; padding: 0; width: 100%; max-width: 1180px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: left;
}
.card {
  position: relative; padding: 28px 24px 30px;
  border: 1px solid rgba(201, 164, 92, .55);
  background: linear-gradient(180deg, rgba(255, 252, 244, .7), rgba(244, 239, 227, .35));
  opacity: var(--c, 0); transform: translateY(calc((1 - var(--c, 0)) * 36px));
}
.card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-hi), var(--gold)); }
.card__n { display: block; font-family: var(--fh); font-style: italic; font-size: 26px; color: var(--gold); margin-bottom: 18px; }
.card h3 { font-size: 25px; line-height: 1.12; color: var(--olive); margin-bottom: 12px; font-weight: 500; }
.card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; opacity: var(--c5, 0); transform: translateY(calc((1 - var(--c5, 0)) * 20px)); }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .bar { height: 58px; }
  .bar__logo { font-size: 19px; letter-spacing: .28em; }
  .bar__link { display: none; }
  .ch--hero .num, .ch--word .num { top: 76px; }
  .num { font-size: 24px; gap: 16px; }
  .num span { width: 44px; }
  .mark { bottom: 7vh; }
  .wordmark { font-size: 15vw; letter-spacing: .14em; margin-right: -.14em; }
  .cue { display: none; }
  .ch--side { justify-content: flex-start; padding: 22vh 20px 0; gap: 16px; }
  .ch--side h2 { font-size: 40px; }
  .ch--side .body { font-size: 14px; }
  .photo__grid, .ch--flip .photo__grid {
    grid-template-columns: 1fr; align-content: start; gap: 26px; padding: 76px 16px 0;
  }
  .panel, .ch--flip .panel { order: -1; height: 40vh; width: calc(100vw - 48px); aspect-ratio: auto; }
  .panel::before { inset: -8px; }
  .photo__text { gap: 14px; }
  .photo__text h2 { font-size: 34px; }
  .photo__text .body { font-size: 13.5px; line-height: 1.6; }
  .caps { font-size: 10px; letter-spacing: .18em; line-height: 1.8; }
  .ch--promise { justify-content: flex-start; gap: 18px; padding: 74px 16px 24px; }
  .ch--promise .num { display: none; }
  .ch--promise h2 { font-size: 30px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 14px 13px 16px; }
  .card__n { font-size: 18px; margin-bottom: 6px; }
  .card h3 { font-size: 18px; margin-bottom: 6px; }
  .card p { font-size: 12px; line-height: 1.45; }
  .cta { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .cta .pill { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .panel { transform: none; }
  .panel__img img { transform: scale(1.06); }
  .sweep__glint { display: none; }
}
