@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/barlow-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/barlow-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/barlow-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/barlow-condensed-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/barlow-condensed-800.woff2') format('woff2');
}

/* colours pulled from his logo and the job: rmg red, shingle asphalt,
   galvanized flashing, and plain white like the truck */
:root {
    --white: #ffffff;
    --galv: #e4e7e9;
    --galv-2: #cdd2d6;
    --asphalt: #2b2e32;
    --asphalt-2: #3a3e43;
    --steel: #5f656c;
    --red: #d71920;
    --red-dark: #b3141a;
    --rule: #d3d7da;

    --body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
    --head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --max-width: 1220px;
    --gutter: clamp(18px, 4vw, 40px);
    --r: 3px;
    --header-h: 92px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

html.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--asphalt);
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

img {
    height: auto;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--head);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

h2 {
    font-size: clamp(2.3rem, 4.6vw, 3.6rem);
}

h3 {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.1;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--asphalt);
    color: var(--white);
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

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

/* --- buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 26px;
    border: 2px solid transparent;
    border-radius: var(--r);
    background: transparent;
    font-family: var(--head);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-red {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.btn-red:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.btn-line {
    border-color: var(--asphalt);
    background: transparent;
    color: var(--asphalt);
}

.btn-line:hover {
    background: var(--asphalt);
    color: var(--white);
}

.btn-small {
    min-height: 46px;
    padding: 0 18px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.tab {
    min-height: 44px;
    padding: 0 2px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--steel);
    transition: color 0.2s, border-color 0.2s;
}

.tab:hover {
    color: var(--asphalt);
}

.tab[aria-pressed='true'] {
    color: var(--asphalt);
    border-bottom-color: var(--red);
}

/* --- header --- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 4px solid var(--red);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.brand {
    margin-right: auto;
}

.brand img {
    width: auto;
    height: 70px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-nav a {
    position: relative;
    padding: 8px 0;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
    border-bottom-color: var(--red);
}

.site-nav .nav-estimate {
    display: none;
}

.header-call {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 56px;
    padding: 0 18px;
    border-radius: var(--r);
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    line-height: 1;
    transition: background 0.2s;
}

.header-call:hover {
    background: var(--red-dark);
}

.header-call span {
    font-size: 0.8rem;
    font-weight: 600;
}

.header-call strong {
    margin-top: 3px;
    font-family: var(--head);
    font-size: 1.55rem;
    font-weight: 800;
}

.nav-toggle {
    display: none;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 2px solid var(--asphalt);
    border-radius: var(--r);
    background: var(--white);
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--asphalt);
    transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21.5px; }
.nav-toggle span:nth-child(3) { top: 29px; }

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --- hero --- */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: min(820px, 92vh);
    margin-top: var(--header-h);
    background: repeating-linear-gradient(to bottom, var(--galv) 0 40px, #d9dde0 40px 42px);
    overflow: hidden;
}

.hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
}

.hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px var(--gutter);
}

.sign {
    width: min(620px, 100%);
    padding: 40px 42px 34px;
    background: var(--white);
    border: 2px solid var(--asphalt);
    border-top: 14px solid var(--red);
    border-radius: var(--r);
}

.sign h1 {
    font-size: clamp(2.7rem, 5.2vw, 4.6rem);
    line-height: 0.96;
}

.sign-lede {
    margin-top: 22px;
    font-size: 1.12rem;
    color: var(--steel);
    max-width: 54ch;
}

.sign-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.sign-foot {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 2px solid var(--galv);
    font-size: 0.95rem;
    font-weight: 600;
}

/* one load moment: the sign swings in over the photo */
.js .sign {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}

.js .hero-photo {
    clip-path: inset(0 0 0 100%);
    transition: clip-path 1.1s var(--ease);
}

.js .is-loaded .sign {
    opacity: 1;
    transform: none;
    transition-delay: 0.35s;
}

.js .is-loaded .hero-photo {
    clip-path: inset(0 0 0 0);
}

/* --- services --- */
.services {
    padding: clamp(80px, 10vw, 130px) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(32px, 5vw, 70px);
    align-items: start;
}

.services-head {
    position: sticky;
    top: calc(var(--header-h) + 30px);
}

.services-head p {
    margin-top: 20px;
    color: var(--steel);
}

.services-photo {
    margin-top: 30px;
    border-radius: var(--r);
    aspect-ratio: 3 / 2;
    object-fit: cover;
    width: 100%;
}

.scope {
    border: 2px solid var(--asphalt);
    border-radius: var(--r);
}

.scope-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 22px;
    background: var(--asphalt);
    color: var(--white);
    font-family: var(--head);
    font-weight: 700;
    font-size: 1.15rem;
}

