/* ==========================================================================
   Kizzas Contracting
   Base styles, layout system and homepage components.
   ========================================================================== */

:root {
    /* Brand colors, taken from the supplied logo and brand guide */
    --green:            #209D50;
    --green-dark:       #17703A;
    --green-deep:       #123D24;
    --ink:              #14171A;
    --ink-soft:         #2B3138;
    --sand:             #E1DFD9;
    --sand-light:       #F1F0EC;
    --white:            #FFFFFF;
    --text:             #22262B;
    --text-muted:       #5C646D;
    --line:             #D8D5CE;
    --line-dark:        #2E3A32;

    --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
    --font-body:    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 2.5rem;
    --sp-8: 3rem;
    --sp-9: 4rem;
    --sp-10: 5rem;

    --container: 1220px;
    --gutter: clamp(1.125rem, 4vw, 2.5rem);
    --radius: 5px;
    --shadow: 0 2px 10px rgba(20, 23, 26, 0.10);
    --shadow-lg: 0 10px 34px rgba(20, 23, 26, 0.16);
    --transition: 0.25s ease;
}

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

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

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

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
}

p,
h1, h2, h3, h4, h5, h6,
li, a, span {
    overflow-wrap: break-word;
}

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

/* The header is sticky, so anchor targets need to stop clear of it. */
[id] {
    scroll-margin-top: 120px;
}

.skip-link {
    position: fixed;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--ink);
    color: var(--white);
    padding: var(--sp-3) var(--sp-4);
}

.skip-link:focus {
    left: 0;
}

/* --- Layout --------------------------------------------------------------- */

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

.section {
    padding-block: clamp(3.25rem, 7vw, 5.5rem);
}

.section--sand   { background: var(--sand-light); }
.section--deep   { background: var(--green-deep); color: var(--white); }

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: var(--sp-5);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.grid-2 > *,
.grid-3 > *,
.grid-4 > * { min-width: 0; }

/* --- Typography ----------------------------------------------------------- */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: 0.005em;
    color: var(--ink);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 4.4vw, 3.15rem);
}

h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.section--deep h2,
.section--deep h3 {
    color: var(--white);
}

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: var(--sp-3);
}

.section--deep .section-label {
    color: #7FD79F;
}

.section-head p {
    margin-top: var(--sp-4);
    font-size: 1.06rem;
    color: var(--text-muted);
    max-width: 44rem;
}

.section--deep .section-head p {
    color: rgba(255, 255, 255, 0.82);
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 0.95rem 1.85rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

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

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

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

.btn--dark:hover,
.btn--dark:focus-visible {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.75);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: var(--white);
    color: var(--ink);
    border-color: var(--white);
}

.btn--block {
    width: 100%;
}

/* --- Utility bar ---------------------------------------------------------- */

.utility {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.875rem;
}

.utility__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    min-height: 42px;
    flex-wrap: wrap;
}

.utility__area {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.utility__links {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
}

.utility a:hover {
    color: #7FD79F;
}

.utility svg {
    width: 15px;
    height: 15px;
    flex: none;
    fill: currentColor;
    opacity: 0.85;
}

/* --- Header --------------------------------------------------------------- */

.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    min-height: 92px;
}

.header__logo {
    flex: none;
    margin-right: auto;
}

.header__logo img {
    width: auto;
    height: 74px;
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.9rem);
}

/* Drawer chrome belongs to the mobile menu only. */
.nav__head,
.nav__actions {
    display: none;
}

.nav__link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    padding-block: var(--sp-2);
    border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__link:focus-visible,
.nav__link[aria-current="page"] {
    color: var(--green-dark);
    border-bottom-color: var(--green);
}

/* --- Services dropdown ---------------------------------------------------- */

.nav__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav__expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--radius);
    color: var(--ink);
    flex: none;
}

.nav__expand svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform var(--transition);
}

.nav__item:hover .nav__expand,
.nav__item.is-open .nav__expand {
    color: var(--green-dark);
}

.nav__item.is-open .nav__expand svg {
    transform: rotate(180deg);
}

