/* ==========================================================================
   Homepage — Hero, Archival Photo, Tagline, Preview Sections
   ========================================================================== */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--color-navy-deepest);
  overflow: hidden;
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(10px, 1.5vw, 20px);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-art-arch {
  position: absolute;
  top: 0;
  right: 0;
  width: 54%;
  height: 92%;
  background: url("../assets/images/04_hero_classical_architecture.jpg") no-repeat top right / cover;
  filter: grayscale(0.3) sepia(0.2) brightness(0.88) contrast(1.08);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 20%, rgba(0, 0, 0, 0.45) 30%, #000 46%);
  mask-image: linear-gradient(100deg, transparent 0%, transparent 20%, rgba(0, 0, 0, 0.45) 30%, #000 46%);
}

.hero-art-crest {
  position: absolute;
  top: 2%;
  left: 0;
  width: 56%;
  height: 64%;
  background: url("../assets/images/03_hero_crest_engraving.png") no-repeat left top / contain;
  opacity: 0.92;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 88% 92% at 34% 32%, #000 70%, transparent 99%);
  mask-image: radial-gradient(ellipse 88% 92% at 34% 32%, #000 70%, transparent 99%);
}

.hero-art-texture {
  position: absolute;
  inset: 0;
  background: url("../assets/images/10_dark_filigree_texture.jpg") repeat;
  background-size: 700px;
  opacity: 0.18;
  mix-blend-mode: overlay;
}

.hero-art-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 12%, rgba(5, 7, 12, 0.02) 0%, rgba(5, 7, 12, 0.4) 78%),
    linear-gradient(180deg,
      rgba(7, 12, 23, 0.18) 0%,
      rgba(7, 12, 23, 0.4) 26%,
      rgba(7, 12, 23, 0.78) 52%,
      var(--color-navy-deepest) 82%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding-top: clamp(190px, 26vw, 320px);
}

.hero-established {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--color-gold-bright);
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-established::before,
.hero-established::after {
  content: "";
  height: 1px;
  width: clamp(48px, 9vw, 100px);
  background: linear-gradient(90deg, transparent, var(--color-gold) 50%, transparent);
}

.hero-title {
  font-size: clamp(40px, 9.6vw, 84px);
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

@media (min-width: 850px) {
  .hero-title .line-gold {
    white-space: nowrap;
  }
}

.hero-title .line-gold {
  background: linear-gradient(180deg, #f6e6b8 0%, #e2c07d 30%, #c9a24b 60%, #92711f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.hero-title .line-cream {
  display: inline-block;
  margin-top: 0.08em;
  font-size: 0.86em;
  color: var(--color-cream);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-family: var(--font-caption);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 4vw, 38px);
  color: #d3924a;
  margin-top: 20px;
}

.hero-description {
  margin: 22px auto 0;
  max-width: 700px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.62;
  color: var(--text-on-navy);
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ---------- ARCHIVAL FAMILY PHOTO ---------- */
.archival-section {
  position: relative;
  background: var(--color-parchment);
  padding: 20px 0 40px;
}

/* Subtle overall paper-grain wash. A single non-repeating cover-sized layer
   at very low opacity — no tiling, so there is no repeat seam anywhere. */
.archival-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/09_parchment_texture.jpg") no-repeat center / cover;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* A single soft handwriting accent, confined to the bottom-left corner only
   (well clear of the wax seal in the bottom-right) and faded on every edge
   via a radial mask so it has no visible rectangular boundary. */
.archival-section::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 34%;
  background: url("../assets/images/11_old_script_texture.jpg") no-repeat left bottom / cover;
  opacity: 0.14;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 15% 100%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 75% at 15% 100%, #000 0%, transparent 75%);
  pointer-events: none;
}

.photo-frame {
  position: relative;
  max-width: 840px;
  width: 90%;
  margin: 0 auto;
  border: 1.5px solid var(--color-gold);
  border-radius: 6px;
  padding: 8px;
  background: var(--color-parchment-light);
  box-shadow: 0 10px 26px -14px rgba(30, 20, 5, 0.4);
}

.photo-frame-inner {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 1.86 / 1;
}

.photo-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: sepia(0.5) contrast(1.06) brightness(0.98);
}

.photo-frame-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 4, 0.15) 0%, transparent 30%, transparent 65%, rgba(20, 14, 4, 0.45) 100%);
}

.photo-caption-top {
  position: absolute;
  top: 22px;
  right: 30px;
  z-index: 2;
  text-align: right;
  color: var(--color-cream);
}

.photo-caption-top .cap-title {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.55;
  color: var(--color-gold-bright);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.photo-caption-top .cap-rule {
  height: 1px;
  width: 46px;
  background: var(--color-gold);
  margin: 8px 0 0 auto;
}

.photo-caption-bottom {
  position: absolute;
  bottom: 22px;
  left: 30px;
  z-index: 2;
  color: var(--color-cream);
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: clamp(78px, 12vw, 118px);
  height: clamp(78px, 12vw, 118px);
  border-radius: 50%;
  border: 2px solid var(--color-gold-bright);
  background: rgba(8, 13, 24, 0.5);
  box-shadow: 0 0 0 6px rgba(8, 13, 24, 0.28), inset 0 0 0 1px rgba(226, 192, 125, 0.4), 0 10px 28px -8px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-classic), background 0.25s ease;
  cursor: pointer;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(10, 16, 28, 0.75);
}

