/* Sections after the hero. Same world as the work order: ink ground, paper rules, condensed headings,
   mono labels for data, one orange for prices and the "done" mark. */

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: 0.5rem 1rem; background: var(--paper); color: var(--ink); }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.link:hover { color: var(--accent); }
.notice { margin: 0; padding: 1rem var(--gutter); background: var(--accent); color: var(--ink); font-weight: 700; }

body { padding-bottom: var(--bar-h); }

/* ---------- section frame ---------- */
.sec { padding: 4.5rem var(--gutter) 0; }
.sec__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  margin-bottom: 1.75rem;
  border-top: 2px solid var(--paper);
}
.sec__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-variation-settings: "wdth" 75;
  font-size: clamp(2.5rem, 11vw, 5rem);
  line-height: 1.12;
  padding-top: 0.15em;
  text-wrap: balance;
}
.sec__title--small { font-size: clamp(1.75rem, 7vw, 2.5rem); }
.sec__meta { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sec__note { margin: 1.25rem 0 0; max-width: 60ch; color: var(--muted); }

/* ---------- prices: lines on a quotation ---------- */
.quote { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.quote__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name price" "detail detail";
  gap: 0.25rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--rule);
}
.quote__name { grid-area: name; font-weight: 700; font-size: 1.0625rem; line-height: 1.4; }
.quote__detail { grid-area: detail; color: var(--muted); font-size: 0.9375rem; }
.quote__price {
  grid-area: price;
  font-family: var(--font-head);
  font-variation-settings: "wdth" 75;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---------- works: before / after ---------- */
.works { display: grid; gap: 3.5rem; }
.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--steel);
  border: 1px solid var(--rule);
  touch-action: pan-y;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; } /* job photos are usually shot from above: keep the top in frame */
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; }
.ba__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.75rem;
  height: 2.75rem;
  margin: -1.375rem 0 0 -1.375rem;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: rgba(14, 14, 14, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2eee8' stroke-width='2'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 1.25rem no-repeat;
}
.ba__tag {
  position: absolute;
  top: 0.75rem;
  padding: 0.125rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(14, 14, 14, 0.85);
  pointer-events: none;
}
.ba__tag--before { left: 0.75rem; }
.ba__tag--after { right: 0.75rem; }
.ba__done {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border: 3px solid var(--accent);
  color: var(--accent);
  background: rgba(14, 14, 14, 0.9);
  font-family: var(--font-head);
  font-variation-settings: "wdth" 75;
  font-weight: 900;
  font-size: 1.5rem;
  transform: rotate(-8deg) scale(1.6);
  opacity: 0;
  pointer-events: none;
}
.ba.is-done .ba__done { transform: rotate(-8deg) scale(1); opacity: 1; }
/* the range input covers the photo: drag anywhere, keyboard arrows work, screen readers get a slider */
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible + .ba__handle, .ba:focus-within .ba__handle::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.ba--single .ba__img--before { clip-path: none; }

.work__info { padding-top: 1rem; }
.work__title { margin: 0 0 0.75rem; font-family: var(--font-head); font-variation-settings: "wdth" 75; font-weight: 800; font-size: 1.625rem; line-height: 1.2; }
.work__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin: 0; }
.work__meta div { border-top: 1px dashed var(--rule); padding-top: 0.375rem; }
.work__meta dt { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.work__meta dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.areas__item {
  font-family: var(--font-head);
  font-variation-settings: "wdth" 75;
  font-weight: 800;
  font-size: clamp(1.75rem, 8vw, 3.25rem);
  line-height: 1.25;
}
.areas__item + .areas__item::before { content: "/"; margin-right: 1.25rem; color: var(--muted); font-weight: 400; }

/* ---------- reviews: one leads, the rest follow as a list ---------- */
.reviews { display: grid; gap: 0; }
.review { margin: 0; padding: 1.5rem 0; border-bottom: 1px dashed var(--rule); }
.review__text { margin: 0; font-size: 1.0625rem; line-height: 1.65; max-width: 62ch; }
.review--lead { padding-top: 0; }
.review--lead .review__text {
  font-family: var(--font-head);
  font-variation-settings: "wdth" 75;
  font-weight: 700;
  font-size: clamp(1.625rem, 6.5vw, 2.75rem);
  line-height: 1.3;
  max-width: 26ch;
}
.review__by { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.875rem; margin-top: 0.875rem; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.review__name { color: var(--paper); font-family: var(--font-body); font-weight: 700; font-size: 0.9375rem; }
.review__stars { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--paper); }

/* ---------- place + hours ---------- */
.place { display: grid; gap: 1.5rem; }
.place__map { aspect-ratio: 4 / 3; border: 1px solid var(--rule); background: var(--steel); }
.place__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.4) contrast(1.05); }
.place__info { margin: 0; display: grid; }
.place__info > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px dashed var(--rule); }
.place__info dt { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); padding-top: 0.2rem; }
.place__info dd { margin: 0; }
.place__info > div[data-part="maplink"] { grid-template-columns: 1fr; }
.place__status { grid-template-columns: 1fr !important; border-bottom: 2px solid var(--paper) !important; }
.place__status dd { font-family: var(--font-head); font-variation-settings: "wdth" 75; font-weight: 800; font-size: 1.5rem; color: var(--accent); }
.place__status[data-state="closed"] dd, .place__status[data-state="later"] dd { color: var(--paper); }

