/* Blaswelding and Muffler: the shop's signs as type, welded seams between sections. */
@font-face { font-family: "Saira Condensed"; src: url("../fonts/saira-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Saira Condensed"; src: url("../fonts/saira-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ground: #E8E7E3;
  --ground-2: #DEDDD8;
  --ink: #16181B;
  --muted: #565B61;
  --yellow: #F2C230;
  --yellow-press: #E0B020;
  --blue: #1F4F8F;
  --blue-ink: #EEF2F8;
  --blue-muted: #C3D0E4;
  --under: #14171B;
  --under-2: #1D2126;
  --under-ink: #E4E6E8;
  --under-muted: #A9B0B8;
  --steel: #B9BEC3;
  --steel-dark: #7E858C;

  --pad: clamp(16px, 3.2vw, 32px);
  --gap-section: clamp(72px, 11vw, 200px);
  --nav-h: 64px;
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --text: "Public Sans", system-ui, sans-serif;
  --settle: cubic-bezier(.22, 1, .36, 1);
  --inout: cubic-bezier(.65, 0, .25, 1);
  --t-control: 220ms;
  --t-enter: 900ms;
  --t-scene: 1200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html:not(.still) { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--text); caret-color: var(--blue); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.hours :focus-visible, .work :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -60px; z-index: 50; background: var(--yellow); color: var(--ink); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }
.need { background: var(--yellow); color: var(--ink); padding: 0 .3em; font-weight: 600; font-size: .9em; }
cite { font-style: normal; color: var(--muted); font-size: 15px; white-space: nowrap; }
cite::before { content: "· "; }
.eye__quote cite::before, .hours__quote cite::before, .eye__more cite::before { content: ""; }

/* Type */
.h2 { font: 800 clamp(44px, 6.2vw, 92px)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.005em; margin: 0 0 28px; text-wrap: balance; max-width: 14ch; }
.h3 { font: 700 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; margin: 40px 0 14px; }
.lede { max-width: 54ch; margin: 0 0 48px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 0; text-decoration: none; font: 700 19px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; transition: background-color 160ms ease, transform 160ms var(--settle); }
.btn--call { background: var(--yellow); color: var(--ink); font-variant-numeric: tabular-nums; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn--call:hover { background: var(--yellow-press); } .link:hover { text-decoration-thickness: 2px; } }
.link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; color: var(--under-ink); }
.link--ink { color: var(--ink); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--nav-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--pad); color: var(--under-ink); transition: background-color 220ms ease, color 220ms ease; }
.nav.is-solid { background: var(--under); }
.nav__mark { font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; margin-right: auto; }
.nav__links { display: flex; gap: 24px; }
.nav__links a { font: 600 14px/1 var(--text); text-transform: uppercase; letter-spacing: 0.12em; text-decoration: none; padding: 16px 0; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { text-decoration: underline; } }
.nav__motion { background: none; border: 0; color: inherit; font: 500 14px/1 var(--text); padding: 14px 4px; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; transition: transform 160ms var(--settle); }
.nav__motion:active { transform: scale(0.97); }
.nav__call { min-height: 44px; font-size: 17px; gap: 0.3em; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; background: var(--under); color: var(--under-ink); overflow: hidden; }
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 50% 40%; transform: scale(1); transition: transform var(--t-scene) var(--settle), opacity var(--t-scene) var(--settle); }
.is-loading .hero__photo img { transform: scale(1.04); opacity: 0.6; }
.still .hero__photo img { transition: none; transform: none; opacity: 1; }
/* scrim from the photo's own underside black, only behind the text and the nav */
.hero::before { content: ""; position: absolute; inset: auto 0 0 0; height: 72%; z-index: 1; background: linear-gradient(to top, rgba(20, 23, 27, .94) 0%, rgba(20, 23, 27, .78) 42%, rgba(20, 23, 27, 0) 100%); } /* taste-skill-ignore: neutral scrim over the hero photo */
.hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; z-index: 1; background: linear-gradient(to bottom, rgba(20, 23, 27, .7), rgba(20, 23, 27, 0)); } /* taste-skill-ignore: neutral scrim over the hero photo */
.hero__text { position: relative; z-index: 2; padding: 0 var(--pad) clamp(36px, 6vh, 72px); width: 100%; }
.hero__name { margin: 0; font: 800 clamp(64px, 11.2vw, 196px)/0.86 var(--display); text-transform: uppercase; letter-spacing: 0; color: #F3F1EC; }
.hero__name span { display: block; color: var(--yellow); }
.hero__line { font: 500 clamp(20px, 2vw, 28px)/1.3 var(--text); margin: 22px 0 8px; max-width: 34ch; }
.hero__facts { margin: 0 0 14px; color: var(--under-muted); font-variant-numeric: tabular-nums; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 22px; font-size: 16px; }
.hero__rating { color: var(--under-ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

.status { display: inline-flex; font-size: 16px; align-items: center; gap: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--steel-dark); }
.status.is-open .status__dot { background: var(--yellow); }

/* Seams: a welded bead joining one section to the next */
.seam { height: 18px; background-color: var(--ground); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='18'%3E%3Cellipse cx='5.5' cy='9' rx='6.4' ry='5.6' fill='%23B9BEC3'/%3E%3Cellipse cx='4.4' cy='7.6' rx='2.4' ry='1.6' fill='%23DCE0E4'/%3E%3C/svg%3E"); background-size: 11px 18px; background-repeat: repeat-x; background-position: 0 50%; }
.seam--dark { background-color: var(--under); }
.seam--blue { background-color: var(--blue); }

/* The work */
.work { background: var(--under); color: var(--under-ink); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); padding: var(--gap-section) var(--pad); }
.work cite, .work .lede { color: var(--under-muted); }
.work .lede { color: var(--under-ink); }
.jobs { list-style: none; margin: 0; padding: 0; }
.job { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8px 32px; padding: 30px 0; }
.job:nth-child(even) { background: var(--under-2); margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); }
.job__name { margin: 0; font: 800 clamp(34px, 3.6vw, 54px)/0.95 var(--display); text-transform: uppercase; color: var(--under-ink); }
.job p { margin: 4px 0 0; max-width: 46ch; }
.job cite { font-size: inherit; }
.job--short .job__name { font-size: clamp(28px, 2.8vw, 40px); color: var(--under-muted); }
.work__price { margin: 40px 0 0; max-width: 60ch; color: var(--under-ink); }
.work__photos { display: grid; gap: 24px; align-content: start; position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.ph { margin: 0; }
.ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ph--tall img { object-position: 50% 40%; }
.ph--small { width: 58%; justify-self: end; }
figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }
.work figcaption { color: var(--under-muted); }

/* Pipe by eye */
.eye { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); padding: var(--gap-section) 0 var(--gap-section) var(--pad); align-items: center; }
.eye__quote { margin: 0 0 48px; }
.eye__quote p { font: 500 clamp(22px, 2.1vw, 30px)/1.3 var(--text); margin: 0 0 14px; max-width: 38ch; text-wrap: pretty; }
.eye__more { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 22px; max-width: 52ch; }
.eye__more p { margin: 0; }
.eye__score { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.eye__score strong { font-weight: 600; }
.eye__photo { margin: 0; }
.eye__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 40% 50%; }
.eye__photo figcaption { padding-left: 4px; }

