/* ================= HOME: the broadside ================= */
.broadside {
  margin: clamp(12px, 2vw, 28px) var(--gutter) 0;
  border: 3px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -9px;
  padding: clamp(18px, 2.4vw, 34px) clamp(18px, 3vw, 48px) 0;
  text-align: center; position: relative;
  min-height: calc(100svh - 110px);
  display: flex; flex-direction: column;
}
.bs__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; font: 400 clamp(1.15rem, 2vw, 1.75rem)/1 var(--tall); letter-spacing: .14em; text-transform: uppercase; }
.bs__top p { margin: 0; }
.bs__top .bs__star { color: var(--ox); font-family: var(--slab); letter-spacing: 0; }
.bs__name { margin: clamp(10px, 2.2vh, 28px) 0 0; font: 400 clamp(3.4rem, 13.4vw, 15rem)/.8 var(--slab); letter-spacing: -.03em; display: flex; justify-content: center; align-items: flex-start; gap: 0 .14em; flex-wrap: nowrap; }
.bs__the { font: 400 .22em/1 var(--tall); letter-spacing: .12em; writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; padding: 0 .1em; border-left: 2px solid var(--ink); text-transform: uppercase; }
.bs__tin, .bs__comb { display: block; text-transform: uppercase; }
.bs__trade { width: 100%; display: flex; align-items: center; gap: 18px; margin: clamp(12px, 2.4vh, 26px) auto 0; max-width: none; font: 400 clamp(1.6rem, 6.4vw, 6.2rem)/.9 var(--tall); text-transform: uppercase; letter-spacing: .02em; }
.bs__trade .bs__rule { flex: 1; height: 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); padding-top: 4px; }
.bs__trade small { font: italic 400 clamp(1rem, 1.6vw, 1.45rem)/1.25 var(--serif); text-transform: none; letter-spacing: 0; max-width: 15ch; text-align: left; }
.bs__chairs { list-style: none; margin: clamp(14px, 2.4vh, 28px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.bs__chairs li { padding: 14px 12px 16px; display: grid; gap: 4px; }
.bs__chairs li + li { border-left: 1px solid var(--ink); }
.bs__chairs .no { font: 700 .85rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ox); }
.bs__chairs b { font: 400 clamp(1.8rem, 3.6vw, 3.2rem)/1 var(--slab); font-weight: 400; }
.bs__chairs em { font-size: 1.05rem; line-height: 1.3; }
.bs__today { display: flex; justify-content: center; align-items: center; gap: 18px 40px; flex-wrap: wrap; padding: clamp(16px, 2.6vh, 28px) 0; flex: 1; }
.bs__hours { margin: 0; font: 400 1.05rem/1.5 var(--mono); text-align: left; max-width: none; }
.bs__hours b { font-weight: 700; }
.bs__today .stamp { --tilt: -6deg; font-size: 1.45rem; }
@media (max-width: 720px) {
  .broadside { min-height: 0; }
  .bs__name { flex-direction: column; align-items: center; font-size: 23vw; line-height: .84; }
  .bs__the { writing-mode: horizontal-tb; transform: none; border: 0; font-size: .26em; letter-spacing: .5em; padding: 0 0 .2em .5em; }
  .bs__trade { flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 17vw; }
  .bs__trade .bs__rule { display: none; }
  .bs__trade small { text-align: center; max-width: 24ch; }
  .bs__chairs { grid-template-columns: 1fr; }
  .bs__chairs li { padding: 10px 4px 12px; gap: 2px; }
  .bs__chairs li + li { border-left: 0; border-top: 1px solid var(--ink); }
  .bs__today { flex-direction: column; }
  .bs__hours { text-align: center; }
}

@media (max-aspect-ratio: 1/1) { .broadside { min-height: 0; } }

/* the tear-off strip */
.stubs { margin: 0 calc(-1 * clamp(18px, 3vw, 48px)); position: relative; padding-top: 22px; }
.stubs::before { /* perforation: a line of punched holes across the sheet */
  content: ""; position: absolute; left: 10px; right: 10px; top: 4px; height: 8px;
  background: radial-gradient(circle, var(--ink) 2.6px, transparent 3.2px) 0 50% / 14px 8px repeat-x; opacity: .85;
}
.stubs ul { list-style: none; margin: 0; padding: 0 clamp(10px, 1.4vw, 20px) clamp(12px, 1.4vw, 20px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stubs a {
  --notch: radial-gradient(circle 9px at 0 0, #0000 98%, #000) top left, radial-gradient(circle 9px at 100% 0, #0000 98%, #000) top right, radial-gradient(circle 9px at 0 100%, #0000 98%, #000) bottom left, radial-gradient(circle 9px at 100% 100%, #0000 98%, #000) bottom right;
  display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: center; text-align: left;
  min-height: 112px; padding: 14px 18px 14px 12px; text-decoration: none;
  background: var(--paper-2); color: var(--ink);
  -webkit-mask: var(--notch); -webkit-mask-size: 51% 51%; -webkit-mask-repeat: no-repeat;
  mask: var(--notch); mask-size: 51% 51%; mask-repeat: no-repeat;
  transition: transform 160ms var(--press);
}
.stubs li:nth-child(1) a { background: var(--ink); color: var(--paper); }
.stubs li:nth-child(3) a { background: var(--ox); color: var(--paper); }
.stubs .stub__no { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 .78rem/1 var(--mono); letter-spacing: .1em; padding-left: 12px; border-left: 2px dashed currentColor; align-self: stretch; text-align: center; }
.stubs .stub__go { font: 400 clamp(1.7rem, 2.6vw, 2.5rem)/.95 var(--tall); text-transform: uppercase; letter-spacing: .03em; display: block; }
.stubs .stub__what { font: italic 400 .98rem/1.3 var(--serif); display: block; margin-top: 4px; }
.stubs a:active { transform: translateY(2px) scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .stubs a:hover { transform: translateY(-6px) rotate(-1.2deg); }
  .stubs li:nth-child(even) a:hover { transform: translateY(-6px) rotate(1.2deg); }
  .stubs a:active { transform: translateY(2px) scale(.97); }
}
@media (max-width: 900px) { .stubs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .stubs a { padding-right: 10px; gap: 0 10px; } }

/* ================= HOME: a cut in six frames ================= */
.seq { margin-top: clamp(72px, 10vw, 140px); }
.seq__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 18px; }
.seq__head h2 { font: 400 clamp(3rem, 8vw, 7.4rem)/.86 var(--tall); text-transform: uppercase; letter-spacing: .01em; }
.seq__head p { margin: 0; font: 400 1.05rem/1.45 var(--mono); max-width: 34ch; text-align: right; }
.seq__count { font: 400 clamp(2.6rem, 5vw, 4.4rem)/1 var(--slab); color: var(--ox); }
.seq__count span { display: inline-block; min-width: 1ch; }
.seq__film { background: var(--ink); color: var(--paper); position: relative; }
.seq__track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
.seq__track::-webkit-scrollbar { display: none; }
.frame { flex: 0 0 auto; width: min(78vw, 420px); padding: 40px 10px 0; position: relative; scroll-snap-align: center; }
/* sprocket holes, top and bottom of the strip */
.frame::before, .frame::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(90deg, transparent 0 7px, var(--paper) 7px 19px, transparent 19px 28px); opacity: .9; }
.frame::before { top: 12px; }
.frame::after { bottom: 88px; }
.frame__edge { position: absolute; top: 26px; left: 12px; right: 12px; margin: 0; max-width: none; display: flex; justify-content: space-between; font: 700 .7rem/1 var(--mono); letter-spacing: .12em; color: #d9b98a; opacity: .85; }
.frame figure { margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame figcaption { height: 100px; padding: 30px 2px 0; font: 400 .98rem/1.4 var(--mono); }
.frame figcaption b { font: 400 1.5rem/1 var(--tall); letter-spacing: .05em; text-transform: uppercase; margin-right: 6px; color: #f0c9a0; }
.grease { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.grease path { fill: none; stroke: #f6eedc; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.grease text { fill: #f6eedc; font: 400 9px var(--tall); letter-spacing: .06em; }
.leader { display: none; flex: 0 0 auto; position: relative; padding: 40px 30px 0; color: var(--paper); }
.leader::before, .leader::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(90deg, transparent 0 7px, var(--paper) 7px 19px, transparent 19px 28px); opacity: .9; }
.leader::before { top: 12px; } .leader::after { bottom: 88px; }
.leader p { margin: 0; font: 400 clamp(3rem, 6vw, 6rem)/.9 var(--slab); color: #f6eedc; transform: rotate(-4deg); text-align: right; padding-top: 18%; }
.leader .leader__sub { font: 400 1rem/1.4 var(--mono); transform: none; padding-top: 18px; color: #d9b98a; }
.seq__note { padding-top: 14px; font: 400 .95rem/1.4 var(--mono); }

/* scrub mode (JS, wide screens, motion allowed): the strip moves sideways as you scroll down */
.seq--scrub { height: calc(100vh + 5 * 55vh); }
.seq--scrub .seq__stage { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.seq--scrub .seq__track { overflow: visible; padding: 0; scroll-snap-type: none; will-change: transform; transition: transform 200ms var(--snap); }
.seq--scrub .leader { display: block; width: min(30vw, calc((100vh - 330px) * .8 + 20px)); }
.seq--scrub .frame { width: min(30vw, calc((100vh - 330px) * .8 + 20px)); }
.seq--scrub .frame figure img, .seq--scrub .frame figcaption { transition: opacity 160ms ease-out; }
.seq--scrub .frame:not(.is-on) figure img { opacity: .32; }
.seq--scrub .frame:not(.is-on) figcaption { opacity: .3; }
.seq--scrub .frame .grease { opacity: 0; transform: scale(1.08); transition: opacity 120ms ease-out, transform 220ms var(--press); }
.seq--scrub .frame.is-on .grease { opacity: 1; transform: none; transition-delay: 140ms; }
.seq--scrub .frame figure::after { content: ""; position: absolute; inset: 0; background: var(--paper); opacity: 0; pointer-events: none; }
.seq--scrub .frame.is-flash figure::after { animation: reg-flash 150ms ease-out; }
@keyframes reg-flash { 0% { opacity: .75; } 100% { opacity: 0; } }

@media (max-width: 720px) {
  .seq__head { flex-wrap: wrap; }
  .seq__head p { text-align: left; }
}

/* ================= HOME: how the shop works ================= */
.how { margin-top: clamp(72px, 10vw, 150px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.how h2 { font: 400 clamp(2.8rem, 7.4vw, 7rem)/.9 var(--tall); text-transform: uppercase; }
.how h2 span { color: var(--ox); display: block; }
.how__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.how__cols > div { padding: 20px 28px 8px 0; }
.how__cols > div + div { padding-left: 28px; border-left: 1px solid var(--ink); }
.how h3 { font: 400 2rem/1 var(--slab); margin-bottom: 12px; }
.how__foot { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.how__foot .stamp { --tilt: 4deg; margin-left: auto; }
@media (max-width: 860px) {
  .how__cols { grid-template-columns: 1fr; }
  .how__cols > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--ink); }
  .how__foot .stamp { margin-left: 0; }
}

/* ================= SERVICES: the tariff ================= */
.tariff { padding: 0 var(--gutter); }
.tariff__group { margin-top: clamp(48px, 7vw, 96px); }
.tariff__group h2 { display: flex; align-items: baseline; gap: 18px; font: 400 clamp(3rem, 8vw, 7rem)/.85 var(--tall); text-transform: uppercase; border-bottom: 6px solid var(--ink); padding-bottom: 6px; }
.tariff__group h2 small { font: 400 1rem/1.3 var(--mono); text-transform: none; margin-left: auto; text-align: right; }
.tariff table { width: 100%; border-collapse: collapse; }
.tariff th { font: 700 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--ink); color: var(--ink-2); }
.tariff td { padding: 16px 10px; border-bottom: 1px solid var(--ink); vertical-align: middle; }
.tariff td + td, .tariff th + th { border-left: 1px solid var(--ink); }
.tariff .c-no { width: 4.5rem; font: 700 .9rem/1 var(--mono); color: var(--ox); }
.tariff .c-name { font: 400 clamp(1.5rem, 2.4vw, 2.1rem)/1 var(--slab); width: 30%; }
.tariff .c-what { font-size: 1.02rem; line-height: 1.45; }
.tariff .c-time { width: 7rem; font: 400 1rem/1 var(--mono); white-space: nowrap; }
.tariff .c-price { width: 9.5rem; text-align: right; }
.tariff .c-book { width: 8rem; text-align: center; }
.tag { --n: radial-gradient(circle 6px at 0 50%, #0000 98%, #000) left, radial-gradient(circle 6px at 100% 50%, #0000 98%, #000) right;
  display: inline-block; padding: 8px 16px 6px; background: var(--ink); color: var(--paper); font: 400 1.7rem/1 var(--slab);
  -webkit-mask: var(--n); -webkit-mask-size: 51% 100%; -webkit-mask-repeat: no-repeat; mask: var(--n); mask-size: 51% 100%; mask-repeat: no-repeat; }
.tag sup { font: 700 .5em/1 var(--mono); vertical-align: .6em; margin-right: 1px; }
.tag--ox { background: var(--ox); }
.rowlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font: 700 .95rem/1 var(--mono); text-decoration: underline; text-underline-offset: 4px; transition: transform 120ms var(--press); }
.rowlink:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .rowlink:hover { color: var(--ox); } }
.tariff__fine { margin-top: 18px; font: 400 .95rem/1.5 var(--mono); max-width: 70ch; }

@media (max-width: 760px) {
  .tariff table, .tariff tbody, .tariff tr, .tariff td { display: block; }
  .tariff thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tariff tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "no price" "name price" "what what" "time book"; border-bottom: 1px solid var(--ink); padding: 16px 0 6px; gap: 2px 12px; }
  .tariff td { border: 0 !important; padding: 0; width: auto !important; }
  .tariff .c-no { grid-area: no; }
  .tariff .c-name { grid-area: name; padding-top: 6px; }
  .tariff .c-what { grid-area: what; padding-top: 10px; }
  .tariff .c-time { grid-area: time; align-self: center; }
  .tariff .c-price { grid-area: price; align-self: center; }
  .tariff .c-book { grid-area: book; text-align: right; }
  .tariff__group h2 { flex-wrap: wrap; }
  .tariff__group h2 small { margin-left: 0; text-align: left; flex-basis: 100%; }
}

.explain { margin: clamp(64px, 9vw, 120px) var(--gutter) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 3px solid var(--ink); }
.explain article { padding: clamp(22px, 3vw, 40px); }
.explain article + article { border-left: 3px solid var(--ink); background: var(--ink); color: var(--paper); }
.explain h2 { font: 400 clamp(2.2rem, 4vw, 3.6rem)/.95 var(--slab); margin-bottom: 18px; }
.explain ol { margin: 0; padding-left: 1.4em; }
.explain li { margin-bottom: .5em; max-width: 52ch; }
.explain li::marker { font: 700 1rem var(--mono); color: var(--ox); }
.explain article + article li::marker { color: #e8a28e; }
@media (max-width: 800px) { .explain { grid-template-columns: 1fr; } .explain article + article { border-left: 0; border-top: 3px solid var(--ink); } }

/* ================= BARBERS: the chairs ================= */
.chair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); padding: clamp(48px, 7vw, 100px) var(--gutter); border-bottom: 3px solid var(--ink); align-items: start; }
.chair--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.chair--flip .chair__pic { order: 2; }
.chair--ink { background: var(--ink); color: var(--paper); }
.chair--ink .chair__days li { border-color: var(--paper); }
.chair--ink .chair__days .on { background: var(--paper); color: var(--ink); }
.chair__pic { position: relative; margin: 0; }
.chair__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 3px solid var(--ink); }
.chair--ink .chair__pic img { border-color: var(--paper); }
.chair__pic figcaption { font: 400 .85rem/1.4 var(--mono); padding-top: 8px; }
.chair__no { margin: 0; font: 400 clamp(5rem, 15vw, 13rem)/.8 var(--slab); letter-spacing: -.03em; color: var(--ox); display: flex; align-items: flex-start; gap: .08em; }
.chair--ink .chair__no { color: var(--paper); text-shadow: .035em .025em 0 var(--ox); }
.chair__no small { font: 400 .22em/1 var(--tall); letter-spacing: .1em; color: currentColor; text-transform: uppercase; padding-top: .25em; }
.chair h2 { font: 400 clamp(3rem, 7vw, 6rem)/.9 var(--tall); text-transform: uppercase; margin: 18px 0 6px; }
.chair__lede { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.45; font-style: italic; max-width: 40ch; }
.chair__meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 36px; margin: 28px 0 32px; border-top: 2px solid currentColor; padding-top: 18px; }
.chair__meta h3 { font: 700 .85rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.chair__meta ul:not(.chair__days) { margin: 0; padding: 0; list-style: none; }
.chair__meta ul:not(.chair__days) li { padding: 6px 0; border-bottom: 1px solid currentColor; font-size: 1.05rem; }
.chair__days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); max-width: 340px; }
.chair__days li { border: 1.5px solid var(--ink); margin-left: -1.5px; padding: 10px 0 8px; text-align: center; font: 700 .78rem/1 var(--mono); }
.chair__days .on { background: var(--ink); color: var(--paper); }
.chair__days .shut { text-decoration: line-through; opacity: .7; }
.chair__days + p { font: 400 .95rem/1.4 var(--mono); margin-top: 10px; }
@media (max-width: 820px) {
  .chair, .chair--flip { grid-template-columns: 1fr; }
  .chair--flip .chair__pic { order: 0; }
  .chair__pic { max-width: 440px; }
  .chair__meta { grid-template-columns: 1fr; }
}

/* ================= BOOK: the punch card ================= */
.bookpage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0 var(--gutter); }
.bookhead { padding-top: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: end; }
.bookhead h1 { font: 400 clamp(3rem, 8.4vw, 7.6rem)/.84 var(--slab); letter-spacing: -.025em; }
.bookhead p { margin: 0; max-width: 38ch; }
@media (max-width: 800px) { .bookhead { grid-template-columns: 1fr; } }

.desk { position: relative; padding: clamp(14px, 3vw, 44px); background: var(--ink); background-image: radial-gradient(rgba(239, 231, 214, .07) 1px, transparent 1.5px); background-size: 9px 9px; }
.card {
  position: relative; background: var(--buff) var(--grain); background-size: 256px; color: var(--ink);
  clip-path: polygon(46px 0, 100% 0, 100% 100%, 0 100%, 0 46px);
  padding: clamp(18px, 2.6vw, 34px) clamp(16px, 2.6vw, 38px) clamp(18px, 2.4vw, 30px);
  transition: transform 220ms var(--press);
}
.card::before { /* printed column guides, like real card stock */
  content: ""; position: absolute; inset: 64px 0 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(122, 31, 34, .07) 0 1px, transparent 1px 14px);
}
.card > * { position: relative; }
.card__foot { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 18px; padding-top: 10px; border-top: 2px solid var(--ox); font: 700 .78rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ox); }
.card__sum { margin: 16px 0 0; padding: 12px 14px; min-height: 3.4em; background: rgba(239, 231, 214, .55); border: 1.5px dashed var(--ink); font: 400 1rem/1.45 var(--mono); max-width: none; }
.card__sum b { font-weight: 700; }
.card.kick { transform: translateY(3px) rotate(-.25deg); transition-duration: 70ms; }
.card__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ox); padding: 0 0 10px 34px; margin-bottom: 6px; }
.card__top h2 { font: 400 clamp(1.6rem, 3vw, 2.4rem)/1 var(--slab); }
.card__top p { margin: 0; font: 700 .8rem/1.3 var(--mono); letter-spacing: .08em; color: var(--ox); text-transform: uppercase; }
.punch { border: 0; margin: 0; padding: 14px 0 4px; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 8px 16px; border-bottom: 1px solid rgba(122, 31, 34, .55); min-width: 0; }
.punch legend { float: left; padding: 6px 0 0; font: 400 1.7rem/1 var(--tall); letter-spacing: .05em; text-transform: uppercase; grid-column: 1; }
.punch legend small { display: block; font: 400 .8rem/1.3 var(--mono); letter-spacing: 0; text-transform: none; color: var(--ink-2); margin-top: 4px; }
.punch__holes { grid-column: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: 4px 6px; }
.punch__holes--wide { grid-template-columns: repeat(auto-fill, minmax(7.6rem, 1fr)); }
.punch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.punch label { display: grid; justify-items: center; gap: 5px; padding: 6px 2px 8px; min-height: 64px; cursor: pointer; text-align: center; font: 700 .8rem/1.15 var(--mono); position: relative; transition: transform 120ms var(--press); }
.punch label:active { transform: scale(.95); }
.punch label .hole { width: 34px; height: 21px; border: 1.5px solid var(--ox); border-radius: 3px; position: relative; display: block; }
.punch label .hole::before { /* the punched hole: you see the dark desk through it */
  content: ""; position: absolute; inset: -1.5px; border-radius: 3px; background: var(--ink); opacity: 0; transform: scale(1.5);
  transition: opacity 90ms ease-out, transform 160ms var(--press);
}
.punch label .hole::after { /* the chad, falling away */
  content: ""; position: absolute; inset: 0; border-radius: 3px; background: var(--buff); opacity: 0; pointer-events: none;
}
.punch input:checked + label .hole::before { opacity: 1; transform: none; }
.punch input:checked + label .hole::after { animation: chad 280ms ease-in forwards; }
@keyframes chad { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(6px, 34px) rotate(40deg); } }
.punch input:checked + label { color: var(--ox); }
.punch input:focus-visible + label { outline: 3px solid var(--ox); outline-offset: 1px; }
.punch input:disabled + label { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.punch label .sub { font-weight: 400; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .punch input:not(:disabled) + label:hover .hole { border-width: 2.5px; } }
.card__err { min-height: 1.5em; margin: 10px 0 0; font: 700 .95rem/1.5 var(--mono); color: var(--ox); max-width: none; }

.holder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px 22px; align-items: start; padding-top: 18px; }
.field label { display: block; font: 400 1.35rem/1 var(--tall); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.field input { width: 100%; min-height: 48px; border: 0; border-bottom: 2px solid var(--ink); background: transparent; font: 700 1.15rem/1 var(--mono); color: var(--ink); padding: 8px 2px; border-radius: 0; }
.field input:focus-visible { outline: none; border-bottom-color: var(--ox); box-shadow: 0 2px 0 var(--ox); }
.field input[aria-invalid="true"] { border-bottom-color: var(--ox); }
.field .err { min-height: 1.5em; margin: 6px 0 0; font: 700 .85rem/1.4 var(--mono); color: var(--ox); }
.holder .btn { margin-top: 22px; }
@media (max-width: 760px) {
  .punch { grid-template-columns: 1fr; }
  .punch legend { grid-column: 1; float: none; padding-bottom: 4px; }
  .punch__holes { grid-column: 1; grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr)); }
  .punch__holes--wide { grid-template-columns: repeat(auto-fill, minmax(6.6rem, 1fr)); }
  .holder { grid-template-columns: 1fr; }
  .holder .btn { margin-top: 0; width: 100%; }
  .card { clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%, 0 30px); }
  .card__top { padding-left: 22px; }
}