.scope-top span:last-child {
    color: rgba(255, 255, 255, 0.65);
}

.scope-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    padding: 0;
    list-style: none;
}

.scope-list li {
    position: relative;
    padding: 26px 24px 28px 64px;
    border-bottom: 1px solid var(--rule);
}

.scope-list li:nth-child(odd) {
    border-right: 1px solid var(--rule);
}

.scope-list li:nth-last-child(-n + 2) {
    border-bottom: 0;
}

/* tick box, like a scope of work sheet */
.scope-list li::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 28px;
    width: 22px;
    height: 22px;
    border: 2px solid var(--asphalt);
    border-radius: 2px;
}

.scope-list li::after {
    content: '';
    position: absolute;
    left: 31px;
    top: 30px;
    width: 8px;
    height: 14px;
    border: solid var(--red);
    border-width: 0 4px 4px 0;
    transform: rotate(40deg);
}

.scope-list p {
    margin-top: 8px;
    color: var(--steel);
    font-size: 1rem;
}

/* --- layers (spice) --- */
.layers {
    background: var(--asphalt);
    color: var(--white);
    overflow: hidden;
}

.layers-pin {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 30px) 0 50px;
}

.layers-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.layers-lede {
    margin-top: 18px;
    color: #c4c9ce;
}

.layer-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 28px;
}

.layer-step {
    width: 46px;
    height: 46px;
    border: 2px solid #6b7178;
    border-radius: var(--r);
    background: transparent;
    color: #c4c9ce;
    font-family: var(--head);
    font-weight: 700;
    font-size: 1.3rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.layer-step:hover,
.layer-step.is-done {
    border-color: var(--white);
    color: var(--white);
}

.layer-step[aria-pressed='true'] {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.layer-info {
    margin-top: 24px;
    min-height: 196px;
    padding: 22px 24px;
    background: var(--asphalt-2);
    border-left: 5px solid var(--red);
}

.layer-count {
    font-size: 0.92rem;
    font-weight: 600;
    color: #c4c9ce;
}

.layer-name {
    margin-top: 6px;
    font-size: 1.8rem;
}

.layer-text {
    margin-top: 10px;
    color: #dde1e4;
    font-size: 1.02rem;
}

.layer-controls {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.layers .btn-line {
    border-color: #8a9097;
    color: var(--white);
}

.layers .btn-line:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--asphalt);
}

/* the drawing sheet */
.layers-stage {
    position: relative;
    padding: 10px;
    background: var(--white);
    border-radius: var(--r);
}

.layers-stage::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1.5px solid var(--asphalt);
    pointer-events: none;
}

.eave {
    width: 100%;
    height: auto;
}

.eave-grid path {
    fill: none;
    stroke: rgba(43, 46, 50, 0.07);
    stroke-width: 1;
}

.eave .layer {
    transition: opacity 0.45s var(--ease);
}

.eave .layer.is-off {
    opacity: 0;
}

.eave .siding path {
    fill: #3e5f86;
    stroke: #2d4766;
    stroke-width: 1;
}

.eave .rain circle {
    fill: #2f7de1;
    opacity: 0;
}

.eave-label {
    fill: var(--asphalt);
    font-family: var(--head);
    font-size: 21px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.35s;
    paint-order: stroke;
    stroke: var(--white);
    stroke-width: 6px;
    stroke-linejoin: round;
}

.eave .layer.is-current .eave-label {
    opacity: 1;
}

.eave-pin circle {
    fill: var(--red);
}

.eave-pin .ring {
    fill: none;
    stroke: var(--red);
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
    animation: pin-pulse 1.8s ease-out infinite;
}

@keyframes pin-pulse {
    from { transform: scale(0.5); opacity: 0.8; }
    to { transform: scale(1.4); opacity: 0; }
}

/* a proper drawing title block in the corner */
.title-block {
    position: relative;
    width: fit-content;
    margin: -1.5px 0 0 auto;
    display: grid;
    grid-template-columns: auto auto;
    border-top: 1.5px solid var(--asphalt);
    border-left: 1.5px solid var(--asphalt);
    background: var(--white);
    color: var(--asphalt);
    font-size: 0.78rem;
    line-height: 1.2;
}

.title-block span {
    padding: 6px 10px;
    border-right: 1px solid var(--rule);
}

.title-block span:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--rule);
    border-right: 0;
}

.title-block span:last-child {
    border-right: 0;
}

.title-block strong {
    font-family: var(--head);
    font-size: 1rem;
    margin-right: 6px;
}

