﻿/* Home: page-scoped styles (mockup image4, slide 6, 1672px comp) */

/* ---------- Hero ----------------------------------------------------------
   The comp's photo band is y0-655 with the masthead floating on top of it. The
   masthead is opaque on every page in this build, so the section is the 567px
   remainder and the full crop is pulled up behind the bar. The bar carries
   z-index 50, so it covers that overhang without the hero needing to clip
   itself, which the team card overruns by a few pixels by design. */
.hero {
  position: relative;
  /* flow-root (not just relative): without a block-formatting context here,
     .team-card's margin-top collapses through .hero instead of growing it,
     so .hero always renders at exactly min-height regardless of the card's
     real size - flow-root fixes that without clipping (unlike overflow:hidden) */
  display: flow-root;
  min-height: 567px;
  overflow: visible;
}

/* hero-home-gold.jpg (owner request, 2026-10): the owner's "Home_Page_16x9"
   (1672x940, JPEG q88 from the inbox PNG) - golden-hour sun over the Dead
   Sea valley, cave in the cliff at upper right, dark valley left where the
   lockup sits. It replaced hero-home-day.jpg (kept on disk), which had
   replaced hero-home-final/-sunset/the dusk aerial/the original sunrise. */
.hero::before {
  content: "";
  position: absolute;
  inset: -88px 0 0;
  background: url("../../assets/img/hero-home-gold.jpg") top center / cover no-repeat;
}

/* the title, subtitle and donate button sit on the frame's left third; the
   dusk rock there is already deep, so this wash only steadies it for the
   cream type. Warm grey rather than near-black, and it runs out by the
   two-thirds mark so the sunset sky stays untouched. */