.nav__submenu {
    position: absolute;
    top: 100%;
    left: -14px;
    z-index: 20;
    list-style: none;
    min-width: 262px;
    padding: var(--sp-2) 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav__submenu a {
    display: block;
    padding: 0.62rem 1.15rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.98rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
    border-left: 3px solid transparent;
}

.nav__submenu a:hover,
.nav__submenu a:focus-visible,
.nav__submenu a[aria-current="page"] {
    background: var(--sand-light);
    color: var(--green-dark);
    border-left-color: var(--green);
}

/* Opened by the button anywhere, and additionally by hover on a real pointer. */
.nav__item.is-open .nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
    .nav__item:hover .nav__submenu,
    .nav__item:focus-within .nav__submenu {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }
}

.header__cta {
    flex: none;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    align-items: center;
    justify-content: center;
    flex: none;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--ink);
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
    position: relative;
    background: var(--ink);
    overflow: hidden;
}

.hero__viewport {
    position: relative;
    /* Slides share one grid cell, so the hero is as tall as its tallest slide
       and the clamp only sets a floor. With absolute slides the copy was locked
       to a fixed height and the buttons ran into the controls bar on short
       windows. */
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: clamp(430px, 62vh, 610px);
}

.hero__slide {
    grid-area: 1 / 1;
    position: relative;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.hero__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero__media,
.hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__media img {
    object-fit: cover;
    object-position: center 58%;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 22, 14, 0.88) 0%, rgba(9, 22, 14, 0.72) 38%, rgba(9, 22, 14, 0.28) 72%, rgba(9, 22, 14, 0.20) 100%);
}

.hero__copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    /* The lower value has to clear the controls bar, which is pinned to the
       bottom of the hero and is about 62px tall. */
    padding-block: clamp(2.75rem, 6vw, 4rem) clamp(6.5rem, 9vw, 7.5rem);
    max-width: 41rem;
    color: var(--white);
}

.hero__badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: var(--sp-2);
    background: var(--green);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius);
    margin-bottom: var(--sp-4);
}

.hero h1,
.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    color: var(--white);
    font-size: clamp(2.6rem, 6.2vw, 4.35rem);
    line-height: 0.98;
}

.hero h1 em,
.hero__title em {
    font-style: normal;
    color: #7FD79F;
    display: block;
}

.hero__text {
    margin-top: var(--sp-4);
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 34rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
}

.hero__controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(9, 22, 14, 0.55);
}

.hero__controls-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    min-height: 62px;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-5);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.84);
}

.hero__nav {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex: none;
}

.hero__dots {
    display: flex;
    gap: var(--sp-2);
    margin-inline: var(--sp-3);
}

.hero__dot {
    width: 32px;
    height: 4px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    transition: background-color var(--transition);
}

.hero__dot.is-active {
    background: var(--green);
}

.hero__arrow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background-color var(--transition), border-color var(--transition);
}

.hero__arrow:hover,
.hero__arrow:focus-visible {
    background: var(--green);
    border-color: var(--green);
}

.hero__arrow svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/* --- Inner page banner ---------------------------------------------------- */

.page-banner {
    position: relative;
    background: var(--ink);
    overflow: hidden;
    padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.page-banner__bg,
.page-banner__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.page-banner__bg img {
    object-fit: cover;
    object-position: center 55%;
}

.page-banner__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 22, 14, 0.92) 0%, rgba(9, 22, 14, 0.76) 55%, rgba(9, 22, 14, 0.55) 100%);
}

.page-banner__inner {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.page-banner h1 {
    color: var(--white);
    font-size: clamp(2.1rem, 4.6vw, 3.3rem);
    max-width: 22ch;
}

.page-banner p {
    margin-top: var(--sp-3);
    color: rgba(255, 255, 255, 0.86);
    max-width: 46ch;
    font-size: 1.05rem;
}

.crumbs {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: var(--sp-4);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.crumbs a:hover { color: #7FD79F; }
.crumbs [aria-current] { color: var(--white); }

/* --- Detail layout -------------------------------------------------------- */

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

.detail__lead {
    font-size: 1.14rem;
    color: var(--text);
}

.detail__main h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin-top: var(--sp-8);
    margin-bottom: var(--sp-4);
}

.detail__main > h2:first-child { margin-top: 0; }

.detail__main p { color: var(--text-muted); }
.detail__lead { color: var(--text); }

.detail__figure {
    margin-top: var(--sp-7);
    border-radius: var(--radius);
    overflow: hidden;
}

.ticks {
    list-style: none;
    display: grid;
    gap: var(--sp-3);
}

.ticks li {
    display: flex;
    gap: var(--sp-3);
    align-items: flex-start;
    font-size: 1.02rem;
}

.ticks svg {
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: 4px;
    fill: var(--green);
}

.detail__side {
    display: grid;
    gap: var(--sp-4);
    position: sticky;
    top: 110px;
}

.sidecard {
    background: var(--green-deep);
    color: var(--white);
    border-radius: var(--radius);
    padding: var(--sp-5);
}

.sidecard h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--sp-3);
}