/* --- owner --- */
.owner {
    padding: clamp(80px, 10vw, 130px) 0;
    background: var(--galv);
}

.owner-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(32px, 5vw, 70px);
    align-items: start;
}

.letter {
    padding: clamp(28px, 5vw, 56px);
    background: var(--white);
    border: 1px solid var(--galv-2);
    box-shadow: 0 2px 0 var(--galv-2);
}

.letter-head {
    width: 190px;
}

.letter-place {
    margin-top: 18px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--asphalt);
    font-size: 0.95rem;
    color: var(--steel);
}

.letter h2 {
    margin: 28px 0 22px;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.letter p + p {
    margin-top: 16px;
}

.letter-sign {
    line-height: 1.5;
}

.letter-sign strong {
    font-family: var(--head);
    font-size: 1.5rem;
}

.owner-side img {
    width: 100%;
    border-radius: var(--r);
}

.owner-side h3 {
    margin-top: 28px;
}

.owner-projects {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--asphalt);
}

.owner-projects li {
    position: relative;
    padding: 13px 0 13px 24px;
    border-bottom: 1px solid var(--galv-2);
    font-weight: 600;
}

.owner-projects li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 21px;
    width: 10px;
    height: 10px;
    background: var(--red);
}

/* --- work --- */
.work {
    padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 8vw, 100px);
}

.work-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 40px;
    margin-bottom: 32px;
}

.work-filters,
.compare-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 8px;
}

.tile {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 2px;
    background: var(--galv);
}

.tile-tall {
    grid-row: span 2;
}

.tile-wide {
    grid-column: span 2;
}

.tile.is-hidden {
    display: none;
}

.tile-btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 12px 10px;
    background: linear-gradient(to top, rgba(28, 30, 33, 0.85), rgba(28, 30, 33, 0));
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    pointer-events: none;
}

/* --- before / after --- */
.compare {
    padding: 0 0 clamp(80px, 10vw, 130px);
}

.compare-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(32px, 5vw, 70px);
    align-items: center;
    padding-top: clamp(50px, 7vw, 80px);
    border-top: 2px solid var(--asphalt);
}

.compare-copy > p {
    margin-top: 18px;
    color: var(--steel);
}

.compare-tabs {
    margin-top: 24px;
}

.compare-copy .compare-note {
    margin-top: 16px;
    min-height: 3.2em;
    color: var(--asphalt);
    font-weight: 500;
}

.compare-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--r);
    background: var(--asphalt);
    user-select: none;
    touch-action: pan-y;
}

.compare-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-before-wrap {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 4px;
    margin-left: -2px;
    background: var(--white);
    pointer-events: none;
}

.compare-handle span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: var(--r);
    background: var(--red);
}

.compare-handle span::before,
.compare-handle span::after {
    content: '';
    position: absolute;
    top: 50%;
    margin-top: -6px;
    border: 6px solid transparent;
}

.compare-handle span::before {
    left: 5px;
    border-right-color: var(--white);
}

.compare-handle span::after {
    right: 5px;
    border-left-color: var(--white);
}

.compare-label {
    position: absolute;
    top: 0;
    padding: 6px 12px;
    background: var(--asphalt);
    color: var(--white);
    font-family: var(--head);
    font-weight: 700;
    font-size: 1.05rem;
    pointer-events: none;
}

.compare-label-before {
    left: 0;
}

.compare-label-after {
    right: 0;
    background: var(--red);
}

.compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.compare-frame:focus-within .compare-handle span {
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

/* --- references --- */
.references {
    padding: clamp(80px, 10vw, 130px) 0;
    background: var(--galv);
}

.refs-head {
    max-width: 640px;
    margin-bottom: 50px;
}

.refs-head p {
    margin-top: 18px;
    color: var(--steel);
}

.ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 48px);
}

.ref {
    margin: 0;
}

.ref-paper {
    display: block;
    width: 100%;
    padding: 8px;
    border: 0;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(43, 46, 50, 0.2), 0 8px 18px rgba(43, 46, 50, 0.12);
    transform: rotate(-1.4deg);
    transition: transform 0.3s var(--ease);
}

.ref:nth-child(2) .ref-paper {
    transform: rotate(1deg);
}

.ref:nth-child(3) .ref-paper {
    transform: rotate(-0.6deg);
}

.ref .ref-paper:hover,
.ref .ref-paper:focus-visible {
    transform: rotate(0) translateY(-4px);
}

.ref-paper img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top;
}

.ref blockquote {
    margin: 28px 0 0;
    font-size: 1.06rem;
    font-weight: 500;
}

