/* CRESTIAL — resources. GENERATED by _source/_docs/build_page_css.py
 * from _source/resources.src.html. Do not edit by hand. */

/* --- closing call to action (shell) -------------------------------------- */
.cta{background:var(--ink-2);color:var(--cream);text-align:center}
.cta .sub{color:rgba(252,251,248,.72)}
.cta .head{margin-bottom:clamp(30px,3.6vw,44px)}


/* ==========================================================================
   --- resources only -----------------------------------------------------
   ========================================================================== */

/* --- the plinth ----------------------------------------------------------
   A brochure cover is a printed page, not a photograph, so it is not cropped
   into the site's 20px-radius frame — the corner would bite into the logo,
   which sits top-right on every CRESTIAL cover. Instead the cover keeps a
   paper-like 3px corner and a soft shadow, and the ROUNDED shape is the stone
   surface it rests on. Same radius language, applied to the ground. */
.plinth{margin:0;background:var(--stone);border-radius:var(--rad);
  display:grid;place-items:center;padding:clamp(30px,4.4vw,62px) clamp(30px,5vw,70px)}
.plinth img{width:100%;aspect-ratio:596/842;object-fit:cover;border-radius:3px;
  background:var(--card);
  box-shadow:0 1px 2px rgba(20,18,15,.16),0 22px 44px -22px rgba(20,18,15,.55);
  transition:transform .9s var(--ease),box-shadow .9s var(--ease)}
a:hover .plinth img,.bro-lead:hover .plinth img{transform:translateY(-6px);
  box-shadow:0 1px 2px rgba(20,18,15,.16),0 32px 52px -24px rgba(20,18,15,.5)}

/* --- the master brochure -------------------------------------------------
   The whole range in one volume, so it leads, at the scale of a .frow. Its
   cover is capped at 340px: 596 source px shown at 340 is still 1.75x. */
.bro-lead{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);
  gap:clamp(30px,6vw,96px);align-items:center;max-width:1120px;margin:0 auto}
.bro-lead .plinth img{max-width:340px}
.bro-lead h2{font-size:clamp(25px,2.6vw,34px);font-weight:200;margin-bottom:18px}
.bro-lead p{font-size:15px;line-height:1.85;color:var(--taupe);max-width:46ch;margin-bottom:30px}

/* --- the series brochures ------------------------------------------------
   Same card for every one, because this becomes a `brochure` custom post type
   the client adds to and reorders (CMS-REQUIREMENTS.md §4) — a card that is
   special today is the one that breaks when they drag it. */
.bro-sub{margin:clamp(70px,8vw,116px) auto 0;max-width:1120px}
.bro-sub__h{display:flex;align-items:baseline;justify-content:space-between;gap:20px;
  padding-bottom:18px;margin-bottom:clamp(30px,3.6vw,46px);border-bottom:1px solid var(--line)}
.bro-sub__h h3{font-size:clamp(19px,1.7vw,23px);font-weight:200}
.bro-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,2.4vw,34px)}
/* grid rows stretch every card to the tallest; the text column grows and
   .more is pushed to its foot, so View PDF lines up whether a title takes
   one line or two (client, 6 Oct 2026) */
.bro{display:flex;flex-direction:column;text-align:center}
.bro>div{flex:1;display:flex;flex-direction:column}
.bro .plinth{padding:clamp(24px,3vw,40px) clamp(30px,4vw,56px);margin-bottom:20px}
.bro .plinth img{max-width:230px}
.bro h4{font-size:16px;font-weight:300;letter-spacing:0;line-height:1.45;margin:0 auto 8px;max-width:26ch}
.bro .more{display:block;margin-top:auto;padding-top:12px;font-size:10px;font-weight:500;
  letter-spacing:.2em;text-transform:uppercase;transition:color .35s var(--ease)}
.bro:hover .more{color:var(--orange)}
.bro:focus-visible{outline:2px solid var(--orange);outline-offset:6px;border-radius:var(--rad)}

