:root {
  --navy: #040112;
  --ink: #10182a;
  --blue: #1e50e2;
  --blue-bright: #3b82f6;
  --paper: #f7f8fa;
  --line: #d7dce4;
  /* SMARTCurb workspace palette — ported from TM_Shopify_Store
     sections/tm-hvac-supplies.liquid + snippets/tm-engineering-workspace.liquid.
     Deep navy canvas with a slightly lighter charcoal-navy panel tone, same
     brand blue used site-wide. */
  --sc-bg-deep: #04060d;
  --sc-bg-panel: #0f1319;
  --sc-ink-light: #eaf0f8;
  --sc-header-h: 84px; /* fallback; JS sets the real measured height */
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--paper); }
.sc-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------------
   Header — replicates the Taylor Metals theme header treatment (Daniel,
   2026-08-17): semi-transparent navy + backdrop blur, floats over the
   hero, Barlow-styled uppercase nav, brand-blue CTA pill. Barlow itself is
   loaded theme-side via Shopify's font service (no local font file exists
   in TM_Shopify_Store/assets) — self-hosting it here would mean pulling a
   webfont from an external CDN, which the phase-3 hard rules forbid, so
   this falls back to the system UI stack everywhere Barlow is referenced.
   --------------------------------------------------------------------- */
.sc-head {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 5vw;
  background: rgba(4, 1, 18, 0.15);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}
