/* ═══════════════════════════════════════════════════════════════════════════
   PaintROOM — single stylesheet.

   Replaces pr/shell/system/home/calc/blog/ref/jb/tabs/adm/seo.css. Those were
   layered so that system.css had to override the others with !important; here
   the cascade does that work by ordering alone, so there are no !important
   rules and every selector is declared exactly once.

   1 TOKENS      colours, spacing, radii
   2 BASE        reset, typography, focus
   3 LAYOUT      shell width, page rhythm, grids
   4 COMPONENTS  cards, buttons, fields, header, footer
   5 PAGES       home, calculator, blog, reference, jobboard, account, admin, seo
   6 SCENE       decorative SVG (homepage hero only)
   7 RESPONSIVE  breakpoints and print
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 1 TOKENS ──────────────────────────────────────────────────────────── */

:root {
  --bg: #eef0f4;
  --ink: #1a1d23;
  --dim: #5b6472;
  --faint: #8b95a3;
  --line: rgb(0 0 0 / .08);
  --card: 255 255 255;
  --card-a: .72;
  --lo: #ffffff;
  --hi: #c8ccd4;
  --accent: #ff6b00;

  --r: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2,0,0,1);

  --gap-xs: 8px;
  --gap-sm: 14px;
  --gap-md: 22px;
  --gap-lg: 36px;
  --gap-xl: 56px;
  --shell-w: min(92%, 1400px);

  /* Flat card treatment — the neumorphic shadows were replaced during the
     redesign; these are the values the site actually uses now. */
  --card-shadow: 0 1px 2px rgb(0 0 0 / .18), 0 10px 28px -18px rgb(0 0 0 / .5);
  /* Inset shading is still used for inputs and pressed states. */
  --inset: inset 3px 3px 7px var(--hi), inset -3px -3px 7px var(--lo);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a0f18;
  --ink: #e8edf4;
  --dim: #9aa7b8;
  --faint: #6b7889;
  --line: rgb(255 255 255 / .08);
  --card: 18 24 34;
  --card-a: .72;
  --lo: #1a2230;
  --hi: #05080d;
  --card-shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 28px -18px rgb(0 0 0 / .75);
  color-scheme: dark;
}

/* ─── 2 BASE ────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.h1 {
  margin: 0 0 var(--gap-xs);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  letter-spacing: -.025em;
  line-height: 1.15;
}

.h2 {
  margin: 0 0 var(--gap-md);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  letter-spacing: -.025em;
  font-weight: 700;
}

.muted { margin: 6px 0 0; font-size: 12px; color: var(--dim); }
.lede  { margin: -12px 0 var(--gap-md); color: var(--dim); font-size: 15px; }
.eyebrow {
  margin: 0 0 var(--gap-xs); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.big { margin: 0; font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }

/* ─── 3 LAYOUT ──────────────────────────────────────────────────────────── */

.wrap, .site-head-in, .site-foot-in, .site-foot-bottom, .pr-band, .nav-in, .foot-in {
  width: var(--shell-w);
  margin-inline: auto;
}

.wrap { position: relative; z-index: 1; padding-bottom: 72px; }
main.wrap { padding-block: var(--gap-lg) var(--gap-xl); }
main.wrap > .muted:first-child { margin-top: 0; }

.layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 26px; align-items: start; }
.cols   { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 20px; align-items: start; }
.cols2  { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: var(--gap-sm); }
.col-a, .col-b { display: grid; gap: 16px; }

/* Every card grid shares one gap. */
.grid, .bp-grid, .proj-grid, .rev-grid, .jb-grid, .tile-grid,
.hl-grid, .step-list, .price-grid, .why-grid {
  gap: var(--gap-sm);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.home > section, .ref-group { margin-bottom: var(--gap-xl); }
.home > section:last-child { margin-bottom: 0; }

/* ─── 4 COMPONENTS ──────────────────────────────────────────────────────── */

/* Cards — one surface, one radius, one shadow, declared once. */
.card, .bp, .proj, .jb-card, .tile, .cat, .adm-kpi, .price-card, .quick-card, .plan {
  background: rgb(var(--card));
  border: 0;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}
.card { padding: 20px; }

.tile {
  display: grid; gap: 12px; padding: 18px;
  color: var(--ink); text-decoration: none;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.tile:hover { transform: translateY(-2px); }
.tile span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; box-shadow: var(--inset); }
.tile b { font-size: 14px; font-weight: 650; }

/* Buttons */
.cta, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff6b00, #ff8f3d);
  color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 14px 34px -12px rgb(255 107 0 / .7);
  transition: transform .18s var(--ease), filter .18s var(--ease);
}
.cta { height: 52px; padding: 0 28px; font-size: 15px; font-weight: 650; }
.btn-primary { height: 58px; padding: 0 34px; font-size: 16px; }
.cta:hover, .btn-primary:hover { filter: brightness(1.07); transform: translateY(-2px); }
.cta:active, .btn-primary:active { transform: translateY(0) scale(.99); }