/* --- where the datasheets are --------------------------------------------
   One quiet row, not a section: it answers a question, it is not a feature. */
.ds{max-width:1120px;margin:clamp(70px,8vw,116px) auto 0;padding:clamp(28px,3.4vw,42px) clamp(26px,4vw,52px);
  background:var(--card);border-radius:var(--rad);
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px 48px;align-items:center}
.ds .eyebrow{margin-bottom:10px}
.ds h3{font-size:clamp(19px,1.7vw,23px);font-weight:200;margin-bottom:8px}
.ds p{font-size:14.5px;line-height:1.8;color:var(--taupe);margin:0;max-width:62ch}

/* --- the video library ---------------------------------------------------
   A YouTube card is a BUTTON, not an iframe, until it is clicked - see
   inc/post-types.php for why. It has to look like a player before it is one,
   so the triangle and the hover do the work an embed would otherwise do for
   free. */
.vlib{margin-top:clamp(34px,4vw,54px)}
/* ⚑ The whole section goes when there is nothing to play. crestial_videos()
   writes nothing until a film has a YouTube link or an uploaded file, and
   the twenty are seeded with their titles first - so the normal state of
   this page, for as long as the client takes to supply six links and
   fourteen files, was a "The films" heading and a standfirst promising
   collections and installation films over blank space. :has() is doing what
   PHP cannot reach here: the heading is client-editable page copy in the
   generated template, not something crestial_videos() owns.

   Keyed on .vcard, NOT on .vlib:empty. :empty counts whitespace, and the
   template emits a newline inside the container either way, so the empty
   version never matched - it tested green on the mockup, where the two
   sample cards are written inline, and did nothing at all on the page it
   was for. */
#videos:not(:has(.vcard)){display:none}
.vgroup{font-size:11px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;
  color:var(--taupe);margin:clamp(30px,3.4vw,46px) 0 18px}
.vgroup:first-child{margin-top:0}
.vgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(18px,2.4vw,30px)}
.vcard{margin:0}
.vcard__v,.vcard__play{display:block;width:100%;aspect-ratio:16/9;border-radius:var(--rad);
  background:var(--stone);overflow:hidden}
.vcard__play{position:relative;padding:0;border:0;cursor:pointer}
.vcard__play img{width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .6s var(--ease)}
.vcard__play:hover img{transform:scale(1.03)}
.vcard__tri{position:absolute;inset:0;margin:auto;width:56px;height:56px;border-radius:50%;
  background:rgba(20,18,15,.62);transition:background .35s var(--ease)}
.vcard__tri::after{content:"";position:absolute;inset:0;margin:auto;width:0;height:0;
  border-left:15px solid var(--cream);border-top:9px solid transparent;
  border-bottom:9px solid transparent;transform:translateX(2px)}
.vcard__play:hover .vcard__tri{background:var(--orange)}
.vcard__cap{margin-top:12px;font-size:14px;line-height:1.5;color:var(--ink)}
.vcard__art{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--taupe);margin-top:4px}

/* ===== responsive (this page only) ===== */
@media(max-width:860px){
  .vgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bro-lead{grid-template-columns:1fr;gap:clamp(26px,4vw,36px);max-width:540px}
  .bro-lead p{max-width:none}
  .ds{grid-template-columns:1fr}
  .ds .pill{justify-self:start}
}
@media(max-width:620px){
  .vgrid{grid-template-columns:1fr}
  .bro-grid{grid-template-columns:1fr;gap:16px}
  .bro{display:grid;grid-template-columns:118px minmax(0,1fr);gap:20px;align-items:center;text-align:left}
  .bro>div{display:block}
  .bro .more{padding-top:10px}
  .bro .plinth{padding:16px 18px;margin:0}
  .bro h4{margin-left:0}
  .bro-sub__h{flex-direction:column;gap:4px}
}
