/* ==========================================================================
   Eulogy Legacy — global styles
   Palette: warm cream + deep forest + antique brass
   Type:    Cormorant Garamond (display) + Inter (body)
   ========================================================================== */

:root {
  --cream:        #FBF7EF;
  --cream-deep:   #F2EBDC;
  --ink:          #1F231F;
  --ink-soft:     #3A3D38;
  --forest:       #2E4A3E;
  --forest-deep:  #1F332B;
  --brass:        #B8935A;
  --brass-soft:   #D9BE94;
  --rule:         #E5DCC9;
  --muted:        #6F6B61;

  --maxw:         1180px;
  --radius:       4px;

  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm:    0 2px 12px rgba(31, 35, 31, 0.06);
  --shadow-md:    0 12px 40px rgba(31, 35, 31, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 3.8vw, 2.8rem); font-weight: 400; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }
a  { color: var(--forest); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brass); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 400;
  max-width: 38ch;
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--ink   { background: var(--ink); color: var(--cream); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--cream); }
.section--ink p { color: rgba(251, 247, 239, 0.78); }
.section--cream-deep { background: var(--cream-deep); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex; align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .brand-logo { height: 36px; }
}

/* Footer variant — sits inside the dark footer column. Slightly smaller
   so it doesn't crowd the descriptive paragraph beneath it. */
.brand-logo--light { height: 40px; }

/* Legacy .brand-mark — no longer used in the markup, but kept in case any
   other element (or your future edits) reaches for it. */
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
  display: grid; place-items: center;
  color: var(--brass-soft);
  font-family: var(--font-display);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--forest); }
.nav-links a.is-active { position: relative; }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--brass);
}

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px;
  cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 28px 24px;
    gap: 0;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links li:last-child a { border-bottom: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--forest);
  color: var(--cream);
}
.btn-primary:hover { background: var(--forest-deep); color: var(--cream); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-soft);
}
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); }
.btn-light {
  background: var(--cream);
  color: var(--ink);
}
.btn-light:hover { background: #fff; color: var(--forest); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 11vw, 150px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(184, 147, 90, 0.10), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(46, 74, 62, 0.08), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-top: 12px; }
.hero h1 em {
  font-style: italic;
  color: var(--forest);
}
.hero-meta {
  margin-top: 32px;
  display: flex; gap: 16px; flex-wrap: wrap;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* hero visual: a stylised film-frame plate */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(46, 74, 62, 0.95), rgba(31, 51, 43, 0.85)),
    radial-gradient(circle at 30% 30%, rgba(184, 147, 90, 0.5), transparent 50%);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0) 0px,
      rgba(0, 0, 0, 0) 2px,
      rgba(255, 255, 255, 0.025) 3px
    );
  pointer-events: none;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(217, 190, 148, 0.35);
  border-radius: 3px;
  pointer-events: none;
}
.hero-quote {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 40px 36px;
  color: var(--cream);
}
.hero-quote q {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.4;
  quotes: """ """;
  font-weight: 400;
  display: block;
}
.hero-quote q::before { color: var(--brass-soft); }
.hero-quote q::after  { color: var(--brass-soft); }
.hero-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-top: 18px;
}

/* film perforations on the side of the hero visual */
.hero-visual .sprockets {
  position: absolute; top: 0; bottom: 0; width: 14px;
  display: flex; flex-direction: column; justify-content: space-around;
  padding: 16px 0;
}
.hero-visual .sprockets.left { left: 0; }
.hero-visual .sprockets.right { right: 0; }
.hero-visual .sprockets span {
  display: block; width: 6px; height: 9px; margin: 0 auto;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 1px;
}

/* ---------- page header (non-home) ---------- */
.page-head {
  padding: clamp(72px, 9vw, 130px) 0 clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(184, 147, 90, 0.08), transparent 50%);
  pointer-events: none;
}
.page-head .wrap { position: relative; }
.page-head h1 { max-width: 22ch; }
.page-head .lede { margin-top: 16px; }

/* ---------- feature / value cards ---------- */
.value-card {
  padding: 36px 32px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brass-soft);
}
.value-card .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 14px;
  font-style: italic;
}
.value-card .icon {
  width: 44px; height: 44px;
  margin-bottom: 18px;
  color: var(--forest);
}

