/* Humanist fonts are loaded by shared/coming-to-life.css for local and server use. */
/* Franklin palette. Shared CSS is extracted from the Drummer Boy reference.
   Colonial Philadelphia palette with subtle blue-gray section transitions. */
:root {
  --ctl-content-width: 980px;
  --maxw: calc(var(--ctl-content-width) + 36px);
  --ctl-deep-navy: #20364B;
  --ctl-colonial-slate: #2F4358;
  --ctl-philadelphia-blue: #415A6E;
  --ctl-muted-steel-blue: #536B80;
  --ctl-shade: rgba(32,54,75,.16);
  --ctl-chrome-bg: #17283A;
  --bg: var(--ctl-deep-navy);
  --panel: #2F4358;
  --panel-2: #34495E;
  --gold: #C8A55A;
  --gold-2: #C8A55A;
  --text: #F0ECE5;
  --muted: #D8D0C3;
  --brown: #A56E57;
  --patriot-blue: #5E7FA3;
  --patriot-red: #A56E57;
  --parchment: #D8D0C3;
  --series-color-1: rgba(31,48,66,.28);
  --series-color-2: #2F4358;
  --series-color-3: #1F3042;
  --series-color-4: #1F3042;
  --series-color-5: rgba(31,48,66,.22);
  --series-color-6: rgba(200,165,90,.4);
  --series-color-7: rgba(94,127,163,.16);
  --series-color-8: #34495E;
  --series-color-9: #1F3042;
  --series-color-10: rgba(184,189,195,.22);
  --series-color-11: #24364A;
  --series-color-12: rgba(94,127,163,.36);
  --series-color-13: rgba(175,198,222,.18);
  --series-color-14: rgba(175,198,222,.16);
  --series-color-15: rgba(31,48,66,.82);
  --series-color-16: #F0ECE5;
  --series-color-17: rgba(31,48,66,.94);
  --series-color-18: #293D51;
  --series-color-19: rgba(47,67,88,.25);
  --series-color-20: rgba(31,48,66,.55);
  --series-color-21: rgba(47,67,88,.4);
  --series-color-22: rgba(31,48,66,.65);
  --series-color-23: #C8A55A;
  --series-color-24: rgba(175,198,222,.06);
  --series-color-25: rgba(216,208,195,.03);
  --series-color-26: rgba(165,110,87,.08);
  --series-color-27: #293D51;
  --series-color-28: rgba(175,198,222,.09);
  --series-color-29: rgba(31,48,66,.18);
  --series-color-30: rgba(200,165,90,.65);
  --series-color-31: rgba(200,165,90,0);
  --series-color-32: rgba(184,189,195,.28);
  --series-color-33: rgba(184,189,195,.22);
  --series-color-34: rgba(200,165,90,.4);
  --series-color-35: rgba(31,48,66,.02);
  --series-color-36: rgba(31,48,66,.86);
  --series-color-37: rgba(31,48,66,.96);
  --series-color-38: rgba(94,127,163,.08);
  --series-color-39: rgba(175,198,222,.07);
  --series-color-40: #B8BDC3;
  --series-color-41: #F0ECE5;
  --series-color-42: #B8BDC3;
  --series-color-43: rgba(31,48,66,.9);
  --series-color-44: rgba(31,48,66,.96);
  --series-color-45: rgba(31,48,66,.35);
  --series-color-46: rgba(200,165,90,.45);
  --series-color-47: rgba(47,67,88,.96);
  --series-color-48: #D8D0C3;
  --gallery-background-image: url("images/Franklin-Half-Dollar-BG.webp");
}

/* Slab corner mask: 265 / 1680 horizontally and 265 / 2232 vertically.
   Keep the zoom icon outside the mask and retain the original image ratio. */
.hero-media .zoom-container {
  width: 100%;
}

.hero-media .slab-image-container {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1680 / 2232;
  border-radius: 15.7738095238% / 11.8727598566%;
  overflow: hidden;
}