.btn-sm {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border-radius: 11px;
  background: rgb(var(--card));
  box-shadow: var(--card-shadow);
  color: var(--ink); text-decoration: none;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.btn-sm:hover { color: var(--accent); }

.btn-ghost {
  display: inline-flex; align-items: center; height: 58px; padding: 0 30px;
  border: 1px solid rgb(255 255 255 / .22); border-radius: 14px;
  background: rgb(255 255 255 / .06);
  color: #fff; font-size: 15px; font-weight: 550; text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background .18s var(--ease);
}
.btn-ghost:hover { background: rgb(255 255 255 / .12); }

.btn-ghost-sm {
  display: block; width: 100%; padding: 12px 18px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: border-color .18s, background .18s;
}
.btn-ghost-sm:hover { border-color: var(--accent); background: rgb(var(--card)); }

.ghost {
  width: 100%; height: 44px; margin-top: 10px;
  border: 0; border-radius: 13px;
  background: rgb(var(--card));
  box-shadow: var(--card-shadow);
  color: var(--dim); font: inherit; font-size: 14px; font-weight: 550; cursor: pointer;
}
.ghost:hover { color: var(--ink); }
.ghost:active { box-shadow: var(--inset); }

.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 11px; border: 0;
  background: rgb(var(--card));
  box-shadow: var(--card-shadow);
  color: var(--dim); cursor: pointer;
  transition: box-shadow .18s var(--ease), color .18s var(--ease);
}
.icon-btn:hover { color: var(--ink); }
.icon-btn:active { box-shadow: var(--inset); }

.link { background: none; border: 0; color: var(--dim); font: inherit; font-size: 12px; cursor: pointer; }
.link:hover { color: var(--accent); }

/* Form fields — one treatment for every input on the site. */
.f { display: grid; gap: 6px; }
.f > span { font-size: 12px; color: var(--dim); font-weight: 550; }

.f input, .f select, .qty, #q, #city, .ref-copy input {
  border: 0;
  border-radius: var(--r-sm);
  background: rgb(var(--card));
  color: var(--ink);
  font: inherit; font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.f input, .f select { height: 44px; padding: 0 12px; }
.f select { cursor: pointer; }
.f input:focus, .f select:focus, #q:focus, #city:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.check { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

/* Chips, badges, avatars */
.chip, .avatar {
  background: rgb(var(--card));
  border-radius: var(--r);
  box-shadow: var(--card-shadow);
}
.chip { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; flex-shrink: 0; }
.chip.sm { width: 42px; height: 42px; border-radius: 13px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.badge {
  justify-self: start; font-size: 11px; font-weight: 700; color: var(--accent);
  background: rgb(255 107 0 / .12); padding: 4px 10px; border-radius: 8px; margin: 2px 0 12px;
}

/* Progress */
.track { height: 9px; margin: 18px 0; border-radius: 99px; box-shadow: var(--inset); overflow: hidden; }
.fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #ff8f3d); transition: width .5s var(--ease); }

/* Disclosure — one rule for calculator categories and FAQ alike. */
.cat { overflow: hidden; margin-bottom: var(--gap-xs); }
.cat > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 17px; font-size: 14.5px; font-weight: 600;
  cursor: pointer; list-style: none;
}
.cat > summary::-webkit-details-marker { display: none; }
.cat > summary::after {
  content: ''; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s;
}
.cat[open] > summary::after { transform: rotate(-135deg); }
.cat-sum { font-style: normal; font-size: 13px; color: var(--accent); font-weight: 700; margin-left: auto; margin-right: 8px; }