/* Hours: the pipe runs */
.hours { background: var(--blue); color: var(--blue-ink); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); padding: var(--gap-section) var(--pad); align-items: center; }
.hours .h2 { color: var(--blue-ink); max-width: 10ch; }
.hours__now { font: 600 20px/1.4 var(--text); margin: 0 0 28px; font-variant-numeric: tabular-nums; }
.hours__quote { margin: 0 0 32px; }
.hours__quote p { margin: 0 0 6px; max-width: 40ch; }
.hours__quote cite { color: var(--blue-muted); }
.runs { position: relative; padding-top: 34px; }
.runs__scale { position: absolute; top: 0; left: 64px; right: 0; height: 20px; }
.runs__scale span { position: absolute; transform: translateX(-50%); font-size: 14px; color: var(--blue-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.runs__scale span:first-child { transform: none; }
.runs__scale span:last-child { transform: translateX(-100%); }
.run { display: grid; grid-template-columns: 64px 1fr; align-items: center; height: 46px; }
.run__day { font: 700 20px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.run__track { position: relative; height: 100%; display: block; }
.run__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(195, 208, 228, .35); }
.run__pipe { position: absolute; top: 50%; left: 14.2857%; width: 67.857%; height: 18px; margin-top: -9px; background: var(--steel); border-radius: 9px; transform-origin: left center; transition: transform var(--t-enter) var(--settle); }
.run.is-today .run__pipe { background: #DCE0E4; }
.run.is-today .run__day { color: var(--yellow); }
.run__shut { position: absolute; left: 14.2857%; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--blue-muted); background: var(--blue); padding: 0 8px; }
.run__bead { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--yellow); }
.js-reveal .runs.is-pending .run__pipe { transform: scaleX(0); }
.js-reveal .runs .run:nth-child(3) .run__pipe { transition-delay: 60ms; }
.js-reveal .runs .run:nth-child(4) .run__pipe { transition-delay: 120ms; }
.js-reveal .runs .run:nth-child(5) .run__pipe { transition-delay: 180ms; }
.js-reveal .runs .run:nth-child(6) .run__pipe { transition-delay: 240ms; }
.js-reveal .runs .run:nth-child(7) .run__pipe { transition-delay: 300ms; }

/* Visit */
.visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 96px); padding: var(--gap-section) var(--pad); }
.visit__street { grid-column: 1 / -1; margin: 0; font: 800 clamp(48px, 9.4vw, 168px)/0.9 var(--display); text-transform: uppercase; letter-spacing: 0; }
.visit__street span { white-space: nowrap; }
.visit__photo { margin: 0 0 0 calc(var(--pad) * -1); }
.visit__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; }
.visit__photo figcaption { padding-left: var(--pad); }
.visit__addr { font: 600 20px/1.4 var(--text); margin: 0 0 24px; max-width: 40ch; }
.table { border-collapse: collapse; width: 100%; max-width: 460px; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: 9px 12px 9px 0; font-weight: 400; }
.table tr:nth-child(odd) { background: var(--ground-2); }
.table th { padding-left: 12px; }
.table tr.is-today { background: var(--yellow); }
.table tr.is-today th, .table tr.is-today td { font-weight: 600; }
.visit__note { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.signs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 58ch; }
.sign { padding: 14px 18px; background: #F3F2EE; }
.sign strong { font: 700 21px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.sign--cash strong { color: #9E1F1F; }
.sign--caution { background: var(--yellow); }
.visit__access { margin: 24px 0; }
.visit__cta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* Footer */
.foot { background: var(--under); color: var(--under-ink); padding: 0 var(--pad) 120px; }
.foot .seam { margin: 0 calc(var(--pad) * -1); }
.foot__board { margin: clamp(56px, 8vw, 120px) 0 40px; font: 800 clamp(72px, 15vw, 270px)/0.84 var(--display); text-transform: uppercase; color: var(--under-ink); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot__facts { margin: 0; color: var(--under-muted); max-width: 60ch; }
.foot__note { margin: 40px 0 0; color: var(--under-muted); font-size: 15px; }

/* Phone bar */
.bar { display: none; }

/* Reveals (content visible without JS) */
.js-reveal [data-reveal] img { clip-path: inset(0); transition: clip-path var(--t-scene) var(--inout); }
.js-reveal [data-reveal].is-pending img { clip-path: inset(0 0 100% 0); }
.js-reveal [data-rise] { transition: opacity var(--t-enter) var(--settle), transform var(--t-enter) var(--settle); }
.js-reveal [data-rise].is-pending { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-rise].is-pending { transform: none; }
  .js-reveal [data-reveal].is-pending img { clip-path: inset(0); }
  .js-reveal .runs.is-pending .run__pipe { transform: none; }
  .hero__photo img { transition: opacity 600ms ease; transform: none !important; }
}

/* Phones */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav { gap: 12px; }
  .nav__num { display: none; }
  .work, .eye, .hours, .visit { grid-template-columns: 1fr; }
  .work__photos { position: static; grid-template-columns: 3fr 2fr; align-items: end; margin: 0 calc(var(--pad) * -1); }
  .ph--small { width: 100%; }
  .ph figcaption { padding: 0 var(--pad); }
  .job { grid-template-columns: 1fr; }
  .eye { padding-right: var(--pad); }
  .eye__photo { margin: 0 calc(var(--pad) * -1); }
  .eye__photo figcaption { padding-left: var(--pad); }
  .visit__photo { margin: 0 calc(var(--pad) * -1); }
  .visit__photo img { aspect-ratio: 4 / 3; }
  .bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--under); color: var(--under-ink); transition: transform 250ms var(--settle); }
  .bar.is-away { transform: translateY(110%); transition-duration: 150ms; }
  .bar__call { flex: 0 0 auto; white-space: nowrap; padding: 0 16px; font-size: 18px; }
  .bar__status { font-size: 14px; line-height: 1.25; flex: 1 1 auto; justify-content: flex-end; text-align: right; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .nav__mark { font-size: 22px; }
  .nav__motion { font-size: 13px; }
  .hero__name { font-size: clamp(52px, 16vw, 80px); }
  .hero__photo img { object-position: 60% 50%; }
  .hero__line { font-size: 20px; }
  .eye__quote p { font-size: 20px; }
  .h2 { font-size: clamp(40px, 12vw, 56px); }
  .run { grid-template-columns: 48px 1fr; }
  .runs__scale { left: 48px; }
  .runs__scale span:nth-child(1), .runs__scale span:nth-child(3) { display: none; }
  .visit__street { font-size: clamp(40px, 12vw, 60px); }
  .foot__board { font-size: clamp(64px, 22vw, 110px); }
}
