/* ============================================================
   draftsman.css — "The Laser Draftsman" design system
   Shared motion + component layer for all pages.
   Rules: content opacity NEVER below 1; all pre-animation
   states are scoped under html.js-anim; no-JS = finished page.
   ============================================================ */

:root {
  --laser-deep: #926f16;
  --laser-bright: #e8b84b;
  --gold-cta: #c9971c;
  --ink: #0c0e10;
  --ink-soft: #14171b;
  --sheet: #ffffff;
  --sheet-alt: #f7f9fc;
  --plate-border: #d8dce2;
  --grid-line: rgba(146, 111, 22, 0.07);
  --grid-line-sub: rgba(146, 111, 22, 0.03);
  --mono: ui-monospace, Consolas, "SF Mono", Menlo, monospace;
  scroll-behavior: auto;
}

/* ---------- blueprint grid sheet ---------- */
.sheet-grid {
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line-sub) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-sub) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 12px 12px, 12px 12px;
}

/* ---------- DRAW: laser rule under headings ---------- */
.laser-rule {
  position: relative;
  padding-bottom: 14px;
}
.laser-rule::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 76px;
  background: linear-gradient(90deg, var(--laser-deep), var(--laser-bright));
  box-shadow: 0 0 8px rgba(232, 184, 75, 0.45);
  transform-origin: left center;
}
.laser-rule--center {
  text-align: center;
}
.laser-rule--center::after {
  left: 50%;
  margin-left: -38px;
}
html.js-anim .io .laser-rule::after {
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.25, 0.7, 0.3, 1) 0.1s;
}
html.js-anim .io.in-view .laser-rule::after {
  transform: scaleX(1);
}

/* ---------- ANNOTATE: self-typing mono kicker (max ONE per page) ---------- */
.annotation {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--laser-deep);
}
.annotation span {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  max-width: 100%;
}
@media (max-width: 575.98px) {
  .annotation { font-size: 0.66rem; }
}
html.js-anim .annotation span {
  width: 0;
  animation: dm-type 1.4s steps(var(--chars, 49)) 0.35s forwards;
}
@keyframes dm-type {
  to { width: var(--typew, calc(var(--chars, 49) * 1ch)); }
}
.annotation .caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 2px;
  background: var(--laser-bright);
  vertical-align: text-bottom;
  animation: dm-caret 1s steps(2) infinite;
}
@keyframes dm-caret {
  50% { opacity: 0; }
}

/* ---------- MEASURE: stat counters (HTML always holds final value) ---------- */
.stat {
  font-variant-numeric: tabular-nums;
}
.stat .stat-num {
  font-variant-numeric: tabular-nums;
}

/* ---------- REGISTRATION: crosshair corner marks + hover lift ---------- */
.reg {
  position: relative;
}
.reg::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(var(--laser-deep), var(--laser-deep)) 0 0 / 14px 2px,
    linear-gradient(var(--laser-deep), var(--laser-deep)) 0 0 / 2px 14px,
    linear-gradient(var(--laser-deep), var(--laser-deep)) 100% 0 / 14px 2px,
    linear-gradient(var(--laser-deep), var(--laser-deep)) 100% 0 / 2px 14px,
    linear-gradient(var(--laser-deep), var(--laser-deep)) 0 100% / 14px 2px,
    linear-gradient(var(--laser-deep), var(--laser-deep)) 0 100% / 2px 14px,
    linear-gradient(var(--laser-deep), var(--laser-deep)) 100% 100% / 14px 2px,
    linear-gradient(var(--laser-deep), var(--laser-deep)) 100% 100% / 2px 14px;
  background-repeat: no-repeat;
  transition: inset 0.2s ease;
}
.reg-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reg-lift:hover,
.reg-lift:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(12, 14, 16, 0.1);
}
.reg-lift:hover::before,
.reg-lift:focus-within::before {
  inset: -4px;
}

/* ---------- FIG frames (title-block captions) ---------- */
.fig {
  position: relative;
  margin: 0;
}
.fig img {
  display: block;
  width: 100%;
  height: auto;
}
.fig .fig-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--plate-border);
}
.fig figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #5c636d;
  border: 1px solid var(--plate-border);
  border-top: 0;
  padding: 8px 12px;
  background: var(--sheet);
}
.fig figcaption strong {
  color: var(--laser-deep);
  font-weight: 700;
}

/* ---------- SWEEP: one-shot laser pass OVER fully painted content ---------- */
.laser-sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--laser-bright) 30%, var(--laser-bright) 70%, transparent);
  box-shadow: 0 0 14px 3px rgba(232, 184, 75, 0.75);
  opacity: 0;
  pointer-events: none;
}
html.js-anim .io.in-view .laser-sweep {
  animation: dm-sweep 1.2s ease-in-out 0.4s 1;
}
@keyframes dm-sweep {
  0% { opacity: 0; left: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; left: calc(100% - 2px); }
}