/* Site header — the solid bar used on every page except the homepage. */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgb(var(--card) / .82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-head-in { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { font-size: 18px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand b { font-weight: 800; }
.brand em { font-style: normal; color: var(--accent); }
.brand-sub { display: block; font-size: 11px; color: var(--faint); font-weight: 400; margin-top: 2px; }

.site-nav { display: flex; gap: 4px; margin-inline: auto; }
.site-nav a {
  padding: 9px 14px; border-radius: 10px;
  color: var(--dim); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.site-nav a:hover { color: var(--ink); background: rgb(var(--card) / .6); }
.site-nav a.on { color: var(--accent); background: rgb(255 107 0 / .12); font-weight: 650; }
.site-head-act { display: flex; align-items: center; gap: 10px; }

/* Site footer */
.site-foot { margin-top: 80px; border-top: 1px solid var(--line); background: rgb(var(--card) / .4); }
.site-foot-in {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px; padding: 48px 0 36px;
}
.site-foot-in > div p { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--dim); max-width: 32ch; }
.site-foot-in nav { display: grid; gap: 10px; align-content: start; }
.site-foot-in nav b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.site-foot-in nav a { font-size: 13.5px; color: var(--dim); text-decoration: none; }
.site-foot-in nav a:hover { color: var(--accent); }
.site-foot-bottom { padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }

/* ─── 5 PAGES ───────────────────────────────────────────────────────────── */

/* ── Home: hero over a photograph ─────────────────────────────────────── */
.home { padding-top: 8px; }

.hero-full {
  position: relative; min-height: 100vh;
  margin: 0 calc(50% - 50vw); width: 100vw;
  display: grid; place-items: center; text-align: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(6 10 18 / .82) 0%, rgb(6 10 18 / .55) 45%, rgb(6 10 18 / .88) 100%),
    radial-gradient(60% 50% at 70% 30%, rgb(255 107 0 / .18), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; padding: 120px 20px 80px; max-width: 1100px; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 20px; margin-bottom: 40px;
  border: 1px solid rgb(255 107 0 / .5); border-radius: 999px;
  background: rgb(255 107 0 / .08);
  color: #ffb37a; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.hero-pill::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}

.wordmark {
  margin: 0 0 26px;
  font-size: clamp(3rem, 1.5rem + 9vw, 8.5rem);
  line-height: .92; letter-spacing: -.045em; font-weight: 800; color: #fff;
}
.wordmark em {
  font-style: normal;
  background: linear-gradient(100deg, #ff6b00, #ff9d4d 55%, #ffd9a8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* line-height is pinned: the fluid clamp() size used to let this line's box
   grow into the one below it on wide viewports. */
.hero-tag { margin: 0 0 14px; line-height: 1.35; font-size: clamp(1rem, .9rem + .8vw, 1.6rem); color: #fff; font-weight: 500; }
.hero-tag span { color: rgb(255 255 255 / .62); }
.hero-sub { margin: 0 0 40px; line-height: 1.4; font-size: 13.5px; color: rgb(255 255 255 / .5); }

.hero-btns { display: flex; flex-wrap: wrap; gap: var(--gap-sm); justify-content: center; margin-bottom: 52px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-badges span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1px solid rgb(255 255 255 / .14); border-radius: 999px;
  background: rgb(255 255 255 / .05); color: rgb(255 255 255 / .82); font-size: 13px;
  backdrop-filter: blur(8px);
}

.scroll-hint {
  position: absolute; bottom: 28px; left: 0; right: 0; z-index: 1;
  text-align: center; font-size: 11px; letter-spacing: .3em; color: rgb(255 255 255 / .35);
}

/* Overlay navigation */
.nav-over { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.nav-in { position: relative; display: flex; align-items: center; gap: 24px; height: 72px; }
.nav-over .nav-in { height: 88px; }
.nav-over .brand { color: #fff; font-size: 19px; }
.nav-over .brand b { color: #fff; }
.nav-over .brand-sub { color: rgb(255 255 255 / .5); }
.nav-act { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-pill {
  display: flex; gap: 4px; padding: 6px;
  border: 1px solid rgb(255 255 255 / .1); border-radius: 999px;
  background: rgb(255 255 255 / .06); backdrop-filter: blur(14px);
}
.nav-pill a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 999px;
  color: rgb(255 255 255 / .72); font-size: 14px; text-decoration: none;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.nav-pill a:hover { color: #fff; background: rgb(255 255 255 / .08); }
.nav-pill a.on { color: var(--accent); background: rgb(255 107 0 / .14); }
.nav-over .btn-sm {
  background: rgb(255 255 255 / .08);
  border: 1px solid rgb(255 255 255 / .14);
  box-shadow: none; color: #fff; backdrop-filter: blur(10px);
}

/* Home: instant estimate */
.quick-head { text-align: center; margin-bottom: var(--gap-md); }
.quick-head .h2 { margin-bottom: 6px; }
.quick-card { padding: var(--gap-lg); }
.quick-fields { display: grid; gap: var(--gap-md); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.quick-fields .f > span {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--dim); font-weight: 600;
}
.quick-out {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--gap-md);
  margin-top: var(--gap-lg); padding-top: var(--gap-lg); border-top: 1px solid var(--line);
}
.quick-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.quick-sum { margin: 4px 0 2px; font-size: clamp(30px, 5vw, 42px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.quick-note { font-size: 13px; color: var(--dim); }

/* Home: why / steps / projects / reviews / pricing */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.why-card { padding: var(--gap-lg); }
.why-n { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.02em; color: var(--accent); line-height: 1; }
.why-card b { display: block; margin: 10px 0 6px; font-size: 16px; }
.why-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--dim); }

.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step-list .card { display: grid; gap: 10px; align-content: start; }
.step-n {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 11px; font-weight: 750; font-size: 14px; color: var(--accent);
  box-shadow: var(--inset);
}
.step-list b { font-size: 15px; }
.step-list p { margin: 0; font-size: 13.5px; color: var(--dim); line-height: 1.55; }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 0; }
.proj { display: grid; gap: 8px; padding: 0; overflow: hidden; }
.proj img, .proj-ph { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: rgb(var(--card)); }
.proj-ph {
  background: repeating-linear-gradient(135deg,
    rgb(var(--card)) 0 14px,
    color-mix(in srgb, rgb(var(--card)) 92%, var(--accent)) 14px 28px);
}
.proj-txt { padding: 14px 16px 18px; display: grid; gap: 5px; }
.proj-txt b { font-size: 14.5px; }
.proj-txt span { font-size: 12.5px; color: var(--dim); }

.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rev { display: grid; gap: 12px; }
.rev-stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; }
.rev p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.rev-who { font-size: 12.5px; color: var(--faint); }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.plan { padding: var(--gap-lg); position: relative; }
.plan-best { outline: 1px solid var(--accent); }
.plan-tag {
  position: absolute; top: -11px; left: var(--gap-lg);
  padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.plan-name { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.plan-price { margin: 8px 0 var(--gap-md); font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.plan-price span { font-size: 15px; font-weight: 500; color: var(--dim); }
.plan ul { list-style: none; margin: 0 0 var(--gap-lg); padding: 0; }
.plan li { position: relative; padding: 7px 0 7px 24px; font-size: 14px; line-height: 1.5; border-bottom: 1px solid var(--line); }
.plan li:last-child { border-bottom: 0; }
.plan li::before {
  content: ''; position: absolute; left: 2px; top: 13px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan-cta { width: 100%; }

.faq-a { padding: 0 17px 16px; font-size: 14px; line-height: 1.6; color: var(--dim); }

.final { text-align: center; padding: 48px 24px; }
.final h2 { margin: 0 0 10px; font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); letter-spacing: -.02em; }
.final p { margin: 0 0 26px; color: var(--dim); font-size: 14.5px; }

.trust { list-style: none; margin: 44px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 40px; }
.trust li { display: grid; gap: 3px; }
.trust b { font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.trust span { font-size: 12px; color: var(--faint); }

/* ── Calculator ───────────────────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 20px; align-items: start; }
.calc-form { display: grid; gap: 16px; }
.calc-out { display: grid; gap: 16px; position: sticky; top: 16px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--gap-sm); }
.cat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--gap-sm); }
.cats { display: grid; gap: var(--gap-xs); }
.items { list-style: none; margin: 0; padding: 4px 16px 14px; display: grid; gap: 2px; }
.item { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; }
.item-lbl { display: flex; align-items: center; gap: 9px; flex: 1; cursor: pointer; color: var(--ink); }
.item-lbl input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.unit { font-size: 11px; color: var(--faint); flex-shrink: 0; }
.qty { width: 74px; height: 34px; padding: 0 9px; border-radius: 9px; font-size: 13px; }

.out .total { margin: 4px 0 0; font-size: 38px; font-weight: 750; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.sums { margin: 20px 0; display: grid; gap: 9px; }
.sums > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.sums dt { color: var(--dim); margin: 0; }
.sums dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }

.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 380px; overflow-y: auto; }
.lines li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; font-size: 13px; align-items: baseline; }
.l-name { grid-column: 1; grid-row: 1; font-weight: 550; }
.l-qty  { grid-column: 1; grid-row: 2; font-size: 11px; color: var(--faint); }
.l-cost { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Blog ─────────────────────────────────────────────────────────────── */
.blog-head { padding: 0 0 var(--gap-md); margin-bottom: var(--gap-md); border-bottom: 1px solid var(--line); }
.blog-head h1 { margin: 0 0 var(--gap-xs); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); letter-spacing: -.025em; line-height: 1.15; }
.blog-head .muted { margin: 6px 0 0; }
.blog-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-sm); margin-top: var(--gap-md); }
#q { flex: 1; min-width: 220px; max-width: 420px; height: 46px; padding: 0 16px; }

.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 0; }
.blog-head + .bp-grid, .blog-head + .jb-grid { margin-top: var(--gap-md); }
.bp { padding: 0; overflow: hidden; display: grid; align-content: start; }
.bp img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: rgb(var(--card)); }
.bp-txt { padding: 16px 18px 20px; display: grid; gap: 8px; }
.bp-date { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.bp-title { font-size: 15.5px; font-weight: 650; line-height: 1.35; color: var(--ink); text-decoration: none; }
.bp-title:hover { color: var(--accent); }
.bp-desc { margin: 0; font-size: 13px; line-height: 1.55; color: var(--dim);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.post { max-width: 780px; }
.back { display: inline-block; margin: 20px 0 26px; font-size: 13px; color: var(--dim); text-decoration: none; }
.back:hover { color: var(--accent); }
.post-h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.7rem); margin-bottom: 18px; }
.post-hero { width: 100%; border-radius: var(--r); margin: 26px 0; display: block; }
.post-body { line-height: 1.75; font-size: 15px; }
.post-intro { margin: 0 0 22px; font-size: 16px; color: var(--ink); }
.post-body h2 { margin: 30px 0 12px; font-size: 1.25rem; letter-spacing: -.02em; }
.post-body p { margin: 0 0 14px; color: var(--dim); }
.tags { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--gap-xs); }
.tags li, .jb-meta li {
  font-size: 12px; padding: 6px 12px; border-radius: 9px;
  color: var(--dim); background: rgb(var(--card)); box-shadow: var(--card-shadow);
}

/* ── Reference ────────────────────────────────────────────────────────── */
.ref-h1 { margin-top: 26px; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem); }
.crumbs { padding: 22px 0 4px; font-size: 13px; color: var(--faint); }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tile-lnk { display: grid; gap: 5px; padding: 16px 18px; text-decoration: none; color: var(--ink); transition: transform .18s var(--ease); }
.tile-lnk:hover { transform: translateY(-2px); color: var(--accent); }
.tile-lnk b { font-size: 14.5px; font-weight: 650; }
.tile-lnk span { font-size: 12px; color: var(--faint); }
.ref-group .h2 { text-transform: capitalize; }
.ref-h3 { margin: 10px 0 4px; font-size: 15px; font-weight: 650; }
.ref-group .price-card + .price-card { margin-top: 12px; }

/* ── Job board ────────────────────────────────────────────────────────── */
#city { height: 46px; padding: 0 14px; cursor: pointer; }
.jb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 0; }
.jb-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 20px; }
.jb-title { font-size: 15.5px; font-weight: 650; line-height: 1.35; color: var(--ink); text-decoration: none; padding-right: 62px; }
.jb-title:hover { color: var(--accent); }
.jb-desc { margin: 0; font-size: 13px; line-height: 1.55; color: var(--dim);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jb-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-top: 2px; }
.jb-budget { font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.jb-place { font-size: 11.5px; color: var(--faint); }
.jb-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: #e11d48; padding: 4px 9px; border-radius: 7px;
}
.jb-detail { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: var(--gap-md); align-items: start; }
.jb-side { display: grid; gap: var(--gap-sm); position: sticky; top: 16px; }
.jb-meta { list-style: none; margin: 0 0 var(--gap-md); padding: 0; display: flex; flex-wrap: wrap; gap: var(--gap-xs); }
.jb-meta .urgent { color: #fff; background: #e11d48; box-shadow: none; font-weight: 650; }
.jb-imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.jb-imgs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 13px; display: block; }
.jb-c { display: block; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; margin-bottom: 6px; }
.jb-c:hover { text-decoration: underline; }

/* ── Account ──────────────────────────────────────────────────────────── */
.topbar { display: flex; align-items: center; gap: 10px; height: 64px; font-size: 14px; }
.sep { color: var(--faint); }
.crumb { color: var(--dim); }
.tools-right { margin-left: auto; display: flex; gap: var(--gap-xs); }

.rail { display: grid; gap: var(--gap-xs); }
.me { display: flex; align-items: center; gap: 11px; padding: 4px 2px 2px; }
.me-txt { min-width: 0; }
.me-name { margin: 0; font-weight: 650; font-size: 14px; }
.me-mail { margin: 2px 0 0; font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav { display: grid; gap: 6px; }
.nav-i {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: 13px;
  background: rgb(var(--card)); box-shadow: var(--card-shadow);
  color: var(--dim); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: box-shadow .2s var(--ease), color .2s var(--ease);
}
.nav-i:hover { color: var(--ink); }
.nav-i.is-on { color: var(--ink); font-weight: 650; box-shadow: var(--inset); }
.nav-i.is-on::before {
  content: ''; width: 3px; height: 18px; border-radius: 99px;
  background: var(--accent); margin-left: -6px; flex-shrink: 0;
}

.hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--gap-sm); }
.ref { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); transition: transform .2s var(--ease); }
.ref:hover { transform: translateY(-2px); }
.ref-txt { flex: 1; min-width: 0; }
.ref-txt b { display: block; font-size: 14px; }
.ref-txt i { display: block; font-style: normal; font-size: 12px; color: var(--dim); margin-top: 2px; }
.chev { color: var(--faint); flex-shrink: 0; }

.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.q-row { display: flex; align-items: center; gap: var(--gap-sm); padding: 16px 18px; }
.q-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.q-main a { text-decoration: none; color: inherit; }
.q-main a:hover b { color: var(--accent); }
.q-main b { font-size: 14.5px; font-weight: 650; }
.q-main span { font-size: 12px; color: var(--faint); }
.q-sum { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.q-del {
  width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent;
  color: var(--faint); font-size: 20px; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.q-del:hover { color: #e11d48; background: rgb(225 29 72 / .1); }

.ref-copy { display: flex; gap: 10px; }
.ref-copy input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; font-size: 13px; }
.ref-stats { display: flex; gap: 32px; margin-top: 6px; }
.ref-stats div { display: grid; gap: 2px; }
.ref-stats b { font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ref-stats span { font-size: 12px; color: var(--faint); }

/* ── Admin ────────────────────────────────────────────────────────────── */
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: var(--gap-sm); }
.adm-kpi { display: grid; gap: var(--gap-xs); padding: 18px; }
.adm-kpi-l { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.adm-kpi b { font-size: 26px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.adm-note { margin: 0 0 12px; font-size: 12.5px; }
.adm-table-wrap { padding: 4px 18px 10px; overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th { text-align: left; padding: 13px 10px 10px; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 700; white-space: nowrap; }
.adm-table td { padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.adm-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-table th:last-child, .adm-table td:last-child { text-align: right; }
.adm-table a { color: var(--ink); text-decoration: none; }
.adm-table a:hover { color: var(--accent); }
.adm-tag { font-size: 11px; font-weight: 650; padding: 3px 9px; border-radius: 7px; background: rgb(var(--card)); color: var(--dim); box-shadow: var(--card-shadow); }
.adm-tag.ok { color: #10b981; }
.adm-links { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-links .svc { display: inline-block; }

/* ── SEO landings ─────────────────────────────────────────────────────── */
.seo-hero { padding: 0 0 var(--gap-md); margin-bottom: var(--gap-md); border-bottom: 1px solid var(--line); max-width: 780px; }
.seo-hero .hero-lede { margin: 6px 0 0; }
.hero-lede { font-size: clamp(.98rem, .93rem + .3vw, 1.12rem); line-height: 1.6; color: var(--dim); max-width: 56ch; }
.hl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); }
.hl { display: grid; gap: 6px; }
.hl b { font-size: 14.5px; }
.hl span { font-size: 13px; color: var(--dim); line-height: 1.5; }

.price-card { padding: 8px 20px 18px; }
.price { width: 100%; border-collapse: collapse; font-size: 14px; }
.price th { text-align: left; padding: 14px 0 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.price th:last-child, .price td:last-child { text-align: right; }
.price td { padding: 13px 0; border-top: 1px solid var(--line); }
.price-v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-v span { display: block; font-size: 11px; font-weight: 400; color: var(--faint); }
.price-note { margin: 14px 0 0; font-size: 12px; color: var(--faint); }

.seo-body { line-height: 1.7; font-size: 14.5px; }
.seo-body p { margin: 0 0 14px; color: var(--dim); }
.seo-body p:last-child { margin-bottom: 0; }

.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 10px; }
.svc {
  display: block; padding: 13px 16px; border-radius: 13px;
  background: rgb(var(--card)); box-shadow: var(--card-shadow);
  color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 550;
}
a.svc:hover { color: var(--accent); }
.related .rel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.rel-list a { font-size: 13px; color: var(--dim); text-decoration: none; }
.rel-list a:hover { color: var(--accent); }

/* ─── 6 SCENE ───────────────────────────────────────────────────────────── */
/* Decorative SVG. It belongs to the homepage hero only — everywhere else it
   bled through the cards and read as dirt, so it is not painted at all. */

.scene {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; color: #22303f; pointer-events: none; opacity: .85;
}
body:not(.has-hero) .scene,
body:has(.hero-full) .scene { display: none; }

[data-theme="dark"] .scene { color: #b9d4f0; }
.sky-a { stop-color: #f2f5f9; }
.sky-b { stop-color: #e6eaf1; }
[data-theme="dark"] .sky-a { stop-color: #0b1524; }
[data-theme="dark"] .sky-b { stop-color: #060d18; }

.sun { transform-origin: 1180px 150px; animation: sun 18s ease-in-out infinite; }
@keyframes sun { 50% { transform: scale(1.12); } }

.city { animation: city 60s ease-in-out infinite; }
@keyframes city { 50% { transform: translateX(-26px); } }

.win { animation: win 7s ease-in-out infinite; mix-blend-mode: screen; }
.w1 { animation-duration: 6s; }
.w2 { animation-duration: 9s; animation-delay: 2.5s; }
.w3 { animation-duration: 11s; animation-delay: 5s; }
@keyframes win { 0%,45%,100% { opacity: .2 } 55%,85% { opacity: .85 } }

.scaffold { stroke-opacity: .28; transform-origin: 50% 100%; animation: sway 24s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(.25deg); } }

.roller { animation: roll 26s linear infinite; }
@keyframes roll {
  0% { transform: translate(0,0); opacity: 0 }
  6%,94% { opacity: 1 }
  100% { transform: translate(1640px,120px); opacity: 0 }
}

.tool { animation: rise linear infinite; opacity: .42; }
.t1 { --x: 180px;  animation-duration: 34s; animation-delay: -2s }
.t2 { --x: 620px;  animation-duration: 44s; animation-delay: -14s }
.t3 { --x: 980px;  animation-duration: 38s; animation-delay: -26s }
.t4 { --x: 1300px; animation-duration: 50s; animation-delay: -8s }
@keyframes rise {
  0%   { transform: translate(var(--x), 940px) rotate(0) }
  100% { transform: translate(calc(var(--x) + 60px), -80px) rotate(220deg) }
}

.drop { animation: fall linear infinite; opacity: .5; }
.d1 { animation-duration: 9s }
.d2 { animation-duration: 13s; animation-delay: -4s }
.d3 { animation-duration: 11s; animation-delay: -7s }
@keyframes fall {
  0% { transform: translateY(-40px); opacity: 0 }
  10%,90% { opacity: .5 }
  100% { transform: translateY(960px); opacity: 0 }
}

/* ─── 7 RESPONSIVE ──────────────────────────────────────────────────────── */

/* The overlay menu is centred independently of the brand and the account
   button, which otherwise pushed it ~200px to the left. */
@media (min-width: 1081px) {
  .nav-pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); margin: 0; }
}

@media (max-width: 1280px) { .cols { grid-template-columns: 1fr; } }

@media (max-width: 1200px) {
  .wrap, .nav-in, .foot-in { width: 100%; padding-inline: 16px; }
}

@media (max-width: 1100px) {
  .calc { grid-template-columns: 1fr; }
  .calc-out { position: static; }
}

@media (max-width: 1080px) { .nav-pill { display: none; } }

@media (max-width: 1000px) {
  .jb-detail { grid-template-columns: 1fr; }
  .jb-side { position: static; }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .site-head-act { margin-left: auto; }
}

@media (max-width: 820px) {
  .site-foot-in { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 640px) {
  .quick-out { flex-direction: column; align-items: stretch; }
  .quick-out .btn-primary { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .scene * { animation: none; }
  .cta, .btn-primary, .tile, .nav-i, .ref, .tile-lnk { transition: none; }
}

@media print {
  .scene, .topbar, .site-head, .nav-over, .calc-form,
  .cta, .btn-primary, .ghost, .link, .site-foot { display: none; }
  .calc { grid-template-columns: 1fr; }
  body { background: #fff; color: #000; }
}

/* ─── 8 LEGACY MARKUP ───────────────────────────────────────────────────── */
/* about / contact / privacy / reset carry an older hero and footer markup.
   Kept until those pages are moved onto .site-foot and .h1. */

/* Scoped: the account overview card is <section class="card hero">, and an
   unscoped .hero overrode its 20px card padding with 48px/56px. */
.hero:not(.card) { padding: 48px 0 56px; max-width: 780px; }
.hero-h1 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  line-height: 1.15; letter-spacing: -.025em; font-weight: 750;
}
.hero-h1 em { font-style: normal; color: var(--accent); }
.kicker {
  margin: 0 0 18px; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}

.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: 40px; }
.foot-in {
  display: flex; flex-wrap: wrap; gap: var(--gap-sm);
  align-items: center; justify-content: space-between;
  padding: 26px 0; font-size: 13px; color: var(--faint);
}
.foot-in nav { display: flex; gap: 20px; }
.foot-in a { color: var(--faint); text-decoration: none; }
.foot-in a:hover { color: var(--accent); }




/* ─── UNIFIED SHELL ─────────────────────────────────────────────────────────
   Every page now uses the homepage header. On the homepage it floats over the
   photograph; everywhere else .site-shell makes it a solid sticky bar, so the
   pill reads against the page background instead of a picture. */

.nav-over.site-shell {
  position: sticky;
  background: rgb(var(--card) / .88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-over.site-shell .nav-in { height: 72px; }
.nav-over.site-shell .brand,
.nav-over.site-shell .brand b { color: var(--ink); }
.nav-over.site-shell .brand-sub { color: var(--faint); }

.nav-over.site-shell .nav-pill {
  border-color: var(--line);
  background: rgb(var(--card) / .5);
}
.nav-over.site-shell .nav-pill a { color: var(--dim); }
.nav-over.site-shell .nav-pill a:hover { color: var(--ink); background: rgb(var(--card)); }
.nav-over.site-shell .nav-pill a.on { color: var(--accent); background: rgb(255 107 0 / .12); font-weight: 650; }

.nav-over.site-shell .btn-sm {
  background: rgb(var(--card));
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  color: var(--ink);
}
.nav-over.site-shell .icon-btn { color: var(--dim); }

/* One page-title block for every inner page: same size, same rule, same air. */
.page-head {
  padding: var(--gap-lg) 0 var(--gap-md);
  margin-bottom: var(--gap-lg);
  border-bottom: 1px solid var(--line);
}
.page-head > :first-child { margin-top: 0; }
.page-head h1, .page-head .h1 {
  margin: 0 0 var(--gap-xs);
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  font-weight: 750;
}
.page-head p, .page-head .muted, .page-head .lede {
  margin: 0;
  font-size: 15px;
  color: var(--dim);
}

/* The sticky bar must not hide anchor targets. */
:target { scroll-margin-top: 96px; }


/* TITLE BLOCK */
/* Three different classes were doing the same job with different sizes and
   spacing: .blog-head, .seo-hero, and the reference page's JS-built title.
   They are one block now, so every page opens the same way. */
.page-head, .blog-head, .seo-hero, .ref-head {
  padding: var(--gap-lg) 0 var(--gap-md);
  margin: 0 0 var(--gap-lg);
  border-bottom: 1px solid var(--line);
  max-width: none;
}
.page-head h1, .page-head .h1,
.blog-head h1, .blog-head .h1,
.seo-hero h1, .seo-hero .hero-h1,
.ref-head h1, .ref-h1 {
  margin: 0 0 var(--gap-xs);
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  font-weight: 750;
}
.page-head > p, .blog-head > p, .seo-hero > p,
.blog-head .muted, .seo-hero .hero-lede, .ref-head .muted {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--dim);
  max-width: 70ch;
}
/* The eyebrow sits above the title without adding a second rhythm. */
.seo-hero .kicker { margin: 0 0 10px; }

/* Search/filter row under a title keeps one distance from it. */
.blog-bar { margin-top: var(--gap-md); }
.blog-head + .bp-grid, .blog-head + .jb-grid,
.page-head + .bp-grid, .page-head + .jb-grid { margin-top: 0; }


/* ═══ MODERN PAGES ═════════════════════════════════════════════════════════
   The shell is consistent; this layer gives the pages depth: cards that
   respond to the cursor, a clear hierarchy, and headers that don't read as a
   flat grey slab. */

/* ── Page header: a soft accent glow instead of a bare rule ──────────────── */
.page-head, .blog-head, .seo-hero, .ref-head {
  position: relative;
  border-bottom: 0;
  padding-bottom: var(--gap-md);
}
.page-head::after, .blog-head::after, .seo-hero::after, .ref-head::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent) 55%, transparent) 0%,
    var(--line) 38%, var(--line) 100%);
}

/* ── Cards: lift on hover, accent edge, smooth motion ───────────────────── */
.tile-lnk, .bp, .jb-card, .proj, .card, .plan, .svc {
  transition:
    transform .22s var(--ease),
    box-shadow .22s var(--ease),
    border-color .22s var(--ease);
}

/* Interactive cards only — a static container shouldn't move under the cursor. */
.tile-lnk:hover, a.bp:hover, .bp:has(a):hover, .jb-card:has(a):hover, a.svc:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgb(0 0 0 / .2),
    0 18px 40px -20px rgb(0 0 0 / .65),
    0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* Reference tiles: a country is a destination, so make it feel clickable. */
.tile-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.tile-lnk {
  position: relative;
  padding: 18px 20px;
  overflow: hidden;
  border-radius: 16px;
  background: rgb(var(--card));
  box-shadow: var(--card-shadow);
}
/* A thin accent bar wipes in from the left on hover. */
.tile-lnk::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), #ff9d4d);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .24s var(--ease);
}
.tile-lnk:hover::before { transform: scaleY(1); }
.tile-lnk b { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.tile-lnk span { font-size: 12.5px; color: var(--faint); }

/* ── Blog cards: image zoom, stronger title ─────────────────────────────── */
.bp { overflow: hidden; }
.bp img { transition: transform .5s var(--ease); }
.bp:hover img { transform: scale(1.045); }
.bp-title { font-size: 16px; letter-spacing: -.015em; transition: color .18s var(--ease); }
.bp-date { color: var(--accent); opacity: .85; }

/* ── Job board: budget is the hook, so let it lead ──────────────────────── */
.jb-card { padding: 22px; }
.jb-budget { font-size: 15.5px; letter-spacing: -.01em; }
.jb-title { font-size: 16px; letter-spacing: -.015em; }

/* ── Search field: wider, softer, focus ring ────────────────────────────── */
#q, #city {
  height: 50px;
  border-radius: 14px;
  font-size: 14.5px;
  transition: box-shadow .2s var(--ease);
}
#q:focus, #city:focus {
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

/* ── Section headings get a small accent marker ─────────────────────────── */
.ref-group > .h2 {
  display: flex; align-items: center; gap: 11px;
  font-size: 1.15rem;
}
.ref-group > .h2::before {
  content: '';
  width: 4px; height: 19px; border-radius: 99px;
  background: var(--accent);
  flex: none;
}

/* ── Price tables: zebra-free, hover row, aligned numbers ───────────────── */
.price tbody tr { transition: background .16s var(--ease); }
.price tbody tr:hover { background: rgb(var(--card) / .6); }
.price-v { color: var(--ink); }

/* ── Empty/loading states shouldn't look like a bug ─────────────────────── */
main .muted:only-child {
  display: block;
  padding: var(--gap-xl) 0;
  text-align: center;
  color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  .tile-lnk, .bp, .jb-card, .bp img, .proj, .card, .plan, .svc { transition: none; }
  .tile-lnk:hover, a.bp:hover, .bp:hover img, a.svc:hover { transform: none; }
}


/* FEATURED TILE */
/* The home market spans two columns and carries the accent, so the eye lands
   on it before the alphabetical run of the other 48 countries. */
.tile-feat { grid-column: span 2; }
.tile-feat .tile-lnk {
  padding: 22px 24px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 13%, rgb(var(--card))),
      rgb(var(--card)) 62%);
  box-shadow: var(--card-shadow), inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.tile-feat .tile-lnk::before { transform: scaleY(1); }
.tile-feat .tile-lnk b { font-size: 18px; }
.tile-feat .tile-lnk span { color: var(--accent); font-weight: 600; }

@media (max-width: 520px) { .tile-feat { grid-column: span 1; } }


/* EVEN CARDS */
/* Descriptions vary in length, so the budget line and the date used to sit at
   a different height in every card and the rows read as ragged. Stretch the
   cards to the row height and pin the footer to the bottom. */
.jb-grid, .bp-grid { align-items: stretch; }
.jb-grid > .jb-card, .bp-grid > .bp { height: 100%; }

.jb-card { grid-template-rows: auto 1fr auto; }
.jb-card .jb-foot { margin-top: auto; padding-top: 4px; }

.bp { grid-template-rows: auto 1fr; }
.bp-txt { grid-template-rows: auto auto 1fr; align-content: start; }

/* Clamp the description so a very long one can't push the layout around. */
.jb-desc { -webkit-line-clamp: 3; }


/* EQUAL ROWS */
/* Rows in an auto-fill grid size independently, so the board stepped between
   198px and 239px from one row to the next. One row size for the whole grid
   settles it — a very short listing pads out instead of shrinking. */
.jb-grid { grid-auto-rows: 1fr; }
.jb-card .jb-desc { min-height: 3.1em; }


/* ═══ REF HERO ═════════════════════════════════════════════════════════════
   The page used to open with a plain title over a grid of grey tiles. It now
   leads with the promise and the numbers that back it. */

.ref-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  align-items: center;
  gap: var(--gap-xl);
  margin: var(--gap-md) 0 var(--gap-xl);
  padding: clamp(32px, 4vw, 60px);
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 88% 8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 58%),
    linear-gradient(150deg, rgb(var(--card)) 0%, color-mix(in srgb, var(--accent) 6%, rgb(var(--card))) 100%);
  box-shadow: var(--card-shadow), inset 0 0 0 1px var(--line);
}

/* A soft grid, so the panel reads as a surface rather than a flat block. */
.ref-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(90% 80% at 20% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 80% at 20% 0%, #000 20%, transparent 75%);
  opacity: .6;
  pointer-events: none;
}

.ref-hero-txt { position: relative; z-index: 1; }

.ref-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
}

.ref-hero-h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 800;
}
.ref-hero-h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ff6b00, #ff9d4d 55%, #ffd9a8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.ref-hero-lede {
  margin: 0 0 28px;
  max-width: 46ch;
  font-size: clamp(.98rem, .94rem + .25vw, 1.08rem);
  line-height: 1.65;
  color: var(--dim);
}