.sc-logo, .sc-head__logo { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.02em; color: #fff; text-decoration: none; font-family: 'Barlow Condensed', 'Segoe UI', system-ui, sans-serif; }
.sc-logo span, .sc-head__logo span { color: var(--blue); }
.sc-head__logo sup { font-size: 0.5em; font-weight: 700; vertical-align: super; margin-left: 0.12em; color: var(--blue); }
.sc-powered { font-size: 0.8rem; color: #9aa6bd; }
.sc-powered a { color: #c6d2ea; }
.sc-head__nav { display: flex; align-items: center; gap: 2rem; }
.sc-head__nav a {
  font: 700 13px/1 'Barlow', 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.sc-head__nav a:hover { color: var(--blue); transform: translateY(-2px); }
.header-cta-pill, .sc-head__cta {
  position: relative;
  background-color: var(--blue);
  color: #fff !important;
  border-radius: 9999px;
  padding: 0.65em 1.2em;
  font: 600 12px/1 'Barlow', 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease;
}
.header-cta-pill::after, .sc-head__cta::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: radial-gradient(at 50% 100%, rgba(220,230,250,.7), transparent 70%);
  filter: blur(16px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
  pointer-events: none;
}
.header-cta-pill:hover, .sc-head__cta:hover {
  background-color: #1a44c8;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(30,80,226,.7);
}
.header-cta-pill:hover::after, .sc-head__cta:hover::after { opacity: 1; }
/* "powered by" + the real Taylor Metals header logo, right side (Daniel,
   2026-08-17) — same logo asset as taylormetals.ca's header, hover treatment
   ported from the theme's .header__logo-image lift/glow. */
.sc-head__powered {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.sc-head__powered-txt {
  font: 600 10px/1 'Barlow', 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa6bd;
  white-space: nowrap;
}
.sc-head__powered-logo {
  height: 34px;
  width: auto;
  display: block;
  filter: drop-shadow(rgba(30,80,226,.25) 0 2px 12px);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), filter .3s;
}
.sc-head__powered:hover .sc-head__powered-logo {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(rgba(30,80,226,.55) 0 6px 22px);
}
@media (max-width: 700px) {
  .sc-head__nav { display: none; }
  .sc-head__powered-txt { display: none; }
  .sc-head__powered-logo { height: 26px; }
}

/* ---------------------------------------------------------------------
   Hero — ported from .hs__hero--brand / .hs__mark in
   sections/tm-hvac-supplies.liquid. Full-bleed brand artwork carrying the
   SMARTCurb wordmark; no dark wash. Pulls up behind the sticky header via
   --sc-header-h (measured by inline JS in index.html, same technique the
   theme uses for .tm-hero-section / var(--header-height)).
   --------------------------------------------------------------------- */
.sc-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: calc(var(--sc-header-h) * -1);
  min-height: 340px;
  aspect-ratio: 1717 / 916;
  max-height: 88vh;
  overflow: hidden;
  background: var(--sc-bg-deep);
}
.sc-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.sc-hero__mark {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font: 800 clamp(70px, 12vw, 200px) / 1 'Barlow Condensed', 'Segoe UI', system-ui, sans-serif;
  color: #f8f9f9; letter-spacing: -0.01em; pointer-events: none; will-change: transform;
}
.sc-hero__mark-c { color: var(--blue); }
.sc-hero__mark-tm { font-size: 0.22em; font-weight: 900; vertical-align: super; margin-left: 0.12em; color: var(--blue); }

/* ---------------------------------------------------------------------
   Fundamentals band — ported from .hs__fund in
   sections/tm-hvac-supplies.liquid. Two scroll-revealed expandable
   definitions between the hero and the workspace: blueprint-grid backdrop
   with slow parallax drift, staggered rise/fade entrance, dossier-style
   cards with an index treatment that ignites brand blue when open.
   --------------------------------------------------------------------- */
.sc-fund {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw);
  margin-top: -80px; padding: 176px 28px 84px; overflow: hidden; pointer-events: none;
  background: var(--sc-bg-deep);
}
.sc-fund::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 46% at 50% 0%, rgba(21,64,255,.14), transparent 70%),
              linear-gradient(180deg, var(--sc-bg-deep) 0, var(--sc-bg-panel) 260px);
}
.sc-fund__art {
  position: absolute; inset: -120px 0; pointer-events: none; will-change: transform;
  background: repeating-linear-gradient(0deg, rgba(143,182,255,.05) 0 1px, transparent 1px 72px),
              repeating-linear-gradient(90deg, rgba(143,182,255,.05) 0 1px, transparent 1px 72px);
  -webkit-mask-image: linear-gradient(180deg, transparent 130px, #000 340px, #000 calc(100% - 210px), transparent calc(100% - 110px));
  mask-image: linear-gradient(180deg, transparent 130px, #000 340px, #000 calc(100% - 210px), transparent calc(100% - 110px));
}
.sc-fund__in { position: relative; max-width: 1180px; margin: 0 auto; pointer-events: auto; }
.sc-fund__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .sc-fund__grid { grid-template-columns: 1fr; } }
.sc-fund__card {
  position: relative; background: rgba(15,19,25,.55); border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px; overflow: hidden;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
  opacity: 0; transform: translateY(30px);
}
.sc-fund.in .sc-fund__grid .sc-fund__card:first-child { transition-delay: .16s; }
.sc-fund.in .sc-fund__grid .sc-fund__card:last-child { transition-delay: .3s; }
.sc-fund.in .sc-fund__card {
  opacity: 1; transform: none;
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1), border-color .35s ease, box-shadow .35s ease;
}
.sc-fund__card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.sc-fund__card:hover { transform: translateY(-3px); border-color: rgba(111,155,255,.5); box-shadow: 0 20px 44px -18px rgba(0,0,0,.6); }
.sc-fund__card.open { border-color: rgba(21,64,255,.55); background: linear-gradient(180deg, rgba(19,26,42,.6), rgba(15,19,25,.55)); }
.sc-fund__card.open::before { transform: scaleX(1); }
.sc-fund__btn { display: flex; align-items: center; gap: 20px; width: 100%; background: none; border: 0; cursor: pointer; padding: 24px 26px; text-align: left; color: inherit; }
.sc-fund__btn:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: -2px; border-radius: 16px; }
.sc-fund__title { flex: 1; font: 800 clamp(21px, 2.4vw, 28px) / 1.05 'Barlow Condensed', 'Segoe UI', system-ui, sans-serif; text-transform: uppercase; color: #fff; }
.sc-fund__ico { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); position: relative; transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .35s ease, background .35s ease; }
.sc-fund__ico::before, .sc-fund__ico::after { content: ''; position: absolute; top: 50%; left: 50%; background: #8fb6ff; border-radius: 1px; transition: background .35s ease; }
.sc-fund__ico::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.sc-fund__ico::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.sc-fund__card.open .sc-fund__ico { transform: rotate(225deg); border-color: var(--blue); background: rgba(21,64,255,.14); }
.sc-fund__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.16,1,.3,1); }
.sc-fund__card.open .sc-fund__body { grid-template-rows: 1fr; }
.sc-fund__copy { overflow: hidden; min-height: 0; }
.sc-fund__copy p { margin: 0; padding: 2px 26px 26px 26px; font: 400 15.5px/1.7 'Barlow', 'Segoe UI', system-ui, sans-serif; color: rgba(234,240,248,.72); max-width: 60ch; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.sc-fund__card.open .sc-fund__copy p { opacity: 1; transform: none; transition-delay: .14s; }
@media (prefers-reduced-motion: reduce) {
  .sc-fund__card { opacity: 1; transform: none; transition: none; }
  .sc-fund__body { transition: none; }
  .sc-fund__copy p { opacity: 1; transform: none; transition: none; }
  .sc-fund__art { transform: none !important; }
}

/* ---------------------------------------------------------------------
   Body column + workspace — ported from .hs__body / #tmws in
   sections/tm-hvac-supplies.liquid + snippets/tm-engineering-workspace.liquid.
   --------------------------------------------------------------------- */
.sc-body {
  max-width: 1180px; margin: 0 auto; padding: 0 28px 80px;
  background: var(--sc-bg-panel); color: var(--sc-ink-light);
}
.sc-main { max-width: 860px; margin: 0 auto; padding: 2.5rem 5vw 4rem; }
h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 0.6rem; }
.sc-lede { max-width: 62ch; color: #3c4a63; }

.sc-workspace { padding-top: 44px; color: var(--sc-ink-light); font-family: 'Barlow', 'Segoe UI', system-ui, sans-serif; }
.sc-workspace * { box-sizing: border-box; }
.sc-workspace__h1 { font: 800 clamp(28px, 3.6vw, 44px) / 1 'Barlow Condensed', 'Segoe UI', system-ui, sans-serif; text-transform: none; color: #fff; margin: 0 0 14px; }
.sc-workspace .sc-lede { color: rgba(234,240,248,.72); max-width: 66ch; }

.sc-tmws__intro { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.72); margin: 28px 0 22px; }
.sc-tmws__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .sc-tmws__grid { grid-template-columns: 1fr; gap: 26px; } }

