/* Shared responsive foundations. Keep palette and presentation in style.css. */
:root {
  --content-width: 100rem;
  --gutter: clamp(1rem, 3vw, 2.25rem);
  --header-height: 11.125rem;
  --header-offset: var(--header-height);
  --section-space: clamp(3.625rem, 7vw, 6.25rem);
}
html { scroll-padding-top: calc(var(--header-offset) + 1rem); overflow-x: visible; }
body.modern { min-width: 0; overflow-x: visible; }
.wrap { width: calc(100% - 2 * var(--gutter)); max-width: var(--content-width); }
main, .wrap, .wrap *, .hero-modern > *, .footer-columns > * { min-width: 0; }
h1, h2, h3, h4, p, a, summary, .pill, .feature-meta { overflow-wrap: anywhere; }
img, video, iframe { max-width: 100%; }
img, video { vertical-align: middle; }
.button, .text-link { max-width: 100%; min-height: 2.75rem; white-space: normal; }
.button { gap: clamp(.75rem, 2vw, 1.75rem); }
summary { min-height: 2.75rem; align-items: center; }
summary > span:last-child, .arrow-icon { flex-shrink: 0; }
.footer-social > a { width: 2.75rem; height: 2.75rem; }
.footer-link-column > a, .footer-bottom > a, .contact-options > a,
.policy-layout aside a { min-height: 2.75rem; display: flex; align-items: center; }
.footer-link-column > a { margin-bottom: .25rem; }
.footer-bottom { flex-wrap: wrap; }
.footer-email > span:last-child { min-width: 0; }
header .nav.wrap { height: auto; min-height: var(--header-height); flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; padding-block: 2px 12px; }
header .brand { position: static; transform: none; flex-shrink: 0; }
header nav { position: static; transform: none; max-width: 100%; flex-wrap: wrap; }
header nav > a { max-width: 100%; }
.occasion-strip { flex-wrap: wrap; }
.hero-modern {
  height: auto; min-height: clamp(34rem, calc(100svh - var(--header-offset)), 65rem);
  max-height: none; gap: clamp(2rem, 5vh, 4rem);
  padding-inline: max(var(--gutter), calc((100% - var(--content-width)) / 2));
}
.hero-modern h1 { margin-block: clamp(2rem, 7vh, 5.625rem); }
.hero-modern h1 > span, .hero-modern h1 em { white-space: normal; overflow-wrap: anywhere; }
.hero-top { padding: 0; flex-wrap: wrap; align-items: flex-start; }
.hero-top .eyebrow { flex: 1 1 16rem; }
.hero-top .eyebrow { max-width: 42rem; }
.hero-edition { max-width: 28rem; }
.motion-toggle { position: static; min-height: 2.75rem; max-width: 100%; margin-left: auto; flex-shrink: 0; }
.hero-bottom { flex-wrap: wrap; }
.hero-bottom p { max-width: 32rem; }
.hero-bottom > .text-link { white-space: normal; }
.editorial-section#about, .editorial-section:nth-of-type(3),
.editorial-section:nth-of-type(4), .faq {
  padding: var(--section-space) max(var(--gutter), calc((100% - var(--content-width)) / 2));
}
.editorial-heading { grid-template-columns: minmax(8rem, .6fr) minmax(0, 2fr) minmax(0, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.editorial-heading h2 { font-size: clamp(2.25rem, 5.4vw, 5.5rem); }
.story-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.story-grid figure { min-height: 0; }
.story-copy { padding: clamp(1.25rem, 3vw, 2.8125rem); }
.service-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1rem, 2.5vw, 2rem); }
.feature-label { top: calc(var(--header-offset) + 1.25rem); }
.feature-photo { height: auto; aspect-ratio: 16 / 10; }
.feature-meta { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }
.inspiration-slider { height: auto; min-height: clamp(27rem, 48vw, 41.25rem); display: flex; flex-direction: column; justify-content: center; padding: clamp(1rem, 3vw, 2.5rem); gap: 3rem; }
.slide-title { position: static; transform: none; margin: auto 0; padding-block: 3rem; }
.slider-footer { position: static; flex-wrap: wrap; margin-top: auto; }
.slider-footer > div:first-child { flex: 1 1 12rem; min-width: 0; }
.slider-controls { flex: 0 0 auto; }
.slider-controls button { min-width: 2.75rem; min-height: 2.75rem; }
.closing-cta .wrap > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); }
.page-heading:before { inset-inline: calc(-1 * max(var(--gutter), (100vw - var(--content-width)) / 2)); }
.service-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(18rem, calc((100% - 2px) / 3))), 1fr)); }
.service-image { height: auto; aspect-ratio: 4 / 3; }
.card-body { padding: clamp(1.125rem, 2.5vw, 1.875rem); }
.price { flex-wrap: wrap; }
.package { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) auto; gap: clamp(1rem, 3vw, 3.125rem); }
.package-art { width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; grid-row: auto; }
.package .pill { grid-column: auto; white-space: normal; }
.policy-layout { grid-template-columns: minmax(11rem, 1fr) minmax(0, 3fr); gap: clamp(1.5rem, 6vw, 5rem); }
.policy-layout aside { top: calc(var(--header-offset) + 1rem); max-height: calc(100dvh - var(--header-offset) - 2rem); overflow-y: auto; }
.policy-content p { max-width: 75ch; }
.inquiry-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); }
.inquiry-card { color: var(--navy); padding: clamp(1.25rem, 4vw, 3.75rem); }
.inquiry-contact > a:not(.policy-link) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: center; }
.inquiry-contact > a:not(.policy-link) > span { grid-column: 1 / -1; }
.inquiry-contact > a .arrow-icon { grid-column: 2; }
@media (max-width: 75rem) {
  .editorial-heading { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .editorial-heading .section-intro { grid-column: 2; }
  .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .footer-identity { grid-column: 1 / -1; grid-row: auto; max-width: 32rem; }
  .footer-link-column:last-child { grid-column: auto; }
  .package { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  .package-art { grid-row: span 2; }
  .package .pill { grid-column: 2; justify-self: start; }
}
@media (max-width: 56.25rem) {
  :root { --header-height: 5.5rem; }
  header .nav.wrap { width: calc(100% - 2 * var(--gutter)); height: var(--header-height); min-height: 0; flex-direction: row; gap: 0; padding: 0; align-items: center; justify-content: space-between; }
  header .brand { position: static; transform: none; width: 5rem; height: 5rem; }
  header .menu-toggle { display: flex; align-items: center; min-height: 2.75rem; margin-left: auto; }
  header #navigation { display: none; position: absolute; top: 100%; bottom: auto; left: 0; right: 0; transform: none; width: auto; max-width: none; padding: 1rem; background: #f8f8f8f7; border: 1px solid #001f3f12; border-radius: 0 0 1.125rem 1.125rem; box-shadow: 0 14px 28px #001f3f18; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; max-height: calc(100dvh - var(--header-offset) - .5rem); overflow-y: auto; }
  header #navigation.open { display: grid; }
  header #navigation > a { min-width: 0; min-height: 3rem; padding: .75rem; font-size: .875rem; white-space: normal; margin: 0; }
  header #navigation > .nav-quote { grid-column: 1 / -1; }
  .editorial-heading { display: block; }
  .editorial-heading h2 { margin-bottom: 1.5rem; }
  .editorial-heading .section-intro { max-width: 42rem; }
  .story-grid, .inquiry-layout { grid-template-columns: minmax(0, 1fr); }
  .story-grid figure { aspect-ratio: 16 / 10; }
  .story-copy p { max-width: 70ch; }
  .service-feature { grid-template-columns: minmax(0, 1fr); }
  .feature-label { position: static; }
  .feature-label h3 br { display: initial; }
  .policy-layout { grid-template-columns: minmax(0, 1fr); }
  .policy-layout aside { position: static; display: flex; flex-wrap: wrap; gap: .5rem; max-height: none; overflow: visible; margin: 0; padding: 0; border: 0; }
  .policy-layout aside .eyebrow { display: none; }
  .policy-layout aside a { flex: 0 1 auto; max-width: 100%; margin: 0; padding: .5rem .75rem; border: 1px solid #001f3f1c; border-radius: 2rem; white-space: normal; background: #f8f8f8; }
  .hero-modern .hero-top .eyebrow { padding-right: 0; width: auto; max-width: 100%; }
  .hero-top { padding: 0; min-height: 2.75rem; }
  .motion-toggle { top: 1rem; font-size: .75rem; }
  .hero-modern { padding-top: 1rem; }
  .hero-bottom .scroll-cue { display: none; }
}
@media (max-width: 43.75rem) {
  .hero-modern { min-height: min(41.25rem, calc(100svh - var(--header-offset))); gap: 1.5rem; }
  .hero-modern h1 { font-size: clamp(2.25rem, 10.8vw, 4rem); margin-block: clamp(2rem, 8svh, 5rem); }
  .hero-top { padding: 0; gap: .75rem; }
  .hero-top .eyebrow { font-size: .6875rem; }
  .hero-bottom { padding-top: 0; }
  .hero-bottom p { font-size: .9375rem; }
  .story-grid figure { aspect-ratio: 4 / 3; }
  .story-copy p, .policy-content p, .inquiry-card p { font-size: 1rem; }
  .closing-cta .wrap > div { grid-template-columns: minmax(0, 1fr); }
  .package, .package:nth-child(2) { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
  .package-art { grid-row: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .package .pill { grid-column: auto; }
  #table.service-card, .service-card:last-child { grid-template-columns: minmax(0, 1fr); }
  #table.service-card .service-image { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .footer-link-column > a { font-size: .875rem; }
  .contact-options { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }
}
@media (max-height: 32rem) {
  header { position: relative; }
  html { scroll-padding-top: 1rem; }
  .feature-label, .policy-layout aside { position: static; max-height: none; }
  .hero-modern { min-height: 25rem; }
  .hero-modern h1 { margin-block: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal { opacity: 1; transform: none; }
}
/* Leave room for the expanded disclosure icon as it rotates. */
.faq summary { grid-template-columns: 1.75rem minmax(0, 1fr) 2.75rem; }
.faq summary > span:last-child { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin: 0 0 0 auto; line-height: 1; font-size: 1.5rem; }
.faq details[open] summary > span:last-child { transform: rotate(45deg) scale(.7); }

/* Explicit media width prevents aspect ratios from widening a grid track. */
#table.service-card .service-image, .service-card:last-child .service-image { width: 100%; }
/* Only the disclosure indicator rotates; question numbers remain readable. */
details[open] summary .tiny-number { transform: none; }