.hero::after {
  content: "";
  position: absolute;
  inset: -88px 0 0;
  background: linear-gradient(100deg,
    rgba(25, 22, 19, .82) 0%,
    rgba(25, 22, 19, .58) 30%,
    rgba(25, 22, 19, .20) 54%,
    rgba(25, 22, 19, 0) 72%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* 2026-08: the copy stack mirrors the light skin's arrangement - one-line
   title, subtitle, donate, ornament rule, welcome paragraph. The old two-line
   title and its subtitle diamond were tied to the sunrise comp's painted
   plate, which left with the photo swap. */
.hero-copy {
  position: absolute;
  /* moved left from 128 (owner request, 2026-09) */
  left: 64px;
  /* lifted twice (owner requests, 2026-08): negative top rides the lockup up
     into the nav band's empty left side - the home nav has no brand block,
     so nothing collides (links live on the right) */
  top: -48px;
  /* auto, not 600: the enlarged one-line lockup runs wider; the paragraph
     below keeps its own 520px measure */
  width: auto;
}

/* the single brand lockup (owner request, 2026-08): the nav's emblem+words
   pair moved down here at hero scale, replacing both the old nav brand and
   the plain h1 - one identity instead of two stacked copies of it */
.hero-brand {
  /* stacked (owner request, 2026-08): emblem on top, then the title, then
     the tagline - the old download-page lockup arrangement */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-mark {
  width: 100px;
  height: 100px;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .5));
}

.hero-copy h1 {
  font-family: var(--f-smallcaps);
  /* raised from 60px when the lockup absorbed the nav brand */
  font-size: 70px;
  font-weight: 500;
  letter-spacing: .015em;
  line-height: 1;
  white-space: nowrap;
  color: var(--head);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}

.hero-copy .hero-sub {
  margin-top: 4px;
  font-family: var(--f-display);
  font-style: italic;
  /* raised from 28px alongside the title */
  font-size: 30px;
  font-weight: 500;
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

/* smaller than the shared .btn-gold default so the whole stack clears the
   team card below */
.hero-copy .donate-btn {
  margin-top: 14px;
  padding: 9px 26px;
  font-size: 17px;
}

/* pinned to the 529px "Project Qumran" title, aligned with its left edge
   (a two-line stack was tried 2026-10 and reverted the same day) */
.hero-copy .ornament-center {
  width: 529px;
  margin: 18px 0 8px;
}

.hero-copy p {
  width: 520px;
  /* raised from 17.5px (owner request, 2026-08) */
  font-size: 20px;
  line-height: 1.4;
  color: var(--text);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

/* ---------- Team card ---------- */
/* The sunrise comp painted this plate into its photograph; the dusk photo
   that replaced it (2026-08) carries no furniture, so the card is simply a
   free-standing opaque plate at the comp's coordinates. */
.team-card {
  position: relative;
  /* flow-positioned (not absolute) so its real rendered height pushes
     .hero's min-height taller, instead of letting .about start beneath it */
  /* 316, not the comp's 302: the light-style copy stack above (title, sub,
     donate, ornament, paragraph) needs the extra clearance */
  /* 350 top / 20 bottom: rides up with the hero copy's second lift (owner
     request, 2026-08), keeping the card's equal air above and below */
  margin: 350px 0 20px 58px;
  width: 686px;
  min-height: 260px;
  z-index: 10;
  background: #272319;
  border: 1px solid rgba(210, 162, 76, .28);
  padding: 11px 24px 16px;
}

.team-card h2 {
  font-family: var(--f-smallcaps);
  /* the whole card's type was raised for readability (owner request,
     2026-08): heading 17->20, names 15.5->18, roles 13.5->16 */
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.25;
  color: var(--gold-bright);
  gap: 16px;
  margin-bottom: 15px;
}

/* comp: rows on a 52px pitch, first row cap-top 45px below the card edge */
.team-cols {
  display: grid;
  grid-template-columns: 234px 234px 1fr;
}

.team-cols .member { padding-bottom: 16px; }

.team-cols .name {
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.15;
  color: #FDFDFC;
}

.team-cols .role {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.2;
  color: var(--gold-role);
  margin-top: 4px;
}

/* ---------- About ----------------------------------------------------------
   Slide 6 ends on a parchment band, not a dark one. The crop carries the
   desert seal at its right edge, so the copy columns stop short of it and the
   ink goes dark rather than following the page's light-on-dark scheme. */
.about {
  position: relative;
  min-height: 286px;
  /* band-about-plain.jpg is the parchment with the baked-in seal removed via
     a mirror-at-the-cut splice (seam-free by construction, 2026-08): a seal
     that lives in the photograph moves and crops with every cover rescale,
     so the visible seal is the positioned .stamp-ghost element instead */
  background: url("../../assets/img/band-about-plain.jpg") top center / cover no-repeat;
  padding: 37px 0 34px;
}

/* the QUMRAN seal, pinned to the band's right side and vertically centred;
   multiply drops the file's white ground so only the ink prints onto the
   parchment. An element, so it can never be cropped or drift under text. */
.about .stamp-ghost {
  position: absolute;
  right: 110px;
  top: 50%;
  transform: translateY(-50%);
  /* raised from 230px, then again to 350px (owner request, 2026-08) */
  width: 350px;
  height: auto;
  mix-blend-mode: multiply;
  opacity: .9;
  pointer-events: none;
}

.about-inner {
  display: grid;
  grid-template-columns: 465px 415px;
  column-gap: 120px;
  padding-left: 175px;
}

.about h2 {
  font-family: var(--f-display);
  /* the section's type was raised for readability (owner request, 2026-08):
     heading 27->30, body 16.5->19 */
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.1;
  color: var(--ink-band);
}

/* pinned to the 305px "About Project Qumran" heading; parchment-brown ink
   and no shadow - both gold and a dark shadow would smudge the light band */
.about .ornament-center {
  width: 305px;
  margin: 12px 0 16px;
  --orn-ink: #8A6428;
  filter: none;
}

.about p {
  /* raised again (19->21) and inked darker (#40331C -> #33240F, the darkest
     parchment ink in the palette) - owner request, 2026-08 */
  font-size: 21px;
  line-height: 1.4;
  color: #33240F;
}

.about p + p { margin-top: 14px; }

.about .btn-gold {
  margin-top: 20px;
  font-size: 16px;
  padding: 9px 24px;
}

/* ---------- Responsive fallback ---------- */
@media (max-width: 1200px) {
  .hero { height: auto; min-height: 440px; padding: 40px 24px 48px; overflow: hidden; }
  /* nothing is registered on the comp coordinates any more, so the crop sits
     square in the band rather than pulled up behind the bar */
  .hero::before { inset: 0; }
  /* the card no longer covers the plate the comp painted into the photo, so
     the hero needs a wash of its own to keep that furniture out of sight */
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(25, 22, 19, .90), rgba(25, 22, 19, .86));
  }

  /* relative rather than static: the z-index that lifts these above the wash
     comes from `.hero > *`, and z-index does nothing on an unpositioned box */
  .hero-copy { position: relative; left: auto; top: auto; width: auto; max-width: 560px; }
  .hero-copy h1 { font-size: 52px; }
  .hero-mark { width: 84px; height: 84px; }
  .hero-brand { gap: 20px; }
  /* the desktop offset centres it under the pinned title; unpinned here */
  .hero-copy .ornament-center { margin: 16px 0 8px; }
  /* the desktop paragraph is a fixed 520px column; unpinned here or it clips
     past a phone viewport */
  .hero-copy p { width: auto; max-width: 520px; }
  .team-card { position: relative; left: auto; top: auto; width: auto; min-height: 0; margin: 24px 0 0; }
  /* the three column wrappers are markup, not grid items that reflow: at two
     tracks the third stacks under the first and leaves the right half empty
     from the fourth name down */
  .team-cols { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

  .about { padding: 40px 24px 36px; }
  /* stacked layouts leave no clear right margin for the seal */
  .about .stamp-ghost { display: none; }
  .about-inner { grid-template-columns: 1fr; row-gap: 18px; padding-left: 0; max-width: 720px; }
}

@media (max-width: 760px) {
  .hero-copy h1 { font-size: 40px; white-space: normal; }
  .hero-copy .hero-sub { font-size: 23px; margin-top: 4px; }
  .hero-mark { width: 62px; height: 62px; }
  .hero-brand { gap: 14px; }
  .team-cols { grid-template-columns: 1fr; }
  .team-card { padding: 14px 18px 8px; }
  .about h2 { font-size: 23px; }
}

/* ---------- First-visit book promo ----------------------------------------
   Overlay dialog shown once per device. The panel carries the desert photo
   behind a dark scrim so the cream/gold type reads the way the old site's
   promo did; the .promo-download anchor below the cover is the download. */
.promo {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 26, 22, .72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .28s ease;
}

.promo[hidden] { display: none; }
.promo.open { opacity: 1; }

.promo-panel {
  position: relative;
  width: min(700px, 100%);
  max-height: min(880px, 92vh);
  overflow: auto;
  padding: 40px 44px 46px;
  text-align: center;
  border: 1px solid rgba(210, 162, 76, .55);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
  background:
    linear-gradient(rgba(28, 24, 19, .76), rgba(28, 24, 19, .86)),
    url("../../assets/img/hero-newsletter-dusk.jpg") center / cover no-repeat;
  transform: translateY(18px) scale(.985);
  transition: transform .32s cubic-bezier(.2, .7, .3, 1);
}

.promo.open .promo-panel { transform: none; }

.promo-close {
  position: absolute;
  right: 14px;
  top: 10px;
  width: 40px;
  height: 40px;
  font: 400 32px/1 var(--f-display);
  color: #EADCC0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
  /* Cormorant's multiplication sign rides its baseline ~4px below the box
     centre; the bottom padding shrinks the content box so the vertically
     centred glyph lands on the ring's true centre (same fix as the light
     skin) */
  padding: 0 0 8px;
}

.promo-close:hover { color: #fff; background: rgba(255, 255, 255, .12); }

.promo-title {
  font-family: var(--f-smallcaps);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.1;
  color: #F6EBD4;
}

.promo-note {
  font-size: 15.5px;
  line-height: 1.4;
  color: rgba(240, 231, 213, .78);
  margin-top: 10px;
}

/* artwork, not the download control - the .promo-download anchor below owns
   that. No border or box-shadow: this is a transparent-background 3D render
   with its own baked-in edges and depth - a CSS frame would box the empty
   canvas. */
.promo-cover {
  display: block;
  width: min(300px, 64%);
  margin: 20px auto 0;
}

.promo-cover img { display: block; width: 100%; }

/* --- download button ----------------------------------------------------- */
/* the sole call to action - a direct link to the PDF, centred by the panel's
   text-align */
.promo-download {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--f-smallcaps);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #23190A;
  padding: 13px 34px;
  border-radius: 3px;
  cursor: pointer;
  background: linear-gradient(180deg, var(--gold-btn-hi), var(--gold-btn));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
  transition: filter .2s ease, transform .2s ease;
}

.promo-download:hover { filter: brightness(1.07); transform: translateY(-1px); }

@media (max-width: 700px) {
  .promo { padding: 14px; }
  .promo-panel { padding: 34px 22px 30px; }
  /* inset both sides equally so the centred title stays centred while its last
     word clears the close button in the top-right corner */
  .promo-title { font-size: 26px; padding: 0 32px; }
  .promo-note { font-size: 14px; }
  .promo-cover { width: min(260px, 78%); margin-top: 18px; }
  .promo-download { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .promo, .promo-panel, .promo-download { transition: none; }
  .promo-panel { transform: none; }
  .promo-download:hover { transform: none; }
}


/* ---------- Motion (site-motion variant only) ----------------------------
   Every rule below is gated on html.motion (added pre-paint by the head
   snippet, confirmed by js/motion.js) - with motion off the page renders
   exactly as the completed original above. The front door's entrance: the
   photo settles while the lockup builds top-down (emblem, title, tagline,
   ornament draw), then the welcome paragraph and team card follow. The
   promo dialog keeps its own approved animation and is untouched here. */

/* photo settle - on the hero's ::before pseudo only; bottom-centre origin so
   the scale overflow leaves the frame upward/sideways; desktop only */
@media (min-width: 1201px) {
  .motion .hero::before {
    --m-dur-settle: 2.4s;
    animation: mSettle var(--m-dur-settle) var(--m-ease-out) both;
    transform-origin: bottom center;
  }
}

/* lockup sequence (shared mRise keyframes from motion.css) */
.motion .hero-mark           { animation: mRise var(--m-dur-hero) var(--m-ease-out) .15s both; }
.motion .hero-copy h1        { animation: mRise var(--m-dur-hero) var(--m-ease-out) .3s both; }
.motion .hero-copy .hero-sub { animation: mRise var(--m-dur-hero) var(--m-ease-out) .45s both; }
.motion .hero-copy .ornament-center { --orn-delay: 700ms; }
.motion .hero-copy p         { animation: mRise var(--m-dur-hero) var(--m-ease-out) .9s both; }

/* the team card is in-viewport on load, so this delay lets the hero lead;
   one quiet rise for the whole plate - the members are not staggered */
.motion .team-card { --rv-delay: 550ms; }

/* the about band loads WITH the top (owner request, 2026-10): it is part of
   the page-load sequence, not a scroll reveal - the columns rise right after
   the hero's welcome line, the brown ornament draws, then the ghost seal
   prints onto the parchment (fade only - it carries its own
   translateY(-50%)). The ornament gets a load-time draw because the shared
   .orn-in draw only fires when it scrolls into view. */
.motion .about-left  { animation: mRise var(--m-dur-hero) var(--m-ease-out) .95s both; }
.motion .about-right { animation: mRise var(--m-dur-hero) var(--m-ease-out) 1.1s both; }
.motion .about .ornament-center { animation: hAboutDraw var(--m-dur-orn) var(--m-ease-inout) 1.15s both; }
.motion .about .stamp-ghost { animation: hSealPrint var(--m-dur-hero) var(--m-ease-out) 1.3s both; }

/* no "to" frame: the seal settles at its own .9 opacity, not mFade's 1 */
@keyframes hSealPrint { from { opacity: 0; } }

@keyframes hAboutDraw {
  from { clip-path: inset(-8px 50% -8px 50%); }
  to   { clip-path: inset(-8px 0% -8px 0%); }
}