/* Engagements — reference: 08 - Engagements.png (805px mockup ≈ 1440px desktop, ×1.79) */

/* ---------- Hero ---------- */
.hero--engage { --media-w: 57%; --fade: 26%; --hero-h: clamp(460px, 47vw, 700px); --copy-w: 46%; }
.hero--engage .hero__media img { object-position: 45% 60%; }
.hero--engage .display { font-size: clamp(2.9rem, 1rem + 5.6vw, 6.8rem); }
.engage-hero__lede { max-width: 30ch; font-size: clamp(1.1rem, .8rem + 1.3vw, 2.05rem); line-height: 1.22; }
@media (min-width: 901px) { .hero--engage .hero__note { --tilt: -8deg; right: 2.5%; top: 2.5%; font-size: clamp(1.3rem, .8rem + 1.2vw, 2.3rem); } }
@media (max-width: 900px) { .hero--engage { --copy-w: 100%; } }

/* ---------- Upcoming events: intro + collage ---------- */
.eng-upcoming { background: var(--paper-tex) 0 0 / 512px, var(--paper-warm); padding-block: clamp(2.5rem, 4vw, 4rem) clamp(1.5rem, 2.4vw, 2.4rem); overflow: hidden; }
.eng-upcoming__grid { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1fr); gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.eng-upcoming__text { padding-top: clamp(.2rem, 1vw, 1rem); }
.eng-upcoming .h-serif { font-size: clamp(2.6rem, 1rem + 4.6vw, 5.6rem); line-height: .94; margin-bottom: 1.2rem; }
.eng-upcoming__prose { font-size: clamp(1.08rem, .75rem + 1.15vw, 1.8rem); line-height: 1.28; color: var(--text); max-width: 20em; }

.eng-collage { position: relative; aspect-ratio: 465 / 225; margin-right: calc(-1 * var(--gutter)); }
.eng-collage > * { position: absolute; margin: 0; }
.eng-collage__piper { left: 1%; top: 3%; width: 41%; height: 82%; z-index: 3; }
.eng-collage__drummer { left: 43%; top: 9%; width: 26%; height: 78%; z-index: 2; }
.eng-collage__map { left: 68%; top: -2%; width: 33%; height: 72%; z-index: 1; transform: rotate(1.5deg); box-shadow: var(--shadow-sm); }
.eng-collage__map img { width: 100%; height: 100%; object-fit: cover; }
.eng-collage__back { left: 68%; top: 72%; width: 32%; height: 34%; z-index: 1; padding: 4px; }
.eng-collage__thistle { left: -6%; top: 46%; width: 12%; opacity: .55; z-index: 0; }
.eng-collage__note { left: 74%; top: 10%; z-index: 4; --tilt: -18deg; font-size: clamp(1.1rem, .7rem + 1.1vw, 2rem); }

/* ---------- Schedule card ---------- */
.eng-schedule {
  position: relative; z-index: 5; margin-top: clamp(1.4rem, 2.4vw, 2.6rem);
  background: #fff; border-radius: var(--radius-lg); box-shadow: 0 4px 10px rgb(0 30 63 / .06), 0 14px 36px rgb(0 30 63 / .12);
  padding: clamp(1rem, 2vw, 1.9rem) clamp(1rem, 2.2vw, 2.2rem) clamp(1rem, 1.8vw, 1.6rem);
}
.eng-schedule__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(.8rem, 1.6vw, 1.6rem); padding-bottom: clamp(.9rem, 1.4vw, 1.3rem); border-bottom: 1px solid var(--line-soft); }
.eng-schedule__icon { width: clamp(44px, 2.2rem + 1.6vw, 72px); height: clamp(44px, 2.2rem + 1.6vw, 72px); color: var(--navy-800); }
.eng-schedule__title .h-card--caps { font-size: clamp(1.15rem, .8rem + 1vw, 1.95rem); letter-spacing: .04em; }
.eng-schedule__title p { font-size: clamp(1rem, .9rem + .4vw, 1.4rem); color: var(--text-soft); margin-top: .15rem; }
.eng-schedule__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .7rem; }
.eng-schedule__actions .btn { --h: clamp(42px, 2.2rem + .7vw, 54px); font-size: clamp(.9rem, .8rem + .35vw, 1.15rem); padding-inline: clamp(1rem, .7rem + .9vw, 1.7rem); }
.eng-schedule__actions .btn--outline { border-width: 1.5px; }
.eng-schedule__actions [hidden] { display: none; }