.hero-media .slab-image-container img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}
/* Contained atmospheric backgrounds; section borders retain clear edges. */
body {
  background: var(--ctl-deep-navy);
}

.s-hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(175,198,222,.13), transparent 48%),
    linear-gradient(155deg, transparent, var(--ctl-shade)),
    var(--ctl-colonial-slate);
}

.hero-media .carousel::before {
  background: radial-gradient(ellipse at center, rgba(175,198,222,.22) 0%, rgba(94,127,163,.15) 35%, transparent 68%);
}

.hero-media .carousel::after {
  background: radial-gradient(ellipse at center, rgba(200,165,90,.09), transparent 58%);
}

.s-gallery {
  background: #293D51;
}

.s-gallery::before {
  background:
    linear-gradient(120deg, rgba(47,67,88,.80), rgba(31,48,66,.82)),
    var(--gallery-background-image) center / cover no-repeat;
  opacity: 1;
  filter: none;
  transform: none;
}

.s-video {
  background: linear-gradient(115deg, transparent, rgba(47,67,88,.25)), var(--ctl-deep-navy);
}

.s-studio {
  background:
    radial-gradient(ellipse at 85% 25%, transparent 15%, var(--ctl-shade)),
    var(--ctl-muted-steel-blue);
}

.s-studio::before {
  background: none;
}

.s-about {
  background: linear-gradient(110deg, var(--ctl-shade), transparent), var(--ctl-philadelphia-blue);
}

.s-cta {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(47,67,88,.25), transparent 65%),
    var(--ctl-deep-navy);
}

.hero-logo-bar,
.footer {
  background: var(--ctl-chrome-bg);
}

/* Fine silver edges separate blocks without introducing heavy rules. */
.s-gallery,
.s-video,
.s-studio,
.s-about,
.s-cta,
.footer {
  border-top: 1px solid rgba(184,189,195,.20);
}

.footer {
  border-top-color: var(--series-color-10);
}

/* Small labels and inline links need more contrast than large brass headings. */
.hero-kicker,
.hero-collection,
.hero-status,
.about-kicker,
.video-kicker,
.studio-kicker,
.small-link,
.gallery-cta-text a,
.legal-link,
.btn-secondary {
  color: #D8D0C3;
}

.scroll-hint {
  color: #D8D0C3;
  opacity: 1;
}

/* Editorial components: kept together for future shared-component adoption. */
.ctl-specbar {
  background: linear-gradient(90deg, var(--ctl-shade), transparent 50%, var(--ctl-shade)), var(--ctl-muted-steel-blue);
  color: #F0ECE5;
  border-block: 1px solid rgba(184,189,195,.35);
  padding: 24px 0;
}
.ctl-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
.ctl-specs > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}
.ctl-specs > div + div { border-left: 1px solid rgba(240,236,229,.30); }
.ctl-specs dt { order: 2; font-size: 10pt; letter-spacing: .12em; }
.ctl-specs dd { margin: 0 0 5px; font-size: 28pt; font-weight: 700; line-height: 1.1; }
.ctl-editorial {
  padding: 60px 0;
  border-top: 1px solid rgba(184,189,195,.20);
}
.s-history {
  background: linear-gradient(180deg, transparent, var(--ctl-shade)), var(--ctl-philadelphia-blue);
}
.s-designs {
  background:
    radial-gradient(ellipse at 15% 30%, transparent 15%, var(--ctl-shade)),
    var(--ctl-colonial-slate);
}
.s-presentation { background: linear-gradient(225deg, transparent, var(--ctl-shade)), var(--ctl-colonial-slate); }

/* Ivory keeps text readable on the lighter steel-blue studio background. */
.s-studio .studio-kicker,
.s-studio .studio-copy p,
.s-studio .studio-note {
  color: var(--text);
}

