/* ==========================================================================
   Project Qumran: dark version
   Design source: "Qumrancave website model.pptx" slides 6, 10, 11, 17, 20, 24
   (1672px comps). Slides 11 and 24 are cream pages; their layouts are carried
   over into this skin rather than their surfaces.

   Structure, copy, font loading, focus handling and the honest-stub pattern are
   the light build's, unchanged. Only the surface is new.
   ========================================================================== */

:root {
  /* palette (regraded 2026-08, owner request): the near-blacks sampled from
     the mockup PNGs were lifted into a ramp of warm dark greys - charcoal
     with the desert's umber cast - so surfaces layer visibly instead of
     collapsing into one black. Gold and text tokens are unchanged. */
  --page:         #211E1A;   /* body / page canvas */
  --page-warm:    #272218;   /* about + footer bands */
  --nav-solid:    #1A1816;   /* opaque nav (projects, gallery) */
  --panel:        #2B2721;   /* cards, form panels */
  --panel-hi:     #342E27;   /* hovered / raised card */
  --strip:        #242120;   /* filter strips */
  --band:         #292521;   /* dark footer band */
  --overlay:      rgba(35, 31, 25, .78);  /* translucent card over a photo */

  --gold:         #D2A24C;
  --gold-bright:  #E8B85C;
  --gold-deep:    #A8813A;
  --gold-btn:     #C89751;
  --gold-btn-hi:  #E8BE72;
  --gold-role:    #D1A54E;

  --head:         #FFFFFF;
  --text:         #DEDCD6;
  --muted:        #B9B3A8;
  --hairline:     #403A31;
  --ink-band:     #3A2C18;   /* heading ink over the about photo band */

  /* parchment bands keep their own light values; they are photographic */
  --band-ink:     #5A3F17;
  --band-attr:    #5A3F17;

  /* type */
  --f-display: "Cormorant Garamond", "EB Garamond", "PQ Fallback", serif;
  --f-smallcaps: "Cormorant SC", "PQ Fallback", serif;
  --f-body: "EB Garamond", "Cormorant Garamond", "PQ Fallback", serif;
}

/* Metric-adjusted stand-in for the Garamonds. Times is ~6% wider at the same
   px size, so a bare `serif` fallback sets every line long and shifts the
   layout the moment the webfont arrives. Measured: the same string at 60px
   renders 736px in Cormorant Garamond vs 782px in Times (94%). */
@font-face {
  font-family: "PQ Fallback";
  src: local("Times New Roman"), local("Times");
  size-adjust: 94%;
  ascent-override: 92%;
  descent-override: 23%;
  line-gap-override: 0%;
}

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

/* the letterbox behind .wrap: a step darker than the page, but still a warm
   grey rather than the old near-black */