.ref figcaption {
    display: flex;
    flex-direction: column;
    margin-top: 14px;
    font-size: 0.94rem;
    color: var(--steel);
}

.ref figcaption strong {
    font-family: var(--head);
    font-size: 1.3rem;
    color: var(--asphalt);
}

/* --- faq --- */
.faq {
    padding: clamp(80px, 10vw, 130px) 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(32px, 5vw, 70px);
    align-items: start;
}

.faq-head p {
    margin-top: 18px;
    color: var(--steel);
}

.faq-head a {
    color: var(--asphalt);
    font-weight: 600;
}

.faq-list {
    border-top: 2px solid var(--asphalt);
}

.faq-item {
    border-bottom: 1px solid var(--rule);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 44px;
    padding: 22px 0;
    font-weight: 600;
    font-size: 1.15rem;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover,
.faq-item.is-open summary {
    color: var(--red);
}

.faq-icon {
    position: relative;
    flex: none;
    width: 32px;
    height: 32px;
    border: 2px solid currentColor;
    border-radius: var(--r);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2.5px;
    margin: -1.25px 0 0 -6px;
    background: currentColor;
}

.faq-icon::after {
    transform: rotate(90deg);
    transition: transform 0.3s var(--ease);
}

.faq-item.is-open .faq-icon::after {
    transform: rotate(0deg);
}

.faq-answer {
    overflow: hidden;
    padding: 0 50px 26px 0;
    color: var(--steel);
}

/* --- estimate --- */
.estimate {
    padding: clamp(80px, 10vw, 130px) 0;
    background: var(--asphalt);
    color: var(--white);
}

.estimate-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(32px, 5vw, 70px);
    align-items: start;
}

.estimate-copy p {
    margin-top: 18px;
    color: #c4c9ce;
}

.estimate-phone {
    display: inline-block;
    margin-top: 34px;
    font-family: var(--head);
    font-weight: 800;
    font-size: clamp(2.6rem, 5.4vw, 4rem);
    line-height: 1;
    text-decoration: none;
    border-bottom: 4px solid var(--red);
}

.estimate-phone:hover {
    color: #ffd6d7;
}

.estimate-email {
    display: block;
    margin-top: 16px;
    color: #c4c9ce;
    word-break: break-all;
}

.estimate-form {
    background: var(--white);
    color: var(--asphalt);
    border-radius: var(--r);
    overflow: hidden;
}

.form-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: var(--red);
    color: var(--white);
    font-family: var(--head);
    font-size: 1.3rem;
}

.form-top span {
    font-weight: 700;
    opacity: 0.85;
}

.form-body {
    display: grid;
    gap: 18px;
    padding: clamp(20px, 4vw, 32px);
}

.field-set {
    margin: 0;
    padding: 0;
    border: 0;
}

.field-set legend {
    margin-bottom: 10px;
    font-weight: 600;
}

.checks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 12px;
}

.check {
    position: relative;
    cursor: pointer;
}

.check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.check span {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-left: 34px;
    font-weight: 500;
}

.check span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border: 2px solid var(--asphalt);
    border-radius: 2px;
    background: var(--white);
}

.check span::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 7px;
    height: 13px;
    margin-top: -9px;
    border: solid var(--white);
    border-width: 0 3px 3px 0;
    transform: rotate(40deg) scale(0);
    transition: transform 0.15s;
}

.check input:checked + span::before {
    background: var(--red);
    border-color: var(--red);
}

.check input:checked + span::after {
    transform: rotate(40deg) scale(1);
}

.check input:focus-visible + span::before {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    display: grid;
    gap: 6px;
}

.field span {
    font-weight: 600;
    font-size: 0.95rem;
}

.field input,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 2px solid var(--galv-2);
    border-radius: var(--r);
    background: var(--white);
    transition: border-color 0.2s;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--asphalt);
}

.field.has-error input {
    border-color: var(--red);
}

.form-status {
    min-height: 1.4em;
    font-size: 0.95rem;
    color: var(--steel);
}

.form-status.is-error {
    color: var(--red);
}

/* --- footer --- */
.site-footer {
    padding: 56px 0 26px;
    background: var(--galv);
    border-top: 4px solid var(--red);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 36px;
}

.footer-brand img {
    width: 170px;
}

.footer-brand p {
    margin-top: 16px;
    max-width: 38ch;
    font-size: 0.98rem;
    color: var(--steel);
}

.footer-links,
.footer-nap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-style: normal;
}

.footer-links a,
.footer-nap a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    text-decoration: none;
}

.footer-links a:hover,
.footer-nap a:hover {
    color: var(--red);
}

