/* ============================================
   Downloads page (downloads.html)
   The news page's banner and Media sub-nav (rules from serampore-html
   gallery.css), then the brochure as an e-brochure card with a 3D book
   mock-up. The card opens the shared brochure form.
   Loaded after style.css and project.css. Only gl-* / dl-* rules.
   ============================================ */

.gl-hero svg, .gl-subnav svg, .dl-sec svg{fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;}
:root{--dl-ease: cubic-bezier(0.22, 1, 0.36, 1);}

/* ---------- Banner (as on the news page) ---------- */
.gl-hero{position: relative; overflow: hidden; isolation: isolate; display: flex; min-height: 480px; background: rgb(18, 22, 26); color: #ffffff;}
.gl-hero-bg{position: absolute; inset: 0; z-index: -2;}
.gl-hero-bg img{width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%; display: block; translate: 0 var(--hb, 0); transform: scale(1.08); animation: glKen 14s var(--dl-ease) forwards;}
@keyframes glKen{to{transform: scale(1);}}
.gl-hero-shade{position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(12, 14, 16, 0.75) 0%, rgba(12, 14, 16, 0.42) 42%, rgba(12, 14, 16, 0.05) 75%),
  linear-gradient(180deg, rgba(12, 14, 16, 0.15) 0%, rgba(12, 14, 16, 0) 40%, rgba(12, 14, 16, 0.5) 100%);}
.gl-hero-inner{flex: 1; display: flex; align-items: center; width: 100%; max-width: 1400px; margin: 0 auto; padding: clamp(28px, 5vh, 64px) clamp(16px, 4vw, 56px);}
.gl-hero-copy{max-width: 640px; translate: 0 var(--hc, 0); animation: sol-rise 900ms ease both;}
.gl-hero .pj-badge{margin-bottom: 22px;}
.gl-hero .pj-hero2-title{font-size: clamp(46px, 5.2vw, 84px);}
.gl-hero .pj-hero2-lead{max-width: 480px;}

/* ---------- Media sub-nav (as on the news page) ---------- */
.gl-subnav{position: sticky; top: var(--gl-nav-h, 76px); z-index: 50; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(26, 20, 16, 0.07), 0 14px 30px -26px rgba(26, 20, 16, 0.35);}
.gl-subnav-inner{display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 1320px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 56px) 12px; overflow-x: auto; scrollbar-width: none;}
.gl-subnav-inner::-webkit-scrollbar{display: none;}
.gl-subnav-link{display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; min-height: 42px; padding: 0 16px 0 6px; border: 0; border-radius: 99px; background: none; font-family: Outfit, system-ui, sans-serif; font-size: 14px; font-weight: 500; color: rgb(61, 49, 41); white-space: nowrap; cursor: pointer; transition: background 220ms ease, color 220ms ease;}
.gl-subnav-ico{display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(240, 90, 40, 0.1); color: rgb(240, 90, 40); transition: background 220ms ease, color 220ms ease;}
.gl-subnav-ico svg{width: 16px; height: 16px;}
.gl-subnav-link:hover{background: #fff9f7; color: rgb(26, 20, 16);}
.gl-subnav-link.is-on{background: rgb(26, 20, 16); color: #ffffff;}
.gl-subnav-link.is-on .gl-subnav-ico{background: rgb(240, 90, 40); color: #ffffff;}
.gl-subnav-link:focus-visible{outline: 3px solid rgba(240, 90, 40, 0.35); outline-offset: 2px;}
/* the sub-nav sticks: the page wrapper must clip, not scroll */
@supports (overflow: clip){ .ic1{overflow-x: clip;} }

/* ---------- The brochure card ---------- */
.dl-sec{padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(56px, 7vw, 110px);}
.dl-card{position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: 24px clamp(24px, 4vw, 64px); width: 100%; max-width: 1080px; min-height: 440px; margin: 0 auto; padding: clamp(32px, 4.4vw, 64px); overflow: hidden; border: 0; border-radius: 34px; text-align: left; font-family: Outfit, system-ui, sans-serif; color: #ffffff; cursor: pointer;
  background: radial-gradient(circle at 85% 15%, rgb(255, 140, 92) 0%, transparent 55%), linear-gradient(150deg, rgb(246, 104, 52) 0%, rgb(228, 80, 30) 50%, rgb(186, 58, 18) 100%);
  box-shadow: 0 50px 100px -50px rgba(186, 58, 18, 0.75); transition: transform 500ms var(--dl-ease), box-shadow 500ms ease;}
.dl-card:hover{transform: translateY(-6px); box-shadow: 0 60px 110px -50px rgba(186, 58, 18, 0.85);}
.dl-card:focus-visible{outline: 3px solid rgba(240, 90, 40, 0.5); outline-offset: 4px;}
/* light that follows the pointer */
.dl-glow{position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%), rgba(255, 255, 255, 0.22), transparent 60%); opacity: 0; transition: opacity 400ms ease;}
.dl-card:hover .dl-glow{opacity: 1;}
.dl-card::before{content: ""; position: absolute; right: -120px; bottom: -160px; z-index: -1; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.04), 0 0 0 120px rgba(255, 255, 255, 0.03);}

.dl-copy{display: flex; flex-direction: column; align-items: flex-start; gap: 18px;}
.dl-k{display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85);}
.dl-k-ico{display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, 0.16); color: #ffffff;}
.dl-k-ico svg{width: 19px; height: 19px;}
.dl-t{font-size: clamp(30px, 3.4vw, 52px); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em;}
.dl-t em{display: block; font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: rgb(255, 228, 214);}
.dl-btn{display: inline-flex; align-items: center; gap: 10px; min-height: 52px; margin-top: 8px; padding: 0 26px; border-radius: 99px; background: #ffffff; font-size: 15px; font-weight: 600; color: rgb(214, 70, 24); box-shadow: 0 18px 34px -18px rgba(60, 20, 5, 0.6); transition: background 260ms ease, color 260ms ease;}
.dl-btn svg{width: 18px; height: 18px; transition: transform 300ms var(--dl-ease);}
.dl-card:hover .dl-btn{background: rgb(26, 20, 16); color: #ffffff;}
.dl-card:hover .dl-btn svg{transform: translateY(3px);}

/* the brochure as a book: cover with the live photo, pages behind it */
.dl-stage{position: relative; display: flex; align-items: center; justify-content: center; height: 100%; min-height: 320px; perspective: 1400px;}
.dl-book{position: relative; width: min(250px, 72%); aspect-ratio: 3 / 4; transform-style: preserve-3d; transform: rotateY(calc(-22deg + var(--ry, 0deg))) rotateX(calc(6deg + var(--rx, 0deg))) rotateZ(2deg); transition: transform 700ms var(--dl-ease); animation: dlFloat 6s ease-in-out infinite;}
@keyframes dlFloat{0%, 100%{translate: 0 0;} 50%{translate: 0 -10px;}}
.dl-card:hover .dl-book{transform: rotateY(calc(-8deg + var(--ry, 0deg))) rotateX(calc(2deg + var(--rx, 0deg))) rotateZ(0deg);}
.dl-page{position: absolute; inset: 0; border-radius: 4px 14px 14px 4px; background: #fbf7f4; box-shadow: inset 0 0 0 1px rgba(26, 20, 16, 0.06);}
.dl-page--2{transform: translate3d(8px, 4px, -12px);}
.dl-page--3{transform: translate3d(16px, 8px, -24px); background: #f1ebe6;}
.dl-cover{position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 4px 14px 14px 4px; background: #ffffff; box-shadow: -8px 0 0 -3px rgba(255, 255, 255, 0.4), 0 30px 50px -20px rgba(60, 20, 5, 0.7); transform-origin: left center; transition: transform 700ms var(--dl-ease);}
.dl-cover::before{content: ""; position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; width: 14px; background: linear-gradient(90deg, rgba(26, 20, 16, 0.22), rgba(255, 255, 255, 0.15) 45%, transparent);}
.dl-card:hover .dl-cover{transform: rotateY(-14deg);}
.dl-cover img{width: 100%; height: 64%; object-fit: cover; display: block;}
.dl-cover-t{flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10px 16px 14px 22px; font-size: 19px; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; color: rgb(26, 20, 16);}
.dl-cover-t small{font-size: 10px; font-weight: 600; letter-spacing: 0.28em; color: rgb(240, 90, 40);}
.dl-cover-t b{margin-top: 4px; font-family: "Source Serif 4", Georgia, serif; font-size: 15px; font-style: italic; font-weight: 400; text-transform: none; color: rgb(240, 90, 40);}
.dl-shadow{position: absolute; left: 50%; bottom: 4%; width: 56%; height: 22px; border-radius: 50%; background: rgba(60, 20, 5, 0.35); filter: blur(14px); transform: translateX(-50%); animation: dlShadow 6s ease-in-out infinite;}
@keyframes dlShadow{0%, 100%{opacity: 1; scale: 1;} 50%{opacity: 0.7; scale: 0.9;}}

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .dl-card{grid-template-columns: minmax(0, 1fr); min-height: 0;}
  .dl-stage{order: -1; min-height: 300px;}
}
@media (max-width: 720px){
  .gl-hero{min-height: 0;}
  .gl-hero-shade{background: linear-gradient(180deg, rgba(12, 14, 16, 0.2) 0%, rgba(12, 14, 16, 0.1) 25%, rgba(12, 14, 16, 0.6) 50%, rgba(12, 14, 16, 0.9) 100%);}
  .gl-hero-inner{align-items: flex-end; padding: 18px 16px;}
  .gl-hero .pj-hero2-crumb{gap: 6px; margin-bottom: 14px; font-size: 12px;}
  .gl-hero .pj-badge{margin-bottom: 12px; padding: 5px 11px; font-size: 10.5px; letter-spacing: 0.05em;}
  .gl-hero .pj-hero2-title{font-size: clamp(38px, 11vw, 48px); line-height: 0.95; letter-spacing: -0.04em;}
  .gl-hero .pj-hero2-lead{max-width: none; margin-top: 12px; font-size: 14.5px; line-height: 1.55;}
  .gl-subnav-inner{justify-content: flex-start; gap: 6px; padding: 8px 16px 10px;}
  .gl-subnav-link{min-height: 38px; padding: 0 12px 0 4px; gap: 8px; font-size: 13px;}
  .gl-subnav-ico{width: 28px; height: 28px;}
  .dl-card{padding: 26px 20px 28px; border-radius: 26px; gap: 18px;}
  .dl-stage{min-height: 250px;}
  .dl-book{width: min(190px, 56%);}
  .dl-cover-t{padding: 8px 12px 10px 18px; font-size: 15px;}
  .dl-cover-t b{font-size: 13px;}
  .dl-copy{gap: 14px;}
  .dl-btn{align-self: stretch; justify-content: center;}
}
@media (prefers-reduced-motion: reduce){
  .gl-hero-bg img, .gl-hero-copy, .dl-book, .dl-shadow{animation: none;}
  .gl-hero-bg img{transform: none;}
  .dl-card, .dl-book, .dl-cover, .dl-btn, .dl-glow{transition: none;}
}

/* ---------- Banner art: brochure pages fanned out ----------
   A blurred, darkened project view with a warm glow, and three brochure
   pages (two inside spreads, the cover in front) floating on the right. */
.dl-art{overflow: hidden; background: radial-gradient(ellipse 55% 70% at 74% 45%, rgba(240, 90, 40, 0.38), transparent 70%), rgb(21, 17, 15);}
.dl-art .dl-art-bg{position: absolute; inset: 0; opacity: 0.4; filter: blur(16px) saturate(1.15);}
.dl-art-stack{position: absolute; right: 10%; top: 50%; width: min(370px, 28vw); aspect-ratio: 1 / 0.95; translate: 0 -50%;}
.dl-sheet{position: absolute; display: flex; flex-direction: column; gap: 7px; width: 58%; aspect-ratio: 3 / 4; padding: 9px 9px 12px; border-radius: 5px 14px 14px 5px; background: #fbf8f5; box-shadow: 0 34px 60px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08); animation: dlSheet 7s ease-in-out infinite;}
.dl-art .dl-sheet img{position: static; width: 100%; height: 56%; object-fit: cover; border-radius: 4px; opacity: 1; filter: none; transform: none; translate: none; animation: none;}
.dl-sheet i{display: block; height: 6px; border-radius: 3px; background: rgba(26, 20, 16, 0.12);}
.dl-sheet i:first-of-type{height: 9px; width: 70%; margin-top: 4px; background: rgba(240, 90, 40, 0.45);}
.dl-sheet i:nth-of-type(3){width: 86%;}
.dl-sheet i:last-of-type{width: 55%;}
.dl-sheet--1{left: 0; top: 14%; rotate: -15deg; animation-delay: -2.4s; opacity: 0.85;}
.dl-sheet--2{left: 21%; top: 3%; rotate: -4deg; animation-delay: -1.2s;}
.dl-sheet--3{left: 42%; top: 12%; rotate: 8deg; padding: 0; overflow: hidden;}
.dl-sheet--3 img{height: 64%; border-radius: 0;}
.dl-sheet--3 .dl-cover-t{font-size: clamp(13px, 1.3vw, 18px);}
.dl-sheet--3 .dl-cover-t b{font-size: 0.8em;}
.dl-sheet--3::before{content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: linear-gradient(90deg, rgba(26, 20, 16, 0.22), rgba(255, 255, 255, 0.15) 45%, transparent);}
@keyframes dlSheet{0%, 100%{translate: 0 0;} 50%{translate: 0 -12px;}}
/* the copy sits on the left: keep that side dark */
.dl-art + .gl-hero-shade{background: linear-gradient(90deg, rgba(12, 14, 16, 0.8) 0%, rgba(12, 14, 16, 0.45) 40%, rgba(12, 14, 16, 0) 70%);}
@media (max-width: 720px){
  .dl-art-stack{right: -6%; top: 6%; width: 64vw; translate: none; opacity: 0.6;}
  .dl-art + .gl-hero-shade{background: linear-gradient(180deg, rgba(12, 14, 16, 0.1) 0%, rgba(12, 14, 16, 0.35) 40%, rgba(12, 14, 16, 0.85) 75%, rgba(12, 14, 16, 0.95) 100%);}
}
@media (prefers-reduced-motion: reduce){ .dl-sheet{animation: none;} }