html { background: #191714; }

body {
  font-family: var(--f-body);
  color: var(--text);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* height:auto is load-bearing; the width/height attributes on every <img> map to
   CSS presentational hints, so any rule that sets only width would stretch the image */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* keyboard focus: gold ring. On the dark skin the light build's 2px ring
   disappears against the near-black panels, so it gains a dark halo. */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, .55);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  background: var(--gold-btn);
  color: #17130B;
  font-family: var(--f-smallcaps);
  letter-spacing: .06em;
  padding: 10px 18px;
  border-radius: 0 0 6px 6px;
  transition: top .15s ease-out;
}
.skip-link:focus-visible { top: 0; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* page canvas: mockups are 1672px comps */
.wrap {
  max-width: 1672px;
  margin: 0 auto;
  position: relative;
  background: var(--page);
  /* clip, not hidden (site-motion, 2026-09): overflow-x: hidden turns the
     wrap into a scroll container, which silently kills position: sticky for
     every descendant - and the home Held Frame photo is sticky. clip cuts
     the same side-bleed without creating a scrollport. The hidden line stays
     first as the fallback where clip is unsupported (sticky then simply
     doesn't hold there and the scene scrolls as plain sections). */
  overflow-x: hidden;
  overflow-x: clip;
  box-shadow: 0 0 60px rgba(0, 0, 0, .75);
}

/* --------------------------------------------------------------------------
   Navigation

   One bar, identical on every page. Transparent (owner request, 2026-08): on
   pages whose hero crop is pulled up behind it (home, watch, gallery,
   projects) the photograph floats through, the way slides 6 and 20 drew it;
   elsewhere the page colour shows and the bar reads as open space. --nav-solid
   is retired but kept as a token in case the solid bar ever returns.
   -------------------------------------------------------------------------- */
.nav {
  position: relative;
  z-index: 50;
  height: 88px;
  background: transparent;
  display: flex;
  align-items: center;
  padding: 0 40px 0 40px;
}

.nav .brand { display: flex; align-items: center; gap: 14px; }
.nav .brand img { width: 66px; height: 62px; object-fit: contain; }

.brand-word { line-height: 1.05; display: flex; flex-direction: column; }

.brand-word .bw-name {
  font-family: var(--f-smallcaps);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: .045em;
  color: var(--head);
  white-space: nowrap;
}

.brand-word .bw-tag {
  font-family: var(--f-display);
  font-style: italic;
  /* raised 16 -> 18 -> 21 (owner requests, latest 2026-09: match their
     sample's proportion, ~75% of the 28px wordmark). Home is unaffected -
     its nav carries no brand block. */
  font-size: 21px;
  color: var(--gold);
  margin-top: 1px;
}

.nav .main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav ul a {
  font-family: var(--f-display);
  /* raised from 19px, then again to 24px (owner request, 2026-08) */
  font-size: 24px;
  color: #CFCCC5;
  position: relative;
  padding-bottom: 4px;
  transition: color .15s ease-out;
}

/* readability over the photo heroes (owner request, 2026-08, strengthened on
   request): the bar is transparent and the sunset skies run bright, so the
   light text carries a layered warm-dark halo - a tight blurred wrap at the
   letter for immediate separation, then wider layers fading outward. All
   layers stay blurred (no zero-blur stroke), so it reads as a soft cinematic
   shadow rather than an outline. Scrim-family colour, not black. The nav-cta
   pill is excluded: its ink sits on solid gold. */
.nav ul a:not(.nav-cta),
.brand-word .bw-name,
.brand-word .bw-tag {
  text-shadow:
    0 0 3px rgba(25, 22, 19, .95),
    0 1px 3px rgba(25, 22, 19, .9),
    0 2px 9px rgba(25, 22, 19, .75),
    0 5px 20px rgba(25, 22, 19, .55);
}

/* the same request's second half: a faint top-of-frame wash behind the whole
   bar, easing the brightest sky down just enough for the halo to finish the
   job. It overshoots the 88px bar (150px, multi-stop ease-out) so there is no
   edge where it ends - a vignette, not a navbar box. z-index -1 keeps it
   under the bar's own content but over the pulled-up hero photo; pointer
   events off so the hero copy under its tail stays clickable. Below 1200 the
   heroes stop riding up behind the bar and the nav sits on solid page colour,
   where the wash darkens nothing it shouldn't - left on for simplicity. */
.nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 150px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(25, 22, 19, .50) 0,
    rgba(25, 22, 19, .42) 30%,
    rgba(25, 22, 19, .28) 60%,
    rgba(25, 22, 19, .12) 82%,
    rgba(25, 22, 19, 0) 100%);
}

.nav ul a:hover,
.nav ul a.active { color: var(--gold-bright); }

.nav ul a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 64px;
  height: 9px;
  background:
    radial-gradient(circle at 50% 50%, var(--gold) 0 2.6px, transparent 3px) center/9px 9px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center/100% 1px no-repeat;
}

/* the deck's dark pages end the bar with a gold pill; since 2026-08 the pill
   IS the Partner with Us nav item rather than a separate CTA beside the list */
.nav ul a.nav-cta {
  font-family: var(--f-smallcaps);
  font-weight: 600;
  /* raised from 17px alongside the plain links */
  font-size: 20px;
  letter-spacing: .06em;
  color: #1A1408;
  background: linear-gradient(180deg, var(--gold-btn-hi) 0%, var(--gold-btn) 55%, #A87C33 100%);
  border: 1px solid #7C5C24;
  border-radius: 6px;
  padding: 9px 22px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 240, 210, .45);
  transition: filter .15s ease-out;
}