/* ---------- RISE: entrance via transform only (the AOS replacement) ---------- */
html.js-anim .io .rise {
  transform: translateY(16px);
  transition: transform 0.7s cubic-bezier(0.25, 0.7, 0.3, 1);
}
html.js-anim .io.in-view .rise {
  transform: none;
}
html.js-anim .io .rise.d1 { transition-delay: 0.08s; }
html.js-anim .io .rise.d2 { transition-delay: 0.16s; }
html.js-anim .io .rise.d3 { transition-delay: 0.24s; }

/* ---------- BARS: pre-drawn by default, JS shrinks then refills ---------- */
.bar {
  position: relative;
  height: 18px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.bar .bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 100%);
  background: linear-gradient(90deg, var(--laser-deep), var(--laser-bright));
}
html.js-anim .io .bar .bar-fill {
  width: 0;
  transition: width 0.8s cubic-bezier(0.25, 0.7, 0.3, 1) 0.2s;
}
html.js-anim .io.in-view .bar .bar-fill {
  width: var(--w, 100%);
}

/* ---------- COMPARATOR: drag-the-laser before/after ---------- */
.comparator {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--plate-border);
  --pos: 50%;
}
.comparator img {
  display: block;
  width: 100%;
  height: auto;
}
.comparator .comp-top img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comparator .comp-top {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.comparator .comp-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--laser-bright);
  box-shadow: 0 0 12px 2px rgba(232, 184, 75, 0.8);
  pointer-events: none;
}
.comparator input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

/* ---------- Header phone pill + CONDENSE ---------- */
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary, "Montserrat", sans-serif);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--laser-bright);
  border: 1.5px solid var(--laser-deep);
  border-radius: 50px;
  padding: 9px 20px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.header-call:hover,
.header-call:focus {
  background: var(--gold-cta);
  border-color: var(--gold-cta);
  color: #fff;
}

/* ---------- Mobile sticky call bar ---------- */
.mobile-call-bar {
  display: none;
}
html.js-anim .mobile-call-bar {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  height: calc(52px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
html.js-anim .mobile-call-bar.visible {
  transform: none;
}
html.js-anim .mobile-call-bar.input-hidden {
  transform: translateY(110%);
}
@media (min-width: 768px) {
  html.js-anim .mobile-call-bar {
    display: none;
  }
}
/* The fixed bar overlays the last 52px of the page: reserve that space under
   the footer and lift the scroll-top button clear of the bar (15px + 52px). */
@media (max-width: 767.98px) {
  html.js-anim #footer {
    padding-bottom: calc(52px + env(safe-area-inset-bottom));
  }
  html.js-anim .scroll-top {
    bottom: calc(67px + env(safe-area-inset-bottom));
  }
}
.mobile-call-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.mobile-call-bar .mcb-call {
  position: relative;
  background: var(--gold-cta);
  color: #fff;
}
.mobile-call-bar .mcb-call .ping {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
}
html.js-anim .mobile-call-bar.visible .mcb-call .ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: dm-ping 1.1s ease-out 3;
}
@keyframes dm-ping {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0; }
}
.mobile-call-bar .mcb-quote {
  background: var(--ink);
  color: var(--laser-bright);
}

/* ---------- Buttons ---------- */
.btn-laser {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--gold-cta);
  border: 1.5px solid var(--gold-cta);
  border-radius: 50px;
  padding: 13px 30px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-laser:hover,
.btn-laser:focus {
  background: #b28315;
  border-color: #b28315;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 151, 28, 0.35);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 50px;
  padding: 13px 30px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--ink);
  color: var(--laser-bright);
  transform: translateY(-2px);
}
.btn-ghost--light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-ghost--light:hover,
.btn-ghost--light:focus {
  background: #fff;
  color: var(--ink);
}

/* ---------- tel microlink ---------- */
.tel-micro {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #5c636d;
  text-decoration: none;
  white-space: nowrap;
}
.tel-micro strong {
  color: var(--laser-deep);
  font-weight: 700;
}
.tel-micro:hover strong {
  color: var(--gold-cta);
  text-decoration: underline;
}

/* ---------- Reduced motion: full aesthetic, pre-drawn ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .laser-sweep {
    display: none;
  }
  html.js-anim .annotation span {
    width: auto;
    animation: none;
  }
}

/* ============================================================
   Shared page components (sitewide) — header, plates, rates,
   closer, CTA overrides. Added for the full-site rollout.
   ============================================================ */

/* ---------- fixed header ---------- */
.dhdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  height: 84px;
  display: flex;
  align-items: center;
  background: rgba(12, 14, 16, 0.88);
  backdrop-filter: blur(8px);
  transition: height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.dhdr--scrolled {
  height: 64px;
  background: #0c0e10;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.dhdr--scrolled .header-call {
  background: var(--gold-cta);
  border-color: var(--gold-cta);
  color: #fff;
}
.dhdr .dhdr-logo img { height: 46px; transition: height 0.3s ease; }
.dhdr--scrolled .dhdr-logo img { height: 38px; }
.dhdr-right { gap: 12px; }
.dhdr-nav ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* keep the row on one line while the webfont is still swapping in — the
   fallback face is wider and used to wrap the nav on top of the logo */
.dhdr-nav li { white-space: nowrap; }
@media (max-width: 1399.98px) { .dhdr-nav ul { gap: 18px; } }
@media (max-width: 1279.98px) {
  .dhdr-nav ul { gap: 12px; }
  .dhdr-nav a { font-size: 0.74rem; letter-spacing: 0.03em; }
}
.dhdr-nav a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
}
.dhdr-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--laser-deep), var(--laser-bright));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.dhdr-nav a:hover::after,
.dhdr-nav a:focus::after,
.dhdr-nav a.active::after { transform: scaleX(1); }
.dhdr-nav a:hover, .dhdr-nav a:focus { color: #fff; }
.dhdr-nav .nav-call-row { display: none; }
.dhdr-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  padding: 4px 8px;
}
@media (max-width: 1199.98px) {
  .dhdr-toggle { display: block; }
  .dhdr-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #0c0e10;
    border-top: 1px solid rgba(232, 184, 75, 0.25);
    display: none;
    padding: 12px 0 18px;
  }
  .dhdr-nav.open { display: block; }
  .dhdr-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .dhdr-nav a {
    display: block;
    padding: 13px 24px;
    font-size: 0.95rem;
  }
  .dhdr-nav a::after { display: none; }
  .dhdr-nav .nav-call-row { display: block; }
  .dhdr-nav .nav-call-row a { color: var(--laser-bright); font-size: 1.05rem; }
  .header-call { padding: 8px 14px; font-size: 0.86rem; }
}
@media (max-width: 400px) {
  .dhdr .dhdr-logo img { height: 36px; }
  .header-call { font-size: 0.8rem; padding: 7px 10px; gap: 5px; }
}

/* ---------- service plates ---------- */
.plate {
  background: #fff;
  border: 1px solid var(--plate-border);
  padding: 30px 28px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.plate .plate-kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #8a9099;
  margin-bottom: 14px;
}
.plate h3 {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.plate .plate-stat {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--laser-deep);
  margin: 14px 0 10px;
}
.plate .plate-stat small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #8a9099;
  margin-top: 2px;
}
.plate p { font-size: 0.95rem; color: #494f57; line-height: 1.65; }
.plate .plate-sub { font-size: 0.85rem; margin-top: -4px; }
.plate .plate-sub a { color: var(--laser-deep); font-weight: 600; text-decoration: none; }
.plate .plate-sub a:hover { text-decoration: underline; }
.plate .plate-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.plate .plate-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}
.plate .plate-link:hover { color: var(--laser-deep); }
.plate .badge-new {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--gold-cta);
  padding: 3px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- rate cards ---------- */
.rate {
  background: #fff;
  border: 1px solid var(--plate-border);
  padding: 26px 22px;
  text-align: center;
  height: 100%;
  position: relative;
  transition: transform 0.18s ease;
}
.rate .rate-tier {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #8a9099;
  text-transform: uppercase;
}
.rate .rate-price {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--ink);
  margin: 10px 0 2px;
  white-space: nowrap;
}
.rate .rate-price small { font-size: 1rem; font-weight: 700; color: #6a7079; }
.rate .rate-from {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #8a9099;
  margin-bottom: 10px;
}
.rate .rate-desc { font-size: 0.88rem; color: #494f57; }
.rate--featured { border-color: var(--laser-deep); }
.rate--featured .rate-price { color: var(--laser-deep); }
.rate .rate-flag {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  background: var(--gold-cta);
  color: #fff;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ---------- dark closer ---------- */
.closer { background: var(--ink); color: #fff; text-align: center; padding: 90px 0; }
.closer h2 {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  margin-bottom: 26px;
}
.closer .giant-tel {
  display: inline-block;
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: var(--laser-bright);
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.closer .giant-tel:hover { color: #fff; }
.closer .closer-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
.closer .closer-meta a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.closer .closer-meta a:hover { color: var(--laser-bright); }
.closer .owner-line { color: rgba(255, 255, 255, 0.8); font-size: 1.02rem; margin: 20px 0 30px; }
.closer .owner-line strong { color: #fff; }
.closer .cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- retire the off-brand blue CTA from the old theme ---------- */
.cta-btn,
.call-to-action .cta-btn {
  background: var(--gold-cta) !important;
  border-color: var(--gold-cta) !important;
  color: #fff !important;
}
.cta-btn:hover { background: #b28315 !important; border-color: #b28315 !important; }

/* ---------- sitewide hero polish: sweep + scan-view comparator ---------- */
.breadcrumbs, .hero {
  position: relative;
  overflow: hidden;
}
.scanify {
  filter: grayscale(1) brightness(0.55) sepia(1) hue-rotate(8deg) saturate(2.4) contrast(1.2);
}
.comp-tag {
  position: absolute;
  top: 10px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--laser-bright);
  background: rgba(12, 14, 16, 0.75);
  padding: 3px 9px;
  pointer-events: none;
  z-index: 2;
}
.comp-tag--left { left: 10px; }
.comp-tag--right { right: 10px; color: #fff; }
