:root {
  --bg: #0b0d11;
  --bg-elev: #141820;
  --bg-soft: #10141c;
  --line: #2a3140;
  --text: #e8eaef;
  --muted: #9aa3b5;
  --accent: #3d9cf0;
  --accent-dim: rgba(61, 156, 240, 0.14);
  --ok: #5ecf8e;
  --warn: #e8b84a;
  --danger: #e07070;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Bebas Neue", Impact, sans-serif;
  --header-h: 64px;
  --footer-h: 72px;
  --radius: 10px;
  --max: 1480px;
  --gutter: clamp(1rem, 2.5vw, 2.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  --site-outer-fallback: url("../img/site-bg-wood.png");
  background-color: #050607;
  background-image: var(--site-outer-bg, var(--site-outer-fallback));
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.55;
  font-size: 16px;
  min-height: 100vh;
  padding-top: var(--header-h);
  padding-bottom: var(--footer-h);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 400;
  background: var(--accent); color: #061018; font-weight: 600;
  padding: 0.6rem 0.9rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; outline: 2px solid #fff; outline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.site-nav__link:focus-visible,
.btn:focus-visible,
.dev-tool-btn:focus-visible {
  outline-offset: 3px;
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  padding: 0.55rem var(--gutter);
  background: rgba(11, 13, 17, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex: 1 1 auto; min-width: 0;
}
.site-header__brand {
  display: flex; align-items: center; gap: 0.65rem; color: inherit; text-decoration: none; flex-shrink: 0;
}
.site-header__brand:hover { text-decoration: none; }
.site-header__brand strong {
  font-family: var(--display); font-size: 1.4rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase;
}
.site-header__logo {
  height: 2.75rem; width: auto; max-width: 220px; object-fit: contain; display: block;
}
.site-header__brand span { font-size: 0.78rem; color: var(--muted); }

.nav-toggle {
  display: none; appearance: none; border: 1px solid var(--line); background: var(--bg-elev);
  width: 42px; height: 42px; border-radius: 8px; padding: 0; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.site-header.is-nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: flex; align-items: center; gap: 0.15rem; overflow-x: auto; max-width: 100%;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.site-nav__link {
  color: var(--muted); font-size: 0.84rem; font-weight: 500; white-space: nowrap;
  padding: 0.5rem 0.75rem; border-radius: 8px; text-decoration: none;
}
.site-nav__link:hover { color: var(--text); background: var(--bg-elev); text-decoration: none; }
.site-nav__link.is-active {
  color: var(--accent); background: var(--accent-dim);
}

.site-main {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 1.75rem clamp(1rem, 2vw, 2rem) 2.75rem;
  box-sizing: border-box;
  background: var(--bg);
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  box-shadow:
    -28px 0 48px rgba(0, 0, 0, 0.72),
    28px 0 48px rgba(0, 0, 0, 0.72),
    -8px 0 18px rgba(0, 0, 0, 0.55),
    8px 0 18px rgba(0, 0, 0, 0.55),
    -2px 0 6px rgba(0, 0, 0, 0.45),
    2px 0 6px rgba(0, 0, 0, 0.45);
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  position: relative;
  z-index: 1;
}

.site-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  min-height: var(--footer-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.55rem var(--gutter);
  background: rgba(11, 13, 17, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.site-footer__info { color: var(--muted); font-size: 0.82rem; line-height: 1.4; min-width: 0; }
.site-footer__copy { margin-top: 0.2rem; font-size: 0.78rem; color: var(--muted); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.15rem; }
.site-footer__links a { color: var(--muted); }
.site-footer__links a:hover { color: var(--accent); }

.footer-tools {
  flex-shrink: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem;
}
.dev-tools-card {
  flex-shrink: 0; display: flex; align-items: center; gap: 0.65rem;
  padding: 0.4rem 0.55rem 0.4rem 0.75rem; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.dev-tools-card__label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--warn); line-height: 1.2;
}
.dev-tools-card--admin .dev-tools-card__label { color: var(--accent); }
.dev-tools-card__label small {
  display: block; font-weight: 500; letter-spacing: 0.02em; text-transform: none;
  color: var(--muted); font-size: 0.65rem;
}
.dev-tools-icons { display: flex; align-items: center; gap: 0.35rem; }
.dev-tool-btn {
  appearance: none; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text);
  width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; text-decoration: none; box-sizing: border-box;
}
a.dev-tool-btn:hover { text-decoration: none; color: var(--text); }
.dev-tool-btn:hover { border-color: var(--accent); background: var(--accent-dim); }
.dev-tool-btn:disabled { opacity: 0.55; cursor: wait; }
.dev-tool-btn svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.dev-tool-toast {
  position: fixed; bottom: calc(var(--footer-h) + 12px); right: 1.25rem; z-index: 300;
  background: var(--bg-elev); border: 1px solid var(--ok); color: var(--text);
  font-size: 0.8rem; padding: 0.55rem 0.85rem; border-radius: 8px;
  opacity: 0; pointer-events: none; transform: translateY(6px); transition: .2s;
  max-width: min(28rem, calc(100vw - 2rem));
}
.dev-tool-toast.is-visible { opacity: 1; transform: none; }
.dev-tool-toast.is-ok { border-color: var(--ok); }
.dev-tool-toast.is-progress { border-color: var(--accent); }
.dev-tool-toast.is-error {
  border-color: var(--danger, #c44);
  color: var(--text);
  pointer-events: auto;
}
.dev-deploy-panel {
  position: fixed; left: 1.25rem; right: 1.25rem; bottom: calc(var(--footer-h) + 12px);
  z-index: 299; max-width: 36rem; margin-right: auto;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.75rem 0.9rem 0.85rem; box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.dev-deploy-panel[hidden] { display: none !important; }
.dev-deploy-panel.is-running { border-color: var(--accent); }
.dev-deploy-panel.is-ok { border-color: var(--ok); }
.dev-deploy-panel.is-error { border-color: var(--danger, #c44); }
.dev-deploy-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.55rem; font-size: 0.85rem;
}
.dev-deploy-panel__dismiss {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: inherit; font-size: 0.75rem; padding: 0.2rem 0.5rem; border-radius: 6px; cursor: pointer;
}
.dev-deploy-panel__dismiss:hover { color: var(--text); border-color: var(--accent); }
.dev-deploy-panel__track {
  height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden;
}
.dev-deploy-panel__bar {
  height: 100%; width: 0%; border-radius: inherit; background: var(--accent);
  transition: width .25s ease;
}
.dev-deploy-panel.is-ok .dev-deploy-panel__bar { background: var(--ok); }
.dev-deploy-panel.is-error .dev-deploy-panel__bar { background: var(--danger, #c44); }
.dev-deploy-panel__bar.is-indeterminate {
  width: 40% !important;
  animation: sc-deploy-indet 1.1s ease-in-out infinite;
}
@keyframes sc-deploy-indet {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
.dev-deploy-panel__msg {
  margin: 0.55rem 0 0; font-size: 0.78rem; color: var(--muted); line-height: 1.4;
  word-break: break-word;
}
.dev-deploy-panel__errors {
  margin: 0.5rem 0 0; max-height: 8rem; overflow: auto;
  font: 0.72rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text); background: rgba(0,0,0,.22); border-radius: 6px; padding: 0.45rem 0.55rem;
  white-space: pre-wrap; word-break: break-word;
}
body.is-capturing .site-header,
body.is-capturing .site-footer,
body.is-capturing .dev-tool-toast,
body.is-capturing .dev-deploy-panel { visibility: hidden !important; }

.hero {
  position: relative; min-height: calc(100vh - var(--header-h) - var(--footer-h) - 2rem);
  display: grid; align-content: end; gap: 1rem; padding: 2rem 0 2.5rem;
  margin: -1.75rem 0 2rem; isolation: isolate;
}
.hero__bg {
  position: absolute;
  top: -1.75rem;
  left: 0;
  right: 0;
  width: 100%;
  height: min(78vh, 760px);
  background-color: #0b0d11;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
  border-radius: 0;
}
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.hero h1, .panel h1 {
  font-family: var(--display); font-weight: 400; letter-spacing: 0.04em;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; margin: 0;
  text-transform: uppercase;
}
.hero .tagline {
  font-family: var(--display); font-style: normal; font-size: clamp(1.2rem, 2.6vw, 1.85rem);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.hero__lead, .lead { color: var(--muted); max-width: 44rem; font-size: clamp(1rem, 1.2vw, 1.1rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; border-radius: 8px; padding: 0.7rem 1.15rem; font: inherit; font-weight: 600;
  font-size: 0.92rem; cursor: pointer; border: 1px solid transparent; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #061018; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-dim); }

.panel { animation: rise .45s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel, .reveal, .topic-fields.is-open { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.legal-page h2 {
  font-family: var(--display); font-weight: 400; font-size: 1.45rem; margin: 1.75rem 0 0.5rem;
}
.legal-page p { max-width: 46rem; }

.project-hero {
  margin: 1.5rem 0 2rem; border-radius: 16px; overflow: hidden; background: var(--bg-elev);
}
/* Images: keep the uploaded image’s own aspect ratio */
.project-hero img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}
.project-hero .media-frame { width: 100%; height: auto; }
.project-hero--audio { min-height: 120px; }
.project-hero--audio .media-frame { height: auto; }
/* Videos / YouTube: fixed 16:9 player frame */
.project-hero--youtube,
.project-hero--video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.project-hero--youtube .media-frame,
.project-hero--video .media-frame,
.project-hero--youtube .media-frame__ratio,
.project-hero--video .media-frame__ratio,
.project-hero--youtube video,
.project-hero--video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
}
.project-hero--video video {
  object-fit: contain;
  display: block;
  background: #000;
}
.project-blocks {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin: 1rem 0 2rem;
}
.project-blocks article {
  padding: 1rem 0; border-top: 1px solid var(--line);
}
.project-blocks h2 {
  font-family: var(--display); font-weight: 400; font-size: 1.45rem; margin: 0 0 0.45rem;
}
.project-blocks p { color: var(--muted); margin: 0; }
a.work-item { color: inherit; }
a.work-item:hover { text-decoration: none; }
a.work-item:hover h3 { color: var(--accent); }

.media-frame { position: relative; background: var(--bg-elev); border-radius: 12px; overflow: hidden; }
.media-frame img,
.media-frame video { width: 100%; display: block; }
.media-frame video { max-height: 70vh; background: #000; }
.media-frame__ratio {
  position: relative; width: 100%; aspect-ratio: 16/9; background: #000;
}
.media-frame__ratio iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.media-frame__audio {
  padding: 1.25rem 1.1rem; display: grid; gap: 0.75rem;
}
.media-frame__audio-label {
  margin: 0; color: var(--muted); font-size: 0.9rem;
}
.media-frame__audio audio { width: 100%; }
.media-frame--hero { border-radius: 0; height: auto; }
.media-frame--hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.project-hero--youtube .media-frame--hero,
.project-hero--video .media-frame--hero { height: 100%; }
.media-frame--gallery { aspect-ratio: 16/10; }
.media-frame--gallery img,
.media-frame--gallery video { width: 100%; height: 100%; object-fit: cover; }

/* Project gallery: images keep native ratio; videos/YouTube are 16:9 */
.project-gallery .gallery-card[data-media="image"] .media-frame--gallery {
  aspect-ratio: auto;
}
.project-gallery .gallery-card[data-media="image"] img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.project-gallery .gallery-card[data-media="video"] .media-frame--gallery,
.project-gallery .gallery-card[data-media="youtube"] .media-frame--gallery {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.project-gallery .gallery-card[data-media="video"] video,
.project-gallery .gallery-card[data-media="youtube"] .media-frame__ratio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.media-frame--gallery[data-media="audio"],
.media-frame--gallery[data-media="youtube"] { aspect-ratio: 16/9; }
.media-frame--gallery[data-media="audio"] { aspect-ratio: auto; min-height: 110px; }
.project-story .media-frame video { max-height: none; }
.media-frame--admin { max-width: 420px; margin-top: 0.5rem; }

.admin-pre {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 1rem; overflow: auto; font-size: 0.8rem; line-height: 1.45; color: var(--text);
  max-height: 60vh;
}

.media-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-top: 1rem;
}
.media-card {
  margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.media-card img,
.media-card video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #000; }
.media-card__audio {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--bg-elev); color: var(--muted); font-size: 1.1rem;
}
.media-card figcaption { padding: 0.65rem; display: grid; gap: 0.45rem; }
.media-card input { font-size: 0.72rem; }

.stats-row {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 1.25rem 0;
}
.stat {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem;
}
.stat strong {
  display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 400; color: var(--text);
}
.stat span { color: var(--muted); font-size: 0.8rem; }

.section { margin: 2.5rem 0; }
.section h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
}
.section p { color: var(--muted); max-width: 42rem; }

.hero--home { align-content: end; padding-bottom: 3rem; }
.hero--home .hero__copy {
  max-width: 40rem;
  display: grid; gap: 0.85rem;
  animation: rise .7s ease both;
}
.hero--home h1 {
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  line-height: 0.95;
}
.hero--home .tagline {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  color: #d7dde8;
}
.hero--home .hero__lead { max-width: 34rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--accent); font-weight: 600; font-size: 0.92rem;
  text-decoration: none; margin-top: 0.35rem;
}
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover { text-decoration: none; }
.text-link:hover::after { transform: translateX(3px); }

.home-zone {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(42, 49, 64, 0.85);
}
.home-zone__bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 0.75rem 1.25rem; margin-bottom: 1.75rem;
}
.home-zone__bar h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  margin: 0.15rem 0 0; color: var(--text);
}

.home-zone--rail {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  overflow: hidden;
}
.home-rail__label {
  margin: 0; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; white-space: nowrap;
}
.home-rail {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.home-rail__track {
  list-style: none; margin: 0; padding: 0.2rem 0;
  display: flex; align-items: center; gap: 2.75rem; width: max-content;
  animation: home-rail 120s linear infinite;
}
.home-rail:hover .home-rail__track,
.home-rail:focus-within .home-rail__track { animation-play-state: paused; }
.home-rail__track li {
  font-family: var(--display); font-size: 1.25rem; color: #c4cad6; white-space: nowrap;
  flex: 0 0 auto;
}
@keyframes home-rail {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home-intro {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
}
.home-intro__statement {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.5rem; min-height: 100%;
}
.home-intro__copy { display: grid; gap: 0; }
.home-intro__statement h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem); line-height: 1.15;
  margin: 0.25rem 0 1rem; color: var(--text); max-width: 18ch;
}
.home-intro__statement p {
  color: var(--muted); margin: 0 0 0.95rem; max-width: 36rem;
  font-size: 0.98rem; line-height: 1.65;
}
.home-intro__statement .text-link { margin-top: 0.25rem; align-self: flex-start; }

.home-index {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0;
}
.home-index li + li { border-top: 1px solid var(--line); }
.home-index a {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.85rem; padding: 1rem 0; color: inherit; text-decoration: none;
  transition: color .2s ease;
}
.home-index a:hover { text-decoration: none; }
.home-index a:hover strong { color: var(--accent); }
.home-index__num {
  font-family: var(--display); color: var(--muted); font-size: 1.05rem; padding-top: 0.15rem;
}
.home-index__copy { display: grid; gap: 0.25rem; }
.home-index__copy strong {
  font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--text);
}
.home-index__copy span { color: var(--muted); font-size: 0.9rem; }

.home-work {
  display: grid; gap: 1.25rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}
.home-work__lead,
.home-work__item {
  display: block; color: inherit; text-decoration: none;
}
.home-work__lead:hover,
.home-work__item:hover { text-decoration: none; }
.home-work__lead .work-item__media {
  aspect-ratio: 16/11; border-radius: 16px; margin-bottom: 1rem;
}
.home-work__item .work-item__media {
  aspect-ratio: 16/10; border-radius: 12px; margin-bottom: 0.65rem;
}
.home-work__meta span {
  display: block; color: var(--accent); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.3rem;
}
.home-work__meta h3 {
  font-family: var(--display); font-weight: 400; margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem); color: var(--text);
}
.home-work__lead:hover h3,
.home-work__item:hover h3 { color: var(--accent); }
.home-work__meta p { margin: 0; color: var(--muted); max-width: 36rem; }
.home-work__side {
  display: grid; gap: 1.15rem;
  grid-template-columns: 1fr 1fr;
}

.home-zone--stack {
  padding: 1.75rem 0;
  overflow: hidden;
}
.stack-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.stack-marquee__track {
  list-style: none; margin: 0; padding: 0.35rem 0;
  display: flex; align-items: center; gap: 2.25rem;
  width: max-content;
  animation: stack-marquee 480s linear infinite;
}
.stack-marquee__item {
  display: inline-flex; align-items: center; gap: 0.7rem;
  flex: 0 0 auto; white-space: nowrap;
  padding: 0.7rem 1rem 0.7rem 0.85rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stack-marquee__item img {
  width: 2.35rem; height: 2.35rem; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.stack-marquee__item span {
  font-family: var(--display); font-size: 1.2rem; color: #d5dae4;
}
@keyframes stack-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home-news {
  display: grid; gap: 1.75rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  align-items: stretch;
}
.home-news__lead {
  display: grid; gap: 1rem; color: inherit; text-decoration: none;
}
.home-news__lead:hover { text-decoration: none; }
.home-news__media {
  aspect-ratio: 16/10; overflow: hidden; border-radius: 16px; background: var(--bg-elev);
}
.home-news__media img { width: 100%; height: 100%; object-fit: cover; }
.home-news__copy time,
.home-news__list time {
  display: block; color: var(--muted); font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.35rem;
}
.home-news__copy h3 {
  font-family: var(--display); font-weight: 400; margin: 0 0 0.45rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--text);
}
.home-news__lead:hover h3 { color: var(--accent); }
.home-news__copy p { margin: 0; color: var(--muted); }
.home-news__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; align-content: start;
}
.home-news__list li { border-top: 1px solid var(--line); }
.home-news__list a {
  display: grid; gap: 0.25rem; padding: 1.1rem 0;
  color: inherit; text-decoration: none;
}
.home-news__list a:hover { text-decoration: none; }
.home-news__list strong {
  font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--text);
}
.home-news__list a:hover strong { color: var(--accent); }

.home-zone--cta {
  border-top: 1px solid var(--line);
  padding-bottom: 1.5rem;
}
.home-cta {
  max-width: 38rem;
  padding: 2rem 0 0.5rem;
}
.home-cta h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12;
  margin: 0.2rem 0 0.75rem; color: var(--text);
}
.home-cta p { color: var(--muted); margin: 0 0 1.15rem; }

.news-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.news-grid--blog { margin-top: 1.5rem; }
.news-item {
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
  transition: color .2s ease;
}
.news-item:hover { text-decoration: none; }
.news-item__media {
  aspect-ratio: 16/10; overflow: hidden; border-radius: 12px; background: var(--bg-elev); margin-bottom: 0.85rem;
}
.news-item__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-item__body { display: grid; gap: 0.35rem; }
.news-item__body time { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.news-item__body h3 {
  margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--text);
}
.news-item:hover h3 { color: var(--accent); }
.news-item__body p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.blog-post p,
.blog-post li {
  max-width: none;
}
.blog-post__meta { color: var(--muted); margin: 0 0 0.75rem; font-size: 0.9rem; }
.blog-post__hero {
  margin: 1.25rem 0 1.75rem;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  height: clamp(200px, 28vw, 360px);
  background: var(--bg-elev);
}
.blog-post__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-post__body { max-width: none; width: 100%; }
.blog-post__body p { color: var(--muted); line-height: 1.65; margin: 0 0 1rem; }
.blog-post__body h2,
.blog-post__body h3,
.blog-post__body h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--text);
  margin: 1.35rem 0 0.55rem;
  line-height: 1.2;
}
.blog-post__body h2 { font-size: 1.55rem; }
.blog-post__body h3 { font-size: 1.3rem; }
.blog-post__body h4 { font-size: 1.12rem; }
.blog-post__body ul,
.blog-post__body ol {
  color: var(--muted);
  margin: 0 0 1rem 1.15rem;
  padding: 0;
  line-height: 1.65;
}
.blog-post__body li { margin: 0.2rem 0; }
.blog-post__body a { text-decoration: underline; text-underline-offset: 2px; }
.blog-post__body blockquote {
  margin: 0 0 1rem;
  padding: 0.35rem 0 0.35rem 0.9rem;
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-style: italic;
}
.blog-post__body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.25rem 0;
}
.admin-body .tox-tinymce {
  border-radius: 3px !important;
  border: 1px solid var(--admin-line) !important;
  margin-top: 0.25rem;
  background: #1d2327 !important;
}
.admin-body .tox .tox-edit-area__iframe { background: #1d2327; }
.admin-body .tox .tox-toolbar,
.admin-body .tox .tox-toolbar__overflow,
.admin-body .tox .tox-toolbar__primary,
.admin-body .tox .tox-menubar,
.admin-body .tox .tox-statusbar {
  background: #23282d !important;
  border-color: var(--admin-line) !important;
}
.admin-body .tox .tox-tbtn,
.admin-body .tox .tox-mbtn {
  color: var(--admin-text) !important;
}
.admin-body .tox .tox-tbtn:hover,
.admin-body .tox .tox-mbtn:hover {
  background: #3c434a !important;
  color: #fff !important;
}
.admin-body .tox .tox-statusbar {
  color: var(--admin-muted) !important;
}

.admin-repeat { display: grid; gap: 0.75rem; margin: 0.5rem 0 0.75rem; }
.admin-repeat__row {
  padding: 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
}

@media (max-width: 980px) {
  .home-intro,
  .home-work,
  .home-news { grid-template-columns: 1fr; }
  .home-work__side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .home-work__side { grid-template-columns: 1fr; }
  .home-zone { padding: 2.6rem 0; }
  .hero--home h1 { font-size: clamp(2.8rem, 14vw, 3.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .home-rail__track,
  .stack-marquee__track { animation: none; }
}

.path-grid, .service-grid, .work-grid {
  display: grid; gap: 1rem; margin-top: 1.25rem;
}
.path-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.service-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.work-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.path-link, .service-block, .work-item {
  display: block; padding: 1.1rem 1.15rem; border-radius: var(--radius);
  border: 1px solid transparent; background: transparent; color: inherit; text-decoration: none;
}
.path-link { border-bottom: 1px solid var(--line); border-radius: 0; padding: 1rem 0; }
.path-link:hover, .service-block:hover, .work-item:hover { text-decoration: none; }
.path-link strong, .service-block h3, .work-item h3 { display: block; color: var(--text); margin: 0 0 0.35rem; }
.path-link span, .service-block p, .work-item p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.service-block { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.work-item { padding: 0; }
.work-card {
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.work-card:hover {
  border-color: rgba(61, 156, 240, 0.45);
  transform: translateY(-2px);
  text-decoration: none;
}
.work-card .work-item__media {
  margin-bottom: 0;
  border-radius: 0;
  aspect-ratio: 16 / 9;
}
#work-grid .work-item__media {
  aspect-ratio: 16 / 9;
}
.work-card__body {
  padding: 0.95rem 1rem 1.1rem;
  display: grid;
  gap: 0.35rem;
}
.work-card__body h3 { margin: 0; }
.work-card__body p { margin: 0; }
.gallery-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.gallery-card .media-frame--gallery {
  border-radius: 0;
  margin: 0;
}
.gallery-card[data-media="audio"] {
  padding: 0.25rem;
}
.work-item__media {
  aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; margin-bottom: 0.75rem;
  background: var(--bg-elev); position: relative;
}
.work-item__media img,
.work-item__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-item__media--audio {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
  color: var(--muted);
}
.work-item__audio-icon { font-size: 2rem; line-height: 1; color: var(--accent); }
.work-item__audio-label { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.work-item__play {
  position: absolute; left: 50%; top: 50%; width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem;
  border-radius: 999px; background: rgba(0,0,0,0.55); border: 2px solid rgba(255,255,255,0.85);
}
.work-item__play::before {
  content: ""; position: absolute; left: 1.15rem; top: 0.85rem;
  border-style: solid; border-width: 0.65rem 0 0.65rem 1rem;
  border-color: transparent transparent transparent #fff;
}

.split {
  display: grid; gap: 1.5rem; align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
}
.about-split {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-top: 1.5rem;
  width: 100%;
}
.about-copy {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}
.about-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: none;
  line-height: 1.65;
}
.about-copy p:last-child { margin-bottom: 0; }
.about-copy .lead {
  color: var(--text);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  margin-bottom: 1.15rem;
}
.about-subhead {
  margin: 0.35rem 0 0;
  max-width: 40rem;
}
.about-values {
  display: grid; gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
  margin: 1.75rem 0 0.5rem;
}
.about-values div {
  padding-top: 0.75rem; border-top: 1px solid var(--line);
  display: grid; gap: 0.2rem;
}
.about-values strong {
  font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--text);
}
.about-values span { color: var(--muted); font-size: 0.88rem; }
.about-cta { margin-top: 1.35rem; }
.service-block--detail { padding-bottom: 1.25rem; }
.service-features {
  list-style: none; margin: 0.75rem 0 0; padding: 0;
  display: grid; gap: 0.35rem;
}
.service-features li {
  position: relative; padding-left: 0.95rem;
  color: var(--muted); font-size: 0.88rem;
}
.service-features li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--accent);
}
.home-zone--stats { padding: 1.25rem 0; }
.home-stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-stats li {
  padding: 0.85rem 0; border-top: 1px solid var(--line);
  display: grid; gap: 0.2rem;
}
.home-stats strong {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--text);
}
.home-stats span { color: var(--muted); font-size: 0.84rem; }
@media (max-width: 700px) {
  .about-values,
  .home-stats { grid-template-columns: 1fr; }
}
.portrait {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elev);
}
.about-split .portrait {
  position: relative;
  flex: 0 0 32%;
  width: 32%;
  max-width: 320px;
  align-self: stretch;
  border-radius: 0 12px 12px 0;
  overflow: hidden;
}
.about-split .portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.form-shell {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

/* —— Extensive Free Estimate builder —— */
.estimate-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.7fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 2rem;
}
.estimate-builder__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.estimate-builder__intro {
  background: rgba(20, 24, 32, 0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.25rem 1.2rem;
  margin-bottom: 0.35rem;
}
.estimate-builder__intro h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.85rem;
  margin: 0 0 0.45rem;
}
.estimate-builder__intro p { color: var(--muted); margin: 0 0 0.35rem; max-width: none; }

.estimate-section {
  background: rgba(20, 24, 32, 0.45);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.estimate-section.has-selection { border-color: rgba(61, 156, 240, 0.45); }
.estimate-section__toggle {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.85rem;
  align-items: center;
  text-align: left;
  padding: 1rem 1.1rem;
  cursor: pointer;
  font: inherit;
}
.estimate-section__index {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--accent);
  min-width: 1.6rem;
}
.estimate-section__heading { display: grid; gap: 0.2rem; min-width: 0; }
.estimate-section__heading strong { font-size: 1.02rem; font-weight: 600; }
.estimate-section__heading small {
  color: var(--muted); font-size: 0.84rem; line-height: 1.4; font-weight: 400;
}
.estimate-section__meta {
  color: var(--muted); font-size: 0.78rem; white-space: nowrap;
}
.estimate-section.has-selection .estimate-section__meta { color: var(--accent); }
.estimate-section__chevron {
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s;
  margin-bottom: 4px;
}
.estimate-section--open .estimate-section__chevron { transform: rotate(-135deg); margin-bottom: 0; margin-top: 4px; }
.estimate-section__body {
  display: none;
  padding: 0 1.1rem 1.15rem;
  border-top: 1px solid transparent;
}
.estimate-section--open .estimate-section__body {
  display: block;
  border-top-color: var(--line);
  padding-top: 1rem;
  animation: rise .35s ease both;
}

.complexity-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.complexity-card { display: block; cursor: pointer; margin: 0; }
.complexity-card input { position: absolute; opacity: 0; pointer-events: none; }
.complexity-card__inner {
  display: grid; gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  min-height: 100%;
  transition: border-color .15s, background .15s;
}
.complexity-card__inner strong { font-size: 0.98rem; }
.complexity-card__inner em {
  font-style: normal; color: var(--accent); font-size: 0.8rem; font-weight: 600;
}
.complexity-card__inner span { color: var(--muted); font-size: 0.84rem; line-height: 1.4; }
.complexity-card input:checked + .complexity-card__inner {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.complexity-card:hover .complexity-card__inner { border-color: rgba(61, 156, 240, 0.5); }

.estimate-cards {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.estimate-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
  transition: border-color .15s, background .15s, transform .15s;
}
.estimate-card:hover { border-color: rgba(61, 156, 240, 0.45); }
.estimate-card.is-selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(61, 156, 240, 0.12), rgba(20, 24, 32, 0.35));
}
.estimate-card__select {
  display: block;
  cursor: pointer;
  margin: 0;
  position: relative;
}
.estimate-card__select > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.estimate-card__body {
  display: grid;
  gap: 0.55rem;
  height: 100%;
  padding: 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: none;
}
.estimate-card:hover .estimate-card__body { border-color: transparent; }
.estimate-card.is-selected .estimate-card__body,
.estimate-card__select > input:checked + .estimate-card__body {
  border-color: transparent;
  background: transparent;
}
.estimate-card__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: start;
}
.estimate-card__check {
  width: 18px; height: 18px; margin-top: 2px;
  border: 1.5px solid var(--line); border-radius: 5px;
  background: transparent; position: relative; flex-shrink: 0;
}
.estimate-card__select > input:checked + .estimate-card__body .estimate-card__check {
  border-color: var(--accent); background: var(--accent);
}
.estimate-card__select > input:checked + .estimate-card__body .estimate-card__check::after {
  content: "";
  position: absolute; left: 5px; top: 1px;
  width: 5px; height: 9px;
  border: solid #061018; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.estimate-card__title { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.estimate-card__price {
  font-weight: 600; color: var(--accent); font-size: 0.92rem; white-space: nowrap; text-align: right;
}
.estimate-card__price small { display: block; color: var(--muted); font-weight: 500; font-size: 0.72rem; }
.estimate-card__desc { color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.estimate-card__tag {
  justify-self: start;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border-radius: 999px; padding: 0.25rem 0.55rem;
}
.estimate-card__tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.estimate-card__tag--fixed { color: var(--muted); background: rgba(154, 163, 181, 0.12); }
.estimate-card__tag--billing { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.estimate-card__tag--monthly { color: #7dcea0; background: rgba(125, 206, 160, 0.12); }
.estimate-card__tag--yearly { color: #e0b35a; background: rgba(224, 179, 90, 0.14); }
.estimate-card__tag--exclusive { color: var(--muted); background: rgba(154, 163, 181, 0.1); }
.estimate-card__qty {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin: 0; padding: 0.65rem 1rem 0.9rem; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}
.estimate-card__qty input { width: 4.75rem; }

.estimate-details-grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
}
.estimate-details-grid__full { grid-column: 1 / -1; }

.estimate-summary {
  position: sticky;
  top: calc(var(--header-h) + 14px);
  align-self: start;
}
.estimate-summary__card {
  background: rgba(16, 20, 28, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.2rem 1.25rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}
.estimate-summary__amount {
  font-family: var(--display);
  font-size: clamp(2.3rem, 4vw, 2.9rem);
  line-height: 1;
  margin: 0.2rem 0 0.35rem;
}
.estimate-summary__sub { color: var(--muted); font-size: 0.86rem; margin: 0 0 0.9rem; }
.estimate-summary__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-bottom: 0.85rem;
}
.estimate-summary__stats div {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0.65rem 0.75rem;
}
.estimate-summary__stats strong {
  display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 400;
}
.estimate-summary__stats span { color: var(--muted); font-size: 0.75rem; }
.estimate-summary__split {
  display: grid; gap: 0.4rem; margin-bottom: 0.55rem;
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--line);
}
.estimate-summary__split div {
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--muted); font-size: 0.84rem;
}
.estimate-summary__split strong { color: var(--text); font-weight: 600; }
.estimate-summary__billing-note {
  color: var(--muted); font-size: 0.75rem; line-height: 1.4; margin: 0 0 0.85rem;
}
.estimate-summary__promo {
  color: var(--accent); font-size: 0.82rem; line-height: 1.4; margin: 0 0 0.85rem;
}
.estimate-promo-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
}
.estimate-promo-row input { flex: 1 1 10rem; min-width: 0; }
.estimate-promo-field .field-hint { margin-top: 0.4rem; }
.estimate-summary__list-title {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin: 0 0 0.45rem; font-weight: 600;
}
.estimate-summary__lines {
  list-style: none; padding: 0; margin: 0 0 0.9rem;
  max-height: 240px; overflow: auto;
}
.estimate-summary__lines li {
  display: flex; justify-content: space-between; gap: 0.85rem;
  padding: 0.4rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}
.estimate-summary__lines li span:last-child { color: var(--text); white-space: nowrap; }
.estimate-summary__lines li em {
  font-style: normal; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted); margin-left: 0.25rem;
}
.estimate-summary__lines li[data-billing="monthly"] span:last-child { color: #7dcea0; }
.estimate-summary__lines li[data-billing="yearly"] span:last-child { color: #e0b35a; }
.estimate-summary__lines .is-empty { border: 0; justify-content: center; opacity: 0.7; }
.estimate-summary__note {
  color: var(--muted); font-size: 0.78rem; line-height: 1.4; margin: 0 0 0.9rem;
}
.estimate-summary__submit { width: 100%; margin-bottom: 0.5rem; }
.estimate-summary__reset { width: 100%; margin-bottom: 0.5rem; }
.estimate-summary__contact { width: 100%; text-align: center; }
.estimate-builder__mobile-cta { display: none; margin-top: 0.5rem; gap: 0.5rem; }
.estimate-builder__mobile-cta .btn { width: 100%; }

.start-chip-row {
  display: grid; gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  margin-top: 0.85rem;
}
.start-chip {
  border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem 0.95rem;
  background: rgba(20, 24, 32, 0.4);
}
.start-chip strong { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.start-chip span { color: var(--accent); font-size: 0.84rem; font-weight: 600; }

@media (max-width: 1100px) {
  .estimate-builder { grid-template-columns: 1fr 0.85fr; }
}
@media (max-width: 900px) {
  .estimate-builder { grid-template-columns: 1fr; }
  .estimate-summary { position: static; }
  .estimate-summary__lines { max-height: none; }
  .estimate-builder__mobile-cta { display: flex; flex-direction: column; }
  .estimate-section__toggle { grid-template-columns: auto 1fr auto; }
  .estimate-section__meta { display: none; }
  .estimate-details-grid { grid-template-columns: 1fr; }
}
.form, .estimate-panel, .notice {
  background: rgba(20, 24, 32, 0.55); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.25rem;
}
.notice { color: var(--muted); font-size: 0.92rem; }
.notice.ok { border-color: rgba(94, 207, 142, 0.45); color: var(--text); }
.notice.err { border-color: rgba(224, 112, 112, 0.5); }

label { display: block; font-size: 0.85rem; font-weight: 600; margin: 0.85rem 0 0.35rem; }
label:first-child { margin-top: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"],
select, textarea {
  width: 100%; appearance: none; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); border-radius: 8px; padding: 0.65rem 0.75rem; font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.field-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }
.topic-fields { display: none; margin-top: 0.5rem; padding-top: 0.25rem; }
.topic-fields.is-open { display: block; animation: rise .3s ease both; }

.check-grid { display: grid; gap: 0.45rem; margin-top: 0.35rem; }
.check-grid label {
  display: flex; align-items: center; gap: 0.55rem; font-weight: 500; margin: 0;
  padding: 0.45rem 0.55rem; border-radius: 8px; border: 1px solid transparent;
}
.check-grid label:hover { background: var(--bg-elev); }
.check-grid input { width: auto; }

.estimate-total {
  position: sticky; top: calc(var(--header-h) + 12px);
}
.estimate-total__amount {
  font-family: var(--display); font-size: 2.4rem; line-height: 1; margin: 0.35rem 0;
}
.estimate-lines { list-style: none; padding: 0; margin: 0.75rem 0 0; color: var(--muted); font-size: 0.88rem; }
.estimate-lines li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.35rem 0; border-bottom: 1px solid var(--line);
}
.estimate-lines li:last-child { border-bottom: none; }
.qty-row { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.qty-row input { width: 4.5rem; }

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.price-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1rem 0; }
.price-table th, .price-table td {
  text-align: left; padding: 0.65rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
.price-table th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }

.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 1.25rem; }
.filter-btn {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 0.35rem 0.8rem; font: inherit; font-size: 0.82rem; cursor: pointer;
}
.filter-btn.is-active, .filter-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }

/* —— Admin (WordPress-like dark chrome) —— */
.admin-body {
  --admin-sidebar-w: 248px;
  --admin-bar-h: 32px;
  --admin-bg: #14171c;
  --admin-chrome: #1d2327;
  --admin-chrome-2: #2c3338;
  --admin-line: #3c434a;
  --admin-text: #f0f0f1;
  --admin-muted: #a7aaad;
  --admin-accent: #2271b1;
  --admin-accent-hover: #135e96;
  --admin-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  min-height: 100vh;
  color: var(--admin-text);
  font-family: var(--admin-font);
  font-size: 13px;
  line-height: 1.5;
  background: var(--admin-bg);
  background-image: none;
}
.admin-body a { color: #72aee6; }
.admin-body a:hover { color: #9ec2e6; }

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 160;
  width: var(--admin-sidebar-w);
  background: var(--admin-chrome);
  border-right: 1px solid #101517;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 1rem;
}
.admin-sidebar__brand {
  display: block;
  padding: 0.85rem 12px;
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 1px solid #101517;
  letter-spacing: 0.01em;
}
.admin-sidebar__brand:hover { background: #191f23; color: #fff !important; }
.admin-menu {
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-menu__group {
  margin: 0;
  padding: 0 0 6px;
  background: #1d2327;
  border: 1px solid var(--admin-line, #3c434a);
  border-left: 3px solid var(--menu-tone, #72aee6);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: opacity 0.12s ease, box-shadow 0.12s ease;
}
.admin-menu__group.is-dragging {
  opacity: 0.55;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.admin-menu__group.is-drag-over {
  box-shadow: 0 0 0 1px var(--menu-tone, #72aee6);
}
.admin-menu__group.tone-sky { --menu-tone: #72aee6; --menu-tone-bg: rgba(114, 174, 230, 0.14); }
.admin-menu__group.tone-teal { --menu-tone: #3dd6c3; --menu-tone-bg: rgba(61, 214, 195, 0.12); }
.admin-menu__group.tone-amber { --menu-tone: #e2b039; --menu-tone-bg: rgba(226, 176, 57, 0.14); }
.admin-menu__group.tone-coral { --menu-tone: #e07a5f; --menu-tone-bg: rgba(224, 122, 95, 0.14); }
.admin-menu__group.tone-steel { --menu-tone: #7aa2c8; --menu-tone-bg: rgba(122, 162, 200, 0.14); }
.admin-menu__group.tone-rose { --menu-tone: #e35d6a; --menu-tone-bg: rgba(227, 93, 106, 0.14); }
.admin-menu__group.tone-moss { --menu-tone: #7cb87c; --menu-tone-bg: rgba(124, 184, 124, 0.14); }
.admin-menu__group-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  background: var(--menu-tone-bg, #23282d);
  border-bottom: 1px solid #101517;
  cursor: grab;
  user-select: none;
}
.admin-menu__group-head:active { cursor: grabbing; }
.admin-menu__drag {
  flex: 0 0 auto;
  padding: 8px 2px 8px 8px;
  color: var(--menu-tone, #8c8f94);
  font-size: 11px;
  letter-spacing: -0.06em;
  line-height: 1;
  opacity: 0.9;
}
.admin-menu__group-label {
  margin: 0;
  padding: 8px 10px 8px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--menu-tone, #8c8f94);
  line-height: 1.3;
  flex: 1 1 auto;
}
.admin-menu__list {
  list-style: none;
  margin: 0;
  padding: 4px 0 2px;
}
.admin-menu__item { margin: 0; }
.admin-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 7px 10px;
  margin: 0 4px;
  color: #f0f0f1 !important;
  text-decoration: none !important;
  border-left: 3px solid transparent;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 400;
}
.admin-menu__link:hover {
  background: #2c3338;
  color: #fff !important;
  border-left-color: var(--menu-tone, #72aee6);
}
.admin-menu__link.is-active {
  background: #2c3338;
  color: #fff !important;
  font-weight: 600;
  border-left-color: var(--menu-tone, #72aee6);
}
.admin-menu__label { min-width: 0; }

.admin-bar {
  position: fixed;
  top: 0;
  left: var(--admin-sidebar-w);
  right: 0;
  z-index: 150;
  height: var(--admin-bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 12px;
  background: var(--admin-chrome);
  border-bottom: 1px solid #101517;
  color: #c3c4c7;
  font-size: 13px;
}
.admin-bar__left,
.admin-bar__right {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}
.admin-bar__context {
  color: #fff;
  font-weight: 600;
}
.admin-bar__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--admin-bar-h);
  padding: 0 10px;
  color: #c3c4c7 !important;
  text-decoration: none !important;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
}
.admin-bar__cache-form {
  display: inline;
  margin: 0;
  padding: 0;
}
.admin-bar__link:hover {
  background: #2c3338;
  color: #72aee6 !important;
}
.admin-flash {
  margin: 0 0 12px;
}
.admin-bar__menu-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: #c3c4c7;
  font-size: 18px;
  line-height: 1;
  width: 36px;
  height: var(--admin-bar-h);
  cursor: pointer;
  padding: 0;
}
.admin-bar__menu-toggle:hover { background: #2c3338; color: #fff; }

.admin-body:has(.admin-sidebar) .admin-wrap {
  width: auto;
  max-width: none;
  margin: 0;
  padding: calc(var(--admin-bar-h) + 20px) 20px 40px calc(var(--admin-sidebar-w) + 20px);
  box-sizing: border-box;
}
.admin-wrap {
  width: min(1600px, calc(100% - 1.5rem));
  margin: 0.85rem auto 2rem;
}

.admin-nav-badge {
  display: inline-block;
  min-width: 1.1rem;
  padding: 0.08rem 0.35rem;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  background: #d63638;
  color: #fff;
}
.admin-submission-body {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--admin-line);
  border-radius: 0;
  background: #1d2327;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.55;
  color: var(--admin-text);
}
.price-table tr.is-unread td { font-weight: 600; }
.admin-unread-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #d63638;
  vertical-align: middle;
}
.admin-page-header {
  margin: 0 0 16px;
  padding-bottom: 4px;
}
.admin-page-header h1 {
  font-family: var(--admin-font);
  font-weight: 600;
  margin: 0 0 0.35rem;
  font-size: 23px;
  line-height: 1.3;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}
.admin-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.admin-jump a {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--admin-line);
  background: var(--admin-chrome-2);
  color: #c3c4c7 !important;
  text-decoration: none !important;
  font-size: 12px;
  border-radius: 3px;
}
.admin-jump a:hover {
  border-color: #72aee6;
  color: #72aee6 !important;
}

.admin-section {
  background: var(--admin-chrome-2);
  border: 1px solid var(--admin-line);
  border-radius: 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  margin: 0 0 16px;
  overflow: hidden;
  scroll-margin-top: calc(var(--admin-bar-h) + 12px);
}
.admin-section__title {
  font-family: var(--admin-font);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  padding: 10px 16px;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
  background: #23282d;
  border-bottom: 1px solid var(--admin-line);
}
.admin-display-mode {
  display: grid;
  gap: 0.55rem;
}
.admin-display-mode__option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--admin-line);
  border-radius: 3px;
  background: #1d2327;
  cursor: pointer;
  font-weight: 500;
}
.admin-display-mode__option:has(input:checked) {
  border-color: #72aee6;
  background: rgba(34, 113, 177, 0.18);
  box-shadow: 0 0 0 1px #72aee6;
}
.admin-display-mode__option input {
  margin-top: 0.2rem;
}
.admin-display-mode__option span {
  display: grid;
  gap: 0.15rem;
}
.admin-display-mode__option strong {
  font-size: 13px;
  color: #fff;
}
.admin-display-mode__option small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
.admin-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  padding: 8px 12px 8px 0;
  background: #23282d;
  border-bottom: 1px solid var(--admin-line);
}
.admin-section__head .admin-section__title {
  border-bottom: 0;
  background: transparent;
  flex: 1 1 auto;
  min-width: 10rem;
  padding-right: 0;
}
.admin-section__title span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--admin-muted);
}
.admin-portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
  margin: 0 4px 0 auto;
  padding-right: 4px;
}
.admin-portfolio-filter {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: #a7aaad;
  border-radius: 4px;
  padding: 0.28rem 0.55rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.admin-portfolio-filter:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.admin-portfolio-filter.is-active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent-dim);
}
.portfolio-project.is-filter-hidden { display: none; }
@media (max-width: 900px) {
  .admin-section__head {
    align-items: stretch;
  }
  .admin-portfolio-filters {
    width: 100%;
    justify-content: flex-start;
    margin-left: 12px;
    margin-bottom: 4px;
  }
}
.admin-section__body {
  padding: 14px 16px 18px;
}
.admin-section__body > :first-child { margin-top: 0; }
.admin-section__row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 4px;
}
@media (max-width: 782px) {
  .admin-section__row { grid-template-columns: 1fr; }
}
.admin-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500 !important;
  color: var(--admin-text) !important;
  margin: 0.55rem 0 !important;
  cursor: pointer;
}
.admin-check input {
  width: auto !important;
  min-height: 0 !important;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.admin-field-block {
  margin: 0 0 0.85rem;
}
.admin-field-block:last-child { margin-bottom: 0; }
.admin-topic-card {
  border: 1px solid var(--admin-line);
  background: #1d2327;
  padding: 12px;
  margin: 0 0 10px;
}
.admin-topic-card:last-child { margin-bottom: 0; }

.admin-card {
  background: var(--admin-chrome-2);
  border: 1px solid var(--admin-line);
  border-radius: 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  padding: 16px 20px 20px;
  margin-bottom: 16px;
}
.admin-card h1 {
  font-family: var(--admin-font);
  font-weight: 600;
  margin: 0 0 0.5rem;
  font-size: 23px;
  line-height: 1.3;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}
.admin-card h2 {
  font-family: var(--admin-font);
  font-weight: 600;
  margin: 1rem 0 0.45rem;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}
.admin-card > a.admin-card,
a.admin-card {
  display: block;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
a.admin-card:hover {
  border-color: #72aee6;
  box-shadow: 0 0 0 1px #72aee6;
  text-decoration: none !important;
}
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem; }
.admin-actions--sticky {
  position: sticky; bottom: 0; z-index: 5;
  background: rgba(20, 23, 28, 0.96); border-top: 1px solid var(--admin-line);
  padding: 0.65rem 0; margin: 0.85rem -0.25rem 0; backdrop-filter: blur(8px);
}
.admin-body label {
  display: block;
  margin: 0.65rem 0 0.25rem;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.admin-body input[type="text"],
.admin-body input[type="email"],
.admin-body input[type="number"],
.admin-body input[type="password"],
.admin-body input[type="url"],
.admin-body input[type="tel"],
.admin-body input[type="search"],
.admin-body input[type="date"],
.admin-body input[type="time"],
.admin-body input[type="datetime-local"],
.admin-body input[type="month"],
.admin-body input[type="week"],
.admin-body input[type="file"],
.admin-body select,
.admin-body textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  min-height: 32px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
  border-radius: 3px;
  border: 1px solid var(--admin-line);
  background: #1d2327;
  color: var(--admin-text);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.admin-body select {
  padding-right: 2rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #a7aaad 50%),
    linear-gradient(135deg, #a7aaad 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 2px),
    calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  background-color: #1d2327;
  cursor: pointer;
}
.admin-body select option,
.admin-body select optgroup {
  background: #1d2327;
  color: var(--admin-text);
}
.admin-body textarea {
  min-height: 90px;
  line-height: 1.5;
  padding: 8px 10px;
  resize: vertical;
}
.admin-body input[type="file"] {
  padding: 6px 10px;
  line-height: 1.3;
  cursor: pointer;
  color: var(--admin-muted);
}
.admin-body input[type="file"]::file-selector-button {
  appearance: none;
  margin-right: 0.75rem;
  padding: 4px 10px;
  border: 1px solid var(--admin-line);
  border-radius: 3px;
  background: var(--admin-chrome-2);
  color: var(--admin-text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.admin-body input[type="file"]::file-selector-button:hover {
  border-color: #72aee6;
  color: #72aee6;
}
.admin-body input[type="date"],
.admin-body input[type="time"],
.admin-body input[type="datetime-local"],
.admin-body input[type="month"],
.admin-body input[type="week"] {
  color-scheme: dark;
}
.admin-body input[type="date"]::-webkit-calendar-picker-indicator,
.admin-body input[type="time"]::-webkit-calendar-picker-indicator,
.admin-body input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
  cursor: pointer;
  opacity: 0.85;
}
.admin-body input[type="checkbox"],
.admin-body input[type="radio"] {
  width: 1rem;
  height: 1rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--admin-accent);
  border: 1px solid var(--admin-line);
  background: #1d2327;
  color-scheme: dark;
  cursor: pointer;
  flex-shrink: 0;
  vertical-align: middle;
}
.admin-body input[type="checkbox"] {
  border-radius: 2px;
}
.admin-body input[type="radio"] {
  border-radius: 50%;
}
.admin-body input::placeholder,
.admin-body textarea::placeholder {
  color: #8c8f94;
  opacity: 1;
}
.admin-body input:focus,
.admin-body select:focus,
.admin-body textarea:focus {
  border-color: #72aee6;
  box-shadow: 0 0 0 1px #72aee6;
  outline: none;
  background: #23282d;
}
.admin-body input:disabled,
.admin-body select:disabled,
.admin-body textarea:disabled,
.admin-body input[readonly] {
  opacity: 0.75;
  color: var(--admin-muted);
  background: #191f23;
  cursor: default;
}
.admin-body label:has(> input[type="checkbox"]),
.admin-body label:has(> input[type="radio"]) {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--admin-text);
  cursor: pointer;
}
.admin-body label:has(> input[type="checkbox"]) > input,
.admin-body label:has(> input[type="radio"]) > input {
  margin-top: 0.15rem;
}
.admin-body .media-card input,
.admin-body .promo-pick,
.admin-body .price-item input,
.admin-body .price-item select,
.admin-body .price-item textarea {
  background: #1d2327;
  color: var(--admin-text);
  border-color: var(--admin-line);
}
.admin-body .promo-card {
  border: 1px solid var(--admin-line);
  border-radius: 3px;
  padding: 0.75rem;
  margin: 0;
  background: #1d2327;
}
.admin-body .promo-card h3 {
  margin: 0 0 0.45rem;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.admin-body .promo-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-body .promo-pick {
  max-height: 140px;
  overflow: auto;
  border: 1px solid var(--admin-line);
  border-radius: 3px;
  padding: 0.4rem 0.55rem;
  background: #191f23;
}
.admin-body .promo-pick label {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  font-weight: 500;
  margin: 0.25rem 0;
  font-size: 12px;
  color: var(--admin-text);
}
.admin-body .promo-pick small {
  color: var(--admin-muted);
  display: block;
  font-weight: 400;
}
.admin-body .promo-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-top: 0.45rem;
}
.admin-body .promo-flags label {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-weight: 500;
  margin: 0;
  font-size: 12px;
}
@media (max-width: 1000px) {
  .admin-body .promo-grid { grid-template-columns: 1fr; }
}
.admin-body .grid-2 { gap: 0.75rem; }
.admin-body .notice {
  padding: 8px 12px;
  margin: 0.65rem 0;
  font-size: 13px;
  border-radius: 0;
  border-left-width: 4px;
}
.admin-meta { color: var(--admin-muted); font-size: 13px; margin: 0.15rem 0 0.65rem; }
.admin-sec-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-sec-badge.is-ok { background: rgba(0, 160, 80, 0.2); color: #68de7c; }
.admin-sec-badge.is-bad { background: rgba(214, 54, 56, 0.2); color: #ff8985; }

/* Admin Scripts — tabbed creative packages */
.admin-script-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--admin-line);
}
.admin-script-tabs__btn {
  appearance: none;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  color: var(--admin-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  margin-bottom: -1px;
  cursor: pointer;
  border-radius: 3px 3px 0 0;
}
.admin-script-tabs__btn:hover { color: #fff; background: #1d2327; }
.admin-script-tabs__btn.is-active {
  color: #fff;
  background: var(--admin-chrome-2);
  border-color: var(--admin-line);
}
.admin-script-panel[hidden] { display: none !important; }
.admin-script-prompt {
  margin: 0 0 1rem;
}
.admin-script-prompt__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
}
.admin-script-prompt__head strong {
  font-size: 13px;
  color: #fff;
}
.admin-script-prompt__meta {
  font-size: 12px;
  color: var(--admin-muted);
  margin: 0 0 0.35rem;
}
.admin-script-prompt textarea,
.admin-script-box {
  width: 100%;
  min-height: 7rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  box-sizing: border-box;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--admin-text);
  background: #1d2327;
  border: 1px solid var(--admin-line);
  border-radius: 0;
  white-space: pre-wrap;
}
.admin-script-box { min-height: 0; }
.admin-script-vo {
  margin: 0;
  padding: 0.85rem 1rem;
  background: #1d2327;
  border: 1px solid var(--admin-line);
  font-size: 14px;
  line-height: 1.65;
  color: var(--admin-text);
}
.admin-script-vo p { margin: 0 0 0.85rem; }
.admin-script-vo p:last-child { margin-bottom: 0; }
.admin-script-vo__beat {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #72aee6;
  margin-bottom: 0.2rem;
}
.admin-script-slogans {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.admin-script-slogans li {
  padding: 0.55rem 0.75rem;
  background: #1d2327;
  border: 1px solid var(--admin-line);
  font-size: 13px;
  color: var(--admin-text);
}
.admin-script-slogans li strong { color: #fff; }
.admin-script-timeline {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-script-timeline th,
.admin-script-timeline td {
  border: 1px solid var(--admin-line);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
.admin-script-timeline th {
  background: #23282d;
  color: #fff;
  font-weight: 600;
}
.admin-script-clip-grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 960px) {
  .admin-script-clip-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.admin-script-clip {
  background: #1d2327;
  border: 1px solid var(--admin-line);
  padding: 0.75rem;
}
.admin-script-clip h3 {
  margin: 0 0 0.35rem;
  font-size: 13px;
  color: #fff;
}
.admin-script-clip .admin-script-prompt__meta { margin-bottom: 0.5rem; }
.admin-script-clip textarea { min-height: 11rem; }

.admin-body .stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.admin-body .stat {
  padding: 12px 14px;
  background: #1d2327;
  border: 1px solid var(--admin-line);
  border-radius: 0;
}
.admin-body a.stat--link {
  color: inherit !important;
  text-decoration: none !important;
  transition: border-color 0.12s ease;
}
.admin-body a.stat--link:hover {
  border-color: #72aee6;
}
.dash-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.dash-status--stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.85rem;
}
.dash-status__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 13px;
  color: var(--admin-muted);
}
.dash-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
}
.dash-link-grid--stack {
  grid-template-columns: 1fr;
}
.dash-link {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  background: #1d2327;
  border: 1px solid var(--admin-line);
  color: inherit !important;
  text-decoration: none !important;
  transition: border-color 0.12s ease;
}
.dash-link:hover {
  border-color: #72aee6;
}
.dash-link strong {
  font-size: 13px;
  color: #fff;
}
.dash-link span {
  font-size: 12px;
  color: var(--admin-muted);
  line-height: 1.4;
}
.dash-columns {
  display: grid;
  gap: 16px;
  margin: 0 0 16px;
  align-items: start;
}
.dash-columns .admin-section {
  margin-bottom: 0;
  height: 100%;
}
.dash-columns--top {
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
}
.dash-columns--groups {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dash-columns--bottom {
  grid-template-columns: 1fr 1fr;
}
.admin-body .stats-row--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dash-split {
  display: grid;
  gap: 0;
}
@media (max-width: 1280px) {
  .dash-columns--groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .dash-columns--top,
  .dash-columns--groups,
  .dash-columns--bottom {
    grid-template-columns: 1fr;
  }
  .admin-body .stats-row--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .dash-split {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .dash-split .admin-section { margin-bottom: 16px; }
}

.admin-body .stat strong {
  font-family: var(--admin-font);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}
.admin-body .stat span { color: var(--admin-muted); font-size: 12px; }
.admin-body .btn {
  font-family: var(--admin-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 2.15384615;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 3px;
  border: 1px solid transparent;
  text-transform: none;
  letter-spacing: 0;
}
.admin-body .btn-primary {
  background: var(--admin-accent);
  border-color: var(--admin-accent);
  color: #fff;
}
.admin-body .btn-primary:hover {
  background: var(--admin-accent-hover);
  border-color: var(--admin-accent-hover);
  filter: none;
  color: #fff;
}
.admin-body .btn-ghost {
  background: #2c3338;
  border-color: #3c434a;
  color: #f0f0f1;
}
.admin-body .btn-ghost:hover {
  background: #3c434a;
  border-color: #50575e;
  color: #fff;
  text-decoration: none;
}
.admin-body .field-hint,
.admin-body .lede,
.admin-body p { color: var(--admin-muted); }
.admin-body .price-table {
  border-color: var(--admin-line);
  background: #1d2327;
}
.admin-body .price-table th,
.admin-body .price-table td {
  border-color: var(--admin-line);
  color: var(--admin-text);
}
.admin-body .price-table th {
  background: #23282d;
  color: #fff;
}

.admin-body--login {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1d2327;
}
.admin-wrap--login {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.admin-card--login {
  padding: 26px 24px 30px;
  text-align: left;
}
.admin-card--login h1 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 0.25rem;
}
.admin-card--login .admin-meta {
  text-align: center;
  margin-bottom: 1rem;
}
.admin-card--login .admin-actions {
  margin-top: 1.1rem;
}
.admin-card--login .admin-actions .btn-primary {
  width: 100%;
  justify-content: center;
}

@media (max-width: 782px) {
  .admin-body {
    --admin-sidebar-w: 0px;
  }
  .admin-sidebar {
    transform: translateX(-100%);
    width: 190px;
    transition: transform 0.15s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
  .admin-body.admin-menu-open .admin-sidebar {
    transform: translateX(0);
  }
  .admin-bar {
    left: 0;
  }
  .admin-bar__menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .admin-body:has(.admin-sidebar) .admin-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Price catalog editor */
.price-complexity-grid {
  display: grid; gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 0.75rem;
}
.price-complexity-card {
  border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.65rem; background: rgba(0,0,0,.12);
}
.price-sections { display: grid; gap: 0.55rem; }
.price-section {
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(0,0,0,.15); overflow: hidden;
}
.price-section.is-dragging { opacity: 0.45; }
.price-section.is-drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(61, 156, 240, 0.35);
}
.price-section__bar {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  cursor: default;
  background: rgba(20, 24, 32, 0.55);
  border-bottom: 1px solid transparent;
}
.price-section--open .price-section__bar { border-bottom-color: var(--line); }
.price-section__handle,
.price-item__handle {
  width: 1.35rem; height: 1.35rem;
  display: inline-grid; place-items: center;
  color: var(--muted); cursor: grab; user-select: none;
  border-radius: 4px; font-size: 0.85rem; line-height: 1;
  touch-action: none;
}
.price-section__handle:active,
.price-item__handle:active { cursor: grabbing; }
.price-section__handle:hover,
.price-item__handle:hover { color: var(--text); background: rgba(255,255,255,.05); }
.price-section__toggle {
  appearance: none; border: 0; background: transparent; color: inherit;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.15rem 0.25rem; cursor: pointer; font: inherit; text-align: left;
  min-width: 0;
}
.price-section__chevron {
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); margin-bottom: 3px; flex-shrink: 0;
  transition: transform .15s;
}
.price-section--open .price-section__chevron {
  transform: rotate(-135deg); margin-bottom: 0; margin-top: 3px;
}
.price-section__toggle .js-section-heading {
  font-size: 0.92rem; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.price-section__count {
  color: var(--muted); font-size: 0.75rem; white-space: nowrap;
}
.price-section__body {
  display: none;
  padding: 0.55rem 0.65rem 0.65rem;
}
.price-section--open .price-section__body { display: block; }
.price-section__fields {
  display: grid; gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.55rem;
}
.price-section__actions {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.55rem;
}
.price-items {
  display: grid; gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 2rem;
}
.price-items.is-drag-over {
  outline: 1px dashed rgba(61, 156, 240, 0.55);
  outline-offset: 2px;
  border-radius: 8px;
}
.price-item {
  border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.55rem;
  background: var(--bg); display: grid; gap: 0.2rem; align-content: start;
}
.price-item.is-dragging { opacity: 0.4; }
.price-item.is-drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(61, 156, 240, 0.35);
}
.price-item__top {
  display: flex; justify-content: space-between; gap: 0.35rem; align-items: center;
}
.price-item__top-left {
  display: flex; align-items: center; gap: 0.3rem; min-width: 0;
}
.price-item__top strong { font-size: 0.8rem; color: var(--admin-muted, var(--muted)); font-weight: 600; }
.admin-body .price-item {
  border-color: var(--admin-line);
  background: #1d2327;
}
.admin-body .price-item__top strong { color: var(--admin-muted); }
.admin-body .price-item__handle:hover,
.admin-body .portfolio-project__handle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.admin-body .portfolio-project {
  border-color: var(--admin-line);
  background: #1d2327;
}
.admin-body .portfolio-project__badge {
  background: #23282d;
  border-color: var(--admin-line);
  color: var(--admin-muted);
}
.admin-body .admin-media-preview {
  border-color: var(--admin-line);
  background: #191f23;
}
.price-flags {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; margin-top: 0.25rem;
}
.price-flags label {
  display: inline-flex; gap: 0.3rem; align-items: center; font-weight: 500; margin: 0; font-size: 0.74rem;
}
.price-toolbar { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.55rem 0 0.15rem; }
.btn-tiny {
  min-height: 0 !important; padding: 0.28rem 0.55rem !important; font-size: 0.75rem !important;
  border-radius: 6px !important;
}
.btn-danger-ghost { color: #e07a7a; border-color: rgba(224,122,122,.35); }
.btn-danger-ghost:hover { background: rgba(224,122,122,.12); border-color: #e07a7a; }

/* Portfolio admin accordion */
.portfolio-list { display: grid; gap: 0.55rem; }
.portfolio-project {
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(0,0,0,.15); overflow: hidden;
}
.portfolio-project.is-dragging { opacity: 0.45; }
.portfolio-project.is-drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(61, 156, 240, 0.35);
}
.portfolio-project__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  background: rgba(20, 24, 32, 0.55);
  border-bottom: 1px solid transparent;
}
.portfolio-project--open .portfolio-project__bar { border-bottom-color: var(--line); }
.portfolio-project__handle {
  width: 1.35rem; height: 1.35rem;
  display: inline-grid; place-items: center;
  color: var(--muted); cursor: grab; user-select: none;
  border-radius: 4px; font-size: 0.85rem; line-height: 1;
  touch-action: none;
}
.portfolio-project__handle:active { cursor: grabbing; }
.portfolio-project__handle:hover { color: var(--text); background: rgba(255,255,255,.05); }
.portfolio-project__toggle {
  appearance: none; border: 0; background: transparent; color: inherit;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.15rem 0.25rem; cursor: pointer; font: inherit; text-align: left;
  min-width: 0;
}
.portfolio-project__chevron {
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); margin-bottom: 3px; flex-shrink: 0;
  transition: transform .15s;
}
.portfolio-project--open .portfolio-project__chevron {
  transform: rotate(-135deg); margin-bottom: 0; margin-top: 3px;
}
.portfolio-project__toggle .js-project-heading {
  font-size: 0.92rem; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.portfolio-project__meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; justify-content: flex-end;
}
.portfolio-project__badge {
  font-size: 0.72rem; color: var(--muted); white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.45rem;
}
.portfolio-project__badge.is-live {
  color: #7dcea0; border-color: rgba(125, 206, 160, 0.35);
}
.portfolio-project__body {
  display: none;
  padding: 0.55rem 0.65rem 0.75rem;
}
.portfolio-project--open .portfolio-project__body { display: block; }
.portfolio-project__actions {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.55rem;
}
.portfolio-project__thumb {
  max-width: 180px; border-radius: 8px; margin-top: 0.35rem; display: block;
}
.portfolio-project__preview { margin-top: 0.5rem; }
.admin-media-preview {
  position: relative;
  display: inline-block;
  width: auto;
  height: auto;
  max-width: min(220px, 100%);
  max-height: 160px;
  margin: 0.45rem 0 0.15rem;
  border: 1px solid var(--admin-line, var(--line));
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  vertical-align: top;
  line-height: 0;
}
.admin-media-preview.is-empty { display: none; }
.admin-media-preview img,
.admin-media-preview video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  object-position: center;
  background: #0b0e12;
}
.admin-media-preview[data-media="video"] video,
.admin-media-preview[data-media="youtube"] img {
  max-height: 160px;
  width: auto;
}
.admin-media-preview--icon {
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  background: #fff;
  padding: 0.55rem;
  box-sizing: border-box;
  line-height: normal;
}
.admin-media-preview--icon img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.admin-media-preview[data-media="audio"] {
  width: min(220px, 100%);
  max-height: none;
  line-height: normal;
}
.admin-media-preview__audio {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}
.admin-media-preview audio {
  width: 100%;
  height: 32px;
  display: block;
}
.admin-media-preview__badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.admin-field-block .admin-media-preview { margin-top: 0.5rem; }
.gallery-editor { margin: 0.75rem 0; }
.gallery-editor__rows { display: grid; gap: 0.55rem; }
.gallery-editor__row {
  padding: 0.45rem 0.5rem 0.55rem;
  border: 1px solid var(--admin-line, var(--line));
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}
.gallery-editor__src {
  display: grid; grid-template-columns: 1fr auto; gap: 0.35rem; align-items: start;
}
.media-card .admin-media-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  max-height: none;
  min-height: 140px;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.media-card .admin-media-preview img,
.media-card .admin-media-preview video {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.media-card .admin-media-preview[data-media="audio"] {
  flex-direction: column;
  min-height: 140px;
}

@media (max-width: 1200px) {
  .price-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-section__fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .price-items { grid-template-columns: 1fr; }
  .price-section__fields { grid-template-columns: 1fr; }
  .price-section__bar { grid-template-columns: auto auto 1fr; }
  .price-section__count { grid-column: 1 / -1; }
  .portfolio-project__bar { grid-template-columns: auto 1fr; }
  .portfolio-project__meta { grid-column: 1 / -1; justify-content: flex-start; }
}

.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }

@media (max-width: 1100px) {
  .form-shell { grid-template-columns: 1fr 0.85fr; }
}

@media (max-width: 900px) {
  .split, .form-shell, .grid-2 { grid-template-columns: 1fr; }
  .site-header {
    flex-direction: column; align-items: stretch; height: auto;
    padding-top: 0.65rem; padding-bottom: 0.5rem; gap: 0;
  }
  .site-header__top { width: 100%; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; flex-direction: column; align-items: stretch; width: 100%;
    max-height: min(70vh, 420px); overflow-y: auto; padding: 0.35rem 0 0.5rem;
    mask-image: none;
  }
  .site-header.is-nav-open .site-nav { display: flex; }
  .site-nav__link { padding: 0.7rem 0.85rem; font-size: 0.92rem; }
  body { --header-h: 64px; }
  .site-header__brand span { display: none; }
  .estimate-total { position: static; }
  .hero { min-height: calc(100vh - var(--header-h) - var(--footer-h) - 1rem); padding-bottom: 1.75rem; }
  .hero__bg { height: min(70vh, 560px); }
  .check-grid label { flex-wrap: wrap; }
  .qty-row { margin-left: 0; width: 100%; }
  .btn { min-height: 44px; padding: 0.75rem 1.1rem; }
}

@media (max-width: 640px) {
  :root {
    --footer-h: 96px;
    --gutter: 1rem;
    font-size: 15px;
  }
  body { --header-h: 64px; }
  .site-main { padding-top: 1.15rem; padding-bottom: 2rem; }
  .site-footer { flex-wrap: wrap; align-items: flex-start; padding-top: 0.65rem; padding-bottom: 0.65rem; }
  .site-footer__info { flex: 1 1 100%; }
  .footer-tools { margin-left: auto; }
  .hero h1, .panel h1 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1 1 auto; text-align: center; }
  .price-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .filters { gap: 0.35rem; }
  .filter-btn { min-height: 40px; }
  .form, .estimate-panel, .notice { padding: 1rem; }
  .about-split {
    flex-direction: column;
    gap: 1.25rem;
  }
  .about-split .portrait {
    flex: none;
    width: min(100%, 280px);
    max-width: none;
    height: auto;
    aspect-ratio: 4/5;
    margin: 0 auto;
    border-radius: 12px;
  }
  .dev-tool-toast { left: var(--gutter); right: var(--gutter); bottom: calc(var(--footer-h) + 10px); }
  .dev-deploy-panel { left: var(--gutter); right: var(--gutter); bottom: calc(var(--footer-h) + 10px); max-width: none; }
}

@media (max-width: 400px) {
  body { --header-h: 64px; }
  .site-nav__link { padding: 0.65rem 0.75rem; font-size: 0.88rem; }
}