/* the pill keeps its ink on hover and on its own page - the plain links'
   gold recolour and active underline don't apply to a filled button */
.nav ul a.nav-cta:hover,
.nav ul a.nav-cta.active { color: #1A1408; filter: brightness(1.07); }
.nav ul a.nav-cta.active { filter: none; }
.nav ul a.nav-cta.active::after { display: none; }

/* --------------------------------------------------------------------------
   Ornaments, headings, buttons
   -------------------------------------------------------------------------- */

/* thin rule ending in a small gold diamond */
.ornament {
  position: relative;
  height: 9px;
  width: 150px;
  margin: 18px 0;
}
.ornament::before {
  content: "";
  position: absolute;
  top: 4px; left: 0; right: 12px;
  height: 1px;
  background: var(--gold);
}
.ornament::after {
  content: "";
  position: absolute;
  right: 0; top: 1px;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* centered rule + diamond under section headings */
/* the site's ornament motif (owner choice, 2026-09, third iteration): a
   solid full-strength rule spanning EXACTLY the width of the heading above
   it, broken at the middle for the diamond. Self-scaling: big headings get
   long lines, so it never reads stubby (the fixed-width versions did). Every
   page pins `width` to its measured heading; auto margins centre it under
   centred headings, width alone aligns it under left-aligned ones.
   --orn-ink recolours per surface (the parchment about band goes brown).
   The faint drop-shadow keeps the 1px gold legible over photography;
   parchment switches it off. Re-measure the heading if its text or size
   ever changes. */
.ornament-center {
  position: relative;
  width: 230px;   /* fallback; every instance pins its own */
  max-width: 100%;
  height: 9px;
  margin: 10px auto 0;
  --orn-ink: var(--gold);
  filter: drop-shadow(0 1px 2px rgba(25, 22, 19, .7));
}
.ornament-center::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 4px;
  height: 1px;
  background: linear-gradient(90deg,
    var(--orn-ink) 0,
    var(--orn-ink) calc(50% - 10px),
    transparent calc(50% - 10px),
    transparent calc(50% + 10px),
    var(--orn-ink) calc(50% + 10px),
    var(--orn-ink) 100%);
}
.ornament-center::after {
  content: "";
  position: absolute;
  left: 50%; top: 1px;
  width: 7px; height: 7px;
  background: var(--orn-ink);
  transform: translateX(-50%) rotate(45deg);
}

/* a heading flanked by gold rules (slide 6 team card, slide 24 pillars) */
.rule-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}
.rule-heading::before,
.rule-heading::after {
  content: "";
  height: 1px;
  flex: 1 1 0;
  max-width: 150px;
  background: linear-gradient(90deg, transparent, var(--gold-deep));
}
.rule-heading::after { background: linear-gradient(90deg, var(--gold-deep), transparent); }

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-smallcaps);
  font-weight: 600;
  letter-spacing: .08em;
  font-size: 19px;
  color: #1A1408;
  background: linear-gradient(180deg, var(--gold-btn-hi) 0%, var(--gold-btn) 55%, #A87C33 100%);
  border: 1px solid #7C5C24;
  border-radius: 6px;
  padding: 13px 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 240, 210, .45);
  cursor: pointer;
  transition: filter .15s ease-out, transform .15s ease-out, box-shadow .15s ease-out;
}
.btn-gold:hover { filter: brightness(1.07); }
.btn-gold:active {
  transform: translateY(1px);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 240, 210, .45);
}
.btn-gold .chev { font-size: 22px; line-height: 1; }
.btn-gold svg { display: block; }