.sidecard p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.98rem;
    margin-bottom: var(--sp-4);
}

.sidecard .btn { margin-bottom: var(--sp-2); }
.sidecard .btn:last-child { margin-bottom: 0; }

.sidecard--plain {
    background: var(--sand-light);
    color: var(--text);
    border: 1px solid var(--line);
}

.sidecard--plain h3 { color: var(--ink); }
.sidecard--plain p { color: var(--text-muted); margin-bottom: 0; }
.sidecard--plain a { color: var(--green-dark); font-weight: 600; }
.sidecard--plain a:hover { text-decoration: underline; }

.sidelist {
    list-style: none;
    display: grid;
    gap: var(--sp-2);
}

.sidelist a {
    display: block;
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--line);
    font-weight: 500;
}

.sidelist li:last-child a { border-bottom: 0; }
.sidelist a:hover { color: var(--green-dark); }

/* --- Value cards and fact list -------------------------------------------- */

.valuecard {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    border-radius: var(--radius);
    padding: var(--sp-5);
}

.valuecard h3 {
    font-size: 1.22rem;
    margin-bottom: var(--sp-3);
}

.valuecard p {
    color: var(--text-muted);
    font-size: 0.99rem;
}

.factlist {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4);
    max-width: 60rem;
}

.factlist > * { min-width: 0; }

.factlist li {
    border-top: 1px solid var(--line);
    padding-top: var(--sp-3);
    font-size: 1.02rem;
}

.factlist strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.factlist a:hover { color: var(--green-dark); }

/* --- FAQ ------------------------------------------------------------------ */

.faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

.faq__list { display: grid; gap: var(--sp-3); }

.faq__item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
}

.faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: var(--sp-4) var(--sp-5);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.16rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
}

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

.faq__item summary::after {
    content: "";
    flex: none;
    width: 14px;
    height: 14px;
    border-right: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform var(--transition);
}

.faq__item[open] summary::after {
    transform: rotate(-135deg) translate(-3px, -3px);
}

.faq__item[open] summary { background: var(--sand-light); }

.faq__item p {
    padding: 0 var(--sp-5) var(--sp-5);
    color: var(--text-muted);
}

/* --- Legal pages ---------------------------------------------------------- */

.prose {
    max-width: 46rem;
}

.prose h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    margin-top: var(--sp-8);
    margin-bottom: var(--sp-3);
}

.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-muted); margin-bottom: var(--sp-4); }
.prose ul { margin: 0 0 var(--sp-4) var(--sp-5); color: var(--text-muted); }
.prose li { margin-bottom: var(--sp-2); }
.prose a { color: var(--green-dark); text-decoration: underline; }

/* --- Error page ----------------------------------------------------------- */

.errorpage {
    text-align: center;
    padding-block: clamp(4rem, 10vw, 7rem);
}

/* Selector carries the element too, so it beats ".errorpage p" below, which
   would otherwise drag the number down to muted grey. */
.errorpage p.errorpage__code {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(5rem, 16vw, 10rem);
    line-height: 1;
    color: var(--green);
    margin: 0;
}

.errorpage h1 {
    margin-top: var(--sp-3);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.errorpage p {
    margin: var(--sp-4) auto 0;
    max-width: 34rem;
    color: var(--text-muted);
}

.errorpage__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    justify-content: center;
    margin-top: var(--sp-6);
}

/* On a short laptop window the hero has to tighten up, otherwise the slider
   controls end up below the fold and the hero cannot be read in one screen. */