/* Search sits inside the hero, with the icon inline. */
.ref-search {
  position: relative;
  display: flex; align-items: center;
  max-width: 440px;
}
.ref-search svg {
  position: absolute; left: 17px;
  color: var(--faint);
  pointer-events: none;
}
.ref-search #q {
  width: 100%;
  height: 56px;
  padding: 0 18px 0 48px;
  border-radius: 15px;
  background: rgb(var(--card));
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px -14px rgb(0 0 0 / .6);
  font-size: 15px;
}
.ref-search #q:focus {
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

/* The numbers that justify the promise. */
.ref-hero-stats {
  position: relative; z-index: 1;
  display: grid; gap: 22px;
  padding-left: var(--gap-lg);
  border-left: 1px solid var(--line);
}
.ref-hero-stats div { display: grid; gap: 2px; }
.ref-hero-stats b {
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem);
  font-weight: 800; line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(140deg, var(--ink), color-mix(in srgb, var(--accent) 65%, var(--ink)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ref-hero-stats span {
  font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint);
}

@media (max-width: 900px) {
  .ref-hero { grid-template-columns: 1fr; gap: var(--gap-lg); }
  .ref-hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-sm);
    padding: var(--gap-md) 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}


/* ═══ PAGE HERO ════════════════════════════════════════════════════════════
   Blog, job board and news opened with a bare one-word title. They now lead
   with a statement and carry their search inside the panel. */