/* the printed ticket */
.ticket { display: none; }
.is-done .card { display: none; }
.is-done .ticket { display: block; animation: ticket-feed 300ms var(--press) both; }
@keyframes ticket-feed { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.ticket__paper {
  --n: radial-gradient(circle 14px at 0 50%, #0000 98%, #000) left, radial-gradient(circle 14px at 100% 50%, #0000 98%, #000) right;
  background: var(--paper) var(--grain); background-size: 256px; max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 150px;
  -webkit-mask: var(--n); -webkit-mask-size: 51% 100%; -webkit-mask-repeat: no-repeat; mask: var(--n); mask-size: 51% 100%; mask-repeat: no-repeat;
}
.ticket__main { padding: 28px 34px 26px; position: relative; }
.ticket__main h2 { font: 400 clamp(2.4rem, 6vw, 4rem)/.9 var(--slab); margin-bottom: 14px; }
.ticket dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); border-top: 2px solid var(--ink); }
.ticket dt, .ticket dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--ink); font: 400 1rem/1.3 var(--mono); }
.ticket dt { padding-right: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.ticket dd { text-align: right; }
.ticket .total { display: contents; }
.ticket .total dd, .ticket .total dt { font-weight: 700; font-size: 1.1rem; border-bottom-width: 3px; }
.ticket__stub { border-left: 3px dashed var(--ink); padding: 26px 18px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; }
.ticket__stub .no { font: 400 .95rem/1 var(--mono); }
.ticket__stub .num { font: 400 2.6rem/1 var(--slab); color: var(--ox); writing-mode: vertical-rl; transform: rotate(180deg); }
.ticket__demo { margin: 14px 0 0; font: italic 400 1rem/1.45 var(--serif); }
.ticket .stamp { position: absolute; right: 30px; top: 22px; --tilt: 7deg; font-size: 1.05rem; }
.ticket__again { text-align: center; margin: 26px auto 0; max-width: none; }
.ticket__again .btn--paper { background: var(--paper); }
@media (max-width: 560px) {
  .ticket__paper { grid-template-columns: 1fr; }
  .ticket__stub { border-left: 0; border-top: 3px dashed var(--ink); flex-direction: row; padding: 14px 24px; }
  .ticket__stub .num { writing-mode: horizontal-tb; transform: none; font-size: 2rem; }
  .ticket__main { padding: 24px 22px; }
  .ticket .stamp { position: static; margin-bottom: 12px; }
}

/* ================= VISIT ================= */
.visit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); padding: clamp(40px, 6vw, 88px) var(--gutter) 0; align-items: start; }
.addr { font: 400 clamp(2.6rem, 6vw, 5.6rem)/.92 var(--tall); text-transform: uppercase; margin: 0 0 18px; }
.addr a { text-decoration: none; }
.visit h2 { font: 400 2rem/1 var(--slab); margin: 36px 0 12px; }
.visit .facts { border-top: 3px solid var(--ink); }
.visit .facts p { border-bottom: 1px solid var(--ink); padding: 12px 0; margin: 0; max-width: none; }
.visit .facts b { font: 700 .82rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.mapbox { margin: 36px 0 0; border: 3px solid var(--ink); background: var(--paper-2); }
.mapbox svg { display: block; width: 100%; height: auto; }
.mapbox figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 10px 14px; border-top: 3px solid var(--ink); font: 400 .9rem/1.4 var(--mono); }

