/* KTech public site - dark-first brand palette from the logo: purple #8355F6 on black, white gears */
:root {
  --brand: #8355F6;
  --brand-hi: #9C7AFF;
  --brand-lo: #5E3AD0;
  --brand-ink: #C5B0FF;
  --brand-soft: rgba(131, 85, 246, 0.14);
  --brand-glow: rgba(131, 85, 246, 0.35);
  --bg: #0B0A10;
  --bg-2: #100E17;
  --surface: #16131F;
  --surface-2: #1E1A2B;
  --surface-3: #262238;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ECE9F4;
  --text-2: #B1ABC4;
  --text-3: #918BA8;   /* lifted from #7E7893 - it was 4.35:1 on cards, just under AA */
  --ok: #3ED598;
  --ok-soft: rgba(62, 213, 152, 0.14);
  --warn: #F5B841;
  --warn-soft: rgba(245, 184, 65, 0.14);
  --bad: #FF6B7D;
  --bad-soft: rgba(255, 107, 125, 0.14);
  --plate-bg: #FFFFFF;
  --plate-ink: #111111;
  --plate-band: #003399;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.3);
  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.12; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.55rem); font-weight: 700; font-style: italic; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-2); margin-top: 18px; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.eyebrow { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 12px; }
.lead { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem); color: var(--text-2); max-width: 58ch; }
.muted { color: var(--text-3); font-size: 0.92rem; }
.link { color: var(--brand-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { color: var(--brand-hi); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
/* A ring that stays visible on any background, including the purple buttons where
   brand-on-brand was 1.45:1 - the one control a keyboard user most needs to find. */
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--brand); border-radius: 4px; }
:root[data-theme="light"] :focus-visible, .lightbox :focus-visible { outline-color: #0B0A10; }
.ico { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ico svg { width: 100%; height: 100%; }
.prose p + p { margin-top: 12px; }
.prose { color: var(--text-2); }

/* Logo-derived motif: a solid line that dissolves into dots */
.trail {
  height: 3px; width: 100%; border-radius: 2px;
  background:
    linear-gradient(90deg, var(--brand) 0 38%, transparent 38%),
    repeating-linear-gradient(90deg, var(--brand) 0 5px, transparent 5px 9px);
  -webkit-mask: linear-gradient(90deg, #000 45%, transparent 100%);
  mask: linear-gradient(90deg, #000 45%, transparent 100%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 0.95rem;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 20px var(--brand-glow); }
.btn--primary:hover { background: var(--brand-lo); }  /* --brand-hi dropped white text to 3.16:1 */
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn--soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn--soft:hover { background: rgba(131, 85, 246, 0.24); }
.btn--sm { padding: 8px 14px; font-size: 0.88rem; border-radius: 8px; }
.btn--lg { padding: 14px 22px; font-size: 1.02rem; border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* ---------- notice board + nav ---------- */
/* A single quiet line across the top. Deliberately understated: no shouting colours,
   no animation, and it takes up one row unless the message is long. */
.notice { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.notice__in { display: flex; align-items: center; gap: 12px; padding: 9px 0; min-height: 42px; }
.notice__label { flex: none; font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--notice-chip, var(--brand-soft)); color: var(--notice-ink, var(--brand-ink)); }
.notice__text { flex: 1; min-width: 0; font-size: 0.9rem; font-weight: 500; color: var(--text-2); line-height: 1.45; }
.notice__link { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 0.87rem; font-weight: 600; color: var(--notice-ink, var(--brand-ink)); border-bottom: 1px solid transparent; }
.notice__link:hover { border-bottom-color: currentColor; }
.notice__link .ico { width: 15px; height: 15px; }
.notice__close { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); }
.notice__close:hover { background: var(--surface-3, rgba(255, 255, 255, 0.07)); color: var(--text); }
.notice__close svg { width: 15px; height: 15px; }
.notice--brand { --notice-chip: var(--brand-soft); --notice-ink: var(--brand-ink); }
.notice--warm { --notice-chip: var(--warn-soft); --notice-ink: var(--warn); }
.notice--plain { --notice-chip: rgba(127, 127, 140, 0.16); --notice-ink: var(--text); }
@media (max-width: 640px) {
  .notice__in { flex-wrap: wrap; gap: 8px 10px; padding: 10px 0; }
  .notice__text { flex-basis: 100%; order: 3; font-size: 0.86rem; }
  .notice__label { order: 1; }
  .notice__link { order: 4; }
  .notice__close { order: 2; margin-left: auto; }
}
.nav { position: sticky; top: 0; z-index: 40; background: rgba(11, 10, 16, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
/* The header gets a little more room than the page content, so the full menu fits on a
   normal laptop screen. Nothing in it ever wraps onto a second line. */
.nav .wrap { max-width: 1360px; }
.nav__logo { flex: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 2px; margin-left: 4px; flex: none; }
.nav__links a { padding: 8px 11px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.nav__cta .btn { white-space: nowrap; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; font-size: 0.92rem; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav__phone:hover { color: var(--text); background: var(--surface-2); }
.nav__admin { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--brand-lo); border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.nav__admin:hover { color: var(--text); border-color: var(--brand); background: var(--brand-glow); }
.nav__admin .ico { width: 16px; height: 16px; flex: none; }
.nav__menu { display: none; background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; width: 40px; height: 40px; align-items: center; justify-content: center; }
/* The smallest phones: a slightly smaller logo and tighter gaps, so logo, Admin, Book
   now and the menu button all fit across 320px. */
@media (max-width: 380px) {
  .nav__in { gap: 10px; }
  .nav__cta { gap: 6px; }
  .nav__logo img { height: 28px; }
  .nav__cta .btn { padding-inline: 12px; }
}
/* Set by the script in reveal.js when the full header does not fit. Tight: the phone
   number and Admin show as icons. Menu: the links fold into the menu button too. */
.nav--tight .nav__phone span:not(.ico), .nav--tight .nav__admin-text { display: none; }
.nav--tight .nav__phone, .nav--tight .nav__admin { padding: 8px; min-width: 40px; min-height: 40px; justify-content: center; }
.nav--menu .nav__links { display: none; position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px clamp(16px, 4vw, 32px) 16px; margin: 0; }
.nav--menu .nav__links.open { display: flex; }
.nav--menu .nav__links a { padding: 12px; font-size: 1.05rem; }
.nav--menu .nav__menu { display: inline-flex; }
@media (max-width: 860px) {
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px clamp(16px, 4vw, 32px) 16px; margin: 0; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px; font-size: 1.05rem; }
  .nav__menu { display: inline-flex; }
  .nav__phone { display: none; }
  /* Four things do not fit across a phone. The label goes, the button stays. */
  .nav__admin { padding: 8px; }
  .nav__admin-text { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero__bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 18% 20%, var(--brand-glow) 0%, transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask: linear-gradient(180deg, #000 20%, transparent 100%); mask: linear-gradient(180deg, #000 20%, transparent 100%);
}
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__copy h1 { margin-bottom: 18px; max-width: 16ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badges { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.badges li { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 0.92rem; font-weight: 500; }
.badges .ico { width: 18px; height: 18px; color: var(--brand-hi); }
.quick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.quick__head { display: flex; align-items: center; gap: 12px; }
.quick__head .ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); }
.quick__head strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.quick__head span:not(.ico) { color: var(--text-3); font-size: 0.85rem; }
.quick__list { display: grid; gap: 8px; }
.quick__loading, .quick__empty { color: var(--text-3); font-size: 0.92rem; padding: 10px 2px; }
.slotbtn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color 0.15s, background 0.15s; }
.slotbtn:hover { border-color: var(--brand); background: var(--brand-soft); }
.slotbtn strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.slotbtn span { color: var(--text-2); font-size: 0.9rem; }
.slotbtn .ico { color: var(--brand-ink); width: 18px; height: 18px; }
@media (max-width: 900px) { .hero__in { grid-template-columns: 1fr; } .quick { max-width: 520px; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: 32px; }
.section__text { color: var(--text-2); max-width: 52ch; }
@media (max-width: 760px) { .section__head { grid-template-columns: 1fr; } }
.grid { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { background: transparent; border: 1px solid var(--line-strong); color: var(--text-2); border-radius: 999px; padding: 7px 14px; font-size: 0.88rem; font-weight: 600; transition: all 0.15s; }
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip.active, .chip[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* services */
.services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services { grid-template-columns: minmax(0, 1fr); } }
.svc { display: flex; flex-direction: column; gap: 14px; transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; }
.svc:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.svc__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.svc__icon { width: 44px; height: 44px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; }
.svc__icon .ico { width: 22px; height: 22px; }
.svc__cat { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding-top: 4px; }
.svc h3 { font-size: 1.12rem; }
.svc p { color: var(--text-2); font-size: 0.94rem; flex: 1; }
/* Deposit note on a service card - quiet, but there before anyone starts booking. */
.svc__dep { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; align-self: flex-start; margin: 0; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 0.8rem; }
.svc__dep .ico { width: 14px; height: 14px; color: var(--text-3); }
.svc__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; color: var(--text-3); margin-right: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.svc__meta { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 0.82rem; }
.svc__meta .ico { width: 15px; height: 15px; }
.svc__meta span { display: inline-flex; align-items: center; gap: 4px; }
.svc__book { margin-top: 2px; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding-top: 18px; }
.steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand) 0 42%, transparent 42%), repeating-linear-gradient(90deg, var(--brand) 0 5px, transparent 5px 9px);
  -webkit-mask: linear-gradient(90deg, #000 50%, transparent); mask: linear-gradient(90deg, #000 50%, transparent); }
.steps .num { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.6rem; color: var(--brand-ink); display: block; margin-bottom: 8px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--text-2); font-size: 0.95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* modes */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mode { display: grid; gap: 14px; align-content: start; padding: 26px; }
.mode__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; }
.mode__icon .ico { width: 28px; height: 28px; }
.mode h3 { font-size: 1.35rem; }
.mode p { color: var(--text-2); }
.mode .btn { justify-self: start; }
@media (max-width: 720px) { .modes { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.about h2 { margin-bottom: 16px; }
.points { list-style: none; margin: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 14px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-weight: 500; }
.points .ico { color: var(--ok); margin-top: 2px; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* showcase gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.shot { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; cursor: zoom-in; transition: border-color 0.18s, transform 0.18s; }
.shot:hover { border-color: var(--brand); transform: translateY(-2px); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; inset: auto 0 0 0; padding: 24px 10px 9px; font-size: 0.82rem; font-weight: 600; color: #fff; text-align: left; display: grid; gap: 2px;
  background: linear-gradient(transparent, rgba(5, 4, 10, 0.88)); opacity: 0; transition: opacity 0.2s; }
.shot figcaption em { font-style: normal; font-weight: 500; font-size: 0.72rem; color: var(--brand-ink); letter-spacing: 0.02em; }
.shot:hover figcaption, .shot:focus-visible figcaption { opacity: 1; }
@media (hover: none) { .shot figcaption { opacity: 1; } }
.lightbox { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; gap: 4px; padding: clamp(24px, 5vw, 48px) clamp(8px, 3vw, 32px) clamp(16px, 4vw, 32px); background: rgba(5, 4, 10, 0.94); backdrop-filter: blur(6px); }
/* the picture gives up space so the job description always fits on screen */
.lightbox__figure { margin: 0; min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; justify-items: center; align-content: center; }
/* two stacked layers: the photo on screen stays put until the next one has decoded, then they cross-fade */
.lightbox__stage { position: relative; width: 100%; height: 100%; min-height: 0; }
.lb-img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: var(--radius-sm); object-fit: contain; opacity: 0; transition: opacity 0.34s ease; will-change: opacity; }
.lb-img.is-active { opacity: 1; }
#lightboxCap { transition: opacity 0.22s ease; }
#lightboxCap.is-fading { opacity: 0.35; }
@media (prefers-reduced-motion: reduce) { .lb-img, #lightboxCap { transition: none; } }
.lightbox__nav { align-self: center; }
.lightbox__figure figcaption { display: grid; gap: 8px; color: var(--text-2); font-size: 0.95rem; text-align: center; max-width: 62ch; }
.lightbox__figure figcaption strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--text); }
.lightbox__figure figcaption span { line-height: 1.55; }
.lightbox__figure figcaption small { color: var(--text-3); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.lightbox__figure figcaption { overflow-y: auto; max-height: 40vh; }
@media (max-width: 640px) { .lightbox__figure figcaption { font-size: 0.9rem; max-height: 45vh; } }
.lightbox__close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-size: 1.6rem; line-height: 1; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--surface-2); border-color: var(--brand); }
.lightbox__nav { width: 48px; height: 64px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-size: 2rem; line-height: 1; }
@media (max-width: 640px) { .lightbox__nav { width: 40px; height: 52px; font-size: 1.5rem; } }

/* reviews */
.reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.review blockquote { margin: 0 0 14px; color: var(--text-2); font-size: 0.98rem; }
.review cite { font-style: normal; font-weight: 600; }
.review .muted { display: block; }
.stars { color: var(--warn); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 10px; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__card h3 { margin-bottom: 14px; }
.contact__row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 600; }
.contact__row .ico { color: var(--brand-ink); }
.contact__row:hover { color: var(--brand-hi); }
.contact__address { font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 7px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.hours td:last-child { text-align: right; color: var(--text-2); }
.hours tr.today td { color: var(--brand-ink); font-weight: 600; }
.hours tr.closed td:last-child { color: var(--text-3); }

/* footer */
.footer { border-top: 1px solid var(--line); padding-block: 40px 24px; background: var(--bg-2); }
.footer__in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.footer__brand img { height: 40px; width: auto; margin-bottom: 12px; }
.footer__brand p { color: var(--text-3); font-size: 0.92rem; max-width: 36ch; }
.footer__links { display: grid; gap: 0; }
/* Each footer link is a comfortable thumb-sized target, not just its line of text. */
.footer__links a { color: var(--text-2); font-size: 0.95rem; padding-block: 7px; justify-self: start; }
.footer__links a:hover { color: var(--text); }
.footer__social { display: flex; gap: 10px; justify-content: flex-end; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text-2); }
.footer__social a:hover { border-color: var(--brand); color: var(--brand-ink); }
.footer__legal { margin-top: 28px; color: var(--text-3); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.footer__legalLinks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legalLinks a { color: var(--text-3); display: inline-block; padding-block: 8px; }
.footer__legalLinks a:hover { color: var(--brand-ink); }
/* the footer logo doubles as the way in to the admin panel - long-press it, or tap it five times */
.footer__brand img { cursor: default; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
.footer__brand img.is-arming { filter: drop-shadow(0 0 10px var(--brand-glow)); transition: filter 0.2s; }

/* legal documents */
.legal-doc { color: var(--text-2); font-size: 0.95rem; line-height: 1.65; }
.legal-doc h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 22px 0 8px; }
.legal-doc h3:first-child { margin-top: 6px; }
.legal-doc p { margin-bottom: 12px; max-width: 70ch; }
.legal-doc ul { margin: 0 0 12px; padding-left: 20px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: var(--brand-ink); text-decoration: underline; }
@media (max-width: 720px) { .footer__in { grid-template-columns: 1fr; } .footer__social { justify-content: flex-start; } }

/* ---------- booking sheet ---------- */
/* The terms can be opened from inside the booking sheet, so they sit above it. */
#legalSheet { z-index: 65; }
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); align-items: end; justify-items: center; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(5, 4, 10, 0.72); backdrop-filter: blur(4px); }
.sheet__panel { position: relative; width: 100%; max-width: 760px; height: 100%; min-height: 0; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: var(--shadow); animation: sheetIn 0.25s ease-out; }
@keyframes sheetIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 760px) { .sheet { align-items: center; padding: 24px; } .sheet__panel { height: auto; max-height: min(92vh, 900px); border-radius: 18px; } }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 12px; padding-top: calc(22px + env(safe-area-inset-top, 0px)); }
.sheet__head h2 { font-size: 1.4rem; }
.sheet__intro { color: var(--text-3); font-size: 0.9rem; margin-top: 4px; }
.sheet__close { background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.sheet__close:hover { background: var(--surface-2); }
.stepper { list-style: none; margin: 0; padding: 4px 24px 14px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.stepper li { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); padding-top: 8px; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--text-3) 0 4px, transparent 4px 8px); opacity: 0.5; }
.stepper li.done::before, .stepper li.current::before { background: var(--brand); opacity: 1; }
.stepper li.done { color: var(--text-2); }
.stepper li.current { color: var(--brand-ink); }
.sheet__body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 24px 24px; -webkit-overflow-scrolling: touch; }
.sheet__foot { display: flex; align-items: center; gap: 12px; padding: 14px 24px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg-2); }
.sheet__summary { flex: 1; min-width: 0; color: var(--text-3); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .sheet__head, .stepper, .sheet__body, .sheet__foot { padding-inline: 16px; } .stepper li { font-size: 0.62rem; } }

.step-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin: 10px 0 6px; }
.step-hint { color: var(--text-3); font-size: 0.9rem; margin-bottom: 14px; }
.option-list { display: grid; gap: 8px; }
.opt { width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.15s, background 0.15s; }
.opt:hover { border-color: var(--line-strong); }
.opt.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.opt .svc__icon { width: 40px; height: 40px; }
.opt strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.opt small { display: block; color: var(--text-3); font-size: 0.85rem; margin-top: 2px; }
.opt .price { font-size: 1rem; }
.opt__tag { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; vertical-align: middle; white-space: nowrap; }
.opt--big { grid-template-columns: auto 1fr; padding: 18px; }
.opt--big .mode__icon { width: 44px; height: 44px; }
.opt--big .mode__icon .ico { width: 24px; height: 24px; }
.opt--big small { white-space: normal; }

/* calendar */
.timepick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 640px) { .timepick { grid-template-columns: 1fr; } }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__head strong { font-family: var(--font-display); font-weight: 600; }
.cal__nav { background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; width: 44px; height: 44px; display: grid; place-items: center; }
.cal__nav:hover { background: var(--surface-2); }
.cal__nav[disabled] { opacity: 0.35; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: 0.72rem; color: var(--text-3); font-weight: 600; padding: 4px 0; text-transform: uppercase; letter-spacing: 0.05em; }
.cal__day { aspect-ratio: 1; min-height: 44px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.92rem; position: relative; display: grid; place-items: center; }
.cal__day.open { background: var(--surface-2); border-color: var(--line); }
.cal__day.open:hover { border-color: var(--brand); }
.cal__day.open::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--ok); }
.cal__day.full { color: var(--text-2); background: var(--surface-2); border-color: var(--line); cursor: not-allowed; text-decoration: line-through; }
.cal__day.closed, .cal__day.blocked, .cal__day.past { color: var(--text-3); opacity: 0.8; cursor: default; }  /* was 0.5 - 2:1 contrast, you could not see them at all */
.cal__day.selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.cal__day.selected::after { background: #fff; }
.cal__day.today { box-shadow: inset 0 0 0 1px var(--brand-ink); }
.cal__legend { display: flex; gap: 14px; margin-top: 10px; color: var(--text-3); font-size: 0.78rem; }
.cal__legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--ok); }
.cal__legend span.l-full::before { background: var(--text-3); }
.slots__title { font-family: var(--font-display); font-weight: 600; margin-bottom: 10px; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { padding: 10px 6px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; transition: all 0.15s; }
.slot:hover { border-color: var(--brand); }
.slot.selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot[disabled] { color: var(--text-3); text-decoration: line-through; background: transparent; cursor: not-allowed; }
.slots__note { color: var(--text-3); font-size: 0.85rem; margin-top: 12px; }
.slots__empty { color: var(--text-3); font-size: 0.92rem; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 10px; }

/* forms */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text-2); }
.field label small { font-weight: 400; color: var(--text-3); }
.field input, .field select, .field textarea { width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field textarea { min-height: 96px; resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: var(--bad); }
.field__error { color: var(--bad); font-size: 0.82rem; }
.field__help { color: var(--text-3); font-size: 0.82rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* UK number plate */
.plate { display: flex; align-items: stretch; border-radius: 8px; overflow: hidden; border: 2px solid #2a2a2a; background: var(--plate-bg); }
.plate__band { width: 34px; background: var(--plate-band); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.05em; }
.plate input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--plate-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 12px; text-align: center; }
.plate input::placeholder { color: #9a9a9a; letter-spacing: 0.08em; font-weight: 600; }
.plate input:focus { outline: none; }
.plate__btn { border: 0; background: var(--brand); color: #fff; font-weight: 600; padding: 0 14px; font-size: 0.88rem; }
.plate__btn:hover { background: var(--brand-hi); }
.plate__btn[disabled] { opacity: 0.6; }
.lookup-result { display: flex; align-items: center; gap: 10px; background: var(--ok-soft); color: var(--ok); border-radius: 9px; padding: 9px 12px; font-size: 0.88rem; font-weight: 600; }
.lookup-result.err { background: var(--warn-soft); color: var(--warn); }

/* review + success */
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.summary__row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.summary__row:first-child { border-top: 0; }
.summary__row span:first-child { color: var(--text-3); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
.summary__row strong { font-weight: 600; }
.summary__row strong .muted { font-weight: 400; }
.summary__edit { background: transparent; border: 0; color: var(--brand-ink); font-weight: 600; font-size: 0.85rem; padding: 0; margin-left: 8px; }
.terms { color: var(--text-3); font-size: 0.85rem; margin-top: 14px; }
.success { text-align: center; padding: 24px 8px; display: grid; gap: 14px; justify-items: center; }
.success__icon { width: 68px; height: 68px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.success__icon .ico { width: 34px; height: 34px; }
.success h3 { font-size: 1.5rem; }
.success p { color: var(--text-2); max-width: 46ch; }
.ref { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.08em; color: var(--brand-ink); background: var(--brand-soft); padding: 8px 18px; border-radius: 10px; }
.success__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.error-box { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: 0.92rem; margin-top: 12px; }

/* checking an existing booking */
.lookup { display: grid; gap: 16px; padding: 8px 0 4px; max-width: 420px; margin: 0 auto; }
.lookup__lead { color: var(--text-2); line-height: 1.6; }
.lookup__lead strong { color: var(--brand-ink); font-family: var(--font-display); letter-spacing: 0.05em; }
.lookup .help { color: var(--text-3); font-size: 0.83rem; }
.lookup__error { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 11px 13px; font-weight: 600; font-size: 0.9rem; }
.lookup__actions { display: grid; gap: 10px; }
.lookup__actions .btn { width: 100%; }

/* status pill */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pill--pending { background: var(--warn-soft); color: var(--warn); }
.pill--confirmed { background: var(--ok-soft); color: var(--ok); }
.pill--declined, .pill--cancelled, .pill--no_show { background: var(--bad-soft); color: var(--bad); }
.pill--completed { background: var(--surface-3); color: var(--text-2); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80; background: var(--surface-3); color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 18px; font-weight: 600; box-shadow: var(--shadow); max-width: min(92vw, 480px); }

/* owner edit mode (static/live-page build only) */
.owner-bar { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; gap: 8px; }
.owner-bar .btn { box-shadow: var(--shadow); }

/* ---------- screen-reader-only text ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- services: cross-fade between categories ---------- */
/* The grid holds its height while the cards swap, so the page below never jumps. */
/* align-content keeps each card at its natural height while the container is briefly
   locked to the outgoing category's height - without it the cards stretch to fill. */
#serviceGrid { transition: height 0.32s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; align-content: start; }
#serviceGrid.is-swapping > * { opacity: 0; transform: translateY(6px); transition: opacity 0.16s ease, transform 0.16s ease; }
#serviceGrid.is-entering > * { animation: svcIn 0.34s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes svcIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.chip { transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease; }
.chip:active { transform: scale(0.97); }
.svc__where { display: inline-flex; }

/* Nothing above should move for anyone who has asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  #serviceGrid, #serviceGrid.is-swapping > *, #serviceGrid.is-entering > * { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
  #serviceGrid { height: auto !important; }
}

/* ---------- a failed calendar month keeps its way out ---------- */
.cal__error { display: grid; gap: 10px; justify-items: start; padding: 16px; background: var(--bad-soft); border-radius: 10px; }
.cal__error p { color: var(--bad); font-weight: 600; font-size: 0.9rem; }

/* ==========================================================================
   Reviews - the /reviews page, and the short teaser on the landing page
   ========================================================================== */
.nav__links a.is-current { color: var(--text); background: var(--surface-2); }

/* stars: an empty star with a filled one clipped over it, so 4.6 reads as 4.6 */
.rv-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.rv-star { position: relative; display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; }
.rv-star svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rv-star svg:first-child { fill: var(--surface-3); }
.rv-star svg:last-child { fill: var(--warn); clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0); }
.rv-stars--lg .rv-star { width: 24px; height: 24px; }

/* the page's opening block */
.rv-hero { padding-block: clamp(40px, 7vw, 88px) clamp(20px, 3vw, 36px); background: radial-gradient(60% 80% at 85% 0%, var(--brand-soft), transparent 70%); }
.rv-hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.rv-hero .lead { margin-top: 14px; }
.rv-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 860px) { .rv-hero__in { grid-template-columns: 1fr; } }

.rv-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 28px; align-items: center; padding: clamp(18px, 3vw, 26px); }
.rv-summary__score { display: grid; justify-items: center; gap: 8px; text-align: center; padding-right: 4px; }
.rv-summary__score strong { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.rv-summary__score > span:last-child { color: var(--text-3); font-size: 0.88rem; }
@media (max-width: 420px) { .rv-summary { grid-template-columns: 1fr; } }

.rv-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rv-bars li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 26px; gap: 10px; align-items: center; font-size: 0.86rem; color: var(--text-2); }
.rv-bars__label { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.rv-bars__label svg { width: 12px; height: 12px; fill: var(--warn); }
.rv-bars__track { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.rv-bars__fill { display: block; height: 100%; border-radius: inherit; background: var(--warn); }
.rv-bars__n { text-align: right; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* review cards - kept in reading order, newest first */
.rv-list-section { padding-top: clamp(20px, 3vw, 36px); }
.rv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; align-items: start; }
.rv-card { display: grid; gap: 12px; }
.rv-card__head { display: flex; align-items: center; gap: 10px; }
.rv-card__word { font-size: 0.82rem; font-weight: 600; color: var(--text-3); }
.rv-card__text { color: var(--text); font-size: 0.98rem; line-height: 1.6; max-height: calc(1.6em * 7); overflow: hidden; overflow-wrap: anywhere; }
.rv-card__text p { margin: 0 0 10px; }
.rv-card__text p:last-child { margin-bottom: 0; }
.rv-card.is-clamped:not(.is-open) .rv-card__text { -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.rv-card.is-open .rv-card__text { max-height: none; }
.rv-card__more { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--brand-ink); font-weight: 600; font-size: 0.88rem; cursor: pointer; }
.rv-card__more:hover { color: var(--brand-hi); }
.rv-card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.rv-card__foot > div:first-child strong { display: block; font-size: 0.95rem; }
.rv-card__foot > div:first-child span { display: block; color: var(--text-3); font-size: 0.85rem; }
.rv-card__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 0.8rem; color: var(--text-3); }
.rv-verified { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 600; font-size: 0.8rem; white-space: nowrap; }
.rv-verified svg { width: 14px; height: 14px; }
.rv-more { display: flex; justify-content: center; margin-top: 18px; }
.rv-more:has(> [hidden]) { display: none; }

/* write a review */
.rv-write { scroll-margin-top: var(--nav-h); }
.rv-write:focus { outline: none; }
.rv-write__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px 56px; align-items: start; }
.rv-write__intro h2 { margin-bottom: 12px; }
@media (max-width: 860px) { .rv-write__in { grid-template-columns: 1fr; } }
.rv-form-card { padding: clamp(18px, 3vw, 28px); }
/* The name box has help text under it and the car box does not; without this the
   row stretches both and the car box drifts down out of line with its neighbour. */
.rv-form-card .form__row { align-items: start; }
.rv-rate { border: 0; margin: 0; padding: 0; min-width: 0; }
.rv-rate legend { padding: 0; margin-bottom: 8px; font-size: 0.86rem; font-weight: 600; color: var(--text-2); }
.rv-rate__word { margin-left: 8px; color: var(--warn); }
.rv-rate__stars { display: flex; gap: 4px; }
.rv-rate__stars label { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; transition: transform 0.12s ease; }
.rv-rate__stars label svg { width: 34px; height: 34px; fill: var(--surface-3); stroke: var(--line-strong); stroke-width: 1; transition: fill 0.12s ease; }
.rv-rate__stars label.on svg { fill: var(--warn); stroke: transparent; }
.rv-rate__stars label:hover { transform: scale(1.08); }
.rv-rate__stars input:focus-visible + label { outline: 2px solid #fff; outline-offset: 2px; }
.rv-rate.invalid .rv-rate__stars label:not(.on) svg { stroke: var(--bad); stroke-width: 1.5; }
.rv-rate .field__error { display: block; margin-top: 6px; }
.rv-invite { display: flex; gap: 12px; align-items: flex-start; background: var(--ok-soft); border-radius: 10px; padding: 12px 14px; font-size: 0.92rem; line-height: 1.5; }
.rv-invite svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.rv-note { margin: 0; color: var(--text-3); font-size: 0.9rem; }
.rv-consent { margin: 0; color: var(--text-3); font-size: 0.85rem; }
.rv-consent .link { display: inline; }
.rv-count.is-short { color: var(--warn); }
.rv-done { display: grid; justify-items: start; gap: 12px; }
.rv-done:focus { outline: none; }
.rv-done h3 { font-size: 1.3rem; }
.rv-done p { margin: 0; color: var(--text-2); }
.rv-done__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.rv-done__icon svg { width: 26px; height: 26px; }

/* the landing page teaser */
.rv-teaser__score { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; color: var(--text-2); font-weight: 500; }
.rv-teaser__score strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.rv-teaser__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

@media (prefers-reduced-motion: reduce) {
  .rv-rate__stars label, .rv-rate__stars label svg { transition: none; }
  .rv-rate__stars label:hover { transform: none; }
}
#reviewGrid .rv-card__text { max-height: calc(1.6em * 6); }

/* ==========================================================================
   Motion: arriving on the page, and moving between pages
   ========================================================================== */

/* Reveal on scroll. Only ever active while reveal.js is running - without the
   flag on <html> nothing is hidden, so a script failure cannot blank the page. */
html.reveal-on .reveal { opacity: 0; }
html.reveal-on .reveal.is-in { animation: ktReveal 0.62s cubic-bezier(0.22, 0.7, 0.3, 1) var(--rd, 0ms) both; }
@keyframes ktReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Moving between the main page and the reviews page: the browser cross-fades the
   two, and the header and footer are named so they stay put instead of fading with
   everything else. Browsers without view transitions simply navigate as before. */
@view-transition { navigation: auto; }
.nav { view-transition-name: kt-nav; }
.footer { view-transition-name: kt-footer; }
::view-transition-old(root) { animation-duration: 0.26s; animation-timing-function: ease-in; }
::view-transition-new(root) { animation-duration: 0.34s; animation-timing-function: ease-out; }
::view-transition-group(kt-nav), ::view-transition-group(kt-footer) { animation-duration: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html.reveal-on .reveal { opacity: 1 !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}


/* ---------- recent work ---------- */
.wk-hero { padding-block: clamp(40px, 7vw, 88px) clamp(16px, 3vw, 32px); background: radial-gradient(60% 80% at 85% 0%, var(--brand-soft), transparent 70%); }
.wk-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center; }
.wk-hero .lead { margin-top: 14px; }
.wk-count { text-align: center; padding: 20px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.wk-count strong { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.wk-count span { display: block; margin-top: 6px; color: var(--text-3); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 760px) { .wk-hero__in { grid-template-columns: 1fr; } .wk-count { justify-self: start; } }

.wk-list-section { padding-top: clamp(20px, 3vw, 36px); }
.wk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: stretch; }
.wk-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; color: inherit; text-decoration: none; transition: border-color 0.18s, transform 0.18s; }
.wk-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.wk-card__img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.wk-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-card__noimg { display: grid; place-items: center; height: 100%; color: var(--text-3); }
.wk-card__noimg svg { width: 56px; height: 56px; }
.wk-card__count { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; border-radius: 99px; font-size: 0.74rem; font-weight: 600; background: rgba(5, 4, 10, 0.72); color: #fff; backdrop-filter: blur(4px); }
.wk-card__body { padding: 16px 18px 18px; display: grid; gap: 8px; flex: 1; align-content: start; }
.wk-card__meta { margin-top: auto; }
.wk-card__body h3 { font-size: 1.05rem; line-height: 1.3; }
.wk-card__body p { color: var(--text-2); font-size: 0.92rem; }
.wk-card__meta { color: var(--text-3); font-size: 0.8rem; letter-spacing: 0.03em; text-transform: uppercase; font-weight: 600; }
.wk-empty { text-align: center; padding: clamp(32px, 8vw, 72px) 0; display: grid; gap: 20px; justify-items: center; }
.wk-cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }

.wk-single { padding-block: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 44px); }
.wk-single__in { max-width: 760px; }
.wk-back { display: inline-block; padding-block: 9px; margin-bottom: 11px; color: var(--text-3); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.wk-back:hover { color: var(--brand-ink); }
.wk-single h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); line-height: 1.15; }
.wk-single__date { margin-top: 10px; color: var(--text-3); font-size: 0.88rem; }
.wk-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 26px 0 8px; }
.wk-shot { margin: 0; }
.wk-shot--lead { grid-column: 1 / -1; }
.wk-shot__btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.wk-shot__btn:hover { border-color: var(--brand); }
.wk-shot__btn img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.wk-shot--lead .wk-shot__btn img { aspect-ratio: 16 / 10; }
.wk-shot figcaption { margin-top: 7px; color: var(--text-3); font-size: 0.84rem; }
.wk-single__text { margin-top: 24px; display: grid; gap: 14px; color: var(--text-2); font-size: 1.02rem; line-height: 1.7; }
.wk-single__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.wk-more__title { font-size: 1.3rem; margin-bottom: 18px; }

.wk-lightbox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: clamp(16px, 4vw, 40px); background: rgba(5, 4, 10, 0.94); backdrop-filter: blur(6px); }
/* The photo fits the screen whatever its shape: the figure is the full height of the
   viewer, so max-height has something to measure against. */