.page-hero {
  position: relative;
  margin: var(--gap-md) 0 var(--gap-xl);
  padding: clamp(30px, 3.6vw, 54px);
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(110% 130% at 92% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    linear-gradient(155deg, rgb(var(--card)) 0%, color-mix(in srgb, var(--accent) 5%, rgb(var(--card))) 100%);
  box-shadow: var(--card-shadow), inset 0 0 0 1px var(--line);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(85% 75% at 15% 0%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(85% 75% at 15% 0%, #000 20%, transparent 72%);
  opacity: .55;
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }

.page-hero-h1 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.1rem);
  line-height: 1.07;
  letter-spacing: -.035em;
  font-weight: 800;
}
.page-hero-h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ff6b00, #ff9d4d 55%, #ffd9a8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.page-hero-lede {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(.98rem, .94rem + .25vw, 1.08rem);
  line-height: 1.65;
  color: var(--dim);
}

/* The search row lives in the panel now. */
.page-hero .blog-bar {
  margin-top: 28px;
  gap: var(--gap-sm);
}
.page-hero .blog-bar #q,
.page-hero .blog-bar #city {
  height: 54px;
  border-radius: 15px;
  background: rgb(var(--card));
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px -14px rgb(0 0 0 / .55);
}
.page-hero .blog-bar #q:focus,
.page-hero .blog-bar #city:focus {
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.page-hero .blog-bar .muted { color: var(--faint); font-size: 13.5px; }

@media (max-width: 640px) {
  .page-hero .blog-bar { flex-direction: column; align-items: stretch; }
  .page-hero .blog-bar #q { max-width: none; }
}