.sc-tmws__stagewrap {
  position: relative; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; cursor: grab; touch-action: none;
  background: radial-gradient(120% 120% at 50% 15%, #1c1f27, #111319); border: 1px solid rgba(255,255,255,.1);
}
#sc-stage { position: absolute; inset: 0; }
#sc-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.sc-tmws__empty { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; text-align: center; color: rgba(255,255,255,.55); font: 600 14px 'Barlow', 'Segoe UI', sans-serif; line-height: 1.6; padding: 36px; pointer-events: none; }
.sc-tmws__hud { position: absolute; top: 12px; left: 12px; z-index: 6; display: flex; gap: 6px; }
.sc-tmws__hudbtn { font: 700 11px 'Barlow', 'Segoe UI', sans-serif; letter-spacing: .08em; color: rgba(255,255,255,.65); background: rgba(10,12,18,.6); border: 1px solid rgba(255,255,255,.15); border-radius: 9px; padding: 6px 12px; cursor: pointer; }
.sc-tmws__hudbtn.on { background: var(--blue); color: #fff; }
.sc-tmws__badge { position: absolute; top: 12px; right: 12px; z-index: 6; display: inline-flex; align-items: center; gap: 7px; font: 700 12px 'Barlow Condensed', 'Segoe UI', sans-serif; letter-spacing: .18em; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.2); border-radius: 7px; padding: 4px 9px; }
.sc-tmws__rec { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; flex-shrink: 0; animation: scRecPulse 1.6s ease-in-out infinite; }
.sc-tmws__rec::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid rgba(255,59,48,.7); animation: scRecRing 1.6s ease-out infinite; }
@keyframes scRecPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes scRecRing { 0% { transform: scale(.5); opacity: .9; } 80% { transform: scale(1.5); opacity: 0; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sc-tmws__rec, .sc-tmws__rec::after { animation: none; } }
.sc-tmws__hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 6; font: 600 11px 'Barlow', 'Segoe UI', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); pointer-events: none; }