/* the door sign */
.sign { position: relative; padding-top: 70px; margin-bottom: 90px; max-width: 440px; justify-self: center; width: 100%; }
.sign__string { position: absolute; left: 50%; top: 0; width: 64%; height: 76px; transform: translateX(-50%); }
.sign__board { background: var(--ink); color: var(--paper); padding: 26px 26px 22px; border: 3px solid var(--ink); outline: 2px solid var(--paper); outline-offset: -10px; transform: rotate(-1.5deg); transform-origin: 50% -60px; }
.sign__board h2 { margin: 0 0 4px; text-align: center; font: 400 clamp(3rem, 7vw, 4.6rem)/.9 var(--slab); color: var(--paper); text-shadow: .035em .025em 0 var(--ox); }
.sign__board > p { text-align: center; font: 400 1rem/1.3 var(--mono); margin: 0 auto 16px; }
.sign__board table { width: 100%; border-collapse: collapse; font: 400 1rem/1 var(--mono); }
.sign__board th, .sign__board td { padding: 10px 6px; border-top: 1px solid rgba(239, 231, 214, .45); text-align: left; }
.sign__board th { font: 400 1.5rem/1 var(--tall); letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }
.sign__board td { text-align: right; }
.sign__board tr.is-today th, .sign__board tr.is-today td { color: #f2b9a6; }
.sign__board tr.is-today td::before { content: "Today  "; font-weight: 700; }
.sign .stamp { position: absolute; right: 8px; bottom: -78px; --tilt: -7deg; mix-blend-mode: normal; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .sign { max-width: 420px; order: -1; } }
