/* =====================================================================
   jeanpaulszita.com
   ---------------------------------------------------------------------
   A private monograph. Cinematic city hero with the portrait merged
   into the scene, editorial chapters with rail numerals and drop caps,
   photo interludes, a cream band with a gilt ledger card, a dark
   conviction band signed like a letter, and a correspondence spread
   modeled on the Vallarta "request a call" layout.
   Display: Cormorant Garamond.  Body: Newsreader.
   Gold is the only ornament. Everything else is light and shadow.
   ===================================================================== */

:root {
  /* paper + ink */
  --paper:      #F6F3EC;
  --paper-hi:   #FBF9F4;
  --cream:      #EFE9DD;
  --ink:        #20242C;
  --ink-soft:   #3A3F49;
  --muted:      #797D87;

  /* the dark plates */
  --plate:      #0E1219;
  --plate-2:    #161D2B;
  --plate-3:    #1B2434;

  /* gold, three temperatures */
  --gold:        #C2A165;
  --gold-bright: #E3CA94;
  --gold-deep:   #97793F;
  --gold-soft:   rgba(194, 161, 101, 0.32);
  --gold-faint:  rgba(194, 161, 101, 0.14);
  --foil: linear-gradient(115deg, #8E7038 0%, #C2A165 28%, #EFDDAE 50%, #C2A165 72%, #8E7038 100%);

  /* on-dark text */
  --on-dark:       #EDE8DC;
  --on-dark-soft:  rgba(237, 232, 220, 0.80);
  --on-dark-dim:   rgba(237, 232, 220, 0.55);

  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body:    'Newsreader', Georgia, 'Times New Roman', serif;

  --ease-out:  cubic-bezier(0.19, 1, 0.22, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--body);
  font-optical-sizing: auto;
  font-weight: 380;
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(194, 161, 101, 0.30); color: var(--ink); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #11151D; }
::-webkit-scrollbar-thumb { background: #2C3340; border-radius: 6px; border: 2px solid #11151D; }
::-webkit-scrollbar-thumb:hover { background: #3A4252; }

a {
  color: var(--gold-deep);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 96%;
  background-repeat: no-repeat;
  transition: color 0.35s var(--ease-soft), background-size 0.35s var(--ease-soft);
}
a:hover { color: var(--gold); }

/* ------------------------------------------------------------------ */
/*  Atmosphere: film grain + reading progress                          */
/* ------------------------------------------------------------------ */

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 80;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 90;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--foil);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ------------------------------------------------------------------ */
/*  HERO — cinematic plate                                             */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: clamp(580px, 78vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--plate);
  border-bottom: 1px solid rgba(194, 161, 101, 0.28);
}

/* the city, slowly settling */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-city.webp');
  background-size: cover;
  background-position: center 30%;
  animation: hero-settle 4.5s var(--ease-out) forwards;
}
@keyframes hero-settle {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

/* tonal veil: readable left, cinematic right, grounded bottom */
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 14, 21, 0.93) 0%, rgba(11, 14, 21, 0.78) 30%, rgba(11, 14, 21, 0.35) 58%, rgba(11, 14, 21, 0.25) 100%),
    linear-gradient(180deg, rgba(11, 14, 21, 0.40) 0%, rgba(11, 14, 21, 0) 30%, rgba(11, 14, 21, 0) 60%, rgba(11, 14, 21, 0.72) 100%);
}

/* the portrait, merged into the scene on the right */
.hero__figure {
  position: absolute;
  right: clamp(0px, 4vw, 90px);
  bottom: 0;
  top: clamp(40px, 8vh, 90px);
  width: min(46vw, 560px);
  margin: 0;
}
.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  /* cinematic grade (cool tint, lowered contrast, feathered edge, bottom
     dissolve) is baked into jpszita-hero.webp, so no CSS filter/mask here:
     a transparent cutout has no rectangle edge to hide. */
}
/* soft bottom scrim only, to ground the figure in the scene (no top edge to seam) */
.hero__figure::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 14, 21, 0) 60%, rgba(11, 14, 21, 0.85) 100%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: clamp(80px, 11vh, 120px) 0 clamp(90px, 12vh, 130px);
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(24px, 3.5vh, 38px);
}
.hero__kicker-rule {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(194, 161, 101, 0));
  flex: none;
}

