.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero-grid { display: grid; min-height: 480px; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 50px; padding-block: 42px; }
.hero-copy { position: relative; z-index: 1; padding-block: 28px; }
.hero-copy h1 { max-width: 690px; margin-bottom: 20px; }
.hero-copy h1 em { color: var(--wine); font-style: normal; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; min-height: 400px; }
.hero-art > img { width: 100%; height: 400px; border-radius: 48% 48% 4px 4px; object-fit: cover; }
.hero-art--slideshow { min-height: 0; }
.hero-art--slideshow::after { right: -12px; bottom: -12px; width: 54%; height: 54%; }
.hero-art__frame { position: relative; z-index: 1; overflow: hidden; width: 100%; height: 390px; border: 1px solid var(--line); background: #f7efe4; }
.hero-art__slide { width: 100%; height: 100%; object-fit: cover; }
.hero-art__badge { position: absolute; right: 16px; bottom: 16px; padding: 7px 12px; border: 1px solid var(--line); background: var(--white); color: var(--wine-dark); font-size: .74rem; font-weight: 700; }
.hero-art__controls { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.hero-art__arrow { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); background: var(--white); color: var(--wine); font-size: 1.2rem; cursor: pointer; }
.hero-art__counter { min-width: 58px; color: var(--muted); font-size: .82rem; font-weight: 700; text-align: center; }
.hero-art__toggle { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); color: var(--wine); font-size: .8rem; font-weight: 700; cursor: pointer; }
.hero-art::after { position: absolute; z-index: 0; right: -18px; bottom: -18px; width: 60%; height: 65%; border: 1px solid var(--gold); content: ""; }
.hero-art .art-note { position: absolute; z-index: 1; right: -18px; bottom: 24px; max-width: 200px; padding: 18px; background: white; box-shadow: var(--shadow); font-family: var(--serif); font-size: 1.05rem; }
.home-proposal-gallery { padding-block: 18px; background: var(--white); }
.proposal-category + .proposal-category { margin-top: 42px; }
.proposal-category__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.proposal-category__heading h3 { margin: 0; color: var(--wine-dark); }
.proposal-category__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.proposal-category__meta > span { color: var(--muted); font-size: .78rem; font-weight: 600; }
.gallery-rotation-toggle { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); background: var(--white); color: var(--wine); font-size: .76rem; font-weight: 700; cursor: pointer; }
.gallery-rotation-toggle:hover { border-color: var(--gold); background: var(--cream); }
.gallery-rotation-toggle:focus-visible, .home-profile-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.home-proposal-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-profile-card { overflow: hidden; padding: 0; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-align: left; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.home-profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.home-profile-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.home-profile-card > span { display: grid; gap: 2px; padding: 11px 12px; font-weight: 700; }
.home-profile-card small { color: var(--muted); font-size: .7rem; font-weight: 500; }
.profile-dialog { width: min(640px, calc(100% - 30px)); max-height: min(86vh, 760px); padding: clamp(22px, 5vw, 38px); border: 1px solid var(--line); background: var(--white); color: var(--ink); box-shadow: 0 24px 70px rgba(42, 27, 25, .24); }
.profile-dialog::backdrop { background: rgba(37, 24, 22, .48); }
.profile-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.profile-dialog__header h2 { margin-bottom: 16px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.profile-dialog__header > form { flex: 0 0 auto; margin: 0; }
.profile-dialog__close { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #dec7ce; border-radius: 50%; background: #fbf2f4; color: var(--wine); box-shadow: 0 3px 10px rgba(87,33,44,.08); cursor: pointer; }
.profile-dialog__close svg { display: block; pointer-events: none; }
.profile-dialog__close:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.profile-dialog__close:active { box-shadow: none; }
.profile-dialog__disclosure, .profile-dialog__note { padding: 12px 14px; border-left: 3px solid var(--gold); background: var(--cream); color: var(--muted); font-size: .88rem; }
.profile-dialog__content { display: grid; grid-template-columns: minmax(150px, .7fr) 1.3fr; align-items: start; gap: 22px; margin: 22px 0; }
.profile-dialog__image { position: sticky; top: 0; width: 100%; max-height: 420px; aspect-ratio: 4 / 5; border: 1px solid var(--line); object-fit: cover; }
.profile-dialog__details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin: 0; }
.profile-dialog__details div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile-dialog__details dt { color: var(--muted); font-size: .76rem; font-weight: 700; }
.profile-dialog__details dd { margin: 4px 0 0; font-weight: 600; }
.profile-dialog__note { margin-bottom: 0; }
.mini-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 38px; }
.mini-gallery img { width: 100%; aspect-ratio: 1 / 1.12; border-radius: 48% 48% 3px 3px; object-fit: cover; }
.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10%; align-items: start; }
.intro-aside { position: sticky; top: 120px; padding: 28px; border-left: 2px solid var(--gold); background: var(--cream); }
.intro-aside p:last-child { margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 27px; border: 1px solid var(--line); background: white; transition: transform .22s ease, box-shadow .22s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-card h3 { margin: 13px 0 9px; }
.feature-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.card-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--rose); color: var(--wine); font-family: var(--serif); font-size: 1.2rem; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 9%; }
.split-art { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 14px; }
.split-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-art img:last-child { margin-top: 52px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: steps; }
.step { position: relative; padding-top: 23px; border-top: 1px solid var(--gold); counter-increment: steps; }
.step::before { display: block; margin-bottom: 22px; color: var(--gold); content: "0" counter(steps); font-family: var(--serif); font-size: 1.5rem; }
.step p { color: var(--muted); }
.image-mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 92px; gap: 13px; }
.image-mosaic figure { position: relative; overflow: hidden; margin: 0; background: var(--cream); }
.image-mosaic figure:nth-child(1), .image-mosaic figure:nth-child(5) { grid-column: span 5; grid-row: span 4; }
.image-mosaic figure:nth-child(2), .image-mosaic figure:nth-child(4) { grid-column: span 3; grid-row: span 3; }
.image-mosaic figure:nth-child(3) { grid-column: span 4; grid-row: span 3; }
.image-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.image-mosaic figure:hover img { transform: scale(1.045); }
.image-mosaic figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 24px 12px 10px; background: var(--wine-dark); color: white; font-size: .78rem; }
.banner-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px; background: var(--wine); color: white; }
.banner-cta h2 { max-width: 600px; margin-bottom: 0; }
.banner-cta p { max-width: 600px; margin: 12px 0 0; color: #f4e4df; }
.page-hero { padding: 78px 0 62px; background: var(--cream); }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 55px; }
.page-hero h1 { max-width: 750px; margin-bottom: 18px; font-size: clamp(2.7rem, 5.5vw, 4.5rem); overflow-wrap: anywhere; }
.page-hero-art { width: 100%; max-height: 340px; aspect-ratio: 1.25; object-fit: cover; border-radius: 46% 46% 3px 3px; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.service-item { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.service-item img { width: 62px; height: 76px; border-radius: 48% 48% 2px 2px; object-fit: cover; }
.service-item h3 { margin: 2px 0 8px; }
.service-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.membership-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8%; padding: clamp(28px, 5vw, 60px); background: var(--cream); }
.membership-panel h2 { margin-bottom: 16px; }
.check-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 23px 1fr; gap: 12px; }
.check-list li::before { color: var(--wine); content: "✓"; font-weight: 700; }
.notice { padding: 17px 20px; border-left: 3px solid var(--gold); background: var(--cream); color: var(--muted); }
.safety-layout { display: grid; grid-template-columns: 1fr .8fr; gap: 10%; }
.safety-list { display: grid; gap: 18px; }
.safety-point { display: grid; grid-template-columns: 38px 1fr; gap: 15px; }
.safety-point b { color: var(--wine); font-family: var(--serif); font-size: 1.25rem; }
.safety-point h3 { margin: 0 0 6px; font-family: var(--sans); font-size: 1rem; }
.safety-point p { margin: 0; color: var(--muted); font-size: .93rem; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.contact-card { padding: 32px; background: var(--cream); }
.contact-card a { color: var(--wine); font-weight: 700; }
.contact-form { display: grid; gap: 17px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 2px; background: white; color: var(--ink); }
.contact-form textarea { min-height: 135px; resize: vertical; }
.map-frame { width: 100%; height: 350px; border: 0; background: var(--cream); }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 10%; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; padding: 20px 42px 20px 0; cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; right: 4px; color: var(--wine); content: "+"; font-size: 1.25rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { max-width: 670px; padding: 0 25px 20px 0; color: var(--muted); }
.faq-item p:last-child { margin-bottom: 0; }
.hero-footnote { margin: 19px 0 0; color: var(--muted); font-size: .82rem; }
.space-before { margin-top: 42px; }
.eyebrow-light { color: #f3d7a9; }
.footer-brand-description { margin-top: 16px; }
.share-button { border: 0; background: none; cursor: pointer; }
.contact-title { font-size: 2rem; }
.contact-title--main { font-size: 2.3rem; }
.map-link-block { margin-top: 14px; }
.safety-art { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.safety-note { margin-top: 20px; }
.safety-flourish { width: 150px; height: 190px; margin: 30px auto 0; border-radius: 50% 50% 2px 2px; object-fit: cover; }
.proposal-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-block: 30px 40px; padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); background: var(--cream); }
.proposal-filters label, .proposal-filters legend { color: var(--ink); font-size: .85rem; font-weight: 700; }
.proposal-filters label { display: grid; align-content: start; gap: 7px; }
.proposal-filters select, .proposal-submission-form select { width: 100%; min-height: 47px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--ink); }
.filter-gender { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; grid-column: 1 / -1; padding: 0; border: 0; }
.filter-gender legend { width: 100%; margin-bottom: 4px; }
.filter-gender label { display: inline-flex; grid-auto-flow: column; align-items: center; gap: 7px; }
.filter-gender input, .consent-control input { accent-color: var(--wine); }
.filter-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; grid-column: 1 / -1; }
.results-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.results-heading h2 { margin: 0; }
.results-heading p { margin: 0; color: var(--muted); }
.proposal-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.proposal-card { overflow: hidden; border: 1px solid var(--line); background: white; }
.proposal-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.proposal-card__copy { padding: 20px; }
.proposal-card__copy h3 { margin-bottom: 8px; }
.proposal-card__copy p { margin-bottom: 11px; color: var(--muted); font-size: .9rem; }
.proposal-card__copy p:last-child { margin-bottom: 0; }
.submission-layout { display: grid; grid-template-columns: 1.2fr .8fr; align-items: start; gap: 44px; margin-top: 30px; }
.proposal-submission-form { grid-template-columns: 1fr 1fr; }
.proposal-submission-form > label, .proposal-submission-form .consent-control, .proposal-submission-form > button { grid-column: 1 / -1; }
.proposal-submission-form .photo-upload-label { padding: 14px; border: 1px dashed var(--gold); background: var(--cream); }
.photo-upload-label small { color: var(--muted); font-weight: 400; }
.consent-control { display: grid !important; grid-template-columns: 20px 1fr; align-items: start; gap: 10px !important; font-weight: 500 !important; }
.consent-control[hidden] { display: none !important; }
.honeypot-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { min-height: 1.5em; margin: 0; color: var(--wine); }
.form-status.is-error { color: #8b2525; }
.proposal-submission-form button:disabled { cursor: wait; opacity: .7; }
.submission-preview { position: sticky; top: 115px; padding: 24px; border: 1px solid var(--line); background: var(--cream); }
.submission-preview h2 { font-size: 1.8rem; }
.submission-preview img { width: 100%; max-height: 420px; margin-block: 16px; object-fit: contain; background: white; }
.submission-preview img[hidden] { display: none; }
.empty-results { grid-column: 1 / -1; padding: 28px; border: 1px solid var(--line); background: var(--cream); color: var(--muted); text-align: center; }
.proposal-search-note { margin-top: 28px; }

@media (max-width: 800px) {
  .hero-grid, .page-hero-grid, .intro-grid, .split-section, .membership-panel, .safety-layout, .contact-layout, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > *, .page-hero-grid > *, .intro-grid > *, .split-section > *, .membership-panel > *, .safety-layout > *, .contact-layout > *, .faq-layout > * { min-width: 0; }
  .hero-grid { gap: 28px; padding-top: 34px; }
  .page-hero h1 { font-size: clamp(1.9rem, 7vw, 3rem); }
  .hero-art { min-height: 360px; }
  .hero-art > img { height: 360px; }
  .hero-art .art-note { right: 0; }
  .hero-art--slideshow { min-height: 0; }
  .hero-art__frame { height: 340px; }
  .home-proposal-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .intro-aside { position: static; }
  .page-hero-grid { gap: 32px; }
  .page-hero-art { max-height: 300px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .service-list { gap: 0 24px; }
  .proposal-filters { grid-template-columns: 1fr 1fr; }
  .proposal-results { grid-template-columns: 1fr 1fr; }
  .submission-layout { grid-template-columns: 1fr; }
  .submission-preview { position: static; }
}
@media (max-width: 560px) {
  html:lang(si) h2, html:lang(ta) h2 { font-size: clamp(1.5rem, 4vw, 1.75rem); }
  .container { width: min(100% - 34px, 1160px); }
  .hero-grid { min-height: 0; }
  .hero-art, .hero-art > img { min-height: 290px; height: 290px; }
  .hero-art .art-note { max-width: 170px; padding: 12px; font-size: .9rem; }
  .hero-art--slideshow { min-height: 0; height: auto; }
  .hero-art__frame { height: 270px; }
  .hero-art__badge { right: 10px; bottom: 10px; padding: 6px 9px; font-size: .68rem; }
  .hero-art__controls { gap: 12px; margin-top: 12px; }
  .home-proposal-gallery { padding-block: 10px; }
  .home-proposal-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .proposal-category + .proposal-category { margin-top: 30px; }
  .proposal-category__heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .proposal-category__meta { justify-content: flex-start; }
  .profile-dialog__content { grid-template-columns: 1fr; gap: 12px; }
  .profile-dialog__image { position: static; width: min(220px, 100%); max-height: 230px; }
  .profile-dialog__details { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .mini-gallery { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .mini-gallery img:nth-child(n+4) { display: none; }
  .card-grid, .steps, .service-list { grid-template-columns: 1fr; }
  .proposal-filters, .proposal-submission-form { grid-template-columns: 1fr; }
  .proposal-filters > *, .proposal-submission-form > * { grid-column: 1 / -1; }
  .proposal-results { grid-template-columns: 1fr; }
  .image-mosaic { grid-auto-rows: 76px; gap: 8px; }
  .image-mosaic figure:nth-child(n) { grid-column: span 6; grid-row: span 3; }
  .image-mosaic figure:nth-child(1), .image-mosaic figure:nth-child(5) { grid-row: span 4; }
  .banner-cta { flex-direction: column; align-items: flex-start; padding: 27px; }
  .membership-panel { padding: 25px; }
  .contact-card { padding: 24px; }
}

/* Full-screen homepage hero: edit the four image paths in index.html. */
.hero--fullscreen { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; isolation: isolate; background: #241c20; color: #fff; }
.hero-background, .hero--fullscreen::after { position: absolute; inset: 0; z-index: -1; }
.hero-background { overflow: hidden; }
.hero-background__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hero-background__slide.is-active { opacity: 1; }
.hero--fullscreen::after { content: ""; background: linear-gradient(90deg, rgba(20,12,17,.85) 0%, rgba(20,12,17,.66) 45%, rgba(20,12,17,.22) 100%); }
.hero--fullscreen .hero-grid { display: flex; flex: 1; align-items: center; min-height: 0; padding-block: clamp(80px, 12vh, 160px); }
.hero--fullscreen .hero-copy { width: 100%; min-width: 0; text-align: left; }
.hero--fullscreen h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 5.2rem); }
.hero--fullscreen .eyebrow { color: #efc98b; }
.hero--fullscreen .lead { max-width: 550px; color: #f4efec; }
.hero--fullscreen .btn--outline { border-color: #fff; background: transparent; color: #fff; }
.hero--fullscreen .btn--outline:hover { background: #fff; color: #241c20; }
.hero-action-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 32px; margin-top: 28px; }
.hero-action-row .hero-actions { margin-top: 0; min-width: 0; }
.hero-slider-controls { display: flex; flex-shrink: 0; align-items: center; gap: 14px; margin-left: auto; }
.hero-slider-controls button { min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.6); border-radius: 3px; background: rgba(20,12,17,.55); color: #fff; cursor: pointer; }
.hero-slider-controls button:hover { background: #762f3b; }
.hero-slider-controls [data-slide-counter] { min-width: 40px; text-align: center; font-size: .85rem; }
@media (max-width: 620px) { .hero--fullscreen::after { background: rgba(20,12,17,.7); } .hero--fullscreen .hero-grid { padding-block: 64px; } }
@media (prefers-reduced-motion: reduce) { .hero-background__slide { transition: none; } }


@media (max-width: 620px) {
  .hero-action-row { gap: 22px; }
  .hero-action-row .hero-actions { width: 100%; }
  .hero-action-row .hero-actions .btn { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
  .hero-slider-controls { gap: 10px; }
}

/* Published homepage profiles */
.home-live-proposals { padding-block: clamp(40px, 7vw, 80px); }
.home-live-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.home-live-heading h2 { margin: 8px 0 12px; }
.home-live-heading p:last-child { max-width: 600px; margin-bottom: 0; color: var(--muted); }
.home-live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-live-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; }
.proposal-card-media > img { width: 100%; height: auto; aspect-ratio: 6 / 7; object-fit: cover; }
.home-live-card__placeholder { display: grid; place-items: center; aspect-ratio: 6 / 7; background: var(--cream); color: var(--muted); }
.home-live-card__copy { display: grid; gap: 12px; padding: 24px; }
.home-live-card__copy h3, .home-live-card__copy p { margin: 0; overflow-wrap: anywhere; }
.home-live-card__copy h3 { font-size: 1.5rem; }
.home-live-card__copy p { color: var(--muted); font-size: .9rem; }
.home-live-card__copy .pill { justify-self: start; }
.home-live-card__interests { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-live-card__copy .btn { justify-self: start; margin-top: 4px; }
[data-approved-field="interests"] { white-space: pre-line; }
@media (max-width: 900px) { .home-live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-live-grid { grid-template-columns: 1fr; } .home-live-card__copy { padding: 20px; } }

.home-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; }
.home-pagination[hidden] { display: none; }
.home-pagination button { min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--wine); font: inherit; cursor: pointer; }
.home-pagination button[aria-current="page"] { background: var(--wine); border-color: var(--wine); color: white; }
.home-pagination button:disabled { opacity: .45; cursor: default; }
.home-pagination button:not(:disabled):hover { border-color: var(--wine); }
.home-pagination button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.home-pagination-summary { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: .85rem; }
#proposal-gallery { scroll-margin-top: 110px; }
@media (max-width: 560px) { .home-pagination { gap: 6px; } .home-pagination button { padding-inline: 10px; } }

#photo-cropper[hidden] { display: none; }
#photo-cropper canvas { display: block; width: 100%; height: auto; aspect-ratio: 6 / 7; background: #e8dfd6; cursor: grab; touch-action: none; border-radius: 4px; }
#photo-cropper canvas:active { cursor: grabbing; }
#photo-cropper label { display: grid; gap: 8px; margin-top: 18px; color: var(--ink); font-size: .85rem; }
#photo-cropper input[type="range"] { width: 100%; min-height: 36px; padding: 0; accent-color: var(--wine); }
#photo-cropper button { margin-top: 16px; }
#crop-instructions { font-size: .85rem; color: var(--muted); }

/* Full-width section backgrounds; retain the original grid and hero dimensions. */
.page-hero--background { background-color: #2d2925; background-size: cover; background-position: center; background-repeat: no-repeat; color: white; }
.page-hero--about-us { background-image: linear-gradient(90deg, rgba(22,19,18,.82), rgba(22,19,18,.6) 48%, rgba(22,19,18,.13)), url('/assets/images/about-us-hero-wide.webp'); }
.page-hero--find-proposals { background-image: linear-gradient(90deg, rgba(22,19,18,.82), rgba(22,19,18,.6) 48%, rgba(22,19,18,.13)), url('/assets/images/find-proposals-hero-wide.webp'); }
.page-hero--submit-proposal { background-image: linear-gradient(90deg, rgba(22,19,18,.82), rgba(22,19,18,.6) 48%, rgba(22,19,18,.13)), url('/assets/images/submit-proposal-hero-wide.webp'); }
.page-hero--background h1 { color: white; }
.page-hero--background .lead { color: #f6f0e9; }
.page-hero--background .eyebrow { color: #efcc96; }
/* The empty grid cell replaces the old image's footprint without displaying a side image. */
.page-hero-space { width: 100%; max-height: 340px; aspect-ratio: 1.25; }
@media (max-width: 800px) {
  .page-hero-space { max-height: 300px; }
  .page-hero--background { background-position: 65% center; }
}

/* Additional page heroes share the existing hero geometry. */
.page-hero--contact { background-image: linear-gradient(90deg, rgba(22,19,18,.82), rgba(22,19,18,.6) 48%, rgba(22,19,18,.13)), url('/assets/images/support-contact-hero.webp'); }
.page-hero--services { background-image: linear-gradient(90deg, rgba(22,19,18,.82), rgba(22,19,18,.6) 48%, rgba(22,19,18,.13)), url('/assets/images/support-services-hero.webp'); }
.page-hero--safety { background-image: linear-gradient(90deg, rgba(22,19,18,.82), rgba(22,19,18,.6) 48%, rgba(22,19,18,.13)), url('/assets/images/support-safety-hero.webp'); }
.page-hero--faq { background-image: linear-gradient(90deg, rgba(22,19,18,.82), rgba(22,19,18,.6) 48%, rgba(22,19,18,.13)), url('/assets/images/support-faq-hero.webp'); }

/* Expanded proposal details; private contact information is never rendered. */
.profile-dialog { width: min(960px, calc(100% - 30px)); }
.profile-dialog__details div[hidden] { display: none; }
.profile-dialog__details dd { overflow-wrap: anywhere; white-space: pre-line; }
.profile-dialog__details div:has([data-approved-field="interests"]),
.profile-dialog__details div:has([data-approved-field="seeking"]) { grid-column: 1 / -1; }
@media (min-width: 561px) { .profile-dialog__image { aspect-ratio: 6 / 7; max-height: 460px; } }

/* Full-window photo viewer, above the profile dialog in the native modal stack. */
.profile-photo-trigger { position: sticky; top: 0; display: block; width: 100%; align-self: start; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.profile-photo-trigger[hidden] { display: none; }
.profile-photo-trigger .profile-dialog__image { position: static; margin: 0; }
.profile-photo-trigger__hint { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #ffffff70; border-radius: 50%; background: #281d2bd9; color: white; pointer-events: none; }
.profile-photo-trigger:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.photo-lightbox { position: fixed; inset: 0; box-sizing: border-box; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 20px; border: 0; background: #121013; color: white; overflow: hidden; overscroll-behavior: contain; }
.photo-lightbox::backdrop { background: #121013; }
.photo-lightbox__toolbar { position: absolute; z-index: 1; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); margin: 0; }
.photo-lightbox .profile-dialog__close { background: #ffffff1a; color: white; border-color: #ffffff55; }
.photo-lightbox .profile-dialog__close:hover { background: var(--wine); border-color: var(--wine); }
.photo-lightbox__stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 52px 0 12px; }
.photo-lightbox__stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 560px) { .profile-photo-trigger { position: relative; width: min(220px, 100%); } .photo-lightbox { padding: 10px; } }

.submission-preview #default-photo-preview { width: 100%; height: auto; max-height: none; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 6px; }
.submission-preview #default-photo-preview[hidden] { display: none; }
.crop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.crop-actions .text-link { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--wine); cursor: pointer; }

/* Enquiry packages */
.package-dialog { box-sizing: border-box; width: min(820px, calc(100% - 28px)); max-height: 90vh; max-height: 90dvh; padding: clamp(20px,4vw,34px); border: 1px solid var(--line); border-radius: 14px; background: var(--cream); color: var(--ink); box-shadow: var(--shadow); overflow-y: auto; }
.package-dialog::backdrop { background: #21151dbd; }
.package-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.package-dialog__header form { flex-shrink: 0; margin: 0; }
.package-dialog__header h2 { margin: 0; font-size: clamp(1.6rem,4vw,2.3rem); }
.package-dialog__proposal { margin: 20px 0; color: var(--muted); overflow-wrap: anywhere; }
.package-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; min-width: 0; padding: 0; border: 0; }
.package-options[hidden] { display: none; }
.package-options__legend { margin-bottom: 12px; font-size: .9rem; font-weight: 700; }
.package-choice { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.package-choice:hover, .package-choice.is-selected { border-color: var(--wine); }
.package-choice.is-selected { background: #f9eff2; box-shadow: 0 0 0 1px var(--wine); }
.package-choice:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.package-choice input { flex-shrink: 0; width: 18px; height: 18px; margin: 5px 0 0; accent-color: var(--wine); }
.package-choice__copy { display: grid; min-width: 0; gap: 8px; overflow-wrap: anywhere; }
.package-choice__price { color: var(--wine); font-size: 1.65rem; font-weight: 700; }
.package-choice__copy small { color: var(--muted); }
.package-dialog__note { margin: 22px 0; color: var(--muted); font-size: .83rem; }
.package-dialog__footer { display: flex; justify-content: flex-end; }
.package-continue[aria-disabled="true"] { opacity: .5; cursor: default; }
@media (max-width: 560px) { .package-options { grid-template-columns: 1fr; } .package-choice { padding: 16px; } .package-dialog__footer .btn { width: 100%; justify-content: center; } }

/* About page: packages use the same live catalog as proposal enquiries. */
.about-package-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.about-package-card { min-width: 0; padding: 26px 22px; border: 1px solid var(--line); border-top: 3px solid var(--wine); border-radius: 10px; background: #fff; }
.about-package-card h3 { margin: 0 0 16px; font-size: 1.4rem; overflow-wrap: anywhere; }
.about-package-card .about-package-card__price { margin: 0 0 18px; color: var(--wine); font-size: clamp(1.6rem,2.5vw,2rem); font-weight: 700; }
.about-package-card .pill { display: inline-block; margin: 0 0 16px; }
.about-package-card__description { margin: 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.about-packages__action { margin-top: 28px; text-align: center; }
@media (max-width: 1000px) { .about-package-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .about-package-grid { grid-template-columns: 1fr; } }

.proposal-card-media { position: relative; }
.proposal-card-media > img { display: block; }
.proposal-reference { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 7px 11px; border: 1px solid #ffffff66; border-radius: 6px; background: #432333e8; color: #fff; font: 700 12px/1.3 Arial, sans-serif; letter-spacing: .5px; box-shadow: 0 2px 8px #0002; pointer-events: none; }
.proposal-reference:empty { display: none; }
.photo-lightbox__stage > .proposal-reference { top: 72px; right: 20px; }