@media (min-width: 781px) and (max-height: 720px) {
    .hero__viewport {
        min-height: 0;
    }

    .hero__copy {
        padding-block: 1.6rem 5.75rem;
    }

    .hero h1,
    .hero__title {
        font-size: clamp(2.1rem, 4.2vw, 3rem);
    }

    .hero__badge {
        margin-bottom: var(--sp-3);
    }

    .hero__text {
        margin-top: var(--sp-3);
        font-size: 1rem;
    }

    .hero__actions {
        margin-top: var(--sp-5);
    }

    .hero__controls-inner {
        min-height: 54px;
    }
}

/* --- Assurance strip ------------------------------------------------------ */

.assurance {
    background: var(--sand);
    border-bottom: 1px solid var(--line);
}

.assurance__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.assurance__item {
    padding: var(--sp-6) var(--sp-5);
    border-right: 1px solid var(--line);
}

.assurance__item:last-child {
    border-right: 0;
}

.assurance__item h3 {
    font-size: 1.22rem;
    margin-bottom: var(--sp-2);
}

.assurance__item p {
    font-size: 0.96rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* --- Service cards -------------------------------------------------------- */

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-5);
}

.services__grid > * { min-width: 0; }

.service-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    aspect-ratio: 4 / 3.35;
    isolation: isolate;
}

.service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    z-index: 0;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(9, 22, 14, 0) 30%, rgba(9, 22, 14, 0.62) 62%, rgba(9, 22, 14, 0.94) 100%);
    transition: background var(--transition);
}

.service-card:hover img,
.service-card:focus-within img {
    transform: scale(1.06);
}

.service-card:hover::after,
.service-card:focus-within::after {
    background: linear-gradient(180deg, rgba(9, 22, 14, 0.10) 20%, rgba(18, 61, 36, 0.72) 60%, rgba(18, 61, 36, 0.96) 100%);
}

.service-card__body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: var(--sp-5);
    color: var(--white);
}

.service-card__body h3 {
    color: var(--white);
    font-size: clamp(1.3rem, 1.9vw, 1.6rem);
}

.service-card__body p {
    margin-top: var(--sp-3);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.97rem;
    line-height: 1.55;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.45s ease;
}

.service-card:hover .service-card__body p,
.service-card:focus-within .service-card__body p {
    max-height: 8rem;
    opacity: 1;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8EE3AC;
}

.service-card__link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    transition: transform var(--transition);
}

.service-card:hover .service-card__link svg {
    transform: translateX(5px);
}

/* Touch devices never get a hover, so the copy stays open there. */
@media (hover: none) {
    .service-card__body p {
        max-height: 8rem;
        opacity: 1;
    }
}

/* --- Process -------------------------------------------------------------- */

.process {
    position: relative;
    padding-block: clamp(3.25rem, 7vw, 5.5rem);
    background: var(--ink);
    overflow: hidden;
}

.process__bg,
.process__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.process__bg img {
    object-fit: cover;
    object-position: center 60%;
}

.process__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 26, 17, 0.86);
}

.process__inner {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.process h2 { color: var(--white); }
.process .section-label { color: #7FD79F; }

.process__steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-5);
    counter-reset: step;
}

.process__steps > * { min-width: 0; }

.process__steps li {
    padding-top: var(--sp-5);
    border-top: 2px solid rgba(255, 255, 255, 0.22);
}

.process__num {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--green);
    margin-bottom: var(--sp-3);
}

.process__steps h3 {
    color: var(--white);
    font-size: 1.28rem;
    margin-bottom: var(--sp-2);
}

.process__steps p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.99rem;
    line-height: 1.55;
}

/* --- About ---------------------------------------------------------------- */

.about__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: stretch;
}

.about__media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 100%;
}

.about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.about__body {
    align-self: center;
}

.about__body h2 + p {
    margin-top: var(--sp-4);
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about__quote {
    margin-top: var(--sp-5);
    padding: var(--sp-5);
    background: var(--white);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    font-size: 1.06rem;
    color: var(--text);
}

.about__list {
    list-style: none;
    margin-top: var(--sp-5);
    display: grid;
    gap: var(--sp-3);
}

.about__list li {
    display: flex;
    gap: var(--sp-3);
    align-items: flex-start;
    font-size: 1.01rem;
}

.about__list svg {
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: 3px;
    fill: var(--green);
}

.about__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
}

/* --- Before and after ----------------------------------------------------- */

.ba__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-bottom: var(--sp-5);
}

