@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: "Mono"; src: url("/fonts/mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mono"; src: url("/fonts/mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0e0f11;
  --bg2: #15171a;
  --card: #1b1d21;
  --line: rgba(255, 255, 255, 0.13);
  --text: #f2f1ee;
  --dim: #a9abb0;
  --red: #e3291f;
  --red-btn: #c81e18;
  --yellow: #fade4a;
  --paper: #f2f1ee;
  --ink: #111317;
  --ink-dim: #4a4d54;
  --ink-line: rgba(17, 19, 23, 0.16);
  --gut: 16px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gut: 28px; } }
@media (min-width: 1200px) { :root { --gut: 40px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.5 "Archivo", system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: "Mono", ui-monospace, monospace; font-size: 11.5px; line-height: 1.35; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: #000; padding: 8px 12px; z-index: 60; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }


/* header: the logo on the left, the pill menu in the middle */
.nav-wrap { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: calc(12px + env(safe-area-inset-top)) var(--gut) 12px; pointer-events: none; }
.nav-wrap > * { pointer-events: auto; }
.logo { display: block; background: #000; border-radius: 6px; padding: 4px 6px; }
.logo img { width: 132px; }
.pill { display: none; align-items: center; gap: 4px; padding: 6px 6px 6px 18px; border-radius: 999px;
  background: rgba(14, 15, 17, 0.92); border: 1px solid var(--line); font-size: 14px; }
.pill a { text-decoration: none; padding: 8px 12px; color: #e8e7e3; }
.pill a:hover { color: #fff; }
.pill-cta { background: #fff; color: #111 !important; border-radius: 999px; font-weight: 600; text-decoration: none; padding: 10px 18px !important; font-size: 14px; }
.pill-cta:hover { background: var(--yellow); }
.pill-cta.solo { display: inline-block; }
@media (min-width: 1000px) {
  .pill { display: flex; position: absolute; left: 50%; transform: translateX(-50%); }
  .pill-cta.solo { display: none; }
  .logo img { width: 150px; }
}

/* hero */
.hero { position: relative; z-index: 1; min-height: min(100svh, 980px); padding: 120px var(--gut) 48px; display: flex; flex-direction: column; }
@media (min-width: 1000px) { .hero { padding: 150px calc(var(--gut) + 3vw) 60px; } }
.hero-mark { margin-bottom: 26px; }
.hero-h { font-weight: 600; font-size: clamp(42px, 10.4vw, 156px); line-height: 0.94; letter-spacing: -0.01em; }
.h-line { display: block; }
.h-typed { color: var(--red); min-height: 1em; white-space: nowrap; font-size: var(--fit, 1em); }
.caret { display: inline-block; width: 0.06em; height: 0.82em; margin-left: 0.08em; background: currentColor; vertical-align: -0.04em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.hero-foot { margin-top: auto; padding-top: 30px; display: grid; gap: 34px; align-items: center; }
@media (min-width: 860px) { .hero-foot { grid-template-columns: 1fr auto; } }
.hero-lead { color: var(--dim); font-size: 18px; max-width: 30em; margin: 0; }
.round { flex: none; width: 112px; height: 112px; border-radius: 50%; background: var(--red-btn); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 7px var(--bg), 0 0 0 8px rgba(255, 255, 255, 0.22); transition: transform 0.2s ease, background 0.2s ease; }
.round:hover { background: var(--red); transform: scale(1.04); }
.round svg { width: 30px; height: 30px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 28px 0 0; color: var(--text); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ebf49; }
.status.shut .dot { background: var(--red); }

/* services */
.services { position: relative; z-index: 1; padding: 40px 0 20px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 0 var(--gut); margin-bottom: 20px; }
.label-h { font-size: 15px; font-weight: 700; line-height: 1.05; letter-spacing: 0.02em; }
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gut) 16px; scrollbar-width: thin; }
.cards > li { scroll-snap-align: start; }
@media (min-width: 720px) { .cards { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: 8px; overflow: hidden; padding-bottom: 16px; }
.art { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--red);
  background: radial-gradient(70% 70% at 50% 45%, #2a2d33, #17191c 75%); margin-bottom: 14px; }
.art svg { width: 66%; height: 66%; }
.card h3 { font-size: 16px; font-weight: 700; padding: 0 16px; line-height: 1.15; }
.card-line { color: var(--dim); font-size: 15px; padding: 0 16px; margin: 6px 0 12px; }
.slant { display: inline-flex; align-items: center; gap: 10px; margin: 0 16px 12px; font-stretch: 125%; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.04em; }
.slant::before { content: ""; width: 12px; height: 20px; background: var(--red); transform: skewX(-22deg); }
.slant.yellow::before { background: var(--yellow); }
.spec { padding: 0 16px; margin-bottom: 14px; }
.spec li { display: flex; gap: 10px; align-items: flex-start; font-family: "Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.03em;
  text-transform: uppercase; color: #d7d6d2; }
.spec svg { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--dim); }
.card-go { margin: auto 16px 0; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; text-decoration: none;
  font-stretch: 125%; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; }
.card-go:hover { border-color: var(--red); color: var(--red); }
.card-go svg { width: 14px; height: 14px; }

/* speed stripes */
.stripes { display: flex; gap: 10px; padding: 70px calc(var(--gut) + 10px); }
.stripes span { flex: 1; height: 7px; background: #f2f1ee; transform: skewX(-40deg); }
.stripes span:last-child { background: var(--red); }

/* how it works: the big split headline */
.how { position: relative; padding: 40px var(--gut) 90px; overflow: hidden;
  background: var(--bg2); }
@media (min-width: 1000px) { .how { padding: 80px calc(var(--gut) + 3vw) 110px; } }
.how::before { content: ""; position: absolute; right: -6%; top: 6%; width: 52%; aspect-ratio: 1; opacity: 0.07; pointer-events: none;
  background: radial-gradient(circle, transparent 18%, #fff 18.4%, #fff 19.4%, transparent 19.8%, transparent 46%, #fff 46.4%, #fff 47.4%, transparent 47.8%); }
.how-h { font-weight: 600; font-size: clamp(36px, 8.6vw, 132px); line-height: 0.95; display: grid; margin: 18px 0 22px; }
.how-h .r { justify-self: end; text-align: right; }
.how-tl { margin: 0; }
.how-ml { margin: 0 0 40px; }
@media (min-width: 1000px) { .how-tl { text-align: right; } }
.how-row { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .how-row { grid-template-columns: 1fr 1fr; } .how-row .round { justify-self: center; } }
.steps li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-stretch: 112%; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.steps svg { flex: none; width: 20px; height: 20px; color: var(--red); }

/* the white panel: the chooser and the quote */
.panel { position: relative; z-index: 1; margin: 0 8px; padding: 56px var(--gut) 40px; background: var(--paper); color: var(--ink); border-radius: 14px; }
@media (min-width: 1000px) { .panel { margin: 0 12px; padding: 90px calc(var(--gut) + 3vw) 70px; } }
.panel .mono { color: var(--ink-dim); }
.panel-h { font-size: clamp(26px, 3.6vw, 42px); font-weight: 600; line-height: 1; margin-bottom: 16px; }
.probe { display: grid; gap: 34px; }
@media (min-width: 960px) { .probe { grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; } }
.probe-text > p { color: var(--ink-dim); max-width: 30em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--ink-line); background: #fff; border-radius: 4px; cursor: pointer;
  font-size: 15px; text-align: left; color: var(--ink); }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.probe-stage { border-radius: 12px; background: var(--bg2); padding: 28px 18px; display: grid; place-items: center;
}
@media (min-width: 960px) { .probe-stage { position: sticky; top: 100px; padding: 50px 40px; } }
.result { position: relative; width: 100%; max-width: 360px; background: #ecebe7; border-radius: 6px; overflow: hidden; color: var(--ink); }
.result-tag { position: absolute; right: 0; top: 10px; margin: 0; background: var(--red-btn); color: #fff; padding: 4px 12px 4px 16px;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%); }
.result-tag::before { display: none; }
.result-art { aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--red); background: radial-gradient(70% 70% at 50% 45%, #2a2d33, #17191c 75%); }
.result-art svg { width: 58%; height: 70%; }
.result-body { padding: 16px 18px 20px; }
.result-body .mono { margin: 0 0 4px; }
.result-body h3 { font-size: 20px; font-weight: 700; line-height: 1.1; margin-bottom: 10px; }
.result-why { font-size: 15px; color: #33363c; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 18px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--red-btn); color: #fff; text-decoration: none; font-stretch: 125%; font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.btn:hover { background: #b0170f; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-ghost { min-height: 48px; padding: 12px 16px; border: 1px solid var(--ink-line); background: transparent; border-radius: 4px; cursor: pointer; color: var(--ink);
  font-stretch: 125%; font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }

.quote { margin-top: 70px; padding-top: 56px; border-top: 1px solid var(--ink-line); display: grid; gap: 30px; }
@media (min-width: 960px) { .quote { grid-template-columns: 0.8fr 1.2fr; gap: 60px; margin-top: 100px; } }
.quote-head p { color: var(--ink-dim); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { padding: 0; margin-bottom: 18px; font-stretch: 125%; font-weight: 700; font-size: 16px; text-transform: uppercase; display: flex; gap: 12px; align-items: baseline; }
.grid { display: grid; gap: 14px; margin-bottom: 18px; }
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } .grid .wide { grid-column: 1 / -1; } }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--ink-dim); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--ink-line); border-radius: 4px; }
.field ::placeholder { color: #6b6e75; opacity: 1; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(200, 30, 24, 0.22); }
.field input[aria-invalid="true"] { border-color: var(--red-btn); }
.err { color: #a3140f; font-size: 14px; margin: -6px 0 14px; }
.step-act { display: flex; flex-wrap: wrap; gap: 10px; }
.preview { margin-top: 18px; }
.preview summary { cursor: pointer; font-size: 14px; color: var(--ink-dim); padding: 6px 0; }
.preview pre { white-space: pre-wrap; font: inherit; font-size: 15px; background: #fff; border: 1px solid var(--ink-line); padding: 12px; margin: 8px 0 0; border-radius: 4px; }
.note { margin-top: 18px; max-width: 46em; }
.note a { color: var(--ink); }

/* the four tall tiles */
.tiles { display: grid; gap: 10px; padding: 10px 8px 0; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, 1fr); padding: 12px 12px 0; } }
.tile { position: relative; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-start; padding: 22px 22px 80px; border-radius: 10px; overflow: hidden;
  text-decoration: none; background: linear-gradient(180deg, #202328, #121316); }
@media (min-width: 1100px) { .tile { min-height: 420px; } }
.tile h3 { position: relative; font-size: 24px; font-weight: 700; line-height: 1; }
.tile p { position: absolute; left: 22px; right: 86px; bottom: 22px; margin: 0; color: #d7d6d2; font-size: 15px; }
.tile-art { position: absolute; right: -12%; top: 22%; width: 80%; height: 50%; color: var(--red); opacity: 0.35; }
.sq { position: absolute; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 4px; background: var(--red-btn); color: #fff; display: grid; place-items: center; }
.sq svg { width: 20px; height: 20px; }
.tile:hover .sq { background: var(--red); }

/* footer */
.foot { padding: 70px var(--gut) calc(30px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) { .foot { padding-left: calc(var(--gut) + 3vw); padding-right: calc(var(--gut) + 3vw); } }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.foot-top img { width: 200px; background: #000; }
.foot-cols { display: grid; gap: 28px; padding: 30px 0; }
@media (min-width: 720px) { .foot-cols { grid-template-columns: repeat(4, 1fr); } }
.foot-cols .mono { margin-bottom: 8px; }
.foot-cols p { margin: 0; }
.hours { border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { text-align: left; font-weight: 400; padding: 2px 0; vertical-align: top; }
.hours th { padding-right: 14px; color: var(--dim); }
.hours tr.today th, .hours tr.today td { color: var(--text); font-weight: 700; }
.foot-end { margin: 0; }

/* phones: no empty screen under the headline, shorter tiles */
@media (max-width: 719px) {
  .hero { min-height: 0; padding-bottom: 36px; }
  .hero-foot { margin-top: 0; padding-top: 36px; }
  .tile { min-height: 230px; }
}

/* ---------------- motion and the dial (Tachi Studio) ---------------- */
:root { --ease: cubic-bezier(0.2, 0.8, 0.2, 1); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nav-wrap .pill, .logo { transition: background 0.3s, padding 0.3s, transform 0.4s var(--ease); }
.nav-wrap.scrolled .pill { background: rgba(10, 11, 12, 0.97); }
.nav-wrap.scrolled .logo { transform: scale(0.88); transform-origin: 0 50%; }

/* the headline comes up out of its line, like a gauge waking up */
.h-line { overflow: hidden; padding-bottom: 0.05em; margin-bottom: -0.05em; }
.h-in { display: inline-block; }
.js .h-in { transform: translateY(108%); }
.js .ready .h-in { transform: none; transition: transform 1.1s var(--ease); }
.js .ready .h-line:nth-child(2) .h-in { transition-delay: 0.12s; }
.js .ready .h-line:nth-child(3) .h-in { transition-delay: 0.24s; }
.js [data-intro] { opacity: 0; transform: translateY(16px); }
.js .ready [data-intro] { opacity: 1; transform: none; transition: opacity 0.9s 0.45s, transform 0.9s 0.45s var(--ease); }

/* the rev counter, with the WhatsApp button as its hub */
.tach { position: relative; width: min(380px, 84vw); aspect-ratio: 1; justify-self: center; }
@media (min-width: 1000px) { .tach { width: 400px; } }
.tach-dial { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.t-ring { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; }
.t-red { fill: none; stroke: var(--red); stroke-width: 7; opacity: 0.85; }
.t-maj, .t-mid, .t-min { stroke: #f2f1ee; stroke-linecap: square; }
.t-maj { stroke-width: 3; }
.t-mid { stroke-width: 2; opacity: 0.7; }
.t-min { stroke-width: 1.2; opacity: 0.32; }
path.t-hot { stroke: var(--red); opacity: 1; }
.t-num { fill: #cfcdc8; font: 400 19px "Mono", ui-monospace, monospace; text-anchor: middle; dominant-baseline: central; }
text.t-hot { fill: var(--red); }
.t-unit { fill: var(--dim); font: 400 11px "Mono", ui-monospace, monospace; letter-spacing: 0.1em; text-transform: uppercase; text-anchor: middle; }
.t-read { fill: #fff; font: 700 17px "Mono", ui-monospace, monospace; letter-spacing: 0.14em; text-anchor: middle; }
.t-needle path { stroke: var(--red); stroke-width: 4; stroke-linecap: round; }
.t-needle .t-tail { stroke-width: 7; }
.hub { position: absolute; left: 50%; top: 50%; width: 32%; height: 32%; margin: 0; transform: translate(-50%, -50%); flex-direction: column; gap: 2px; }
.hub:hover { transform: translate(-50%, -50%) scale(1.05); }
.round { display: grid; place-items: center; align-content: center; }
.hub-t { font-family: "Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.round svg { width: 28px; height: 28px; }
.js .tach { opacity: 0; transform: scale(0.94) rotate(-6deg); }
.js .ready .tach { opacity: 1; transform: none; transition: opacity 1s 0.3s, transform 1.4s 0.3s var(--ease); }

/* a ticker of the jobs, and the stripes running like road markings */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin-top: 10px; }
.loop { display: flex; width: max-content; will-change: transform; }
.loop-set { display: flex; align-items: center; flex: none; }
.ticker span { font-stretch: 125%; font-weight: 700; font-size: clamp(22px, 3.4vw, 44px); text-transform: uppercase; white-space: nowrap; padding: 0 22px; }
.ticker span.o { color: transparent; -webkit-text-stroke: 1px rgba(242, 241, 238, 0.55); }
.ticker b { width: 14px; height: 26px; background: var(--red); transform: skewX(-22deg); flex: none; }
.stripes { padding: 70px 0; overflow: hidden; display: block; }
.stripes .loop-set { gap: 0; }
.stripes span { flex: none; width: 150px; height: 7px; margin-right: 18px; background: #f2f1ee; transform: skewX(-40deg); }
.stripes span.r { background: var(--red); }

/* things arrive as they come into view */
.js [data-reveal] { opacity: 0; transform: translateY(30px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .panel { transform: translateY(60px) scale(0.97); }
.js .panel.in { transform: none; transition: transform 1.2s var(--ease); }

.card .art { position: relative; overflow: hidden; }
.card { transition: background 0.3s; }
.card:hover { background: #202328; }
.card-go svg, .btn svg, .sq svg { transition: transform 0.3s var(--ease); }
.card-go:hover svg, .btn:hover svg, .tile:hover .sq svg { transform: translate(3px, -3px); }

/* the parts draw themselves, then work */
.dl { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.5s var(--ease) var(--dd, 0s); }
.drawn .dl { stroke-dashoffset: 0; }
.spin, .coil, .rod, .piston, .boot, .drop, .bolt, .needle, .fins path { transform-box: fill-box; }
.spin { transform-origin: center; }
.coil { transform-origin: 50% 100%; }
.boot { transform-origin: center; }
.needle { transform-origin: 0% 100%; }
.run .spin { animation: spin 1.4s linear infinite; }
.run .coil { animation: coil 0.7s ease-in-out infinite alternate; }
.run .rod { animation: rod 0.7s ease-in-out infinite alternate; }
.run .piston { animation: piston 0.45s ease-in-out infinite alternate; }
.run .boot { animation: boot 0.6s ease-in-out infinite alternate; }
.run .drop { animation: drop 1.3s ease-in infinite; }
.run .bolt { animation: bolt 1.2s steps(1) infinite; }
.run .needle { animation: needle 1.6s ease-in-out infinite alternate; }
.run .fins path { animation: fin 1.2s ease-in-out infinite; }
.run .fins path:nth-child(2) { animation-delay: 0.1s; } .run .fins path:nth-child(3) { animation-delay: 0.2s; } .run .fins path:nth-child(4) { animation-delay: 0.3s; }
.run .fins path:nth-child(5) { animation-delay: 0.4s; } .run .fins path:nth-child(6) { animation-delay: 0.5s; } .run .fins path:nth-child(7) { animation-delay: 0.6s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes coil { to { transform: scaleY(0.78); } }
@keyframes rod { to { transform: translateY(10px); } }
@keyframes piston { to { transform: translateY(9px); } }
@keyframes boot { to { transform: scaleX(0.9); } }
@keyframes drop { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
@keyframes bolt { 0%, 60% { opacity: 1; } 65% { opacity: 0.15; } 72% { opacity: 1; } 80% { opacity: 0.3; } 85% { opacity: 1; } }
@keyframes needle { from { transform: rotate(-62deg); } to { transform: rotate(28deg); } }
@keyframes fin { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* the big headline lines slide past each other as you scroll */
.how-h span { transform: translateX(var(--x, 0px)); will-change: transform; }
.big-round { width: 150px; height: 150px; justify-self: center; gap: 4px; transition: translate 0.5s var(--ease), background 0.2s, transform 0.2s; }
.steps li { position: relative; border-bottom: 0; }
.steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.steps li::before { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; z-index: 1; }
.steps li.in::before { transform: scaleX(1); transition: transform 1.2s var(--ease) calc(var(--d, 0s) + 0.3s); }

/* the chooser: each answer arrives on its card */
.result.swap .result-tag { animation: tagin 0.6s var(--ease) both; }
.result.swap .result-body > * { animation: up 0.6s var(--ease) both; }
.result.swap .result-body > *:nth-child(2) { animation-delay: 0.06s; }
.result.swap .result-body > *:nth-child(3) { animation-delay: 0.12s; }
.result.swap .result-body > *:nth-child(4) { animation-delay: 0.18s; }
@keyframes tagin { from { transform: translateX(110%); } to { transform: none; } }
@keyframes up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.chips button { transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
.chips button:active { transform: scale(0.97); }

/* the form's two steps */
.steps-bar { display: flex; gap: 10px; margin-bottom: 22px; }
.steps-bar li { flex: 1; position: relative; padding-bottom: 10px; font-stretch: 125%; font-weight: 700; font-size: 14px; text-transform: uppercase; color: var(--ink-dim); display: flex; gap: 10px; align-items: baseline; }
.steps-bar li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink-line); }
.steps-bar li::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red-btn); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--ease); z-index: 1; }
.steps-bar li.on { color: var(--ink); }
.steps-bar li.on::before { transform: scaleX(1); }
.step.enter { animation: stepin 0.5s var(--ease) both; }
.step.enter-back { animation: stepback 0.5s var(--ease) both; }
@keyframes stepin { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes stepback { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }

/* tiles: the drawing drifts and the square button leans in */
.tile-art { transition: transform 0.8s var(--ease), opacity 0.4s; }
.tile:hover .tile-art { transform: translate(-14px, -10px) rotate(-6deg); opacity: 0.55; }
.tile:hover .sq { background: var(--red); }

/* footer: the name fills with red as you arrive, and the studio's signature */
.foot-word { margin: 0 0 40px; font-stretch: 125%; font-weight: 800; text-transform: uppercase; line-height: 0.9; font-size: clamp(40px, 11vw, 170px); letter-spacing: -0.01em;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 241, 238, 0.28);
  background: linear-gradient(90deg, var(--red) calc(var(--f, 0) * 100%), transparent calc(var(--f, 0) * 100%)); -webkit-background-clip: text; background-clip: text; }
.foot-word span { display: block; }
.foot-word span + span { text-align: right; }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-end p { margin: 0; }
.sig { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.sig:hover { color: var(--text); }

/* still, for anyone who asked their phone for less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .h-in, .js [data-intro], .js [data-reveal], .js .panel, .js .tach { opacity: 1 !important; transform: none !important; }
  .dl { stroke-dashoffset: 0 !important; }
  .how-h span { transform: none !important; }
  .foot-word { --f: 1; }
}

.round { text-decoration: none; }
/* wide screens: the dial stands beside the headline, so the whole first screen is the dashboard */
@media (min-width: 1200px) {
  .hero { min-height: min(100svh, 900px); }
  .hero-h { max-width: calc(100% - 470px); font-size: clamp(64px, 8vw, 128px); }
  .hero-foot { grid-template-columns: 1fr; }
  .tach { position: absolute; right: calc(var(--gut) + 3vw); top: 50%; margin-top: -170px; width: 420px; }
}

/* from the workshop: his own photos, in columns that move at different speeds */
.work { padding: 30px 0 60px; }
.work-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut) 14px; scrollbar-width: thin; }
.work-col { display: contents; }
.shot { margin: 0; scroll-snap-align: start; position: relative; }
.shot-img { overflow: hidden; border-radius: 8px; background: var(--card); aspect-ratio: 3 / 4; }
.shot.land .shot-img { aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot-tag { position: absolute; top: 12px; left: 0; margin: 0; padding: 5px 12px 5px 10px; background: rgba(10, 11, 12, 0.82); border-radius: 0 4px 4px 0; color: #fff; }
.shot figcaption { padding: 12px 2px 0; }
.shot h3 { font-size: 15px; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.shot figcaption .mono { margin: 0; }
@media (min-width: 900px) {
  .work { padding: 40px 0 90px; }
  .work-grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 18px; padding: 0 calc(var(--gut) + 3vw); align-items: start; }
  .work-col { display: flex; flex-direction: column; gap: 34px; transform: translateY(var(--py, 0px)); will-change: transform; }
  .work-col:nth-child(2) { margin-top: 90px; }
}

/* the driveway behind the big headline */
.how::before { display: none; }
.how-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.how-bg img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; opacity: 0.32; filter: grayscale(0.35) contrast(1.05);
  transform: translateY(var(--py, 0px)); will-change: transform; }
.how-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg2) 0%, rgba(21, 23, 26, 0.55) 30%, rgba(21, 23, 26, 0.65) 70%, var(--bg2) 100%); }
.how > *:not(.how-bg) { position: relative; }

/* the find-us tile shows the driveway */
.tile.photo { background: #121316; }
.tile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; transition: transform 1.2s var(--ease), opacity 0.4s; }
.tile.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 19, 22, 0.85) 0%, rgba(18, 19, 22, 0.25) 45%, rgba(18, 19, 22, 0.9) 100%); }
.tile.photo:hover .tile-photo { transform: scale(1.06); opacity: 0.55; }
.tile.photo h3, .tile.photo p, .tile.photo .sq { z-index: 1; }
.tile.photo .tile-art { display: none; }
@media (prefers-reduced-motion: reduce) {
  .how-bg img, .work-col { transform: none !important; }
  .js [data-ap] { opacity: 1 !important; transform: none !important; }
}

/* rails on phones keep the page's side margin when they snap */
.cards, .work-grid { scroll-padding-inline: var(--gut); }
@media (min-width: 900px) { .work-grid { padding-top: 70px; } }

/* the headline keeps the place it had when the address sat above it (two mono lines and their gap, 57px) */
.hero > .hero-h:first-child { margin-top: 57px; }
/* the small label above the big headline only fades in, and keeps clear of it */
.how-h { margin-top: 34px; }
.js .how-tl[data-reveal] { transform: none; }

/* ---------------- the workshop assistant ---------------- */
.ask { position: fixed; z-index: 45; right: var(--gut); bottom: calc(16px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 16px; border: 0; border-radius: 999px; cursor: pointer; background: var(--red-btn); color: #fff;
  font-stretch: 112%; font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  box-shadow: 0 0 0 4px rgba(14, 15, 17, 0.9), 0 12px 32px rgba(0, 0, 0, 0.55); transition: transform 0.3s var(--ease), background 0.2s; }
.ask:hover { background: var(--red); transform: translateY(-2px); }
.ask-ico { width: 26px; height: 26px; flex: none; }
.ask-short { display: none; }
@media (max-width: 560px) { .ask { padding: 0 18px 0 14px; } .ask-long { display: none; } .ask-short { display: inline; } }
.ask[aria-expanded="true"] { opacity: 0; pointer-events: none; }
.peek { position: fixed; z-index: 45; right: var(--gut); bottom: calc(86px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 4px; max-width: min(300px, calc(100vw - 2 * var(--gut)));
  background: var(--paper); color: var(--ink); border-radius: 12px; border-bottom-right-radius: 4px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); animation: up 0.5s var(--ease) both; }
.peek[hidden] { display: none; }
.peek-open { border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; padding: 12px 4px 12px 14px; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.peek-x { flex: none; width: 36px; height: 36px; margin-right: 4px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-dim); cursor: pointer; border-radius: 8px; }
.peek-x:hover { color: var(--ink); background: rgba(0, 0, 0, 0.06); }
.peek-x svg { width: 16px; height: 16px; }
.ask-ghost { display: inline-flex; align-items: center; gap: 10px; }
.ask-ghost svg { width: 18px; height: 18px; flex: none; color: var(--red-btn); }
.ask-ghost:hover { border-color: var(--ink); }
.probe-more { margin: 18px 0 0; }
.chat { position: fixed; z-index: 46; right: var(--gut); bottom: calc(16px + env(safe-area-inset-bottom)); width: min(400px, calc(100vw - 2 * var(--gut)));
  height: min(620px, calc(100svh - 110px)); display: flex; flex-direction: column; background: #121316; color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.chat[hidden] { display: none; }
.chat.open { animation: chatin 0.45s var(--ease) both; }
@keyframes chatin { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .chat { right: 0; left: 0; bottom: 0; width: 100%; height: min(86svh, 680px); border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 16px 14px; border-bottom: 1px solid var(--line);
}
.chat-head .mono { margin: 0 0 4px; }
.chat-head h2 { font-size: 17px; font-weight: 700; }
.chat-x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.chat-x svg { width: 18px; height: 18px; }
.chat-x:hover { border-color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 12px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; animation: up 0.35s var(--ease) both; }
.msg.bot { align-self: flex-start; background: var(--card); border-top-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--red-btn); color: #fff; border-top-right-radius: 4px; }
.msg.wait { display: inline-flex; gap: 5px; align-items: center; padding: 14px 14px; }
.msg.wait span { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: bob 1s infinite ease-in-out; }
.msg.wait span:nth-child(2) { animation-delay: 0.15s; } .msg.wait span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bob { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-5px); opacity: 1; } }
.wa-card { align-self: stretch; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 14px; animation: up 0.4s var(--ease) both; }
.wa-card .mono { color: var(--ink-dim); margin: 0 0 8px; }
.wa-card pre { white-space: pre-wrap; font: inherit; font-size: 14px; margin: 0 0 12px; padding: 10px; background: #fff; border: 1px solid var(--ink-line); border-radius: 6px; }
.wa-card .btn { width: 100%; }
.chat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.chat-chips[hidden] { display: none; }
.chat-chips button { flex: none; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #e8e7e3; cursor: pointer; font-size: 13.5px; }
.chat-chips button:hover { border-color: var(--red); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-height: 46px; max-height: 120px; resize: none; padding: 12px 12px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.chat-form textarea::placeholder { color: var(--dim); }
.chat-form textarea:focus { outline: none; border-color: rgba(255, 255, 255, 0.45); }
.chat-send { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--red-btn); color: #fff; cursor: pointer; }
.chat-send:disabled { opacity: 0.5; cursor: default; }
.chat-send svg { width: 20px; height: 20px; }
.chat-note { margin: 0; padding: 0 14px 12px; font-size: 10.5px; }
.chat-note a { color: var(--text); }

/* room under the last footer row for the floating "Ask the workshop" button (56px tall, 16px from the edge) */
.foot { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

/* anything marked hidden stays hidden, whatever its own display rule says */
[hidden] { display: none !important; }

/* the request form's last step: consent, the robot trap, the thank-you */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-dim); line-height: 1.4; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--red-btn); }
.consent a { color: var(--ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { background: #fff; border: 1px solid var(--ink-line); border-radius: 8px; padding: 20px; }
.sent h3 { font-size: 22px; font-weight: 700; margin: 4px 0 10px; }
.sent p { color: var(--ink-dim); }
/* Brighton's notice, switched on in his panel */
.notice { position: relative; z-index: 41; margin: 0; padding: 10px var(--gut); background: var(--yellow); color: #111; font-weight: 700; font-size: 14.5px; text-align: center; }
.notice:not([hidden]) + .nav-wrap { top: 40px; }
/* the assistant's request card: name, phone, consent */
.wa-card .in2 { width: 100%; min-height: 44px; padding: 9px 11px; margin-bottom: 8px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--ink-line); border-radius: 6px; }
.wa-card .consent { margin: 4px 0 10px; font-size: 13px; }
.wa-card .err2 { color: #a3150f; font-size: 13.5px; font-weight: 600; margin: 0 0 8px; }
.wa-card .alt { display: block; margin-top: 8px; text-align: center; font-size: 14px; color: var(--ink-dim); }

/* the privacy page */
.legal { max-width: 760px; margin: 0 auto; padding: 120px var(--gut) 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 700; margin: 6px 0 22px; }
.legal h2 { font-size: 17px; font-weight: 700; margin: 30px 0 8px; }
.legal p { color: #d7d6d2; }
.legal a { color: #fff; }

/* cards and photos converge as they arrive, as on the Salud Municipal site: the left ones come in from the left, the
   right ones from the right, the middle ones rise. Every time they come back into view, they do it again. */
[data-ap] { transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-ap]:not(.ver) { opacity: 0; }
.js [data-ap="izq"]:not(.ver) { transform: translateX(-46px); }
.js [data-ap="der"]:not(.ver) { transform: translateX(46px); }
.js [data-ap="arr"]:not(.ver) { transform: translateY(40px); }

/* online booking: the days a customer can pick, as a row of choices */
.days-f { border: 0; margin: 0; padding: 0; min-width: 0; }
.step .days-f legend { display: block; padding: 0; font-size: 14px; font-weight: 600; font-stretch: 100%; text-transform: none; margin-bottom: 8px; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.days label { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 58px; padding: 8px 10px; background: #fff; border: 1px solid var(--ink-line); border-radius: 4px; cursor: pointer; line-height: 1.2; }
.days label.none { grid-column: span 2; }
.days input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.days b { font-size: 15px; }
.days small { font-size: 12px; color: var(--ink-dim); margin-top: 3px; }
.days label:hover { border-color: var(--ink); }
.days label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.days label:has(input:checked) small { color: #d6d7da; }
.days label:has(input:focus-visible) { outline: 3px solid rgba(200, 30, 24, 0.5); outline-offset: 2px; }
.days label:has(input:disabled) { cursor: not-allowed; background: transparent; color: var(--ink-dim); border-style: dashed; }
.days-note { margin: 8px 0 0; font-size: 13px; color: var(--ink-dim); }

