/* =====================================================================
   Ridgeline Roofing - Industrial Solid (cinematic), light + safety orange
   OP Digital house style. One accent (orange) locked. Theme locked light.
   ===================================================================== */

/* NAV-SAFETY: visibility controlled only by [hidden], never out-ranked */
[hidden] { display: none !important; }

:root {
  --paper: #eef2f6;
  --paper-2: #e3e9ef;
  --panel: #ffffff;
  --panel-2: #f6f8fb;
  --ink: #0f172a;
  --ink-soft: #3f4b5c;
  --ink-mute: #6b7688;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(15, 23, 42, 0.2);
  --accent: #ea580c;
  --accent-deep: #c2410c;
  --accent-ink: #1c0c03;      /* dark text on the orange button: AA on #ea580c */
  --slate: #475569;
  --slate-deep: #334155;
  --shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.45);
  --shadow-soft: 0 14px 36px -22px rgba(15, 23, 42, 0.35);
  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 40px);
  --font-display: "Oswald", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.accent { color: var(--accent-deep); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 0.82em 1.55em; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 26px -12px rgba(234, 88, 12, 0.6); }
.btn--primary:hover { background: var(--accent-deep); color: #fff; }

.btn--call { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--call:hover { background: var(--slate-deep); border-color: var(--slate-deep); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--lg { padding: 1.02em 1.9em; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ===================== Nav ===================== */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(238, 242, 246, 0.85);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.34rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); }
.brand__mark { display: inline-flex; color: var(--accent); }
.brand__name em { font-style: normal; color: var(--slate); font-weight: 500; }

.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--ink-soft); font-size: 0.97rem; font-weight: 500; position: relative; padding: 4px 0; transition: color 0.18s ease; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: width 0.22s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 46px; height: 42px; background: transparent; border: 1.5px solid var(--line-strong);
  border-radius: 10px; cursor: pointer; margin-left: auto;
}
.nav__toggle-bar { width: 20px; height: 2px; background: var(--ink); margin: 0 auto; border-radius: 2px; transition: transform 0.22s ease, opacity 0.18s ease; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 6px;
  padding: 96px 28px 40px; overflow-y: auto;
}
.mobile-nav a { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; text-transform: uppercase; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { font-size: 1.06rem; margin-top: 12px; border-bottom: none; justify-content: center; }
.mobile-nav__close { position: absolute; top: 22px; right: 22px; width: 46px; height: 46px; background: transparent; border: 1.5px solid var(--line-strong); border-radius: 12px; color: var(--ink); font-size: 1.9rem; line-height: 1; cursor: pointer; }

/* ===================== Hero (cinematic scroll-lay) ===================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: clip; isolation: isolate; }

.scene { position: absolute; inset: 0; z-index: -1; background: #a9c6df; }
.scene__svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* drifting clouds */
.cloud { will-change: transform; }
.cloud--a { animation: drift 46s linear infinite; }
.cloud--b { animation: drift 64s linear infinite; }
@keyframes drift { from { transform: translateX(-120px); } to { transform: translateX(120px); } }

/* sun glint on the finished ridge */
.scene__sun { opacity: 0; transition: opacity 1.1s ease; }
.scene__sun.is-on { opacity: 1; }

/* roof sheets: hidden until JS lays them by scroll progress */
.sheet { opacity: 0; transform: translateY(-26px); transition: opacity 0.5s ease, transform 0.5s ease; }
.sheet.is-on { opacity: 1; transform: none; }
.scene__ribs { opacity: 0; transition: opacity 0.6s ease; }
.scene__ribs.is-on { opacity: 0.5; }
.scene__ridge { opacity: 0; transform: translateY(-18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.scene__ridge.is-on { opacity: 1; transform: none; }

/* left-edge scrim so the value prop always reads over the sky */
.scene__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(238,242,246,0.97) 0%, rgba(238,242,246,0.9) 34%, rgba(238,242,246,0.45) 62%, rgba(238,242,246,0.15) 100%);
}
@media (max-width: 860px) {
  .scene__scrim { background: linear-gradient(180deg, rgba(238,242,246,0.92) 0%, rgba(238,242,246,0.82) 40%, rgba(238,242,246,0.55) 100%); }
}

.hero__inner { position: relative; max-width: 720px; padding-block: clamp(90px, 16vh, 150px); }
.hero__eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.82rem; font-weight: 600; color: var(--accent-deep); margin-bottom: 16px; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; margin-bottom: 0.45em; color: var(--ink); }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 40ch; margin-bottom: 2rem; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.1rem; }