/* outline variant: the deck uses it for secondary actions on dark panels */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-smallcaps);
  font-weight: 600;
  letter-spacing: .09em;
  font-size: 15px;
  color: var(--gold-bright);
  background: rgba(210, 162, 76, .08);
  border: 1px solid rgba(210, 162, 76, .55);
  border-radius: 4px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background .15s ease-out, color .15s ease-out;
}
.btn-line:hover { background: rgba(210, 162, 76, .2); color: #F7D693; }

/* honest placeholder note for not-yet-wired actions (video, book, form) */
.soon-note {
  display: block;
  margin-top: 10px;
  font-family: var(--f-body);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
  opacity: 0;
  transition: opacity .25s ease-out;
}
.soon-note.show { opacity: 1; }

/* small-caps section heading */
.sc-heading {
  font-family: var(--f-smallcaps);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .10em;
}

/* --------------------------------------------------------------------------
   Parchment quote band (projects / gallery / watch footers)

   The band is a photographic crop of aged paper, so it stays light in the dark
   skin exactly as the comps show it; only the ink darkens to hold contrast.
   -------------------------------------------------------------------------- */
.quote-band {
  position: relative;
  background: url("../assets/img/band-parchment.jpg") center/cover;
  min-height: 123px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px 120px;
}

.quote-band .q {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--band-ink);
}

.quote-band .attr {
  font-family: var(--f-smallcaps);
  font-size: 14px;
  letter-spacing: .22em;
  color: var(--band-attr);
  margin-top: 8px;
}

.quote-band .diamond {
  width: 6px;
  height: 6px;
  background: var(--gold-deep);
  transform: rotate(45deg);
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Dark footer band (slide 10) and the brown tagline band (slide 24)
   -------------------------------------------------------------------------- */
.tag-band {
  background: var(--page-warm);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
}
.tag-band i {
  width: 7px;
  height: 7px;
  background: var(--gold-deep);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Responsive fallback (mockups define desktop; graceful below 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .nav { height: auto; flex-wrap: wrap; padding: 12px 24px; gap: 10px; }
  .nav .main-nav { margin-left: 0; }
  .nav ul { flex-wrap: wrap; gap: 16px 26px; align-items: center; }
  .quote-band { padding: 18px 24px; }
  .rule-heading::before, .rule-heading::after { max-width: 60px; }
}

/* phones: the seven nav links can't share a row with the brand, so the brand
   takes the full width and the links wrap centred underneath it */
@media (max-width: 760px) {
  .nav { padding: 12px 18px 14px; gap: 6px; }
  .nav .brand { width: 100%; gap: 11px; }
  .nav .brand img { width: 52px; height: 49px; }
  .brand-word .bw-name { font-size: 23px; }
  .brand-word .bw-tag { font-size: 18px; }
  .nav .main-nav { width: 100%; }
  .nav ul { width: 100%; justify-content: center; gap: 6px 20px; }
  .nav ul a { font-size: 19px; padding-bottom: 3px; }
  .nav ul a.active::after { bottom: -6px; width: 48px; }
  /* the pill item keeps button proportions when the links wrap */
  .nav ul a.nav-cta { font-size: 16px; padding: 8px 18px; }

  .quote-band { padding: 16px 20px; min-height: 0; }
  .quote-band .q { font-size: 20px; }
  .quote-band .attr { font-size: 12px; letter-spacing: .18em; }

  .tag-band { font-size: 17px; gap: 14px; padding: 16px; text-align: center; }
}

/* ---------- Footer ---------------------------------------------------------
   Mirrors the light skin's copyright band. Light uses --cream-nav/--gold-text,
   neither of which exists here, so it is rebuilt from the dark tokens: the
   footer band colour over the page, hairline above, gold small caps. */
.site-footer {
  background: var(--band);
  border-top: 1px solid var(--hairline);
  /* slimmed from 26px/15px, then the type raised again for readability
     (owner requests, 2026-08): the band stays low but the line reads */
  padding: 14px 64px;
  text-align: center;
}

.site-footer p {
  font-family: var(--f-smallcaps);
  font-size: 15px;
  letter-spacing: .13em;
  color: var(--gold);
}

@media (max-width: 760px) {
  .site-footer { padding: 12px 22px; }
  .site-footer p { font-size: 13.5px; }
}