.sc-tmws__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.sc-tmws__row--mode { margin-bottom: 12px; }
.sc-tmws__mode { font: 700 12px 'Barlow', 'Segoe UI', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #dbe7ff; background: transparent; border: 2px solid rgba(255,255,255,.22); border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: all .25s ease; }
.sc-tmws__mode.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.sc-tmws__mode:not(.on):hover { border-color: var(--blue-bright); color: var(--blue-bright); }
#workspace.sc-tmws--curb [data-side="re"] { display: none; }
#workspace.sc-tmws--curb .sc-tmws__cols { grid-template-columns: 1fr; }

.sc-tmws__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
@media (max-width: 900px) { .sc-tmws__cols { grid-template-columns: 1fr; } }

/* Unit picker cards — CSS-only brushed-steel plaque (no external texture
   image; the theme version uses a CDN-hosted stainless photo, which the
   phase-3 hard rules disallow here). Empty of picker controls: the
   workspace JS mounts a typeahead (GET /api/units?q=) into
   [data-picker-mount] and dimension rows into [data-fields]. */
.sc-picker {
  position: relative; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 24px 20px 22px;
  background: linear-gradient(160deg, rgba(4,8,16,.55), rgba(4,8,16,.75)),
              repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 6px);
  box-shadow: 0 22px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(0,0,0,.5);
  min-height: 180px;
}
.sc-picker__eyebrow { text-align: center; font: 700 12px 'Barlow Condensed', 'Segoe UI', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #8fb6ff; margin: 2px 0 14px; }
.sc-picker__mount { min-height: 44px; }
.sc-picker__mount:empty::before {
  content: 'Unit search loads here'; display: block; text-align: center; font: 600 11px 'Barlow', 'Segoe UI', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.28); padding: 12px 0; border: 1px dashed rgba(255,255,255,.14); border-radius: 8px;
}

/* Options column (adapter height, gauge, insulation, blank-offs) — left as
   an empty shell; the workspace JS builds the controls once a compile
   response supplies defaults. */
.sc-options { min-height: 1px; }
.sc-options:empty { display: none; }

.sc-tmws__status { background: rgba(6,13,26,.85); border: 1px solid rgba(255,255,255,.07); color: #cfd8e6; border-radius: 10px; padding: 16px 18px; font: 500 13px 'Barlow', 'Segoe UI', sans-serif; line-height: 1.65; margin-bottom: 14px; }
.sc-tmws__status[hidden] { display: none; }
.sc-tmws__pacing { border-color: rgba(246,194,107,.4); background: rgba(178,106,0,.15); color: #f6c26b; }

.sc-search { margin: 2rem 0; }
.sc-search label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-bright); margin-bottom: 0.4rem; }
.sc-search input { width: 100%; max-width: 34rem; padding: 0.7rem 1rem; font-size: 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: rgba(6,13,26,.85); color: #fff; }
.sc-search input::placeholder { color: rgba(219,231,255,.4); }
.sc-search input:focus { outline: 2px solid var(--blue-bright); outline-offset: 1px; }
.sc-results { list-style: none; margin: 0.5rem 0 0; padding: 0; max-width: 34rem; background: rgba(6,13,26,.92); border: 1px solid rgba(255,255,255,.14); border-radius: 6px; }
.sc-results li { padding: 0.55rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1); color: #dbe7ff; }
.sc-results li:last-child { border-bottom: none; }
.sc-dim { color: #8a93a5; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.sc-none { color: #8a93a5; }

.sc-fab { margin-top: 3rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.sc-fab h2 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.sc-cta { display: inline-block; margin-top: 0.6rem; padding: 0.6rem 1.2rem; border-radius: 999px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.sc-cta:hover { filter: brightness(1.1); }
.sc-models { font-size: 0.9rem; color: #3c4a63; }
.sc-foot { padding: 1.2rem 5vw 2.5rem; font-size: 0.8rem; color: #6b7891; max-width: 860px; margin: 0 auto; background: var(--paper); }