.hero__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(54px, 7.6vw, 104px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  color: #F4F0E6;
  text-shadow: 0 2px 30px rgba(11, 14, 21, 0.55);
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__line-inner { display: inline-block; }
.hero__line:last-child .hero__line-inner {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero__rule {
  width: 76px;
  height: 1px;
  margin: clamp(26px, 3.5vh, 40px) 0;
  background: linear-gradient(90deg, var(--gold), rgba(194, 161, 101, 0));
}

.hero__quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.42;
  color: var(--on-dark-soft);
  max-width: 19em;
  text-shadow: 0 1px 18px rgba(11, 14, 21, 0.6);
}

/* --- scroll cue --- */

.hero__scrollcue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(18px, 3.5vh, 36px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  color: var(--on-dark-dim);
}
.hero__scrollcue:hover { color: var(--gold); }
.hero__scrollcue-label {
  font-size: 10.5px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  padding-left: 0.5em; /* optically recenter the tracked text */
}
.hero__scrollcue-line {
  width: 1px;
  height: 44px;
  overflow: hidden;
  position: relative;
  background: rgba(237, 232, 220, 0.14);
}
.hero__scrollcue-line::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  animation: cue 2.4s var(--ease-soft) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* --- hero entrance choreography --- */

.e {
  opacity: 0;
  transform: translateY(26px);
  animation: enter 1.3s var(--ease-out) forwards;
}
.e-line {
  display: inline-block;
  transform: translateY(118%);
  animation: enter-line 1.25s var(--ease-out) forwards;
}
.e-fig {
  opacity: 0;
  transform: translateX(34px);
  animation: enter-fig 1.8s var(--ease-out) 0.5s forwards;
}

.e-1 { animation-delay: 0.20s; }
.e-2 { animation-delay: 0.42s; }
.e-3 { animation-delay: 0.58s; }
.e-4 { animation-delay: 0.95s; }
.e-5 { animation-delay: 1.12s; }
.e-6 { animation-delay: 1.9s; }

@keyframes enter      { to { opacity: 1; transform: translateY(0); } }
@keyframes enter-line { to { transform: translateY(0); } }
@keyframes enter-fig  { to { opacity: 1; transform: translateX(0); } }

/* ------------------------------------------------------------------ */
/*  CHAPTERS                                                           */
/* ------------------------------------------------------------------ */

.chapter {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(88px, 12vh, 150px) clamp(22px, 4vw, 48px);
  overflow-x: clip; /* contain the bleeding ghost numeral so it can't pan the page sideways on mobile */
}

/* rail + body editorial grid */
.chapter__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 150px minmax(0, 680px);
  justify-content: center;
  column-gap: clamp(28px, 4vw, 64px);
}
.chapter__layout--mirror { grid-template-columns: minmax(0, 680px) 150px; }
.chapter__layout--mirror .chapter__rail { order: 2; align-items: flex-start; }
.chapter__layout--mirror .chapter__body { order: 1; }

.chapter__rail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  padding-top: 6px;
}
.chapter__rail-num {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 6vw, 92px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}
.chapter__rail-line {
  width: 1px;
  flex: 1;
  min-height: 90px;
  background: linear-gradient(180deg, var(--gold-soft), rgba(194, 161, 101, 0));
}

.chapter__body {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.chapter__body--center { margin: 0 auto; text-align: center; }

.chapter__body p + p { margin-top: 1.6em; }

/* huge ghosted roman numeral */
.chapter__numeral {
  position: absolute;
  z-index: 1;
  top: clamp(40px, 6vh, 80px);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(180px, 24vw, 340px);
  line-height: 1;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.09;
  user-select: none;
  pointer-events: none;
}
.chapter__numeral--right { right: clamp(-10px, 1vw, 40px); }
.chapter__numeral--left  { left: clamp(-10px, 1vw, 40px); }
.chapter__numeral--on-dark { opacity: 0.07; }

/* chapter kicker: small caps with rule */
.chapter__kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: clamp(34px, 5vh, 52px);
}
.chapter__kicker::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-soft), rgba(194, 161, 101, 0));
}
.chapter__kicker--on-dark { color: var(--gold); }
.chapter__kicker--center { justify-content: center; }
.chapter__kicker--center::before {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, rgba(194, 161, 101, 0), var(--gold-soft));
}