.wk-lightbox__fig { margin: 0; display: grid; justify-items: center; align-content: center; gap: 10px; width: 100%; height: 100%; min-height: 0; }
.wk-lightbox img { max-width: 100%; max-height: calc(100dvh - 2 * clamp(16px, 4vw, 40px) - 40px); object-fit: contain; border-radius: var(--radius-sm); }
.wk-lightbox__cap { color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.wk-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; z-index: 1; }
.wk-lightbox__nav:hover { background: rgba(255, 255, 255, 0.16); }
.wk-lightbox__nav--prev { left: 12px; }
.wk-lightbox__nav--next { right: 12px; }
@media (max-width: 640px) { .wk-lightbox__nav { width: 40px; height: 52px; font-size: 1.5rem; } .wk-lightbox__nav--prev { left: 6px; } .wk-lightbox__nav--next { right: 6px; } }
.wk-lightbox__close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.wk-lightbox__close:hover { background: rgba(255, 255, 255, 0.16); }

/* the strip on the home page */
.home-work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.home-work__count { display: flex; align-items: baseline; gap: 10px; }
.home-work__count strong { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--brand-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.home-work__count span { color: var(--text-3); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* "do I come to you?" on the mobile card */
.cover { margin: 14px 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); display: grid; gap: 8px; }
.cover label { font-weight: 600; font-size: 0.92rem; }
.cover__row { display: flex; flex-wrap: wrap; gap: 8px; }
.cover__row input { flex: 1 1 140px; min-width: 0; width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; text-transform: uppercase; }
.cover__row input::placeholder { text-transform: none; }
.cover__row input:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.cover__out { font-size: 0.9rem; color: var(--text-2); }
.cover__out:empty { display: none; }
.cover__out.is-yes { color: var(--ok); }
.cover__out.is-no { color: var(--text-2); }


/* ---------- remapping ---------- */
.rm-hero { padding-block: clamp(40px, 7vw, 88px) clamp(20px, 3vw, 36px); background: radial-gradient(60% 80% at 80% 0%, var(--brand-soft), transparent 70%); }
.rm-hero__in { max-width: 780px; }
.rm-hero__intro { margin-top: 16px; display: grid; gap: 12px; }
.rm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.rm-tool { margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); font-size: 0.94rem; }
.rm-stages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; align-items: start; }
.rm-stage { display: grid; gap: 8px; }
.rm-stage h3 { font-family: var(--font-display); font-size: 1.15rem; }
.rm-stage__price { font-weight: 700; color: var(--brand-ink); }
.rm-stage p { color: var(--text-2); }
.rm-stage__gains { font-size: 0.9rem; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.rm-steps { margin-top: 8px; }
.rm-honest { display: grid; gap: 12px; max-width: 70ch; }
.rm-honest li { position: relative; padding-left: 26px; color: var(--text-2); line-height: 1.65; }
.rm-honest li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 3px; background: var(--brand); }
.rm-enquire__in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px 56px; align-items: start; }
@media (max-width: 900px) { .rm-enquire__in { grid-template-columns: 1fr; } }
.rm-form-card { display: grid; gap: 14px; }
.rm-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.rm-thanks { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 18px 6px; }
.rm-thanks__tick { width: 54px; height: 54px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.rm-thanks__tick svg { width: 28px; height: 28px; }
.rm-thanks h3 { font-family: var(--font-display); font-size: 1.3rem; }
.rm-thanks p { color: var(--text-2); }

/* the band on the home page */
.home-remap__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.home-remap__in p { color: var(--text-2); max-width: 56ch; margin-top: 6px; }


/* ---------- the reg check on the home page ---------- */
.regcheck { padding-block: clamp(26px, 4vw, 42px); background: var(--bg-2); border-block: 1px solid var(--line); }
.regcheck__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 36px; align-items: center; }
.regcheck__copy h2 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
.regcheck__copy p { color: var(--text-2); margin-top: 6px; max-width: 54ch; }
.regcheck__form { display: flex; gap: 10px; align-items: stretch; }
.regcheck__form .plate { min-width: 200px; }
.regcheck__out { grid-column: 1 / -1; }
.regcheck__out:empty { display: none; }
.regcheck__out.is-plain { color: var(--text-2); display: grid; gap: 12px; justify-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.regcheck__out.is-found { display: grid; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rc-head .plate { padding: 2px 0; }
.rc-head .plate span:not(.plate__band) { padding: 6px 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.1em; color: var(--plate-ink); }
.rc-head strong { font-size: 1.05rem; }
.rc-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.rc-row { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--line-strong); }
.rc-row__k { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.rc-row__v { font-weight: 600; }
.rc-row__v small { display: block; font-weight: 400; color: var(--text-3); font-size: 0.82rem; margin-top: 2px; }
.rc-row.is-ok { border-left-color: var(--ok); }
.rc-row.is-warn { border-left-color: var(--warn); }
.rc-row.is-bad { border-left-color: var(--bad); }
.rc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rc-note { color: var(--text-3); font-size: 0.88rem; }
@media (max-width: 760px) {
  .regcheck__in { grid-template-columns: 1fr; }
  .regcheck__form { flex-wrap: wrap; }
  .regcheck__form .plate { flex: 1; min-width: 160px; }
}

/* ---------- help chat ---------- */
/* Sits under the booking sheet (z 60) on purpose: when the chat opens the booking form,
   the form has to come over the top of it. */
.kchat { position: fixed; right: clamp(12px, 3vw, 24px); bottom: calc(clamp(12px, 3vw, 24px) + env(safe-area-inset-bottom, 0px)); z-index: 55; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.kchat > * { pointer-events: auto; }

.kchat__launch { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--brand-lo); border-radius: 999px; padding: 11px 17px 11px 13px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-lo) 100%); color: #fff; font-weight: 650; font-size: 0.95rem; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.kchat__launch:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5); }
.kchat__launch:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 3px; }
.kchat__launchIco { display: grid; place-items: center; width: 22px; height: 22px; }
.kchat__launchIco svg { width: 22px; height: 22px; }
.kchat.is-open .kchat__launch { display: none; }