/* ---------- process steps ---------- */
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 36px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.process-step:last-child { border-bottom: 1px solid var(--rule); }
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--brass);
  font-style: italic;
  line-height: 1;
}
.process-step h3 { margin-top: 4px; font-size: 1.7rem; font-family: var(--font-display); font-weight: 400; }
@media (max-width: 640px) {
  .process-step { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- pricing cards ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 920px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.price-card {
  display: flex; flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.is-featured {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.price-card.is-featured h3,
.price-card.is-featured .price { color: var(--cream); }
.price-card.is-featured p,
.price-card.is-featured .price-features li { color: rgba(251, 247, 239, 0.82); }
.price-card.is-featured .ribbon {
  position: absolute; top: -14px; right: 24px;
  background: var(--brass);
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  font-weight: 600;
}
.price-card .tier {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
}
.price-card h3 {
  font-size: 1.7rem;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 400;
}
.price-card .price {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
}
.price-card .price-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 26px; }
.price-card.is-featured .price-note { color: rgba(251, 247, 239, 0.6); }
.price-features {
  list-style: none; padding: 0; margin: 0 0 32px;
  flex-grow: 1;
}
.price-features li {
  padding: 12px 0 12px 28px;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.price-card.is-featured .price-features li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.price-features li::before {
  content: "";
  position: absolute; left: 0; top: 18px;
  width: 14px; height: 1px;
  background: var(--brass);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-q {
  width: 100%;
  background: none; border: 0;
  padding: 26px 0;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: -0.005em;
}
.faq-q:hover { color: var(--forest); }
.faq-q .toggle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  font-size: 1.1rem;
  color: var(--forest);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.faq-item.is-open .faq-q .toggle {
  transform: rotate(45deg);
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a-inner { padding: 0 0 28px; max-width: 62ch; }
.faq-item.is-open .faq-a { max-height: 480px; }

/* ---------- testimonial ---------- */
.testimonial {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 28px;
  font-weight: 400;
}
.testimonial cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-info dt {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}
.contact-info dd {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 0;
  border-color: var(--forest);
  background: #fff;
}
.form-row textarea { resize: vertical; min-height: 140px; }
.form-row.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 540px) { .form-row.row-2 { grid-template-columns: 1fr; } }

/* ---------- callout / cta strip ---------- */
.cta-strip {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(48px, 8vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(184, 147, 90, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-strip .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
}
.cta-strip h2 { color: var(--cream); margin: 0; max-width: 18ch; }
.cta-strip p { color: rgba(251, 247, 239, 0.78); margin: 12px 0 0; max-width: 50ch; }
@media (max-width: 720px) {
  .cta-strip .wrap { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: rgba(251, 247, 239, 0.78);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: var(--brass-soft);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-weight: 600;
}
.site-footer .brand { color: var(--cream); margin-bottom: 16px; }
.site-footer p { color: rgba(251, 247, 239, 0.7); margin: 0 0 12px; font-size: 0.95rem; max-width: 32ch; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin: 0 0 10px; }
.site-footer ul a { color: rgba(251, 247, 239, 0.78); font-size: 0.95rem; }
.site-footer ul a:hover { color: var(--brass-soft); }

.copyright {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
  color: rgba(251, 247, 239, 0.5);
  flex-wrap: wrap; gap: 16px;
}

/* ---------- divider ornament ---------- */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  margin: 0 auto 48px;
  max-width: 200px;
  color: var(--brass);
}
.ornament .line { flex: 1; height: 1px; background: currentColor; opacity: 0.5; }
.ornament .dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }

/* ---------- video embeds ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 820px) { .video-grid { grid-template-columns: 1fr; gap: 32px; } }

.video-tile { display: flex; flex-direction: column; gap: 14px; }
.video-tile h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
}
.video-tile p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.section--ink .video-tile h4 { color: var(--cream); }
.section--ink .video-tile p  { color: rgba(251, 247, 239, 0.7); }

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--forest-deep);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.video-embed iframe,
.video-embed video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Feature variant — used for the VSL. Larger, more prominent, with a soft frame. */
.video-embed--feature {
  max-width: 920px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(31, 35, 31, 0.22), 0 4px 12px rgba(31, 35, 31, 0.06);
}
.video-embed--feature.is-placeholder {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(184, 147, 90, 0.28), transparent 55%),
    linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
}
.video-embed--feature.is-placeholder::before {
  /* slightly larger play triangle for the feature embed */
  transform: scale(0.85);
}
/* Placeholder treatment when no iframe/video is dropped in yet */
.video-embed.is-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(184, 147, 90, 0.18), transparent 55%),
    linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
}
.video-embed.is-placeholder::before {
  content: "";
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(251, 247, 239, 0.9);
  display: block;
  clip-path: polygon(28% 22%, 28% 78%, 78% 50%);
  -webkit-clip-path: polygon(28% 22%, 28% 78%, 78% 50%);
  transform: scale(0.5);
  border-radius: 0;
}
.video-embed.is-placeholder::after {
  content: attr(data-placeholder-label);
  position: absolute; bottom: 14px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(217, 190, 148, 0.7);
}

/* Poster state — the .video-embed has a real screen-grab as its background,
   still showing the play-icon overlay until a real iframe / <video> is dropped in. */
.video-embed.has-poster {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.video-embed.has-poster::before {
  /* boost play-triangle contrast against the photo */
  background: rgba(251, 247, 239, 0.96);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}
.video-embed.has-poster::after {
  /* hide the "Legacy Film · 01" label when there's a real poster image */
  display: none;
}
/* gentle vignette over the photo so the play icon really pops */
.video-embed.has-poster {
  box-shadow: inset 0 -80px 120px -40px rgba(0, 0, 0, 0.35);
}

/* ---------- portrait strip ----------
   Each photo keeps its natural aspect ratio; the row is unified by height,
   not by tile shape. Reads as a real editorial photo strip — landscape and
   portrait shots sit side-by-side without being cropped. */
.portrait-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.portrait {
  flex: 0 0 auto;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(184, 147, 90, 0.22), transparent 60%),
    linear-gradient(160deg, var(--cream-deep) 0%, #DCC9AA 100%);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.portrait img {
  height: 100%;
  width: auto;
  display: block;
  /* hide alt-text and broken-image icon if the file is missing */
  font-size: 0;
  color: transparent;
}

/* On smaller screens, reduce the strip height so it doesn't overflow */
@media (max-width: 820px) {
  .portrait { height: 180px; }
}
@media (max-width: 540px) {
  .portrait-strip { gap: 10px; }
  .portrait        { height: 140px; }
}

/* Placeholder figures (empty tiles before photos are dropped in) need an
   explicit width since they have no <img> to dictate one. */
.portrait.is-placeholder {
  width: calc(220px * 0.8);          /* 4:5 default for empty tiles */
}
@media (max-width: 820px) { .portrait.is-placeholder { width: calc(180px * 0.8); } }
@media (max-width: 540px) { .portrait.is-placeholder { width: calc(140px * 0.8); } }

.portrait.is-placeholder {
  background:
    radial-gradient(ellipse at 50% 35%, rgba(184, 147, 90, 0.22), transparent 60%),
    linear-gradient(160deg, var(--cream-deep) 0%, #DCC9AA 100%);
  display: grid;
  place-items: center;
}
.portrait.is-placeholder::before {
  content: "";
  width: 38%;
  height: 38%;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(46, 74, 62, 0.18), rgba(46, 74, 62, 0.32));
  margin-bottom: 6%;
}
.portrait.is-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--forest);
  opacity: 0.55;
}

/* ---------- USB keepsake product photo ---------- */
.keepsake-mock {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow:
    0 36px 60px rgba(31, 35, 31, 0.22),
    0 6px 14px rgba(31, 35, 31, 0.10);
}

/* ---------- parallax & depth ---------- */
[data-parallax] {
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  [data-parallax] { transform: none !important; will-change: auto; }
  .depth-layer  { display: none; }
}

/* Sections that contain decorative depth layers need to clip and stack. */
.has-depth {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.has-depth > .wrap {
  position: relative;
  z-index: 2;
}

/* Decorative blobs that drift behind content, creating depth on scroll. */
.depth-layer {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.depth-layer--warm   { background: radial-gradient(circle, rgba(184, 147, 90, 0.32), transparent 70%); }
.depth-layer--brass  { background: radial-gradient(circle, rgba(217, 190, 148, 0.42), transparent 70%); }
.depth-layer--forest { background: radial-gradient(circle, rgba(46, 74, 62, 0.22),  transparent 70%); }
.depth-layer--cream  { background: radial-gradient(circle, rgba(251, 247, 239, 0.10), transparent 70%); }

/* Depth blobs sit BEHIND the section's static decorative gradients too. */
.hero { isolation: isolate; }
.hero > .wrap { position: relative; z-index: 2; }
.hero::before { z-index: 1; }

/* ---------- utility ---------- */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
