/* Verdigris Roofing — a self-contained example build (no dependency on the
   parent Scalar Digital site: its own fonts, its own palette, its own
   everything, the same way a real client site would be). Palette is a
   weathered-copper green rather than another warm amber/orange, since four
   of the five existing examples already sit in that same hue family. */

:root {
  --bg: #0e1210;
  --bg-alt: #141917;
  --card: #171d1a;
  --card-border: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --ink: #f3f1ea;
  --ink-dim: #aab3ac;
  --muted: #7c877f;
  --accent: #5fa88a;
  --accent-light: #8fd6b4;
  --accent-deep: #2f4d3f;
  --radius: 14px;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: -apple-system, 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
  margin: 0;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #06120c;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.eyebrow {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0 0 14px;
}
.h2 {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 28ch;
}
.h2 .accent-text {
  display: inline;
}
.lead {
  margin-top: 16px;
  color: var(--ink-dim);
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.6;
}
.accent-text {
  color: var(--accent-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #062015;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -12px rgba(95, 168, 138, 0.55);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 18, 16, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-word {
  font-family: -apple-system, 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--accent-light);
  transition: right 0.2s ease;
}
.nav-links a:hover::after {
  right: 0;
}
.nav-cta {
  display: none;
}
.nav-toggle {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--line);
}
.nav-mobile.open {
  display: flex;
}
.nav-mobile a {
  padding: 12px 4px;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
}
.nav-mobile .btn {
  margin-top: 12px;
  width: 100%;
}
@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(60% 100% at 30% 0%, rgba(95, 168, 138, 0.22), transparent 65%),
    radial-gradient(45% 80% at 90% 10%, rgba(143, 214, 180, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
}
.hero-inner.has-visual {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-inner.has-visual {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
  }
}

/* ---------------------------------------------------------------------
   Hero visual - a live house illustration that tilts gently toward the
   cursor (same idea as the parent Scalar site's own cursor-tracking hero
   preview) and cycles through the three roof materials on its own, so the
   "watch it change" moment from the estimate page is visible before a
   visitor has clicked anything.
   --------------------------------------------------------------------- */
.hero-visual {
  perspective: 1000px;
}
.hero-roof-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  background: radial-gradient(90% 90% at 50% 15%, rgba(95, 168, 138, 0.16), transparent 65%), var(--card);
  padding: 28px 24px 24px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}
