/* Variant B: Margate in Colour
   Forest green with the seaside pastels from the work itself. The paint chip is the motif. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --green: #21594c;
  --green-deep: #183f35;
  --ink: #10261f;
  --chalk: #f7f5ee;
  --blue: #a9c8e6;
  --lilac: #d6c3e2;
  --yellow: #f5cb2e;
  --glass: #9dd3c2;
  --muted: #3f524b;
  --error: #a3261b;

  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --radius: 14px;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--chalk); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--yellow); color: var(--ink); border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.masthead :focus-visible, .hero :focus-visible, .work :focus-visible, .quote-intro :focus-visible, .footer :focus-visible { outline-color: var(--yellow); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

h2 {
  font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.4rem); font-weight: 800; line-height: .95; letter-spacing: -0.035em;
  text-wrap: balance;
}
h3 { font-weight: 700; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
.section-head { display: grid; gap: 1rem; max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { font-size: 1.15rem; color: var(--muted); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 54px; padding: .8rem 1.6rem; border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffd94a; }
.btn-outline { border-color: rgb(247 245 238 / .75); color: var(--chalk); }
.btn-outline:hover { background: rgb(247 245 238 / .12); border-color: var(--chalk); }
.btn-ink { background: var(--ink); color: var(--chalk); }
.btn-ink:hover { background: var(--green); }
.btn-small { min-height: 44px; padding: .5rem 1.15rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Masthead --------------------------------------------------------------- */
.masthead { background: var(--green); color: var(--chalk); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: clamp(14px, 2vw, 24px); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.brand-name { font-size: .78rem; font-weight: 600; line-height: 1.1; letter-spacing: .01em; }
.masthead-nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.75rem); }
.nav-link { display: none; font-weight: 600; text-decoration: none; }
.nav-link:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.masthead-phone { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 44px; min-height: 44px; font-weight: 700; text-decoration: none; }
.masthead-phone span { display: none; }
@media (min-width: 640px) { .masthead-phone span { display: inline; } }
@media (min-width: 1040px) { .nav-link { display: inline; } }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; z-index: 2; background: var(--green); color: var(--chalk); }
.hero-grid { display: grid; gap: 1.75rem; padding-block: .5rem 2.5rem; }
.hero-copy { display: grid; gap: 1.25rem; align-content: center; }
.hero-title {
  font-size: clamp(3.4rem, 1.2rem + 8.2vw, 8.6rem); font-weight: 800; line-height: .86; letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero-lede { max-width: 31rem; font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); line-height: 1.5; color: rgb(247 245 238 / .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-rating { display: inline-flex; align-items: center; gap: .6rem; justify-self: start; font-size: .98rem; text-decoration: none; color: rgb(247 245 238 / .9); }
.hero-rating:hover span:last-child { text-decoration: underline; text-underline-offset: .25em; }
.stars { color: var(--yellow); letter-spacing: .08em; }
.hero-proof {
  display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.5rem;
  padding-top: 1.4rem; padding-bottom: 1.6rem;
  font-size: .98rem; color: rgb(247 245 238 / .85);
}
.hero-proof li { padding-top: .9rem; border-top: 2px solid rgb(247 245 238 / .2); }
.hero-proof strong { display: block; color: var(--chalk); font-size: 1.12rem; font-weight: 700; }
@media (min-width: 900px) { .hero-proof { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 999px) { .deck { order: -1; } }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem; min-height: min(78vh, 760px); padding-block: 1rem 3rem; }
}

/* The deck: four fanned chips and the arch that opens onto the photo. */
.deck { position: relative; width: min(74vw, 330px); aspect-ratio: 4 / 5; margin-inline: auto; }
@media (min-width: 1000px) { .deck { width: min(100%, 500px); } }
.chip-card, .arch-chip { position: absolute; }
.chip-card {
  left: 28%; width: 44%; bottom: 4%; height: 60%;
  border-radius: 5px; background: var(--c);
  transform-origin: 50% 92%; transform: rotate(calc(var(--r) * 1.18));
  box-shadow: 0 22px 40px -22px rgb(0 0 0 / .55);
}
.chip-label {
  position: absolute; left: 0; right: 0; bottom: 0; height: 25%;
  display: flex; flex-direction: column; padding: .6em .75em;
  border-radius: 0 0 5px 5px; background: #fff; color: var(--ink);
  font-size: clamp(.5rem, .35rem + .55vw, .78rem); line-height: 1.2; white-space: nowrap; overflow: hidden;
}
.chip-label b { font-weight: 700; }
.chip-label span { color: #5b6a64; }
.chip-label::after {
  content: ''; position: absolute; left: 50%; top: 68%; width: 9px; height: 9px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #dcd7ca; box-shadow: inset 0 1px 2px rgb(0 0 0 / .35);
}
.arch {
  position: absolute; z-index: 2; left: 14%; width: 72%; top: 2%; height: 88%;
  overflow: hidden; background: var(--blue);
  border-radius: 50% 50% 10px 10px / 34% 34% 10px 10px;
  box-shadow: 0 40px 60px -30px rgb(0 0 0 / .6);
}
.arch picture, .arch img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.arch-chip { inset: 0; background: var(--blue); opacity: 0; pointer-events: none; }
.arch-chip .chip-label { font-size: clamp(.5rem, .35rem + .55vw, .78rem); }

/* Load sequence. html.deal = about to animate; .is-dealt = chips out; .is-open = arch open;
   .dealt = everything final (also the failsafe). */
.deal .chip-card { transition: transform .85s cubic-bezier(.2, .9, .25, 1.12) calc(var(--i) * 70ms), opacity .25s linear calc(var(--i) * 70ms); }
.deal:not(.is-dealt):not(.dealt) .chip-card { transform: translateY(45%) rotate(0deg); opacity: 0; }
.deal.is-dealt:not(.is-open):not(.dealt) .chip-card { transform: rotate(var(--r)); }

.deal:not(.is-open):not(.dealt) .arch { transform: translateY(22.7%) scale(.611, .682); border-radius: 5px; }
.deal:not(.is-dealt):not(.dealt) .arch { transform: translateY(70%) scale(.611, .682); opacity: 0; }
.deal.is-dealt .arch { transition: transform .85s cubic-bezier(.2, .9, .25, 1.12) 140ms, opacity .25s linear 140ms; }
.deal.is-open .arch, .deal.dealt .arch { transition: transform 1s cubic-bezier(.75, 0, .2, 1), border-radius 1s cubic-bezier(.75, 0, .2, 1); }
.deal:not(.is-open):not(.dealt) .arch-chip { opacity: 1; }
.deal .arch-chip { transition: opacity .5s ease .45s; }


/* Drips run off the bottom of the hero into the next section. */
.drips { position: absolute; left: 0; top: calc(100% - 1px); width: 100%; height: 90px; fill: var(--green); pointer-events: none; }
.drip-set path { transform-box: fill-box; transform-origin: 50% 0; }
.deal .drip-set path { transform: scaleY(0); transition: transform 1.6s cubic-bezier(.3, .55, .15, 1) var(--d); }
.deal.dealt .drip-set path { transform: none; }

/* Services --------------------------------------------------------------- */
.services { padding-block: calc(var(--section) + 40px) var(--section); }
.tiles { display: grid; gap: 12px; }
.tile {
  display: grid; gap: .6rem;
  padding: 1.5rem 1.4rem 1.35rem; border-radius: var(--radius); background: var(--bg);
}
@media (min-width: 560px) { .tile { grid-template-rows: auto 1fr auto; min-height: 14rem; } }
.tile h3 { font-size: clamp(1.45rem, 1.25rem + .6vw, 1.8rem); line-height: 1.02; }
.tile p { color: #24372f; }
.tile a { justify-self: start; font-weight: 700; text-underline-offset: .25em; text-decoration-thickness: 2px; padding-block: .25rem; }
@media (min-width: 560px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

/* Stages ----------------------------------------------------------------- */
.stages { padding-block: var(--section); background: var(--lilac); }
.stages .section-head p { color: #3d3546; }
.stage-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.stage-list li { scroll-snap-align: start; }
.stage-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: #c5b3d1; }
.stage-list figcaption { display: grid; gap: .1rem; margin-top: .85rem; font-size: 1rem; color: #2f2838; }
.stage-list figcaption b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
@media (min-width: 1000px) {
  .stage-list { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}

/* Work strip ------------------------------------------------------------- */
.work { padding-block: var(--section); background: var(--green); color: var(--chalk); }
.work .section-head { margin-bottom: 0; }
.work .section-head p { color: rgb(247 245 238 / .8); }
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.scroller-controls { display: none; gap: .5rem; }
.scroller-controls button {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgb(247 245 238 / .5); background: none; color: var(--chalk); cursor: pointer;
}
.scroller-controls button:hover { background: rgb(247 245 238 / .12); border-color: var(--chalk); }
.scroller-controls button:disabled { opacity: .35; cursor: default; }
.scroller-controls svg { width: 22px; height: 22px; }
@media (min-width: 760px) { .scroller-controls { display: flex; } }
.strip {
  --inset: max(var(--gutter), calc((100vw - var(--max)) / 2));
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--inset); scroll-padding-inline: var(--inset); padding-bottom: 1rem;
  scrollbar-width: thin; scrollbar-color: rgb(247 245 238 / .4) transparent;
}
.strip li { flex: 0 0 min(76vw, 340px); scroll-snap-align: start; }
.strip a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--green-deep); color: var(--ink); }
.strip picture, .strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.strip a:hover img { transform: scale(1.04); }
.strip-caption {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: .55rem .8rem; border-radius: 8px; background: #fff; font-weight: 700; font-size: .95rem;
}

/* Reviews ---------------------------------------------------------------- */
.reviews { padding-block: var(--section); background: var(--yellow); }
.reviews-top { display: grid; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.reviews .section-head { margin-bottom: 0; }
.reviews-score { color: var(--ink) !important; font-size: 1.05rem !important; }
.reviews-score .stars { color: var(--ink); }
.review-feature blockquote p { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.review-feature blockquote p::before { content: '\201C'; }
.review-feature blockquote p::after { content: '\201D'; }
.review-feature figcaption { margin-top: 1.1rem; display: flex; gap: .5rem; align-items: baseline; }
.review-more { margin-top: .9rem; }
.review-more summary { cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; width: fit-content; }
.review-more p { margin-top: .9rem; max-width: 46rem; }
.review-cards { display: grid; gap: 12px; }
.review-cards li { display: grid; gap: 1rem; align-content: space-between; padding: 1.4rem; border-radius: var(--radius); background: var(--chalk); }
.review-cards blockquote p { font-size: 1.08rem; }
.review-by { font-size: .95rem; color: var(--muted); }
.review-by b { display: block; color: var(--ink); font-size: 1.02rem; }
@media (min-width: 700px) { .review-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) {
  .reviews-top { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .review-cards { grid-template-columns: repeat(3, 1fr); }
  .review-cards li:first-child { grid-row: span 2; background: var(--ink); color: var(--chalk); }
  .review-cards li:first-child blockquote p { font-size: 1.4rem; font-weight: 600; line-height: 1.3; }
  .review-cards li:first-child .review-by { color: rgb(247 245 238 / .75); }
  .review-cards li:first-child .review-by b { color: var(--chalk); }
}

/* Floyd + steps ---------------------------------------------------------- */
.floyd { padding-block: var(--section); }
.floyd-grid { display: grid; gap: 3rem; }
.floyd-copy { display: grid; gap: 1.25rem; align-content: start; }
.floyd-copy p { font-size: 1.2rem; line-height: 1.5; max-width: 34rem; color: var(--muted); }
.steps { counter-reset: step; display: grid; gap: 2rem 2.5rem; }
.steps li { counter-increment: step; display: grid; gap: .4rem; align-content: start; }
.steps li::before {
  content: counter(step); font-size: 4.2rem; font-weight: 800; line-height: .9; letter-spacing: -0.05em; color: var(--green);
}
.steps h3 { font-size: 1.4rem; }
.steps p { color: var(--muted); }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .floyd-grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }

/* Areas ------------------------------------------------------------------ */
.areas { padding-block: var(--section); background: var(--blue); }
.areas h2 { margin-bottom: 1.5rem; }
.town-list { display: flex; flex-wrap: wrap; gap: .1em .55em; margin-bottom: 1.75rem; font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; }
.town-list li:nth-child(even) { color: var(--green); }
.areas p { font-size: 1.15rem; }
.areas p a { font-weight: 700; text-underline-offset: .25em; text-decoration-thickness: 2px; }

/* Quote ------------------------------------------------------------------ */
.quote { padding-block: var(--section); background: var(--green); color: var(--chalk); }
.quote-grid { display: grid; gap: 3rem; }
.quote-intro { display: grid; gap: 1.25rem; align-content: start; }
.quote-intro > p { max-width: 30rem; font-size: 1.15rem; color: rgb(247 245 238 / .88); }
.contact-list { display: grid; gap: .65rem; margin-top: .5rem; }
.contact-list a { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: .25em; }
.hours { color: rgb(247 245 238 / .75); }
@media (min-width: 1040px) { .quote-grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }

.quote-card { background: var(--chalk); color: var(--ink); border-radius: 22px; padding: clamp(1.25rem, 3vw, 2.5rem); }
.enquiry { display: grid; gap: 1.25rem; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field .label, .field legend { font-weight: 700; font-size: 1rem; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
.field legend .optional { display: block; margin-top: .1rem; font-size: .92rem; }
.field input:not([type='checkbox']):not([type='file']), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .7rem 1rem;
  border: 2px solid #b9c2bd; border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2310261f' stroke-width='2'/%3E%3C/svg%3E") right 1rem center/12px no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--green); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgb(245 203 46 / .6);
}
.field [aria-invalid='true'] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-size: .92rem; font-weight: 700; }
.field-error::before { content: '! '; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem;
  border: 2px solid #b9c2bd; border-radius: 999px; background: #fff; font-weight: 600; font-size: .95rem;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover span { border-color: var(--green); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
.chip input:checked + span::before { content: ''; width: .55rem; height: .95rem; margin: -.2rem .55rem 0 -.1rem; border: solid var(--yellow); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.consent { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: .85rem 1rem; border-radius: 12px; background: #fbeceb; color: var(--error); font-weight: 700; }
.enquiry .btn-green { background: var(--ink); color: var(--chalk); min-height: 58px; font-size: 1.08rem; }
.enquiry .btn-green:hover { background: var(--green); }

.enquiry-success { display: grid; gap: 1rem; justify-items: start; padding-block: 2rem; }
.enquiry-success h3 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; outline: none; }
.enquiry-success p { color: var(--muted); max-width: 32rem; }
.enquiry-success a { color: var(--green); font-weight: 700; }
.success-icon { width: 56px; height: 56px; }

/* Footer ----------------------------------------------------------------- */
.footer { padding: 3.5rem 0 calc(3.5rem + env(safe-area-inset-bottom)); background: var(--ink); color: rgb(247 245 238 / .8); font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-grid > div { display: grid; gap: .6rem; align-content: start; }
.footer a { color: var(--chalk); text-underline-offset: .25em; }
.brand-footer { color: var(--chalk); }
.legal { font-size: .85rem; color: rgb(247 245 238 / .6); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
@media (max-width: 759px) { .footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); } }

/* Mobile action bar ------------------------------------------------------ */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgb(16 38 31 / .94); backdrop-filter: blur(10px);
  transform: translateY(110%); visibility: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .35s;
}
.action-bar.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 50px;
  border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--chalk); background: rgb(247 245 238 / .12);
}
.action-bar .action-primary { background: var(--yellow); color: var(--ink); }
.action-bar :focus-visible { outline-color: var(--yellow); }
@media (min-width: 760px) { .action-bar { display: none; } }

/* Lightbox --------------------------------------------------------------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgb(16 38 31 / .97); color: var(--chalk);
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox::backdrop { background: rgb(16 38 31 / .9); }
.lightbox-stage { display: grid; place-items: center; min-height: 0; padding: clamp(.5rem, 3vw, 2.5rem); }
.lightbox-stage picture { max-width: 100%; max-height: 100%; }
.lightbox-stage img { max-height: calc(100dvh - 7rem); width: auto; object-fit: contain; border-radius: 10px; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom)); }
.lightbox-count { color: rgb(247 245 238 / .6); margin-left: .5rem; font-size: .9rem; }
.lightbox-controls { display: flex; gap: .5rem; }
.lightbox-controls button {
  display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid rgb(247 245 238 / .35);
  border-radius: 50%; background: none; color: var(--chalk); cursor: pointer;
}
.lightbox-controls button:hover { background: rgb(247 245 238 / .1); }
.lightbox-controls svg { width: 22px; height: 22px; }
.lightbox :focus-visible { outline-color: var(--yellow); }