/* the signature line that opens each chapter */
.lede {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.28;
  letter-spacing: 0.002em;
  color: var(--ink);
  margin-bottom: 1.1em;
}
.lede--gold {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* illuminated drop cap on the first paragraph */
.has-dropcap::first-letter {
  font-family: var(--display);
  font-weight: 500;
  font-size: 3.6em;
  line-height: 0.8;
  float: left;
  padding: 0.08em 0.14em 0 0;
  color: var(--gold-deep);
}

/* typewriter ledes (structure built by js/main.js) */
[data-type] { position: relative; }
.tw { position: relative; display: block; }
.tw__ghost { visibility: hidden; }
.tw__live { position: absolute; inset: 0; }
.tw__live::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.82em;
  margin-left: 4px;
  vertical-align: -0.06em;
  background: var(--gold);
  animation: caret-blink 0.9s steps(1) infinite;
}
.is-done .tw__live::after { display: none; }
@keyframes caret-blink { 50% { opacity: 0; } }

/* a sentence worth lingering on */
.key {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.12em;
  color: var(--gold-deep);
}
.key--on-dark { color: var(--gold-bright); }

/* ------------------------------------------------------------------ */
/*  INTERLUDES — full-bleed cinematic breaks                           */
/* ------------------------------------------------------------------ */

/* The "window onto a fixed photo" effect. background-attachment: fixed is
   broken on iOS/Android, so instead each interlude clips a viewport-fixed
   ::before layer — same effect, works on every device. */
.interlude {
  position: relative;
  height: clamp(380px, 58vh, 580px);
  clip-path: inset(0);
  border-top: 1px solid rgba(194, 161, 101, 0.18);
  border-bottom: 1px solid rgba(194, 161, 101, 0.18);
}
.interlude::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
/* NOTE: photo urls live here (not in custom properties) — url() inside a
   var() resolves against this css file in Chromium and 404s. */
.interlude--compass::before { background-image: url('../images/interlude-compass.webp'); }
.interlude--towers::before  { background-image: url('../images/interlude-towers.webp'); }
.interlude--horizon::before { background-image: url('../images/interlude-horizon.webp'); }

/* legibility overlay above the photo, below the caption */
.interlude::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 15, 21, 0.62) 0%, rgba(11, 15, 21, 0.18) 38%, rgba(11, 15, 21, 0.20) 62%, rgba(11, 15, 21, 0.68) 100%);
}

.interlude__caption {
  z-index: 2;
  position: absolute;
  left: 50%;
  bottom: clamp(34px, 6vh, 56px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: 0 1px 14px rgba(11, 15, 21, 0.8);
}
.interlude__line {
  width: clamp(28px, 6vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, rgba(227, 202, 148, 0), rgba(227, 202, 148, 0.7));
}
.interlude__line:last-child {
  background: linear-gradient(90deg, rgba(227, 202, 148, 0.7), rgba(227, 202, 148, 0));
}

/* ------------------------------------------------------------------ */
/*  BANDS                                                              */
/* ------------------------------------------------------------------ */

.band { position: relative; overflow: hidden; }
.chapter--in-band { padding-top: clamp(88px, 12vh, 140px); padding-bottom: clamp(88px, 12vh, 140px); }

/* cream ledger band */
.band--cream {
  background: linear-gradient(180deg, #F2EDE2 0%, var(--cream) 50%, #EAE3D4 100%);
  border-top: 1px solid rgba(151, 121, 63, 0.14);
  border-bottom: 1px solid rgba(151, 121, 63, 0.14);
}

/* dark conviction band */
.band--dark {
  color: var(--on-dark-soft);
  background:
    radial-gradient(90% 80% at 85% 0%, rgba(151, 121, 63, 0.13) 0%, rgba(151, 121, 63, 0) 55%),
    linear-gradient(165deg, #10151F 0%, var(--plate-3) 55%, #121927 100%);
}
.band--dark .lede { color: var(--on-dark); }
.band__quotemark {
  position: absolute;
  top: -0.05em;
  left: 2%;
  font-family: var(--display);
  font-size: clamp(280px, 34vw, 520px);
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  opacity: 0.055;
  user-select: none;
  pointer-events: none;
}

/* the fountain pen melting in from the right */
.band__art {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(52vw, 760px);
  background-image: url('../images/pen-gold.webp');
  background-size: cover;
  background-position: 70% 50%;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}

.band--dark .chapter__body--dark {
  margin-left: clamp(0px, 6vw, 90px);
  margin-right: auto;
}

/* signed like a letter */
.signoff {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: clamp(40px, 6vh, 56px);
}
.signoff__rule {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(194, 161, 101, 0));
}
.signoff__name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------ */
/*  BACKGROUND — prose + the record                                    */
/* ------------------------------------------------------------------ */

.bg-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(320px, 420px);
  justify-content: center;
  align-items: start;
  column-gap: clamp(40px, 5vw, 80px);
}
.chapter__body--bg { max-width: 640px; }

.record {
  position: relative;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(151, 121, 63, 0.14) 0%, rgba(151, 121, 63, 0) 55%),
    linear-gradient(160deg, #1A2231 0%, var(--plate) 70%);
  border: 1px solid rgba(194, 161, 101, 0.30);
  box-shadow: 0 34px 80px -36px rgba(20, 25, 35, 0.55);
  padding: clamp(34px, 3.6vw, 52px) clamp(28px, 3vw, 44px);
  margin-top: 90px; /* optically aligns with the lede beside it */
}
.record__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.record__corner--tl { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.record__corner--br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }

.record__eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}