.s-studio .studio-title {
  color: var(--gold-2);
}
.ctl-intro { max-width: 820px; margin: 0 auto; text-align: center; }
.ctl-rule { display: block; width: 48px; height: 2px; background: var(--gold); margin: 0 auto 20px; }
.ctl-editorial p { font-size: 15pt; line-height: 1.55; color: var(--muted); margin: 0 0 16px; }
.ctl-editorial .ctl-eyebrow { font-size: 11pt; letter-spacing: .14em; line-height: 1.4; margin: 0 0 12px; }
.ctl-section-title { font-size: 30pt; line-height: 1.15; color: var(--gold-2); margin: 0 0 22px; font-weight: 700; text-wrap: balance; }
.ctl-intro > p:last-child { margin-bottom: 0; }
.ctl-section-heading { margin-bottom: 28px; }
.ctl-section-heading .ctl-section-title { margin-bottom: 0; }
.ctl-design-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.ctl-design-card { min-width: 0; display: flex; flex-direction: column; }
.ctl-design-card h3 { font-size: 22pt; line-height: 1.2; color: var(--gold-2); margin: 0 0 14px; }
.ctl-image-slot { margin: 0 0 24px; aspect-ratio: 3 / 2; width: 100%; overflow: hidden; border: 1px solid rgba(184,189,195,.35); border-radius: 12px; background: rgba(31,48,66,.35); }
.ctl-image-placeholder { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; padding: 24px; color: var(--muted); }
.ctl-image-placeholder .ctl-placeholder-label { font-size: 10pt; letter-spacing: .14em; color: #AFC6DE; }
.ctl-image-placeholder strong { font-size: 18pt; line-height: 1.25; }
.ctl-image-placeholder > span:last-child { font-size: 12pt; line-height: 1.4; }
.ctl-image-slot > img { width: 100%; height: 100%; object-fit: contain; }
.ctl-presentation-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 40px; }
.ctl-omp-slot { margin: 0; aspect-ratio: auto; }
.ctl-omp-slot > picture { display: block; }
.ctl-omp-slot > picture > img { display: block; width: 100%; height: auto; }
@media (max-width: 768px) {
  .ctl-editorial { padding: 40px 0; }
  .ctl-specbar { padding: 20px 0; }
  .ctl-specs > div { padding: 0 4px; }
  .ctl-specs dd { font-size: clamp(24px, 6vw, 32px); line-height: 35.2px; }
  .ctl-specs dt { font-size: clamp(8.5px, 2.3vw, 12px); letter-spacing: 0; line-height: 16.2px; white-space: nowrap; }
  .ctl-section-title { font-size: 22pt; }
  .ctl-editorial p { font-size: 13pt; }
  .ctl-design-grid,
  .ctl-presentation-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .ctl-design-card h3 { font-size: 20pt; }
  .ctl-image-placeholder { padding: 18px; }
}
/* Use the Other Videos carousel's 980px content boundaries across the page.
   Retain the shared wrapper's desktop/mobile gutters and existing column ratios. */
.s-video .video-layout,
.s-video .video-inner,
.s-gallery .carousel-track-wrap,
.s-studio .carousel,
.s-studio .carousel-track-wrap,
.s-about .about-inner {
  width: 100%;
  max-width: none;
}

.hero-top {
  max-width: var(--ctl-content-width);
  width: calc(100% - 36px);
  margin-inline: auto;
}

.footer-inner {
  max-width: var(--ctl-content-width);
}

.other-video-carousel {
  max-width: var(--ctl-content-width);
}

/* Keep navigation buttons inside the same content boundaries. */
.hero-media .carousel-btn.prev,
.s-studio .carousel-btn.prev { left: 10px; }
.hero-media .carousel-btn.next,
.s-studio .carousel-btn.next { right: 10px; }

@media (max-width: 768px) {
  .hero-top { width: calc(100% - 28px); }
}

.s-about .about-inner {
  padding-inline: 0;
}

.s-studio .studio-copy {
  max-width: none;
  margin-inline: 0;
  text-align: left;
}

.s-studio .studio-two-col > *,
.s-video .s-video-grid > * {
  min-width: 0;
}