.play-button .triangle {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 26px solid var(--color-gold-bright);
}

.wax-seal {
  position: absolute;
  bottom: clamp(-64px, -6.5vw, -46px);
  right: clamp(-38px, -3.6vw, -26px);
  width: clamp(110px, 18vw, 182px);
  height: clamp(110px, 18vw, 182px);
  z-index: 4;
  /* filter lives on this OUTER wrapper so the drop-shadow is computed from
     the already-masked (clean circular) child below it, not from the source
     PNG's own noisy alpha channel. If drop-shadow were applied directly to
     a masked element, the shadow is computed before the mask crops it —
     see .wax-seal-img for why the mask has to live one level down. */
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  transform: rotate(-5deg);
}

.wax-seal-img {
  display: block;
  width: 100%;
  height: 100%;
  /* The supplied "transparent" PNG's alpha channel is noisy and only
     partially transparent outside the wax disc (sampled: corners read up to
     92% opaque, not 0%), which reads as a faint square halo against the
     parchment. Force a clean circular cutout here so only the actual wax
     disc paints, regardless of the source file's imperfect alpha. */
  -webkit-mask-image: radial-gradient(circle at 50% 49%, #000 0%, #000 80%, transparent 90%);
  mask-image: radial-gradient(circle at 50% 49%, #000 0%, #000 80%, transparent 90%);
}

.homepage-tagline {
  text-align: center;
  padding: 34px 20px 8px;
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-on-parchment-muted);
}

/* ---------- VIDEO MODAL ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 12, 0.86);
  padding: 24px;
}

.video-modal[data-open="true"] {
  display: flex;
}

.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: var(--color-black);
  border: 1px solid var(--color-gold-line);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-navy-muted);
  font-family: var(--font-caption);
  font-style: italic;
  text-align: center;
  padding: 24px;
}

.video-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-gold-line);
  background: transparent;
  color: var(--color-gold-bright);
  font-size: 20px;
}

/* ---------- FEATURED PROFILES PREVIEW ---------- */
.featured-section {
  background: var(--color-parchment-light);
  padding: 96px 0;
  position: relative;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.featured-card {
  background: var(--color-parchment);
  border: 1px solid var(--color-parchment-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-classic), box-shadow 0.25s var(--ease-classic);
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
}

.featured-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-navy);
  overflow: hidden;
}

.featured-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.35) contrast(1.05);
}

.featured-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 12, 23, 0.75);
  color: var(--color-gold-bright);
  font-size: 10.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--color-gold-line);
  border-radius: 3px;
}

.featured-card-body {
  padding: 22px 24px 26px;
}

.featured-card-name {
  font-size: 20px;
  color: var(--color-sepia-dark);
  margin-bottom: 4px;
}

.featured-card-meta {
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  margin-bottom: 12px;
}

.featured-card-bio {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-on-parchment-muted);
  margin-bottom: 18px;
}

.featured-card-link {
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-sepia-dark);
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 2px;
}

.section-footer-link {
  text-align: center;
  margin-top: 46px;
}

/* ---------- TIMELINE PREVIEW ---------- */
.timeline-preview-section {
  background: var(--color-navy-deepest);
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.timeline-preview-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/13_old_map_texture.jpg") repeat;
  background-size: 900px;
  opacity: 0.08;
  mix-blend-mode: overlay;
}

.timeline-preview-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.timeline-preview-track::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-line) 10%, var(--color-gold-line) 90%, transparent);
}

.timeline-preview-item {
  position: relative;
  padding-top: 46px;
  text-align: center;
}

.timeline-preview-item::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--color-navy-deepest);
  border: 2px solid var(--color-gold);
}

.timeline-preview-year {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--color-gold-bright);
  margin-bottom: 8px;
}

.timeline-preview-title {
  font-size: 16px;
  color: var(--color-cream);
  margin-bottom: 8px;
}

.timeline-preview-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-on-navy-muted);
}

/* ---------- ARCHIVE PREVIEW ---------- */
.archive-preview-section {
  position: relative;
  padding: 0;
}

.archive-preview-inner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: url("../assets/images/08_archive_books_globe.jpg") no-repeat center / cover;
}

.archive-preview-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 7, 12, 0.92) 0%, rgba(5, 7, 12, 0.72) 45%, rgba(5, 7, 12, 0.35) 100%);
}

.archive-preview-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 60px 32px;
}

.archive-preview-content .section-eyebrow {
  justify-content: flex-start;
}

.archive-preview-content .section-eyebrow::after {
  display: none;
}

.archive-preview-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--color-cream);
  margin-bottom: 16px;
}

.archive-preview-content p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-on-navy-muted);
  margin-bottom: 28px;
}