.record__rows { list-style: none; }
.record__rows li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 17px 0;
}
.record__rows li + li { border-top: 1px solid rgba(194, 161, 101, 0.14); }

.record__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  flex: none;
}
.record__leader {
  flex: 1;
  border-bottom: 1px dotted rgba(194, 161, 101, 0.35);
  transform: translateY(-5px);
}
.record__value {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 2.6vw, 38px);
  line-height: 1;
  color: var(--gold-bright);
  flex: none;
}
.record__value small { font-size: 0.62em; color: var(--gold); }
.record__value sup   { font-size: 0.5em; color: var(--gold); }

.record__note {
  margin-top: 24px;
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--on-dark-dim);
  text-align: center;
}

/* ------------------------------------------------------------------ */
/*  CONNECT — correspondence spread                                    */
/* ------------------------------------------------------------------ */

/* --- the benediction: illuminated scripture + one gold action --- */

.band--benediction { border-bottom: none; }

.benediction__ghost {
  position: absolute;
  top: -0.06em;
  left: 2%;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(220px, 26vw, 380px);
  line-height: 1;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.08;
  user-select: none;
  pointer-events: none;
}

.benediction {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 600px) auto;
  align-items: center;
  justify-content: center;
  column-gap: clamp(48px, 6vw, 96px);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(60px, 8vh, 92px) clamp(22px, 4vw, 48px);
}

.verse__text {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.66;
  color: var(--ink);
}
.verse__lord {
  font-style: normal;
  text-transform: uppercase;
  font-size: 0.78em;
  letter-spacing: 0.08em;
}

.verse__ref {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  font-family: var(--body);
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.verse__ref-rule {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(194, 161, 101, 0));
}

/* gold action, set off behind a hairline */
.benediction__action {
  border-left: 1px solid rgba(151, 121, 63, 0.25);
  padding-left: clamp(40px, 5vw, 80px);
}

.goldlink {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 17px 36px;
  border: 1px solid rgba(151, 121, 63, 0.40);
  background: var(--paper-hi);
  box-shadow:
    0 1px 2px rgba(32, 36, 44, 0.05),
    0 14px 36px -20px rgba(32, 36, 44, 0.30);
  white-space: nowrap;
  transition: border-color 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
}
.goldlink::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(194, 161, 101, 0.14) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease-out);
}
.goldlink__corner {
  position: absolute;
  width: 12px;
  height: 12px;
}
.goldlink__corner--tl { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.goldlink__corner--br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }

.goldlink__text,
.goldlink__arrow {
  position: relative;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep); /* one clean gold: every word reads, "via" included */
}
.goldlink__arrow {
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.35s var(--ease-soft);
}
.goldlink:hover,
.goldlink:focus-visible {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(32, 36, 44, 0.05),
    0 18px 44px -20px rgba(151, 121, 63, 0.50);
  outline: none;
}
.goldlink:hover .goldlink__text { color: var(--gold); }
.goldlink:hover::before,
.goldlink:focus-visible::before { transform: translateX(130%); }
.goldlink:hover .goldlink__arrow { transform: translate(2px, -2px); }

.btn {
  position: relative;
  overflow: hidden;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--on-dark);
  background: linear-gradient(165deg, #232C3D, #161D2B);
  border: 1px solid rgba(194, 161, 101, 0.35);
  padding: 17px 56px 17px 60px; /* extra left pad optically centers tracked text */
  cursor: pointer;
  transition: border-color 0.4s var(--ease-soft), transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}
.btn span { position: relative; z-index: 2; }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 30%, rgba(227, 202, 148, 0.22) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease-out);
}
.btn:hover,
.btn:focus-visible {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -16px rgba(14, 18, 25, 0.55);
  outline: none;
}
.btn:hover::before,
.btn:focus-visible::before { transform: translateX(130%); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }

/* ------------------------------------------------------------------ */
/*  TALK TO ME — modal correspondence card                             */
/* ------------------------------------------------------------------ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 21, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: modal-fade 0.45s var(--ease-soft) both;
}

.modal__card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  background: var(--paper-hi);
  border: 1px solid rgba(151, 121, 63, 0.30);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.7);
  padding: clamp(34px, 5vw, 52px);
  animation: modal-rise 0.55s var(--ease-out) both;
}
@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
}

.modal__corner {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.modal__corner--tl { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.modal__corner--br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }

.modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--body);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  transition: color 0.3s var(--ease-soft);
}
.modal__close:hover { color: var(--ink); }

.modal__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.modal__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
}

.modal__note {
  font-family: var(--display);
  font-style: italic;
  font-size: 16.5px;
  color: var(--gold-deep);
  margin-bottom: 28px;
}

.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.modal__field { margin-bottom: 26px; }
.modal__field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color 0.35s var(--ease-soft);
}
.modal__field:focus-within label { color: var(--gold-deep); }

.modal__field input,
.modal__field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 380;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(32, 36, 44, 0.22);
  border-radius: 0;
  padding: 4px 2px 10px;
  transition: border-color 0.4s var(--ease-soft);
}
.modal__field textarea { resize: vertical; min-height: 96px; }
.modal__field input:focus,
.modal__field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-deep);
}

/* the "i am" select, dressed like the other hairline fields */
.modal__selectwrap { position: relative; }
.modal__selectwrap::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-70%) rotate(45deg);
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  pointer-events: none;
}
.modal__selectwrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 380;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(32, 36, 44, 0.22);
  border-radius: 0;
  padding: 4px 26px 10px 2px;
  cursor: pointer;
  transition: border-color 0.4s var(--ease-soft);
}
.modal__selectwrap select:focus {
  outline: none;
  border-bottom-color: var(--gold-deep);
}
.modal__selectwrap select:invalid { color: var(--muted); }