.footer-nap strong {
    font-family: var(--head);
    font-size: 1.3rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid var(--galv-2);
    font-size: 0.9rem;
    color: var(--steel);
}

.call-bar {
    display: none;
}

/* --- lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    visibility: hidden;
    pointer-events: none;
}

.lightbox.is-open,
.lightbox.is-closing {
    visibility: visible;
}

.lightbox.is-open {
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 30, 33, 0.94);
    opacity: 0;
    transition: opacity 0.28s var(--ease);
}

.lightbox.is-open .lightbox-backdrop {
    opacity: 1;
}

.lightbox-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1100px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    opacity: 0;
    transition: opacity 0.28s var(--ease);
}

.lightbox.is-open .lightbox-shell {
    opacity: 1;
}

.lightbox-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--white);
}

.lightbox-status {
    margin-right: auto;
    font-variant-numeric: tabular-nums;
}

.lightbox-nav {
    display: flex;
    gap: 8px;
}

.lightbox-arrow,
.lightbox-close {
    width: 46px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--r);
    background: transparent;
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
}

.lightbox-arrow:hover,
.lightbox-close:hover {
    background: var(--red);
    border-color: var(--red);
}

.lightbox-arrow.is-disabled {
    opacity: 0.3;
}

.lightbox-image-wrap {
    display: grid;
    place-items: center;
    min-height: 0;
    flex: 1;
    touch-action: pan-y;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 12px;
    color: #dde1e4;
    text-align: center;
}

body.lightbox-active {
    overflow: hidden;
}

/* --- responsive --- */
@media (max-width: 1120px) {
    .site-nav {
        gap: 18px;
    }

    .header-inner {
        gap: 20px;
    }

    .mosaic {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 960px) {
    :root {
        --header-h: 72px;
    }

    .brand img {
        height: 56px;
    }

    .nav-toggle {
        display: block;
    }

    .header-call {
        display: none;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px var(--gutter) 24px;
        background: var(--white);
        border-bottom: 4px solid var(--red);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.25s;
    }

    .nav-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-nav a {
        display: flex;
        align-items: center;
        min-height: 54px;
        border-bottom: 1px solid var(--rule);
        font-size: 1.15rem;
    }

    .site-nav .nav-estimate {
        display: flex;
        justify-content: center;
        margin-top: 16px;
        border: 0;
        border-radius: var(--r);
        background: var(--red);
        color: var(--white);
        font-family: var(--head);
        font-size: 1.3rem;
    }

    .hero {
        display: block;
        min-height: 0;
        background: var(--galv);
    }

    .hero-photo {
        position: relative;
        width: 100%;
        height: 52vh;
        min-height: 300px;
    }

    .hero-inner {
        margin-top: -70px;
        padding-top: 0;
    }

    .services-grid,
    .layers-grid,
    .owner-grid,
    .compare-grid,
    .faq-grid,
    .estimate-grid {
        grid-template-columns: 1fr;
    }

    .services-head {
        position: static;
    }

    .layers-pin {
        min-height: 0;
        padding: 80px 0;
    }

    .layers-stage {
        order: -1;
        position: sticky;
        top: calc(var(--header-h) + 10px);
        z-index: 2;
    }

    .layer-info {
        min-height: 0;
    }

    .ref-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .call-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 58px;
        background: var(--red);
        color: var(--white);
        font-family: var(--head);
        font-weight: 700;
        font-size: 1.3rem;
        text-decoration: none;
        transform: translateY(100%);
        transition: transform 0.3s var(--ease);
    }

    .call-bar.is-shown {
        transform: none;
    }

    .site-footer {
        padding-bottom: 90px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 17px;
    }

    .sign {
        padding: 28px 22px 24px;
        border-top-width: 10px;
    }

    .sign-actions .btn {
        flex: 1 1 100%;
    }

    .scope-list {
        grid-template-columns: 1fr;
    }

    .scope-list li:nth-child(odd) {
        border-right: 0;
    }

    .scope-list li:nth-last-child(2) {
        border-bottom: 1px solid var(--rule);
    }

    .scope-top span:last-child {
        display: none;
    }

    .mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
        gap: 6px;
    }

    .tile figcaption {
        display: none;
    }

    .eave-label {
        font-size: 32px;
        stroke-width: 8px;
    }

    .title-block {
        display: none;
    }

    .layer-steps {
        gap: 5px;
    }

    .layer-step {
        width: 40px;
        height: 44px;
    }

    .checks {
        grid-template-columns: 1fr 1fr;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-image {
        max-height: calc(100vh - 190px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .sign {
        opacity: 1;
        transform: none;
    }

    .js .hero-photo {
        clip-path: none;
    }
}