/* "Add to calendar" when nothing is confirmed: an honest disclosure note (works without JS) */
.eng-cal { position: relative; }
.eng-cal summary { list-style: none; }
.eng-cal summary::-webkit-details-marker { display: none; }
.eng-cal__pop {
  position: absolute; right: 0; top: calc(100% + .6rem); z-index: 10; width: min(22rem, 80vw);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1rem;
  font-family: var(--font-ui); font-size: .9rem; line-height: 1.45; color: var(--text);
}
.eng-cal__pop::before { content: ""; position: absolute; right: 2.2rem; top: -7px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.eng-cal__pop a { color: var(--navy-700); font-weight: 700; }

.eng-schedule__list { display: grid; }
.eng-row {
  display: grid; grid-template-columns: minmax(150px, 1.05fr) minmax(0, 1.85fr) minmax(0, 1.55fr) minmax(0, 1.5fr) auto;
  align-items: center; gap: 0; padding-block: clamp(.45rem, .6vw, .6rem); border-bottom: 1px solid var(--line-soft);
}
.eng-row:last-child { border-bottom: 0; padding-bottom: 0; }
.eng-row__date {
  display: flex; align-items: center; gap: .8rem; align-self: stretch; padding: .7rem 1rem; border-radius: var(--radius);
  background: #eef2f8; font-family: var(--font-serif); font-size: clamp(.95rem, .8rem + .45vw, 1.3rem); line-height: 1.12; color: var(--navy-800);
}
.eng-row__date .icon { width: clamp(28px, 1.4rem + .9vw, 44px); height: clamp(28px, 1.4rem + .9vw, 44px); }
.eng-row__date span, .eng-row__date time { max-width: 7.5em; }
.eng-row__cell { display: flex; align-items: center; gap: clamp(.6rem, 1.2vw, 1.4rem); padding-inline: clamp(.7rem, 1.3vw, 1.5rem); border-left: 1px solid var(--line); min-height: 2.6rem; }
.eng-row__date + .eng-row__cell { margin-left: clamp(.6rem, 1vw, 1rem); }
.eng-row__cell > .icon { width: clamp(22px, 1.1rem + .6vw, 34px); height: clamp(22px, 1.1rem + .6vw, 34px); color: var(--navy-800); }
.eng-row__cell > div { display: grid; gap: .1rem; font-size: clamp(.92rem, .82rem + .3vw, 1.15rem); line-height: 1.25; color: var(--text-soft); }
.eng-row__label { font-family: var(--font-ui); font-weight: 800; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-800); }
.eng-row__title { font-family: var(--font-serif); color: var(--navy-800); font-size: 1.08em; }
.eng-row__desc { font-size: .9em; }
.eng-row__ics { justify-self: start; display: inline-flex; align-items: center; gap: .35rem; margin-top: .3rem; padding: .25rem .6rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-family: var(--font-ui); font-weight: 700; font-size: .78rem; color: var(--navy-700); }
.eng-row__ics:hover { border-color: var(--navy-700); }
.eng-row__ics .icon { width: 1rem; height: 1rem; }
.eng-row__go {
  display: grid; place-items: center; width: clamp(44px, 2.2rem + .9vw, 56px); height: clamp(44px, 2.2rem + .9vw, 56px); flex: none; border-radius: 50%;
  background: var(--navy-800); color: #fff; margin-left: .6rem; transition: background .2s, transform .2s;
}
.eng-row__go:hover { background: var(--navy-600); transform: translateX(2px); }
.eng-row__go .icon { width: 44%; height: 44%; }

@media (max-width: 1080px) {
  .eng-schedule__head { grid-template-columns: auto 1fr; }
  .eng-schedule__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .eng-cal__pop { left: 0; right: auto; }
  .eng-cal__pop::before { left: 2.2rem; right: auto; }
  .eng-row { grid-template-columns: minmax(140px, 1fr) minmax(0, 1.6fr) auto; row-gap: .7rem; }
  .eng-row__cell:nth-of-type(3), .eng-row__cell:nth-of-type(4) { grid-row: 2; }
  .eng-row__cell:nth-of-type(3) { grid-column: 1; border-left: 0; padding-left: 1rem; }
  .eng-row__date + .eng-row__cell { margin-left: 1rem; }
  .eng-row__cell:nth-of-type(4) { grid-column: 2 / -1; margin-left: 1rem; }
  .eng-row__go { grid-row: 1; grid-column: 3; }
}
@media (max-width: 640px) {
  .eng-row { grid-template-columns: 1fr auto; padding-block: 1rem; }
  .eng-row__date { grid-column: 1; align-self: center; padding: .55rem .8rem; }
  .eng-row__go { grid-column: 2; grid-row: 1; }
  .eng-row__cell, .eng-row__cell:nth-of-type(3), .eng-row__cell:nth-of-type(4) { grid-column: 1 / -1; grid-row: auto; border-left: 0; margin-left: 0 !important; padding-left: .3rem; min-height: 0; }
}

@media (max-width: 900px) {
  .eng-upcoming__grid { grid-template-columns: 1fr; }
  .eng-collage { margin-inline: 0; width: 100%; }
  .eng-schedule { margin-top: 1.4rem; }
}

/* ---------- Occasions ---------- */
.eng-occasions { overflow: hidden; padding-block: clamp(1.8rem, 3vw, 3rem) clamp(2.4rem, 4vw, 4rem); }
.eng-occasions__thistle { top: 30%; opacity: .35; }
.eng-occasions__plane { right: -1%; top: -1%; width: clamp(140px, 15vw, 250px); opacity: .3; }
.eng-occasions__head { display: grid; grid-template-columns: auto minmax(0, 28rem); align-items: end; gap: 1rem clamp(1.2rem, 2.4vw, 2.4rem); margin-bottom: clamp(1.2rem, 2.4vw, 2.2rem); }
.eng-occasions .h-serif { font-size: clamp(2.2rem, 1rem + 3.5vw, 4.6rem); white-space: nowrap; }
.eng-occasions__lede { color: var(--text); font-size: clamp(1rem, .75rem + .85vw, 1.6rem); line-height: 1.28; padding-bottom: .3rem; }
.eng-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.4rem, .7vw, .7rem); margin-inline: calc(var(--gutter) * -.45); }
.eng-card { background: linear-gradient(180deg, rgb(255 255 255 / .96), rgb(240 248 254 / .92)); }
.eng-card .card__media { --ratio: 155 / 128; }
.eng-card .card__badge { top: auto; bottom: auto; left: clamp(10px, 1vw, 16px); }
.eng-card .icon-badge { --size: clamp(46px, 2.4rem + 1.1vw, 70px); margin-top: calc(var(--size) * -.62); position: relative; top: auto; }
.eng-card .card__body { padding-top: .6rem; gap: .35rem; }
.eng-card .h-card { font-size: clamp(1.05rem, .7rem + .75vw, 1.55rem); }
.eng-card .h-card a { text-decoration: none; }
.eng-card:hover .h-card a { text-decoration: underline; }
.eng-card .card__body p { font-size: clamp(.92rem, .75rem + .4vw, 1.2rem); line-height: 1.28; }
@media (max-width: 1080px) {
  .eng-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .eng-cards > li { grid-column: span 2; }
  .eng-cards > li:nth-child(n+4) { grid-column: span 3; }
  .eng-cards > li:nth-child(n+4) .card__media { --ratio: 16 / 9; }
  .eng-occasions__head { grid-template-columns: 1fr; }
  .eng-occasions .h-serif { white-space: normal; }
  .eng-cards { margin-inline: 0; }
}
@media (max-width: 760px) { .eng-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .eng-cards > li, .eng-cards > li:nth-child(n+4) { grid-column: auto; } .eng-cards > li:last-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .eng-cards { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1240px) { .hero--engage { --copy-w: 54%; } .hero--engage .display { font-size: clamp(2.9rem, .6rem + 5.6vw, 5.4rem); } }

/* ---------- Gallery band ---------- */
.eng-gallery { position: relative; overflow: hidden; padding-bottom: clamp(10px, 1.2vw, 18px); }
.eng-gallery::before {
  content: ""; position: absolute; right: -6%; top: 6%; width: 62%; height: 46%; z-index: 0; opacity: .85;
  background: linear-gradient(180deg, rgb(0 20 50 / .25), rgb(0 20 50 / .45)), var(--tartan) 0 0 / 150px;
  clip-path: polygon(14% 18%, 100% 0, 100% 100%, 0 100%);
}
.eng-gallery > * { position: relative; z-index: 1; }
.eng-gallery__wave { margin-bottom: -18px; }
.eng-gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 0 1rem; }
.eng-gallery .h-serif { font-size: clamp(2.3rem, 1rem + 4.4vw, 5.2rem); }
.eng-strip { display: grid; grid-template-columns: 1fr 1.16fr .8fr 1.1fr 1fr; gap: 6px; align-items: end; }
.eng-strip li { aspect-ratio: 160 / 122; overflow: hidden; border: 3px solid #fff; transform: rotate(var(--rot, 0deg)); box-shadow: 0 6px 16px rgb(0 0 0 / .35); background: #fff; }
.eng-strip li.eng-strip__raised { aspect-ratio: 117 / 112; z-index: 2; margin-inline: -18px; margin-bottom: 4px; }
.eng-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.eng-strip li:hover img { transform: scale(1.05); }
.eng-strip { position: relative; z-index: 2; }
@media (max-width: 700px) {
  .eng-strip { grid-template-columns: 1fr 1fr; gap: 8px; padding-inline: 8px; }
  .eng-strip li, .eng-strip li.eng-strip__raised { aspect-ratio: 4 / 3; margin: 0; transform: none; }
  .eng-strip li:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
}

/* ---------- Social band ---------- */
.eng-social { background: linear-gradient(180deg, #e3f2fd, #d9edfb); overflow: hidden; }
.eng-social__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.eng-social .h-serif { font-size: clamp(1.9rem, 1rem + 2.5vw, 3.4rem); }
.eng-social__text { max-width: 36em; margin-top: .5rem; font-size: clamp(1rem, .8rem + .55vw, 1.35rem); line-height: 1.3; }
.eng-social__thistle-l { top: 8%; }
.eng-social__thistle-r { top: 4%; }
.eng-social__plane { left: 56%; top: 6%; width: clamp(90px, 10vw, 170px); }
@media (max-width: 860px) { .eng-social__grid { grid-template-columns: 1fr; padding-inline: 0; } }

/* ---------- Book the band ---------- */
.eng-book { background: #fff; padding-block: clamp(1.6rem, 2.6vw, 2.6rem) calc(clamp(1.8rem, 2.6vw, 2.6rem) + var(--wave-h) * .5); }
.eng-book__features > * { padding-inline: clamp(.4rem, .7vw, .8rem); }
.eng-book__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.eng-book .h-serif { font-size: clamp(1.8rem, 1rem + 2.4vw, 3.2rem); }
.eng-book .prose { margin: .5rem 0 1.1rem; max-width: 36em; font-size: clamp(1rem, .9rem + .35vw, 1.3rem); color: var(--text-soft); }
@media (max-width: 1080px) { .eng-book__grid { grid-template-columns: 1fr; } }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .eng-row--tba:nth-child(n+3) { display: none; } /* identical placeholder rows: two are enough on a phone */
  .eng-row--tba:nth-child(2) { border-bottom: 0; padding-bottom: 0; }
  .hero--engage .hero__note { display: none; }
  .eng-schedule__head { grid-template-columns: auto 1fr; }
}
@media (max-width: 480px) {
  .eng-card .card__media { --ratio: 16 / 10; }
  .eng-collage__note { font-size: 1rem; }
}