.ba__tab {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.86);
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.ba__tab:hover {
    border-color: var(--green);
}

.ba__tab.is-active {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.ba__stage {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    aspect-ratio: 4 / 3;
    max-height: 620px;
    margin-inline: auto;
    width: 100%;
    max-width: 900px;
    touch-action: pan-y;
    user-select: none;
}

.ba__img {
    position: absolute;
    inset: 0;
}

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

.ba__img--after {
    clip-path: inset(0 0 0 var(--split, 50%));
}

.ba__badge {
    position: absolute;
    top: var(--sp-4);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius);
    background: rgba(9, 22, 14, 0.78);
    color: var(--white);
    z-index: 2;
    pointer-events: none;
}

.ba__badge--before { left: var(--sp-4); }
.ba__badge--after  { right: var(--sp-4); background: var(--green); }

.ba__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--split, 50%);
    width: 3px;
    background: var(--white);
    z-index: 3;
    transform: translateX(-1.5px);
    pointer-events: none;
}

.ba__handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2314171A'%3E%3Cpath d='M9.5 6 4 12l5.5 6V6zm5 0v12l5.5-6-5.5-6z'/%3E%3C/svg%3E") center / 24px no-repeat;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.ba__range {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
}

.ba__caption {
    margin-top: var(--sp-4);
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
}

/* --- Gallery -------------------------------------------------------------- */

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-3);
}

.gallery__grid > * { min-width: 0; }

.gallery__item {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--sand);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 22, 14, 0) 45%, rgba(9, 22, 14, 0.55) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery__item::before {
    content: "";
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%) scale(0.8);
    border-radius: 50%;
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M15.5 14h-.8l-.3-.3a6.5 6.5 0 1 0-.7.7l.3.3v.8l5 5 1.5-1.5-5-5zm-6 0a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E") center / 22px no-repeat;
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
}

.gallery__item:hover img {
    transform: scale(1.06);
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after {
    opacity: 1;
}

.gallery__item:hover::before,
.gallery__item:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- Quote form ----------------------------------------------------------- */

.quote__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.quote__contact {
    list-style: none;
    display: grid;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
}

.quote__contact li {
    display: flex;
    gap: var(--sp-4);
    align-items: flex-start;
}

.quote__contact svg {
    width: 22px;
    height: 22px;
    flex: none;
    margin-top: 4px;
    fill: var(--green);
}

.quote__contact strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.quote__contact a:hover {
    color: var(--green-dark);
}

.form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4);
}

.form__group {
    margin-bottom: var(--sp-4);
}

.form label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: var(--sp-2);
}

.form input,
.form select,
.form textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    padding: 0.78rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: var(--green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(32, 157, 80, 0.18);
}

.form textarea {
    min-height: 118px;
    resize: vertical;
}

.form__note {
    margin-top: var(--sp-3);
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Selector has to beat ".form input", which sets width: 100%. Left at full
   width this field was 337px wide and pushed the page past the viewport. */
.form input.form__honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    clip-path: inset(50%);
    pointer-events: none;
}

/* --- Call band ------------------------------------------------------------ */

.callband {
    background: var(--green-deep);
    color: var(--white);
    padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.callband__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    flex-wrap: wrap;
}

.callband h2 {
    color: var(--white);
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.callband p {
    margin-top: var(--sp-2);
    color: rgba(255, 255, 255, 0.82);
}

.callband__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

/* --- Footer --------------------------------------------------------------- */

.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.78);
    padding-block: clamp(2.75rem, 5vw, 4rem);
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
}

/* Genuine transparent white mark, so no white box appears on the dark panel. */
.footer__logo img {
    width: 150px;
    height: auto;
}

.footer__about {
    margin-top: var(--sp-5);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.98rem;
    max-width: 30rem;
}

.footer h4 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 2px solid var(--green);
    display: inline-block;
}

.footer__list {
    list-style: none;
    display: grid;
    gap: var(--sp-3);
    font-size: 0.99rem;
}

.footer__list a {
    color: rgba(255, 255, 255, 0.78);
}

.footer__list a:hover,
.footer__list a:focus-visible {
    color: #8EE3AC;
}

.footer__contact {
    list-style: none;
    display: grid;
    gap: var(--sp-4);
    font-size: 0.99rem;
    color: var(--white);
}