.hero-roof-stage {
  position: relative;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.45));
}
.hero-roof-stage svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}
.hero-window-glow {
  animation: hero-window-pulse 3.2s ease-in-out infinite;
}
.hero-window-glow-2 {
  animation-delay: 0.6s;
}
@keyframes hero-window-pulse {
  0%, 100% {
    fill: #3a4740;
    filter: none;
  }
  50% {
    fill: #f5c26b;
    filter: drop-shadow(0 0 6px rgba(245, 194, 107, 0.65));
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-window-glow {
    animation: none;
  }
}
#heroRoofFace {
  transition: fill 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-roof-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hero-roof-material {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.hero-roof-material strong {
  display: block;
  margin-top: 3px;
  font-family: -apple-system, 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  transition: opacity 0.3s ease;
}
.hero-roof-price {
  text-align: right;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.hero-roof-price strong {
  display: block;
  margin-top: 3px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-light);
  letter-spacing: normal;
  text-transform: none;
  transition: opacity 0.3s ease;
}
.hero-roof-cta {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
}
.hero-roof-cta:hover {
  text-decoration: underline;
}
@media (max-width: 979px) {
  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ---------------------------------------------------------------------
   Real-facts ticker - a continuously scrolling strip of verified facts
   (see script.js / the HTML source comments for what each is checked
   against), pausing on hover so it can actually be read.
   --------------------------------------------------------------------- */
.facts-ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 16px 0;
}
.facts-ticker::before,
.facts-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.facts-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}
.facts-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-alt), transparent);
}
.facts-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
}
.facts-ticker:hover .facts-track {
  animation-play-state: paused;
}
.fact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.fact-item strong {
  color: var(--accent-light);
  font-weight: 800;
}
.fact-item .fact-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .facts-track {
    animation: none;
    flex-wrap: wrap;
    gap: 24px;
  }
}
.hero-h1 {
  font-size: clamp(2.6rem, 1.9rem + 3.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.03;
  max-width: 15ch;
}
.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--ink-dim);
  font-size: 1.08rem;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.hero-stats dt {
  font-family: -apple-system, 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
}
.hero-stats dd {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Services */
.services {
  padding: 88px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.services-grid {
  margin-top: 40px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* A 3-up variant for sections with exactly three items (materials.html) -
   1 column on a phone, 3 from tablet width up, rather than reusing the
   4-up grid's breakpoints for a 3-item layout. */
.services-grid-3 {
  margin-top: 40px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .services-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: rgba(95, 168, 138, 0.4);
  transform: translateY(-3px);
}
.card-num {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
}
.card h3 {
  margin-top: 14px;
  font-size: 1.12rem;
  font-weight: 700;
}
.card p {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--ink-dim);
  line-height: 1.55;
}

/* Work */
.work {
  padding: 88px 0;
}
.work-grid {
  margin-top: 40px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .work-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.job {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.job:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(95, 168, 138, 0.45);
}
.job-tile {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(155deg, var(--job-a), var(--job-b));
  cursor: pointer;
}
.job-tile:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: -2px;
}
.job-tile span {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.28);
  padding: 5px 10px;
  border-radius: 999px;
}
.job-meta {
  padding: 16px 16px 18px;
  background: var(--card);
}
.job-meta h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}
.job-meta p {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Guarantee */
.guarantee {
  padding: 88px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.guarantee-inner {
  display: grid;
  gap: 40px;
}
@media (min-width: 860px) {
  .guarantee-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 64px;
  }
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ink-dim);
}
.checklist li:first-child {
  padding-top: 0;
}
.check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(95, 168, 138, 0.16);
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* CTA band */
.cta-band {
  padding: 96px 0;
  text-align: center;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-band .h2 {
  max-width: 20ch;
}
.cta-band .lead {
  max-width: 44ch;
}
.cta-band .hero-cta {
  justify-content: center;
  margin-top: 30px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  justify-content: space-between;
}
.footer-brand {
  font-size: 0.95rem;
}
.footer-meta {
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-legal {
  width: 100%;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.75;
  margin-top: 4px;
}

/* WhatsApp - deliberately WhatsApp's own green, not the brand's verdigris,
   the same reasoning the parent Scalar site uses for its own button: instant
   recognition matters more than palette purity for this one element. */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s ease;
}
.whatsapp-fab:hover {
  transform: scale(1.06);
}
.whatsapp-fab-ping {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #25d366;
  animation: whatsapp-ping 2.4s ease-out infinite;
}
@keyframes whatsapp-ping {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab-ping {
    animation: none;
  }
}

/* The one element on this page that isn't Verdigris talking - a small
   Scalar Digital label, deliberately in Scalar's own blueprint blue rather
   than Verdigris's green, so it reads as a separate voice rather than
   something a real client site would say about itself. */
.scalar-banner {
  background: #16324d;
  border-bottom: 1px solid rgba(77, 155, 224, 0.35);
}
.scalar-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  padding: 9px 24px;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #cfe3f5;
  text-align: center;
}
.scalar-banner-inner strong {
  color: #ffffff;
}
.scalar-banner-inner a {
  color: #7fc1f5;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.scalar-banner-inner a:hover {
  color: #ffffff;
}