/* ---------- PromptPay ---------- */
.pay { display: grid; gap: 1.25rem; justify-items: start; }
.pay__qr { width: 15rem; height: auto; max-width: 100%; padding: 0.75rem; background: #fff; }
.pay__text p { margin: 0 0 0.5rem; max-width: 40ch; }
.pay__shop { font-weight: 700; }
.pay__demo { color: var(--accent); font-family: var(--font-mono); font-size: 0.8125rem; }

/* ---------- privacy + footer ---------- */
.privacy { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.9375rem; display: grid; gap: 0.5rem; max-width: 68ch; }
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 4.5rem;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.actionbar__name { display: none; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sec { padding: 7rem 3vw 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
  .sec__head { grid-column: 1 / -1; margin-bottom: 2.5rem; }
  .sec__body { grid-column: 4 / -1; }
  .sec--prices .sec__body { grid-column: 5 / -1; }
  .quote__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "detail price"; padding: 1.25rem 0; }
  .quote__name { font-size: 1.25rem; }
  .quote__price { font-size: 2rem; align-self: center; }

  .works { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 6rem; }
  .work { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; align-items: end; }
  .work .ba { grid-column: 1 / 9; aspect-ratio: 16 / 10; }
  .work .work__info { grid-column: 9 / -1; }
  .work:nth-child(even) .ba { grid-column: 5 / -1; grid-row: 1; }
  .work:nth-child(even) .work__info { grid-column: 1 / 5; grid-row: 1; }
  .work__title { font-size: 2rem; }
  .work__meta { grid-template-columns: 1fr; }

  .sec--areas .sec__body { grid-column: 3 / -1; }
  .reviews { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
  .review { grid-column: 6 / -1; }
  .review--lead { grid-column: 1 / 6; grid-row: 1 / span 6; padding-right: 2rem; border-bottom: 0; }

  .place { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
  .place__map { grid-column: 1 / 8; aspect-ratio: 16 / 10; }
  .place__info { grid-column: 8 / -1; align-self: start; }

  .pay { grid-column: 4 / -1; grid-template-columns: auto 1fr; align-items: center; column-gap: 2.5rem; }
  .privacy { grid-column: 4 / -1; }
  .sec--privacy .sec__head { grid-column: 1 / 4; border-top-width: 1px; }
  .sec--privacy { padding-top: 5rem; }
  .foot { padding: 1.5rem 3vw 2rem; }

  /* past the hero: buttons become a thin solid bar across the top, never floating over content */
  .past-hero .actionbar {
    position: fixed;
    inset: 0 0 auto 0;
    justify-content: flex-end;
    align-items: center;
    padding: 0.5rem 3vw;
    background: var(--ink);
    border-bottom: 1px solid var(--rule);
  }
  .past-hero .actionbar__name {
    display: block;
    margin-right: auto;
    font-family: var(--font-head);
    font-variation-settings: "wdth" 75;
    font-weight: 800;
    font-size: 1.125rem;
  }
  .past-hero .actionbar .btn { min-height: 2.5rem; font-size: 1rem; }
  .sec { scroll-margin-top: 4rem; }
}

/* ---------- reveal on scroll (only with motion allowed and JS running) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] { opacity: 0.001; transform: translateY(1.25rem); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
  .js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
  .ba__done { transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.2s; }
  .ba__img--before, .ba__handle { transition: none; }
}