.footer__contact span {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin-bottom: 2px;
}

.footer__contact a {
    color: var(--white);
    font-weight: 500;
}

.footer__contact a:hover,
.footer__contact a:focus-visible {
    color: #8EE3AC;
}

.colophon {
    background: #0C0E10;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    padding-block: var(--sp-4);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.colophon__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.colophon a {
    color: var(--white);
}

.colophon a:hover {
    color: #7FD79F;
}

.colophon__legal {
    display: flex;
    gap: var(--sp-5);
    flex-wrap: wrap;
}

/* --- Sticky mobile bar ---------------------------------------------------- */

.mobile-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    background: var(--ink);
    padding: var(--sp-2) var(--sp-2) calc(var(--sp-2) + env(safe-area-inset-bottom));
    gap: var(--sp-2);
    border-top: 1px solid var(--line-dark);
}

.mobile-bar .btn {
    flex: 1;
    padding-block: 0.8rem;
    font-size: 1rem;
}

/* --- Lightbox ------------------------------------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(9, 12, 10, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
}

.lightbox.is-open {
    display: flex;
}

.lightbox__figure {
    max-width: min(1100px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.lightbox__figure img {
    max-height: calc(100vh - 9rem);
    width: auto;
    margin-inline: auto;
    border-radius: var(--radius);
}

.lightbox__caption {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    font-size: 0.98rem;
}

.lightbox__close {
    position: absolute;
    top: clamp(0.75rem, 3vw, 1.5rem);
    right: clamp(0.75rem, 3vw, 1.5rem);
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.lightbox__close:hover {
    background: var(--green);
    border-color: var(--green);
}

.lightbox__step {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__step:hover {
    background: var(--green);
    border-color: var(--green);
}

.lightbox__step svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.lightbox__step--prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox__step--next { right: clamp(0.5rem, 2vw, 1.5rem); }

body.is-locked {
    overflow: hidden;
}

/* --- Reveal animation ----------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--delay, 0ms),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Slow drift on the active hero photo, the way a WordPress slider behaves. */
@keyframes heroDrift {
    from { transform: scale(1.06); }
    to   { transform: scale(1.14); }
}

.hero__slide.is-active .hero__media img {
    animation: heroDrift 9s ease-out forwards;
}

@keyframes heroCopyIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

.hero__slide.is-active .hero__badge  { animation: heroCopyIn 0.65s ease both 0.10s; }
.hero__slide.is-active h1,
.hero__slide.is-active .hero__title   { animation: heroCopyIn 0.65s ease both 0.20s; }
.hero__slide.is-active .hero__text    { animation: heroCopyIn 0.65s ease both 0.32s; }
.hero__slide.is-active .hero__actions { animation: heroCopyIn 0.65s ease both 0.44s; }

.btn,
.service-card,
.gallery__item {
    will-change: auto;
}