.mt-link {
  margin-top: 32px;
}
.text-link {
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.text-link:hover {
  border-color: var(--accent-light);
}

/* Nav active state - which of the 5 pages you're on */
.nav-links a[aria-current='page'],
.nav-mobile a[aria-current='page'] {
  color: var(--accent-light);
}
.nav-links a[aria-current='page']::after {
  right: 0;
}

/* Sub-page header - a smaller version of the home hero, for the other 4 pages */
.page-header {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-header .hero-glow {
  height: 100%;
}
.page-header h1 {
  position: relative;
  font-size: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  max-width: 20ch;
}
.page-header .lead {
  position: relative;
}
.breadcrumb {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: var(--muted);
  transition: color 0.15s ease;
}
.breadcrumb a:hover {
  color: var(--accent-light);
}

/* Services page - each service gets a full block, not just a card teaser */
.service-block {
  display: grid;
  gap: 20px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:first-of-type {
  padding-top: 0;
}
.service-block:last-of-type {
  border-bottom: none;
}
@media (min-width: 760px) {
  .service-block {
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
  }
}
.service-block h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 700;
}
.service-block .service-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}
.service-block .service-facts div dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.service-block .service-facts div dd {
  margin: 3px 0 0;
  font-weight: 700;
  color: var(--accent-light);
}
.service-block .service-includes li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--ink-dim);
}

/* All-jobs comparison table */
.compare-table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare-table th,
.compare-table td {
  text-align: left;
  padding: 16px 20px;
  white-space: nowrap;
}
.compare-table thead th {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.compare-table tbody th {
  font-weight: 700;
  color: var(--ink);
}
.compare-table tbody td {
  color: var(--ink-dim);
}
.compare-table tbody tr:not(:last-child) th,
.compare-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid var(--line);
}
.compare-table tbody tr:hover {
  background: rgba(143, 214, 180, 0.05);
}

/* Work gallery filter tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.filter-tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-dim);
  font-size: 0.85rem;
  font-family: inherit;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.filter-tab:hover {
  color: var(--ink);
}
.filter-tab[aria-pressed='true'] {
  background: rgba(95, 168, 138, 0.14);
  border-color: rgba(95, 168, 138, 0.5);
  color: var(--accent-light);
}
.job[hidden] {
  display: none;
}

/* Service areas page */
.areas-grid {
  margin-top: 40px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.area-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.area-card h3 {
  font-size: 1rem;
  font-weight: 700;
}
.area-card p {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Contact page: a demo form. Clearly labelled as sample UI, not a working
   backend - this static page has nowhere to send a submission. */
.contact-layout {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.form-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 24px;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-dim);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 168, 138, 0.28);
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.contact-side .card {
  margin-bottom: 14px;
}
.contact-side .card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

/* ---------------------------------------------------------------------
   Instant estimate configurator (estimate.html)

   The one genuinely interactive piece on this site: pick a material and a
   size, watch the roof illustration recolour and the price count up live.
   Everything below is driven by script.js's `initConfigurator()`, guarded
   so it's a no-op on every other page.
   --------------------------------------------------------------------- */
.configurator {
  padding: 64px 0 96px;
}
.configurator-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .configurator-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: start;
  }
}

.config-step {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.config-step:first-child {
  padding-top: 0;
}
.config-step:last-child {
  border-bottom: none;
}
.config-step-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}
.config-step-head .card-num {
  font-size: 0.85rem;
}
.config-step-head h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.config-step[data-done='true'] .config-step-head h3::after {
  content: ' \2713';
  color: var(--accent-light);
  font-weight: 700;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--card-border);
  background: var(--card);
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.option-card:hover {
  border-color: rgba(95, 168, 138, 0.45);
  transform: translateY(-2px);
}
.option-card[aria-pressed='true'] {
  border-color: var(--accent-light);
  background: rgba(95, 168, 138, 0.14);
  color: var(--ink);
}
.option-card .swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: var(--swatch, var(--accent));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.option-card[aria-pressed='true'] .swatch {
  box-shadow: 0 0 0 4px rgba(95, 168, 138, 0.22);
}
.option-card .price-hint {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}
.option-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}
.config-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}
.price-breakdown {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 0.85rem;
}
.breakdown-row[hidden] {
  display: none;
}
.breakdown-row dt {
  color: var(--ink-dim);
}
.breakdown-row dd {
  margin: 0;
  color: var(--ink);
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
.breakdown-row.breakdown-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.95rem;
}
.breakdown-row.breakdown-total dt,
.breakdown-row.breakdown-total dd {
  color: var(--ink);
  font-weight: 700;
}