.kchat__panel { width: min(92vw, 384px); max-height: min(72vh, 580px); display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow); }
.kchat__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 12px 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.kchat__badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); }
.kchat__badge svg { width: 19px; height: 19px; }
.kchat__headText { min-width: 0; }
.kchat__headText h2 { font-size: 1rem; }
.kchat__headText p { font-size: 0.74rem; color: var(--text-3); letter-spacing: 0.02em; margin-top: 2px; }
.kchat__x { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--text-2); }
.kchat__x:hover { background: var(--surface-3); color: var(--text); }
.kchat__x svg { width: 17px; height: 17px; }

.kchat__log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px; display: flex; flex-direction: column; gap: 9px; -webkit-overflow-scrolling: touch; }
.kchat__turn { max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: 0.93rem; line-height: 1.5; }
.kchat__turn p + p { margin-top: 7px; }
.kchat__turn.is-them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.kchat__turn.is-me { align-self: flex-end; background: var(--brand-soft); border: 1px solid var(--brand-lo); color: var(--text); border-bottom-right-radius: 5px; }
.kchat__small { font-size: 0.74rem; color: var(--text-3); line-height: 1.45; margin: -2px 0 4px; }
.kchat__note { font-size: 0.8rem; color: var(--warn); background: var(--warn-soft); border-radius: 9px; padding: 7px 10px; }