/* Gallery heading and description */
@media (min-width: 1024px) {
  .gallery-copy {
    max-width: none;
    width: 100%;
  }

  .gallery-title,
  .gallery-copy p {
    max-width: 100%;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
  }
}



/* Giveaway popup presentation; isolated from existing page layouts. */
.giveaway-popup {
  box-sizing: border-box;
  width: 1000px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--ctl-colonial-slate);
  color: var(--text);
  font-family: inherit;
  box-shadow: 0 18px 60px rgba(0,0,0,.4);
}
.giveaway-popup::backdrop { background: rgba(23,40,58,.78); }
/* Preserve the displayed image proportions; let copy size to its content. */
.giveaway-popup-layout { display: block; }
.giveaway-popup-image {
  display: block; width: 100%; height: auto; aspect-ratio: auto;
  object-fit: cover; object-position: center;
}
.giveaway-popup-layout > .giveaway-popup-copy { box-sizing: border-box; }
.giveaway-popup-copy {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 32px 40px 12px; text-align: center;
  background: #20364B; color: #F0ECE5;
}
.giveaway-popup-copy::before {
  content: ""; position: absolute; inset: 0;
  background: url("https://ctl.coinadvisor.com/shared/assets/gaudioso-signature_SILVER_v2.svg") center / 94% auto no-repeat;
  opacity: .25; filter: blur(3px); transform: rotate(-8deg);
  pointer-events: none; z-index: -1;
}
/* Dark atmospheric glow above the signature and behind the popup content. */
.giveaway-popup-copy::after {
  content: ""; position: absolute; inset: -8% -4%;
  background: radial-gradient(ellipse at 50% 45%, rgba(23,40,58,.82) 0%, rgba(32,54,75,.58) 42%, rgba(32,54,75,0) 74%);
  filter: blur(24px); pointer-events: none; z-index: -1;
}
.giveaway-popup-copy .giveaway-popup-eyebrow {
  margin: 0 0 14px; color: #C8A55A; font-size: 13px;
  font-weight: 700; letter-spacing: .16em; line-height: 1.4;
}
.giveaway-popup-copy h2 { margin: 0 0 20px; color: #C8A55A; font-size: 36px; line-height: 1.15; }
.giveaway-popup-copy .giveaway-popup-body { max-width: 620px; margin: 0 auto 28px; font-size: 20px; line-height: 1.5; }
.giveaway-popup-disclosure { width: 100%; max-width: none; margin: 14px auto 12px; font-size: 12px; line-height: 1.6; }
.giveaway-popup-disclosure a { color: inherit; text-decoration: underline; }
.giveaway-popup .giveaway-popup-entry { background: #C8A55A; color: #20364B; padding: 16px 36px; font-size: 21px; line-height: 1.25; max-width: 100%; white-space: normal; }
.giveaway-popup-close {
  display: block; margin: 18px auto 0; padding: 10px 12px;
  border: 0; background: transparent; color: #D8D0C3;
  font: inherit; font-size: 15px; line-height: 1.5;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.giveaway-popup .btn:disabled { opacity: 1; cursor: not-allowed; }
.giveaway-popup button:focus-visible { outline: 3px solid #AFC6DE; outline-offset: 3px; }
@media (max-width: 600px) {
  .giveaway-popup { width: 92vw; max-width: 92vw; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .giveaway-popup-copy { padding: 24px 20px 12px; }
  .giveaway-popup-copy h2 { font-size: clamp(26px, 6vw, 32px); margin-bottom: 16px; }
  .giveaway-popup-copy .giveaway-popup-body { font-size: 18px; margin-bottom: 24px; }
  .giveaway-popup-disclosure { font-size: 9px; }
  .giveaway-popup .giveaway-popup-entry { font-size: 19px; padding: 14px 28px; }
}

#gallery {
  scroll-margin-top: 120px;
}

@media (max-width: 768px) {
  .s-hero {
    padding-bottom: 32px;
  }
}