.job-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .job-type-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.job-type-card {
  padding: 12px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--card-border);
  background: var(--card);
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.job-type-card:hover {
  border-color: rgba(95, 168, 138, 0.45);
}
.job-type-card[aria-pressed='true'] {
  border-color: var(--accent-light);
  background: rgba(95, 168, 138, 0.14);
  color: var(--ink);
}

.size-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.size-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  outline: none;
}
.size-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(143, 214, 180, 0.4);
}
.size-slider:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(143, 214, 180, 0.4);
}
.size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--accent-light);
  cursor: pointer;
}
.size-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--accent-light);
  cursor: pointer;
}
.size-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.size-labels span[data-active='true'] {
  color: var(--accent-light);
  font-weight: 700;
}

.configurator-preview {
  position: sticky;
  top: 96px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}
.roof-stage {
  border-radius: 14px;
  background: radial-gradient(90% 90% at 50% 20%, rgba(95, 168, 138, 0.14), transparent 65%), var(--bg-alt);
  padding: 20px 10px 6px;
}
.roof-stage svg {
  width: 100%;
  height: auto;
  display: block;
}
#roofFace {
  transition: fill 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.roof-caption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.price-display {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.price-label {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-value {
  display: block;
  margin-top: 6px;
  font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem);
  font-weight: 800;
  color: var(--accent-light);
  font-variant-numeric: tabular-nums;
}
.price-note {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}
.config-cta {
  width: 100%;
  margin-top: 20px;
}
.other-jobs {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted);
}
.other-jobs a {
  color: var(--accent-light);
  font-weight: 600;
}

/* ---------------------------------------------------------------------
   Shared interaction layer - scroll progress, magnetic buttons,
   cursor-lit cards, animated number entrances. Same vocabulary as the
   parent Scalar site's own interaction-layer.tsx, reimplemented here in
   plain CSS/JS since this page has no framework.
   --------------------------------------------------------------------- */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 110;
  background: transparent;
}
#scrollProgress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.1s linear;
}