.kchat__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.kchat__chip { border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 12px; background: var(--surface-2); color: var(--text-2); font-size: 0.82rem; text-align: left; }
.kchat__chip:hover { border-color: var(--brand); color: var(--text); }

.kchat__handoff { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.kchat__btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; background: var(--surface-3); color: var(--text); font-size: 0.85rem; font-weight: 600; }
.kchat__btn svg { width: 16px; height: 16px; flex: none; }
.kchat__btn:hover { border-color: var(--brand); }
.kchat__btn--wa { background: rgba(37, 211, 102, 0.14); border-color: rgba(37, 211, 102, 0.4); }
.kchat__btn--go { background: var(--brand); border-color: var(--brand-lo); color: #fff; }

.kchat__typing { display: flex; gap: 4px; align-items: center; padding: 13px; }
.kchat__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: kchatDot 1.2s infinite ease-in-out; }
.kchat__typing span:nth-child(2) { animation-delay: 0.15s; }
.kchat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes kchatDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.kchat__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; padding: 10px; border-top: 1px solid var(--line); background: var(--surface-2); }
.kchat__form textarea { width: 100%; min-height: 42px; max-height: 120px; resize: none; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 11px; font-size: 0.93rem; line-height: 1.4; }
.kchat__form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.kchat__send { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--brand-lo); border-radius: 11px; background: var(--brand); color: #fff; }
.kchat__send svg { width: 18px; height: 18px; }
.kchat__send:disabled { opacity: 0.5; }

/* On a phone the panel is the screen - a 380px card floating over a 390px viewport is
   neither one thing nor the other. */
@media (max-width: 520px) {
  .kchat { right: 10px; left: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); align-items: stretch; }
  .kchat__launch { align-self: flex-end; }
  .kchat__panel { width: 100%; max-height: min(78vh, 620px); }
  .kchat__turn { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) {
  .kchat__launch { transition: none; }
  .kchat__launch:hover { transform: none; }
  .kchat__typing span { animation: none; opacity: 0.6; }
}

/* ---------- launch polish ---------- */
/* Menu links land the section heading below the sticky header, not underneath it. */
section[id], [id="book"], .section[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }
/* Long words (an email address, a pasted link) wrap rather than push the page sideways. */
.footer__links a, .footer p, .summary__row strong, .summary__row .muted, .opt strong, .opt small { overflow-wrap: anywhere; }
.opt > div { min-width: 0; }
.svc, .svc > * { min-width: 0; }

/* A box with a problem is marked, not just described. */
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }
