@font-face { font-family: "Archivo"; src: url(../fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Pencil"; src: url(../fonts/pencil.woff2) format("woff2"); font-display: swap; }

:root {
  --navy: #0c1250; --yellow: #ffe347; --red: #c00000; --wall: #ece7de; --cream: #f4efe6; --copper: #b0623a; --cavity: #17140f; --pencil: #3a3a40;
  --gut: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cavity); color: var(--navy); font: 500 17px/1.5 "Archivo", system-ui, sans-serif; font-stretch: 100%; }
a { color: inherit; }
img, video { display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
picture.bg, picture.bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
picture.bg img { object-fit: cover; }

/* the fixed sample label, small, bottom left */
.sample { transition: opacity .4s; }
.sample.away { opacity: 0; }
.sample { position: fixed; z-index: 50; left: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: calc(100% - 20px); padding: 4px 8px;
  border-radius: 2px; background: rgba(12, 18, 80, .88); color: #fff; font: 500 10px/1.3 "Archivo", sans-serif; }

/* the top line: the wordmark and the page's screens */
.top { position: absolute; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; gap: 14px; padding: 16px var(--gut); }
.wordmark { font-size: 15px; font-weight: 880; font-stretch: 125%; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.wordmark span { font-weight: 500; font-stretch: 100%; }
.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.top nav a { font-size: 13px; font-weight: 650; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.top nav a[aria-current] { border-bottom-width: 3px; }
@media (max-width: 640px) {
  .top { flex-wrap: wrap; row-gap: 8px; padding-top: 14px; }
  .top nav { margin-left: 0; width: 100%; gap: 14px; }
  .top nav a { font-size: 12.5px; }
}

/* ---- a stage: a box the size of its photograph, scaled to cover its frame in CSS alone (works with scripts off) ---- */
.stage { --u: max(100cqw / var(--W), 100cqh / var(--H)); position: absolute; width: calc(var(--W) * var(--u)); height: calc(var(--H) * var(--u));
  left: calc((100cqw - var(--W) * var(--u)) * var(--fx, .5)); top: calc((100cqh - var(--H) * var(--u)) * var(--fy, .5)); }
.stage picture, .stage img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ================= the hero ================= */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; container-type: size; background: var(--wall); }
/* between screens one holds still, then the next cuts in over it whole (site.js) */
.js main > section, .js .held .frame { will-change: transform; }
.scene { position: absolute; inset: 0; }
.cam { position: absolute; inset: 0; }
/* the hero's own switch, later than the rest's (build.mjs HERO_TALL) */
@media (max-aspect-ratio: 1199/1000) { .hero .stage[data-art$="wide"] { display: none; } }
@media (min-aspect-ratio: 6/5) { .hero .stage[data-art$="tall"] { display: none; } }
/* the opening's close shots, played as film before the words arrive */
.reel { position: absolute; inset: 0; z-index: 2; display: none; }
.js .reel { display: block; }
.shot { position: absolute; inset: 0; overflow: hidden; opacity: 0; }
.shot.on { opacity: 1; }
/* the first paint is the film's first shot, never the patched wall it ends on: that waits for the film's end */
.js .hero:not(.filming):not(.landed) .shot[data-shot="mark"] { opacity: 1; }
.js .hero:not(.landed) .stage { visibility: hidden; }
/* the name is set large in the picture; the bar does not repeat it there */
.js .home .top .wordmark { visibility: hidden; }
.shot picture, .shot img { width: 100%; height: 100%; }
.shot img { object-fit: cover; }
/* the words, set on the wall in the photograph's own pixels */
.hero .words, .hero .pencilled { --W: 2160; --H: 3840; --u: max(100cqw / var(--W), 100cqh / var(--H));
  --sx: calc((100cqw - var(--W) * var(--u)) * .5); --sy: calc((100cqh - var(--H) * var(--u)) * .5); position: absolute; z-index: 4; }
/* the name never under the bar; on a screen too short for the tall wall's words, they are set smaller, so they end
   above the number (1024 by 900) */
.hero .words { --u: min(max(100cqw / var(--W), 100cqh / var(--H)), 100cqh / 2400);
  left: calc(var(--sx) + 330 * var(--u)); top: max(calc(var(--sy) + 640 * var(--u)), 70px); width: calc(1500 * var(--u)); }
.hero h1 { font-size: calc(300 * var(--u)); line-height: .84; font-weight: 860; font-stretch: 118%; letter-spacing: -.015em; mix-blend-mode: multiply; }
.hero h1 span { display: block; }
.hero .line { margin-top: calc(80 * var(--u)); font-size: calc(104 * var(--u)); line-height: 1.12; font-weight: 640; font-stretch: 106%; mix-blend-mode: multiply; }
/* one sentence to a line, never a word left alone */
.hero .line span { display: block; white-space: nowrap; }
.hero .hours { margin-top: calc(40 * var(--u)); font-size: calc(62 * var(--u)); font-weight: 560; mix-blend-mode: multiply; }
/* the number, pencilled on the fresh patch: the call itself */
.hero .pencilled { left: calc(var(--sx) + (1040 - 470) * var(--u)); top: calc(var(--sy) + (2290 - 190) * var(--u)); width: calc(940 * var(--u));
  display: block; text-align: center; text-decoration: none; color: #2b2b31; font: 400 calc(300 * var(--u))/1 "Pencil", "Archivo", sans-serif; transform: rotate(-4deg); mix-blend-mode: multiply; }
.hero .pencilled span { display: inline-block; clip-path: inset(0 0 0 0); }
.js .hero:not(.landed) .pencilled span { clip-path: inset(-20% 100% -20% 0); }
.hero.landed .pencilled span { transition: clip-path .7s .15s cubic-bezier(.45, .1, .4, 1); }
.hero .pencilled::after { content: "Tap to call"; white-space: nowrap; position: absolute; left: 50%; bottom: -.42em; transform: translateX(-50%); font: 760 calc(84 * var(--u))/1 "Archivo", sans-serif; font-stretch: 112%; color: var(--navy); letter-spacing: .04em; }
@media (min-aspect-ratio: 6/5) {
  .hero .words, .hero .pencilled { --W: 3840; --H: 2160; --u: max(100cqw / var(--W), 100cqh / var(--H)); }
  .hero .words { left: calc(var(--sx) + 800 * var(--u)); top: calc(var(--sy) + 350 * var(--u)); width: calc(1500 * var(--u)); }
  .hero h1 { font-size: calc(290 * var(--u)); }
  .hero .line { margin-top: calc(64 * var(--u)); font-size: calc(76 * var(--u)); }
  .hero .hours { margin-top: calc(30 * var(--u)); font-size: calc(44 * var(--u)); }
  /* on its patch, but never past the screen's edge (6/5 to 5/4) */
  .hero .pencilled { left: min(calc(var(--sx) + (2850 - 420) * var(--u)), calc(100cqw - 840 * var(--u) - 16px)); top: calc(var(--sy) + 670 * var(--u)); width: calc(840 * var(--u)); font-size: calc(250 * var(--u)); }
  .hero .pencilled::after { font-size: calc(62 * var(--u)); }
}
/* with a mouse the number is called or texted, not tapped: said small and level, so the pencil stays the star */
@media (hover: hover) { .hero .pencilled::after { content: "Call or text"; font-size: calc(40 * var(--u)); font-weight: 650; letter-spacing: .06em; transform: translateX(-50%) rotate(4deg); } }
/* while the film runs the words wait; they arrive with the wall */
.js .hero .words { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .hero:not(.landed) .words, .js .hero:not(.landed) .pencilled { opacity: 0; transform: translateY(14px); transition: none; }

/* ================= a held screen: the frame stays while the camera moves over one photograph (site.js) ================= */
.held { position: relative; height: calc(100svh + var(--run)); }
.held .frame { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; }
.held .photo { position: absolute; inset: 0; will-change: transform; container-type: size; }
.held .photo picture, .held .photo img { width: 100%; height: 100%; }
.held .photo img { object-fit: cover; object-position: 50% 55%; }
.cam-on .held .photo { inset: auto; left: 0; top: 0; }
html:not(.cam-on) .held { height: auto; }
.held .words { position: absolute; z-index: 3; }
html:not(.cam-on) .held .photo { container-type: normal; }
.held h2 { font-weight: 870; font-stretch: 120%; letter-spacing: -.02em; line-height: .86; }

/* ---- 1 behind the tile: navy on the white tile, beside the opening (in the photograph's own fractions) ---- */
.s-tile .words { left: 10%; top: 29.5%; width: 80%; color: var(--navy); mix-blend-mode: multiply; }
.s-tile h2 { font-size: 9.5cqw; }
.s-tile p { margin-top: 1.2cqw; font-size: 2.2cqw; line-height: 1.12; font-weight: 760; font-stretch: 110%; }
@media (max-aspect-ratio: 4/5) {
  .s-tile .words { left: 25.5%; top: 21%; width: 49%; }
  .s-tile h2 { font-size: 6.6cqw; }
  .s-tile p { font-size: 2.5cqw; }
}
html:not(.cam-on) .s-tile .words { position: absolute; left: var(--gut); top: 12svh; width: auto; max-width: 30rem; }
html:not(.cam-on) .s-tile h2 { font-size: clamp(54px, 8vw, 110px); }
html:not(.cam-on) .s-tile p { font-size: 22px; }

/* ---- 2 the heater: the pilot, then the ring catches from it, right to left, and keeps flickering (site.js) ---- */
@property --edge { syntax: "<percentage>"; inherits: false; initial-value: 112%; }
.s-burn { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #0b0a09; color: var(--cream); }
.s-burn picture, .s-burn img { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-burn img { object-fit: cover; object-position: 50% 50%; }
.s-burn .pilot, .s-burn .flick { display: none; }
.js .s-burn .pilot, .js .s-burn .flick { display: block; }
.s-burn .flick { opacity: 0; }
.js .s-burn .lit { -webkit-mask-image: linear-gradient(to left, #000 var(--edge), transparent calc(var(--edge) + 12%)); mask-image: linear-gradient(to left, #000 var(--edge), transparent calc(var(--edge) + 12%)); }
.s-burn picture { scale: 1.12; transform-origin: 50% 30%; }
.s-burn .words { position: absolute; z-index: 2; right: 5vw; bottom: 9svh; text-align: right; text-shadow: 0 2px 30px rgba(10, 8, 6, .5); }
.s-burn .kicker { font-size: clamp(16px, 1.4vw, 21px); font-weight: 760; }
.s-burn h2 { font-size: clamp(64px, 9.4vw, 168px); line-height: .86; font-weight: 870; font-stretch: 120%; letter-spacing: -.02em; }
.s-burn .call { display: inline-block; margin-top: 24px; padding: 15px 22px 16px; border-radius: 2px; background: #b0461c; color: #fff; font-size: clamp(18px, 1.5vw, 22px); font-weight: 780; font-stretch: 110%; text-decoration: none; text-shadow: none; }
.s-burn .call:hover { background: #8f3713; }
@media (max-aspect-ratio: 4/5) {
  .s-burn picture { scale: 1; }
  .s-burn .words { left: var(--gut); right: var(--gut); top: 8%; bottom: auto; text-align: left; }
  .s-burn h2 { font-size: 19vw; }
}

/* ---- 3 saturday: where the water comes in; the lever turns across the pipe (site.js). The words take the bare
   concrete under the pipe ---- */
.s-shut { position: relative; height: 100svh; min-height: 560px; overflow: hidden; container-type: size; background: #6f6a62; color: var(--navy); }
.s-shut picture, .s-shut img { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-shut img { object-fit: cover; object-position: 50% 30%; }
.s-shut picture { scale: 1.08; transform-origin: 40% 30%; }
.s-shut .closed { display: none; }
.js .s-shut .closed { display: block; opacity: 0; }
.s-shut.off .closed { opacity: 1; }
.s-shut .words { position: absolute; z-index: 2; left: 21vw; top: 9cqh; }
.s-shut .kicker { margin-bottom: 12px; font-size: clamp(18px, 1.7vw, 26px); font-weight: 780; mix-blend-mode: multiply; }
.s-shut h2 { font-size: clamp(64px, 10.5vw, 200px); line-height: .9; font-weight: 880; font-stretch: 122%; letter-spacing: -.025em; mix-blend-mode: multiply; }
.s-shut .then { margin-top: clamp(18px, 2cqh, 28px); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: clamp(16px, 1.4vw, 22px); line-height: 1.3; font-weight: 650; }
.s-shut .then > span { max-width: 26em; }
.s-shut .then strong { font-weight: 800; }
.s-shut .call { display: inline-block; padding: 15px 22px 16px; border-radius: 2px; background: var(--red); color: #fff; font-size: clamp(18px, 1.5vw, 22px); font-weight: 780; font-stretch: 110%; text-decoration: none; }
.s-shut .call:hover { background: #a00000; }
/* the plumber's note on the concrete, beside the lever */
.s-shut .crayon { position: absolute; z-index: 2; left: 28.5vw; top: 72cqh; margin: 0; white-space: nowrap; font: 400 clamp(45px, 4.8vw, 84px)/1 "Pencil", sans-serif; color: #f3cd2c; transform: rotate(-3deg); }
.s-shut .crayon::before { content: "\2190 "; }
.js .s-shut .crayon { clip-path: inset(-30% 100% -30% 0); transition: clip-path .5s cubic-bezier(.45, .1, .4, 1); }
.js .s-shut.note .crayon { clip-path: inset(-30% 0 -30% 0); }
@media (max-aspect-ratio: 4/5) {
  .s-shut picture { scale: 1; }
  .s-shut .words { left: var(--gut); right: var(--gut); top: 8cqh; bottom: auto; }
  .s-shut h2 { font-size: min(21vw, 11cqh); }
  /* under the pipe, beside the lever: once the photograph is cut by the width, the pipe sits lower */
  .s-shut .crayon { left: 60vw; right: var(--gut); top: max(63cqh, 55.6cqw + 30cqh + 20px); white-space: normal; font-size: min(8vw, 4.2cqh); line-height: 1.05; }
}
/* a short phone has no room for the call and the Saturday line one under the other above the valve */
@media (max-aspect-ratio: 4/5) and (max-height: 720px) {
  .s-shut .words { top: 5cqh; }
  .s-shut h2 { font-size: 9cqh; }
  .s-shut .then { flex-flow: row wrap; align-items: center; gap: 8px 12px; }
  .s-shut .then > span { font-size: 14px; }
  .s-shut .call { white-space: nowrap; }
}

/* ---- the close: the shop's clipboard, from above; the stamp, then the pencil writes on its paper (site.js) ----
   Everything on the paper is placed in the photograph's own pixels (--u: CSS pixels per photo pixel). */
.s-close { position: relative; height: 100svh; min-height: 600px; overflow: hidden; container-type: size; background: #1d2236; }
.s-close .board { --W: 3840; --H: 2160; --fx: 1835; --fy: 1190; --u: calc(max(100cqw / var(--W), 100cqh / var(--H)) * var(--z, 1));
  position: absolute; width: calc(var(--W) * var(--u)); height: calc(var(--H) * var(--u));
  left: clamp(100cqw - var(--W) * var(--u), 50cqw - var(--fx) * var(--u), 0px); top: clamp(100cqh - var(--H) * var(--u), 50cqh - var(--fy) * var(--u), 0px); }
.s-close picture, .s-close img { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-close .paper { position: absolute; left: calc(1372 * var(--u)); top: calc(550 * var(--u)); width: calc(920 * var(--u)); --l: calc(51.5 * var(--u));
  color: #2b2b31; font: 400 calc(46 * var(--u))/var(--l) "Pencil", sans-serif; mix-blend-mode: multiply; }
.s-close .paper p, .s-close .paper table { margin: 0; }
/* the rubber stamp: navy ink, a little crooked, unevenly inked */
.s-close .stamp { -webkit-mask: var(--ink) 0 0 / 360px 360px; mask: var(--ink) 0 0 / 360px 360px;
  --ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.4 2.55'/%3E%3C/filter%3E%3Crect width='360' height='360' filter='url(%23n)'/%3E%3C/svg%3E"); }
.s-close .stamp { display: block; width: fit-content; height: calc(3 * var(--l)); box-sizing: border-box; padding: calc(10 * var(--u)) calc(18 * var(--u)); border: calc(5 * var(--u)) solid #1d2a7c; border-radius: calc(6 * var(--u));
  color: #1d2a7c; font: 700 calc(28 * var(--u))/1.2 "Archivo", sans-serif; font-stretch: 112%; letter-spacing: .04em; text-transform: uppercase; transform: rotate(-2.2deg); opacity: .88; filter: blur(.25px); }
.s-close .stamp span { display: block; font-size: calc(44 * var(--u)); font-weight: 880; font-stretch: 125%; letter-spacing: -.01em; }
.s-close h2 { font: 400 calc(150 * var(--u))/calc(2 * var(--l)) "Pencil", sans-serif; transform: rotate(-1.5deg); transform-origin: 0 80%; }
.s-close h2 a { text-decoration: none; }
/* a pencilled letter: a little off the line, a little lighter or darker; a word never breaks (site.js sets each) */
.s-close .word { white-space: nowrap; }
.s-close .g { display: inline-block; transform: translateY(var(--gy)) rotate(var(--gr)); opacity: var(--ga); }
.s-close .hours { margin-top: 0; border-collapse: collapse; }
.s-close .hours th, .s-close .hours td { padding: 0; height: var(--l); line-height: var(--l); }
.s-close .hours th { text-align: left; font-weight: 400; padding-right: calc(40 * var(--u)); }
.s-close .hours tr.today th, .s-close .hours tr.today td { text-decoration: underline calc(4 * var(--u)); text-underline-offset: calc(8 * var(--u)); }
.s-close .hours tr.today th::before { content: "today, "; }
.s-close .ask { margin-top: var(--l); }
.s-close .ticks { display: flex; flex-wrap: wrap; gap: 0 calc(26 * var(--u)); }
.s-close .ticks button { position: relative; padding: 0 0 0 calc(50 * var(--u)); border: 0; background: none; color: inherit; font: inherit; line-height: var(--l); height: var(--l); cursor: pointer; touch-action: manipulation; }
/* a box drawn in pencil; the chosen one is ticked */
.s-close .ticks button::before { content: ""; position: absolute; left: calc(6 * var(--u)); top: calc(10 * var(--u)); width: calc(28 * var(--u)); height: calc(28 * var(--u)); border: calc(3.5 * var(--u)) solid #2b2b31; border-radius: calc(3 * var(--u)); transform: rotate(-3deg); }
.s-close .ticks button[aria-pressed="true"]::after { content: "\2713"; position: absolute; left: calc(4 * var(--u)); top: calc(-14 * var(--u)); font: 700 calc(58 * var(--u))/1 "Archivo", sans-serif; color: #2b2b31; transform: rotate(8deg); }
.s-close .msg { min-height: calc(2 * var(--l)); }
.s-close .sms { font-size: calc(50 * var(--u)); }
.s-close .trade { margin-top: var(--l) !important; }
/* the pencil writes it line by line as the board arrives */
.js .s-close .w { clip-path: inset(-20% 100% -20% 0); }
.js .s-close.write .w { clip-path: inset(-20% 0 -20% 0); transition: clip-path .4s cubic-bezier(.45, .1, .4, 1) var(--d, 0s); }
.js .s-close .stamp { opacity: 0; }
.js .s-close.write .stamp { opacity: .88; animation: thump .22s .15s cubic-bezier(.3, 0, .2, 1) both; }
@keyframes thump { from { transform: rotate(-2.2deg) scale(1.12); opacity: 0; } to { transform: rotate(-2.2deg) scale(1); opacity: .88; } }
.s-close .lead { --d: .05s; } .s-close h2 { --d: .12s; } .s-close .hours { --d: .3s; } .s-close .ask { --d: .42s; } .s-close .trade { --d: .55s; }
/* and last, the pencil ticks the first box */
.js .s-close .ticks button::after { opacity: 0; }
.js .s-close.write .ticks button::after { opacity: 1; transition: opacity .15s .8s; }
.js .s-close.write .ticks button[aria-pressed="true"]::after { animation: tick .3s .75s both cubic-bezier(.3, 0, .2, 1); }
@keyframes tick { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* zoomed toward the pencil only from 6/5, as the hero switches: narrower, the zoom crops the paper's left edge */
@media (min-aspect-ratio: 6/5) { .s-close .board { --z: 1.2; --fy: 1025; --fx: 2250; } }
/* the sample notice, on its own strip under the clipboard */
.fine { position: relative; z-index: 60; padding: 22px var(--gut) calc(24px + env(safe-area-inset-bottom)); background: #12162a; color: #c9cbd8; font-size: 12.5px; line-height: 1.45; }
.fine p { max-width: 52em; }
html:not(.js) .s-close .ask { display: none; }

/* ================= the 404: the patched wall ================= */
.nothing { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; color: var(--navy); background: var(--wall); }
.nothing .inner { position: relative; z-index: 2; padding: 0 var(--gut) 14svh; max-width: 46rem; mix-blend-mode: multiply; }
.nothing h1 { font-size: clamp(44px, 8vw, 120px); line-height: .9; font-weight: 870; font-stretch: 118%; letter-spacing: -.02em; }
.nothing p { margin-top: 18px; font-size: 20px; font-weight: 650; max-width: 30em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