[data-magnetic] {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

[data-spotlight],
.card,
.job,
.option-card,
.area-card {
  position: relative;
  --mx: 50%;
  --my: 50%;
}
[data-spotlight]::before,
.card::before,
.job::before,
.option-card::before,
.area-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(143, 214, 180, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
[data-spotlight]:hover::before,
.card:hover::before,
.job:hover::before,
.option-card:hover::before,
.area-card:hover::before {
  opacity: 1;
}
/* The glow sits behind each card's own content - everything inside needs
   a stacking context above it, or the overlay would sit on top and mute
   the text/icons underneath. */
.card > *,
.job > *,
.option-card > *,
.area-card > * {
  position: relative;
  z-index: 1;
}

[data-jump] {
  opacity: 0;
  display: inline-block;
}

/* ---------------------------------------------------------------------
   Material lifespan comparison bars - real, sourced figures (see
   script.js's comment for the price guides these and the configurator's
   own numbers were checked against). Grows in once, on first view.
   --------------------------------------------------------------------- */
.lifespan-chart {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}
.lifespan-bar {
  display: grid;
  grid-template-columns: 100px 1fr 90px;
  align-items: center;
  gap: 14px;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}
.lifespan-bar.is-selected {
  opacity: 1;
}
.lifespan-bar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
.lifespan-bar-label .swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--swatch);
  flex: none;
}
.lifespan-track {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.lifespan-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-light));
}
.lifespan-bar.is-selected .lifespan-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  box-shadow: 0 0 12px rgba(143, 214, 180, 0.45);
}
.lifespan-years {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}
.lifespan-source {
  margin-top: 14px;
  font-size: 0.74rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------------
   "How it works" handoff flow (index.html) - three connected nodes with a
   travelling dot, the same visual grammar as the Scalar-build's own
   enquiry-to-dashboard animation, adapted to Verdigris's own moment:
   message sent -> quote returned -> job booked.
   --------------------------------------------------------------------- */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
}
@media (max-width: 700px) {
  .flow {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
.flow-node {
  position: relative;
  text-align: center;
  padding: 0 20px;
}
.flow-node-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1.5px solid var(--card-border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.flow-node.is-active .flow-node-icon {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: rgba(95, 168, 138, 0.14);
  transform: scale(1.08);
}
.flow-node h3 {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 700;
}
.flow-node p {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
}
.flow-line {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 100%;
  height: 1.5px;
  background: var(--line);
}
.flow-node:last-child .flow-line {
  display: none;
}
@media (max-width: 700px) {
  .flow-line {
    display: none;
  }
}
.flow-dot {
  position: absolute;
  top: -3px;
  left: 0%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px 2px rgba(143, 214, 180, 0.55);
  opacity: 0;
  transition: left 1.1s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===========================================================================
   Wow-factor pass 2 (homepage-focused): preloader, custom cursor, a
   condensing glass navbar, an animated stat dial, an accordion, gallery
   hover-zoom, a scroll-linked giant footer word, and estimate-calculator
   polish. All hand-written vanilla CSS/JS - no framework, matching the
   brand's own "hand-coded, nothing to break" promise.
   =========================================================================== */

/* --- Preloader -------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg);
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.preloader.pl-exit {
  transform: translateY(-100%);
}
.preloader-mark {
  width: 44px;
  height: 44px;
  opacity: 0.9;
}
.preloader-count {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-light);
  font-variant-numeric: tabular-nums;
  min-width: 3.4ch;
  text-align: center;
}
.preloader-label {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.preloader-bar {
  width: 160px;
  height: 2px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}
body.pl-active {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .preloader {
    display: none;
  }
}

/* --- Custom two-part cursor -------------------------------------------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 250;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(143, 214, 180, 0.55);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  background: rgba(143, 214, 180, 0.1);
  border-color: var(--accent-light);
}
html.has-custom-cursor,
html.has-custom-cursor a,
html.has-custom-cursor button {
  cursor: none;
}

/* --- Condensing glass navbar -------------------------------------------- */
.nav {
  transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-condensed {
  background: rgba(14, 18, 16, 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.6);
}
.nav.is-condensed .nav-row {
  height: 60px;
}

/* --- Animated stat dial -------------------------------------------------- */
.stat-dial-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.stat-dial {
  position: relative;
  width: 148px;
  height: 148px;
  flex: none;
}
.stat-dial svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.stat-dial-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 8;
}
.stat-dial-fill {
  fill: none;
  stroke: url(#dialGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 345.6;
  stroke-dashoffset: 345.6;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-dial-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
}

/* --- Services accordion --------------------------------------------------- */
.accordion {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: none;
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.accordion-trigger-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.accordion-trigger-left .card-num {
  font-size: 0.85rem;
}
.accordion-plus {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1), border-color 0.3s ease;
}
.accordion-item.is-open .accordion-plus {
  transform: rotate(135deg);
  border-color: var(--accent-light);
}
.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.accordion-item.is-open .accordion-panel {
  max-height: 480px;
}
.accordion-panel-inner {
  padding: 0 4px 26px 42px;
}
.accordion-panel-inner p {
  color: var(--ink-dim);
  max-width: 56ch;
}
.accordion-panel-inner ul {
  margin-top: 14px;
}
.accordion-panel-inner li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--ink-dim);
}

/* --- Job gallery hover-zoom + overlay --------------------------------- */
.job-tile {
  position: relative;
  overflow: hidden;
}
.job-tile > span:first-child {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.job:hover .job-tile > span:first-child {
  transform: scale(1.08);
}
.job-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.job:hover .job-overlay {
  opacity: 1;
}
.job-overlay span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

/* --- Guarantee: sticky column + slide-in cards -------------------------- */
@media (min-width: 860px) {
  .guarantee-copy.is-sticky {
    position: sticky;
    top: 110px;
    align-self: start;
  }
}
.checklist.stagger-in li {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.checklist.stagger-in.in li {
  opacity: 1;
  transform: translateX(0);
}
.checklist.stagger-in li:nth-child(1) { transition-delay: 0.05s; }
.checklist.stagger-in li:nth-child(2) { transition-delay: 0.15s; }
.checklist.stagger-in li:nth-child(3) { transition-delay: 0.25s; }
.checklist.stagger-in li:nth-child(4) { transition-delay: 0.35s; }
.checklist.stagger-in li:nth-child(5) { transition-delay: 0.45s; }

/* --- Giant scroll-linked footer word ------------------------------------ */
.footer-word {
  overflow: hidden;
  text-align: center;
  padding: 0 0 4px;
}
.footer-word span {
  display: inline-block;
  font-family: -apple-system, 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 4vw + 2rem, 9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(143, 214, 180, 0.28);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.footer-word span.in {
  opacity: 1;
  transform: translateY(0);
}

/* --- Word-by-word hero stagger (matches the parent Scalar site's own
   hero-word technique) ---------------------------------------------------- */
.hero-h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero-h1 .word span {
  display: inline-block;
  transform: translateY(110%);
  animation: word-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--w-i, 0) * 60ms + 200ms);
}
@keyframes word-rise {
  to {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-h1 .word span {
    animation: none;
    transform: none;
  }
}

/* --- Estimate calculator polish: glowing slider fill, extras toggles --- */
.size-row {
  position: relative;
}
.size-slider {
  position: relative;
  z-index: 1;
  background: transparent;
}
.size-track-bg {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.size-track-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-light));
  box-shadow: 0 0 14px 2px rgba(143, 214, 180, 0.4);
  transition: width 0.25s ease;
}
.extras-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.extra-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card);
  cursor: pointer;
}
.extra-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.extra-toggle-label strong {
  font-size: 0.9rem;
}
.extra-toggle-label span {
  font-size: 0.76rem;
  color: var(--muted);
}
.extra-toggle-price {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 700;
  flex: none;
}
.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  border-radius: 999px;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink-dim);
  transition: transform 0.2s ease, background 0.2s ease;
}
.switch[aria-checked='true'] {
  background: rgba(95, 168, 138, 0.4);
}
.switch[aria-checked='true']::after {
  transform: translateX(16px);
  background: var(--accent-light);
}

/* --- Hero canvas (lightweight hand-written WebGL scene) ---------------- */
.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-canvas-wrap.is-ready {
  opacity: 1;
}
.hero-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Work gallery lightbox modal ---------------------------------------- */
.job-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 8, 0.72);
  backdrop-filter: blur(3px);
  z-index: 300;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.job-modal-backdrop.is-open {
  opacity: 1;
}
.job-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: min(480px, calc(100vw - 40px));
  max-height: min(600px, calc(100vh - 40px));
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  z-index: 301;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  padding: 0 0 26px;
}
.job-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.job-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.job-modal-tile {
  aspect-ratio: 16 / 9;
  background: linear-gradient(155deg, var(--job-a, var(--accent)), var(--job-b, var(--accent-deep)));
  border-radius: var(--radius) var(--radius) 0 0;
}
.job-modal-cat {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 20px 24px 0;
}
.job-modal h3 {
  font-size: 1.25rem;
  margin: 8px 24px 0;
}
.job-modal #jobModalDesc {
  color: var(--ink-dim);
  margin: 10px 24px 20px;
}
.job-modal .btn {
  margin: 0 24px;
}
@media (prefers-reduced-motion: reduce) {
  .job-modal,
  .job-modal-backdrop {
    transition: none;
  }
}