/* the acknowledgment */
.modal__agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  cursor: pointer;
}
.modal__agree input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--gold-deep);
  cursor: pointer;
}
.modal__agree span {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.btn--full { display: block; width: 100%; margin-top: 34px; }

.modal__status {
  margin-top: 18px;
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  min-height: 1.5em;
}
.modal__status.is-error { color: #A0513A; }

body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .modal__overlay, .modal__card { animation: none; }
}

/* ------------------------------------------------------------------ */
/*  FOOTER                                                             */
/* ------------------------------------------------------------------ */

.footer {
  position: relative;
  padding: 34px 24px 30px;
  background: linear-gradient(180deg, #0F141C 0%, #0B0F15 100%);
  color: var(--on-dark-dim);
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(520px, 70vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.footer__inner { max-width: 1080px; margin: 0 auto; }

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer__mark {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.16em;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__copy {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237, 232, 220, 0.42);
}

.footer__link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  background: none;
}
.footer__link:hover { color: var(--gold); }

.footer__disclaimer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(237, 232, 220, 0.08);
}
.footer__disclaimer p {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(237, 232, 220, 0.34);
  letter-spacing: 0.02em;
  text-align: justify;
}
.footer__disclaimer p.footer__disclaimer-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(194, 161, 101, 0.55);
  margin-bottom: 10px;
}

/* ------------------------------------------------------------------ */
/*  SCROLL REVEALS (driven by js/main.js)                              */
/* ------------------------------------------------------------------ */

.r {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.reveal.is-in .r { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------------ */
/*  RESPONSIVE                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 1080px) {
  .bg-grid {
    grid-template-columns: minmax(0, 680px);
    row-gap: 56px;
  }
  .record { margin-top: 0; max-width: 560px; }

}

@media (max-width: 960px) {
  /* portrait becomes a backdrop presence low in the frame; the words sit
     high so they never cross the face */
  .hero {
    min-height: clamp(540px, 84svh, 650px);
    align-items: flex-start;
  }
  .hero__figure {
    right: -11vw;
    top: auto;
    bottom: 0;
    height: 100%;
    width: min(94vw, 450px);
    opacity: 0.85;
    filter: brightness(1.08) saturate(1.05);
  }
  .hero__veil {
    background:
      linear-gradient(90deg, rgba(11, 14, 21, 0.92) 0%, rgba(11, 14, 21, 0.72) 45%, rgba(11, 14, 21, 0.45) 100%),
      linear-gradient(180deg, rgba(11, 14, 21, 0.45) 0%, rgba(11, 14, 21, 0.05) 35%, rgba(11, 14, 21, 0.78) 100%);
  }
  .hero__inner {
    padding-top: clamp(48px, 8vh, 80px);
    padding-bottom: clamp(90px, 16vh, 140px);
  }
  /* keep the cue off the portrait: pin it to the left edge */
  .hero__scrollcue {
    left: 26px;
    transform: none;
    align-items: flex-start;
  }
  .hero__scrollcue-label { padding-left: 0; }

  .chapter__layout,
  .chapter__layout--mirror { grid-template-columns: minmax(0, 680px); }
  .chapter__rail { display: none; }

  .chapter__numeral { font-size: clamp(150px, 30vw, 220px); opacity: 0.08; }
  .chapter__numeral--right { right: -16px; }
  .chapter__numeral--left  { left: -16px; }

  .band__art { width: 80vw; opacity: 0.30; }
  .band--dark .chapter__body--dark { margin-left: 0; }

  .benediction {
    grid-template-columns: minmax(0, 600px);
    row-gap: 40px;
  }
  .benediction__action {
    border-left: none;
    border-top: 1px solid rgba(151, 121, 63, 0.25);
    padding-left: 0;
    padding-top: 36px;
  }
}

@media (max-width: 640px) {
  body { font-size: 17.5px; }

  .hero__name { font-size: clamp(46px, 13.5vw, 64px); }
  .hero__quote { font-size: 21px; }
  .hero__kicker { font-size: 11px; letter-spacing: 0.34em; gap: 12px; }
  .hero__kicker-rule { width: 28px; }

  .has-dropcap::first-letter { font-size: 3em; }

  .record { padding: 28px 22px; }
  .record__label { font-size: 10.5px; letter-spacing: 0.16em; }
  .record__value { font-size: 26px; }

  .verse__text { font-size: 19.5px; line-height: 1.7; }
  .goldlink { display: block; text-align: center; }
  .benediction__ghost { font-size: 200px; opacity: 0.06; }

  .interlude__caption {
    white-space: normal;
    text-align: center;
    width: max-content;
    max-width: 92vw;
    gap: 12px;
    font-size: 9.5px;
    letter-spacing: 0.14em;
    line-height: 2;
  }
  .interlude__line { width: 12px; flex: none; }
  /* the compass sits on the right of this wide panorama; on a phone the image
     scales up and centers on empty leather, so shift the crop right to reveal it */
  .interlude--compass::before { background-position: 78% center; }

  .band__quotemark { font-size: 260px; left: -4%; }

  .footer__row { flex-direction: column; gap: 10px; text-align: center; }
  .footer__disclaimer { text-align: center; }
}

/* ------------------------------------------------------------------ */
/*  REDUCED MOTION                                                     */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .e, .e-line, .e-fig { animation: none; opacity: 1; transform: none; }
  .hero__bg { animation: none; transform: none; }
  .r { transition: none; opacity: 1; transform: none; }
  .hero__scrollcue-line::after { animation: none; }
}

/* ----------------------- Back to top ------------------------------ */
.to-top {
  position: fixed;
  right: clamp(18px, 3.2vw, 36px);
  bottom: clamp(18px, 3.2vw, 36px);
  z-index: 45;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--gold-bright, #e3ca94);
  text-decoration: none;
  border: 1px solid rgba(194, 161, 101, 0.42);
  border-radius: 50%;
  background: rgba(11, 14, 21, 0.55);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease, background 0.3s ease, border-color 0.3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(194, 161, 101, 0.14); border-color: rgba(194, 161, 101, 0.85); }
.to-top svg { display: block; }

/* quiet investor/partner line above the "Talk to me" button */
.benediction__line {
  text-align: center;
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  color: rgba(36, 32, 28, 0.7);
  max-width: 33ch;
  margin: 0 auto clamp(22px, 3.4vh, 34px);
}