.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 0; margin: 0; }
.hero__trust li { position: relative; padding-left: 22px; font-size: 0.96rem; color: var(--ink-soft); font-weight: 500; }
.hero__trust li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
.hero__trust strong { color: var(--ink); font-family: var(--font-display); }

.hero__scrollcue { position: absolute; bottom: -52px; left: var(--pad); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); font-family: var(--font-display); }
.hero__scrollcue::after { content: ""; display: block; width: 2px; height: 26px; margin-top: 8px; background: linear-gradient(var(--accent), transparent); animation: cueDrop 1.8s ease-in-out infinite; }
@keyframes cueDrop { 0% { opacity: 0; transform: translateY(-8px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }

/* ===================== Trust strip ===================== */
.trust { border-bottom: 1px solid var(--line); background: var(--ink); }
.trust__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-block: 22px; }
.trust__item { display: flex; align-items: center; justify-content: center; gap: 11px; color: #e7ecf3; font-size: 0.96rem; font-weight: 500; text-align: center; }
.trust__item svg { color: var(--accent); flex-shrink: 0; }

/* ===================== Section scaffold ===================== */
.section { padding-block: clamp(64px, 10vw, 116px); }
.section__head { max-width: 680px; margin-bottom: clamp(36px, 6vw, 60px); }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; font-weight: 600; color: var(--accent-deep); margin-bottom: 12px; }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.lede { font-size: clamp(1.04rem, 1.6vw, 1.18rem); color: var(--ink-soft); }

/* ===================== Services ===================== */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 3px solid var(--line-strong);
  padding: 30px 26px; transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-4px); border-top-color: var(--accent); box-shadow: var(--shadow-soft); }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(234, 88, 12, 0.1); color: var(--accent-deep); border: 1px solid rgba(234,88,12,0.26); margin-bottom: 18px; }
.card h3 { font-size: 1.42rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.card--feature { background: var(--ink); border-color: var(--ink); border-top-color: var(--accent); }
.card--feature h3 { color: #fff; }
.card--feature p { color: #cdd5e0; }
.card--feature .card__icon { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ===================== Why ===================== */
.why { background: var(--paper-2); border-block: 1px solid var(--line); }
.why__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.why__intro .btn { margin-top: 12px; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.why__list li { position: relative; padding-top: 14px; border-top: 2px solid var(--line); }
.why__num { font-family: var(--font-display); font-size: 1.04rem; font-weight: 700; color: var(--accent-deep); letter-spacing: 0.05em; }
.why__list h3 { font-size: 1.26rem; margin: 6px 0 6px; }
.why__list p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* ===================== Process ===================== */
.process__steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process__steps li { position: relative; padding: 26px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.process__steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); border-radius: var(--radius) var(--radius) 0 0; }
.process__n { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.process__steps h3 { font-size: 1.22rem; }
.process__steps p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

/* ===================== Closing CTA band ===================== */
.hook { background: var(--ink); color: #e7ecf3; }
.hook .eyebrow { color: var(--accent); }
.hook h2 { color: #fff; }
.hook .lede { color: #cdd5e0; }
.hook__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 70px); align-items: center; }
.hook__points { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: 12px; }
.hook__points li { position: relative; padding-left: 32px; color: #cdd5e0; }
.hook__points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px; background: rgba(234,88,12,0.16); border: 1px solid var(--accent); }
.hook__points li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 6px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hook__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* trust stat card (replaces old phone mockup) */
.hook__card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.hook__stat {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 26px 22px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.hook__stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--accent); line-height: 1; }
.hook__stat-label { font-size: 0.92rem; color: #cdd5e0; }

/* ===================== Work / gallery ===================== */
.work__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; }
.work__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.work__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work__item:hover img { transform: scale(1.05); }
.work__item--tall { grid-row: span 2; }
.work__item--wide { grid-column: span 2; }
.work__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.94rem; text-transform: uppercase; letter-spacing: 0.03em; color: #fff;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.9));
}

/* ===================== Reviews ===================== */
.reviews { background: var(--paper-2); border-block: 1px solid var(--line); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { margin: 0; padding: 30px 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.review__stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 14px; font-size: 1.1rem; }
.review p { font-size: 1.02rem; color: var(--ink); margin-bottom: 16px; }
.review cite { font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: 0.96rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--slate); }

/* ===================== Service area ===================== */
.area__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 70px); align-items: center; }
.area__copy .btn { margin-top: 12px; }
.area__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.area__list li { position: relative; padding: 12px 14px 12px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.94rem; color: var(--ink-soft); font-weight: 500; }
.area__list li::before { content: ""; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* ===================== FAQ ===================== */
.faq__wrap { max-width: 880px; margin: 0 auto; }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq__plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__plus::after { left: 8px; top: 0; width: 2px; height: 18px; transition: transform 0.22s ease; }
.faq__item[open] .faq__plus::after { transform: rotate(90deg); opacity: 0; }
.faq__body { padding: 0 22px 22px; color: var(--ink-soft); }
.faq__body p { margin: 0; }

/* ===================== CTA + form ===================== */
.cta { background: var(--paper-2); border-top: 1px solid var(--line); }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 64px); align-items: center; }
.cta__phone { margin: 4px 0 18px; }
.cta__phone a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); }
.cta__phone svg { color: var(--accent); }
.cta__assure { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.cta__assure li { position: relative; padding-left: 22px; font-size: 0.94rem; color: var(--ink-soft); font-weight: 500; }
.cta__assure li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }

.cta__form { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 7px; color: var(--ink-soft); }
.field .opt { color: var(--ink-mute); font-weight: 400; text-transform: none; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: var(--panel-2); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234,88,12,0.2); }
.field textarea { resize: vertical; min-height: 84px; }
.form-note { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(234,88,12,0.1); border: 1px solid rgba(234,88,12,0.3); color: var(--accent-deep); font-size: 0.92rem; }
.form-fineprint { margin-top: 12px; font-size: 0.8rem; color: var(--ink-mute); }

/* ===================== Footer ===================== */
.footer { background: var(--ink); color: #cdd5e0; padding-top: clamp(48px, 7vw, 80px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer .brand { color: #fff; }
.footer .brand__name em { color: #93a0af; }
.footer__brand p { color: #93a0af; font-size: 0.95rem; max-width: 36ch; margin-top: 14px; }
.brand--footer { font-size: 1.26rem; }
.footer__col h3 { font-family: var(--font-display); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.14em; color: #93a0af; margin-bottom: 14px; }
.footer__col p { font-size: 0.95rem; color: #cdd5e0; margin: 0 0 8px; }
.footer__col a:hover { color: var(--accent); }
.footer__base { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.88rem; color: #93a0af; }
.footer__social { display: flex; gap: 18px; }
.footer__social a:hover { color: var(--accent); }

/* ===================== Sticky mobile call bar ===================== */
.callbar { display: none; }

/* ===================== Reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================== Responsive ===================== */
@media (max-width: 1000px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .work__item--wide { grid-column: span 2; }
  .reviews__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .hook__grid, .area__grid, .cta__grid { grid-template-columns: 1fr; }
  .area__copy, .cta__copy { order: 1; }
  .hook__card { order: 0; }
  .why__list { grid-template-columns: 1fr; }
  body { padding-bottom: 72px; } /* room for sticky call bar */
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
    gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, 0.96); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .callbar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em; }
  .callbar__quote { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
  .callbar__call { background: var(--accent); color: var(--accent-ink); }
}

@media (max-width: 560px) {
  .trust__row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .services__grid, .area__list { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .work__item--tall, .work__item--wide { grid-row: span 1; grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
}

/* =====================================================================
   ROOFLINE SET-PIECE  ("From bare ridge to a finished roof")
   ---------------------------------------------------------------------
   A pinned stage. As the page scrolls through a tall track, a roof draws
   itself: ridge line first, then the rake + walls as a silhouette, then
   the roof TILES sequence on course-by-course (eave -> ridge), then it
   crossfades to a solid tiled roof in the brand palette and the orange
   ridge cap drops in.

   Mechanic (lifted from the approved Ironbark engine, prefixed .rl-):
   a tall .rl-track wraps a position:sticky .rl-stage. ONE rAF-gated
   passive scroll handler reads track.getBoundingClientRect() once per
   frame and writes a single 0..1 --rl-p on the section. Linework draws
   via stroke-dasharray/offset; tiles + solid + cap read clamp() windows
   on --rl-p. GPU-cheap: transform/opacity/stroke only.

   Reduced-motion AND .no-js collapse the track to height:auto, unpin the
   stage, and force --rl-p:1 (the finished, fully tiled roof).
   ===================================================================== */
.roofline {
  --rl-p: 0;                 /* scroll progress 0..1, written by JS */
  position: relative;
  background: var(--ink);    /* dark stage makes the orange ridge + slate roof pop */
  color: #e7ecf3;
}

/* Scroll runway. 4x viewport = an unhurried, premium draw. */
.rl-track { position: relative; height: 400vh; }

/* Pinned canvas. dvh so iOS Safari's address bar doesn't jump the pin. */
.rl-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Sky wash behind the roof: a cool dawn that warms toward orange as the
   roof finishes. Pointer-events off, sits at the back. */
.rl-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(75% 65% at 50% 12%,
      color-mix(in srgb, #2b3a4d calc(72% * (1 - var(--rl-p))), var(--ink)) 0%,
      var(--ink) 70%);
}
.rl-sky::before {
  /* engineering grid that fades out as the roof renders */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(150, 197, 230, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150, 197, 230, 0.10) 1px, transparent 1px);
  background-size: clamp(26px, 4vw, 46px) clamp(26px, 4vw, 46px);
  opacity: calc(0.85 - 0.7 * var(--rl-p));
  -webkit-mask-image: radial-gradient(110% 95% at 50% 32%, #000 52%, transparent 92%);
  mask-image: radial-gradient(110% 95% at 50% 32%, #000 52%, transparent 92%);
}
.rl-sky::after {
  /* warm safety-orange wash that arrives with the finished roof */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 52% at 70% 14%, rgba(234, 88, 12, 0.30), transparent 66%);
  opacity: var(--rl-p);
}

.rl-stage-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  align-items: center;
  width: 100%;
}
@media (min-width: 940px) {
  .rl-stage-inner { grid-template-columns: 0.8fr 1.2fr; }
}

/* ---- Copy column ---- */
.rl-copy { max-width: 30rem; }
.roofline .eyebrow { color: var(--accent); }
.roofline h2 { color: #fff; max-width: 14ch; }
.roofline .lede { color: #cdd5e0; max-width: 40ch; }

/* Phase ticker: lights up as each phase begins. Plain language. */
.rl-phases { list-style: none; display: grid; gap: 0.55rem; margin: 1.8rem 0 0; padding: 0; }
.rl-phase {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #93a0af;
  opacity: 0.5;
  transition: opacity 0.34s ease, color 0.34s ease;
}
.rl-phase-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid; place-items: center;
}
.rl-phase-mark svg { width: 12px; height: 12px; opacity: 0; transform: scale(0.6); transition: opacity 0.18s ease, transform 0.18s ease; }
.rl-phase.is-active { opacity: 1; color: #fff; }
.rl-phase.is-done { opacity: 1; color: var(--accent); }
.rl-phase.is-done .rl-phase-mark { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rl-phase.is-done .rl-phase-mark svg { opacity: 1; transform: scale(1); }

/* ---- Drawing column ---- */
.rl-figure { position: relative; width: 100%; margin: 0; }
.rl-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Linework: each path draws via stroke-dashoffset. JS sets --dash (path
   length) and --draw (0..1 for that path's phase window). */
.rl-line {
  fill: none;
  stroke: #cfe6f7;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--dash);
  stroke-dashoffset: calc(var(--dash) * (1 - var(--draw, 0)));
  filter: drop-shadow(0 0 5px rgba(120, 190, 240, 0.35));
}
.rl-line--faint { stroke: rgba(150, 197, 230, 0.5); stroke-width: 1.4; filter: none; }
/* the ridge line leads in the brand orange, glowing */
.rl-line--lead { stroke: #fb923c; stroke-width: 3.4; filter: drop-shadow(0 0 7px rgba(234, 88, 12, 0.6)); }

/* Linework fades out as the solid roof renders in. */
.rl-blue { opacity: clamp(0, calc((0.92 - var(--rl-p)) / 0.16), 1); }

/* Tiles: each course reveals over its own slice of --rl-p (eave->ridge),
   driven per-tile by JS via --tile (0..1). Opacity + a small slide up. */
.rl-tile {
  fill: url(#rlTile);
  stroke: #1e293b;
  stroke-width: 1;
  opacity: var(--tile, 0);
  transform: translateY(calc(-10px * (1 - var(--tile, 0))));
  transform-box: fill-box;
}
.rl-tile--side { fill: url(#rlTileSide); }

/* The solid finished roof + walls. Opacity ramps in over the last 22 percent. */
.rl-solid {
  opacity: clamp(0, calc((var(--rl-p) - 0.76) / 0.18), 1);
}
/* tiles ride just above the solid fill, so they read all the way through */
.rl-tiles { opacity: clamp(0.35, calc(0.35 + 0.65 * var(--rl-p)), 1); }

/* Orange ridge cap drops in at the very end, the "signed off" beat. */
.rl-ridgecap {
  opacity: clamp(0, calc((var(--rl-p) - 0.86) / 0.1), 1);
  transform: translateY(calc(-12px * (1 - clamp(0, calc((var(--rl-p) - 0.86) / 0.1), 1))));
}

/* Travelling lay-line: rides up the front plane during the tile phase. */
.rl-scan {
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: clamp(0, calc((0.8 - var(--rl-p)) / 0.1), 0.85);
  filter: drop-shadow(0 0 6px rgba(234, 88, 12, 0.6));
}

.rl-shadow { opacity: clamp(0, calc((var(--rl-p) - 0.7) / 0.2), 1); }

/* "Watertight" stamp once finished. */
.rl-stamp {
  position: absolute;
  right: clamp(0.5rem, 2vw, 1.4rem);
  bottom: clamp(0.5rem, 2vw, 1rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  opacity: clamp(0, calc((var(--rl-p) - 0.92) / 0.07), 1);
  transform: translateY(calc(8px * (1 - clamp(0, calc((var(--rl-p) - 0.92) / 0.07), 1))));
  pointer-events: none;
}
.rl-stamp svg { width: 14px; height: 14px; flex: none; }

/* Reduced-motion / no-JS: no pin, no runway. Collapse and force finished. */
.no-js .rl-track { height: auto; }
.no-js .rl-stage { position: static; height: auto; min-height: 70vh; padding-block: clamp(64px, 10vw, 116px); }
.no-js .roofline { --rl-p: 1; }
.no-js .rl-tile { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .rl-stage-inner { gap: 1.6rem; }
  .rl-copy { max-width: none; }
  .rl-phases { grid-template-columns: 1fr 1fr; }
}

/* ===================== Reduced motion (full degrade) ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  /* roofline set-piece collapses to the finished, fully tiled roof */
  .rl-track { height: auto; }
  .rl-stage { position: static; height: auto; min-height: 70vh; padding-block: clamp(64px, 10vw, 116px); }
  .roofline { --rl-p: 1 !important; }
  .rl-tile { opacity: 1 !important; transform: none !important; }
  .rl-blue { opacity: 0 !important; }
  .rl-phase { opacity: 1 !important; color: var(--accent) !important; }
  /* cinematic scene collapses to the finished, lit roof */
  .sheet { opacity: 1 !important; transform: none !important; }
  .scene__ribs { opacity: 0.5 !important; }
  .scene__ridge { opacity: 1 !important; transform: none !important; }
  .scene__sun { opacity: 1 !important; }
  .cloud { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__scrollcue { display: none; }
}