.btn--primary,
.btn--dark {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.btn:active {
    transform: translateY(1px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
    .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .assurance__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .assurance__item:nth-child(2) { border-right: 0; }
    .assurance__item:nth-child(1),
    .assurance__item:nth-child(2) { border-bottom: 1px solid var(--line); }
    /* Eight tiles stay on four columns so no slot is ever left empty. */
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
    .header__inner { min-height: 78px; }
    .header__logo img { height: 52px; }
    .nav-toggle { display: flex; }
    .header__cta { display: none; }

    .nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(330px, 86vw);
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: var(--sp-5) var(--sp-5) var(--sp-6);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        z-index: 90;
        /* Parked past the right edge, but hidden and inert while closed.
           Left visible it could be panned to on a phone, and because it is
           fixed and full height it then covered the page and swallowed every
           tap. visibility is switched with a delay so the slide out still
           animates on the way closed. */
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
    }

    .nav.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.3s ease, visibility 0s linear 0s;
    }

    .nav__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: var(--sp-4);
        border-bottom: 1px solid var(--line);
        margin-bottom: var(--sp-3);
    }

    .nav__title {
        font-family: var(--font-display);
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        font-size: 1rem;
        color: var(--text-muted);
    }

    .nav__close {
        width: 42px;
        height: 42px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        line-height: 1;
        color: var(--ink);
    }

    .nav__link {
        padding-block: 0.85rem;
        border-bottom: 1px solid var(--line);
        font-size: 1.14rem;
    }

    .nav__link:hover,
    .nav__link:focus-visible,
    .nav__link[aria-current="page"] {
        border-bottom-color: var(--line);
        color: var(--green-dark);
    }

    /* In the drawer the submenu stays closed until the arrow is pressed. The
       label itself keeps working as a link to the services overview. */
    .nav__item {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0;
    }

    .nav__item .nav__link {
        flex: 1 1 auto;
        min-width: 0;
    }

    .nav__expand {
        flex: none;
        width: 54px;
        height: auto;
        align-self: stretch;
        border-radius: 0;
        border-left: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .nav__expand svg {
        width: 20px;
        height: 20px;
    }

    .nav__submenu {
        flex-basis: 100%;
    }

    .nav__submenu {
        position: static;
        min-width: 0;
        padding: 0;
        margin: 0;
        background: var(--sand-light);
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        transition: none;
    }

    .nav__item.is-open .nav__submenu {
        display: block;
    }

    .nav__submenu a {
        padding: 0.7rem 0.9rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--line);
        border-left: 3px solid var(--green);
    }

    .nav__submenu li:last-child a {
        border-bottom: 0;
    }

    /* Hover must never be the thing that opens it on a touch screen. */
    .nav__item:hover .nav__submenu,
    .nav__item:focus-within .nav__submenu {
        display: none;
    }

    .nav__item.is-open:hover .nav__submenu,
    .nav__item.is-open:focus-within .nav__submenu {
        display: block;
    }

    .nav__actions {
        display: grid;
        gap: var(--sp-3);
        margin-top: var(--sp-6);
    }

    .nav__head {
        display: flex;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(9, 12, 10, 0.5);
        /* Must sit below the header. The drawer lives inside the header, so its
           own z-index is scoped to the header's stacking context and cannot
           beat a sibling of the header. At 80 this backdrop painted over the
           menu and ate every tap, which closed the menu instead of following
           the link. */
        z-index: 50;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition), visibility var(--transition);
    }

    .nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

    .about__layout { grid-template-columns: minmax(0, 1fr); }
    .about__media { aspect-ratio: 4 / 3; min-height: 0; }
    .quote__layout { grid-template-columns: minmax(0, 1fr); }
    .detail,
    .faq { grid-template-columns: minmax(0, 1fr); }
    .detail__side { position: static; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .utility__inner { min-height: 40px; justify-content: center; }
    .utility__area { display: none; }
    .utility__links { gap: var(--sp-4); }

    .hero__viewport { min-height: 500px; }

    .hero__copy {
        padding-block: 2.5rem 6rem;
        max-width: 100%;
    }

    .hero__media img { object-position: center 62%; }

    .hero__media::after {
        background: linear-gradient(180deg, rgba(9, 22, 14, 0.62) 0%, rgba(9, 22, 14, 0.80) 55%, rgba(9, 22, 14, 0.88) 100%);
    }

    .hero__actions .btn { flex: 1 1 100%; }

    .hero__chips { display: none; }
    .hero__controls-inner { justify-content: center; min-height: 56px; }

    .services__grid { grid-template-columns: minmax(0, 1fr); }
    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .factlist { grid-template-columns: minmax(0, 1fr); }
    .process__steps { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
    .process__steps li { padding-top: var(--sp-4); }
    .process__num { font-size: 2.1rem; margin-bottom: var(--sp-2); }
    .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .footer__grid { grid-template-columns: minmax(0, 1fr); }
    .colophon__inner { justify-content: center; text-align: center; }

    .mobile-bar { display: flex; }
    body { padding-bottom: 74px; }
    .lightbox { padding-bottom: 5rem; }
}

@media (max-width: 560px) {
    .assurance__grid { grid-template-columns: minmax(0, 1fr); }
    .assurance__item { border-right: 0; border-bottom: 1px solid var(--line); }
    .assurance__item:last-child { border-bottom: 0; }
    .ba__stage { aspect-ratio: 3 / 4; }
    .callband__actions .btn { flex: 1 1 100%; }
}

/* Hover effects only where a real pointer exists */
@media (hover: none) {
    .service-card:hover .service-card__media img,
    .gallery__item:hover img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal { opacity: 1; transform: none; }
}
