/*
 * Dambhar
 * Mobile first: base styles are the phone layout, wider screens are added with min-width queries.
 *
 * Breakpoints
 *   37.5em  600px   small tablets
 *   48em    768px   tablets
 *   60em    960px   desktop layout and navigation
 *   75em   1200px   wide desktop
 */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

:root {
    /* Colour: warm neutrals carry the design, the logo red is the only accent */
    --c-bg: #ffffff;
    --c-bg-alt: #f5f1ea;
    --c-surface: #ffffff;
    --c-surface-hover: #faf9f7;
    /* Cards take the opposite tone of the section they sit in */
    --c-card: var(--c-bg-alt);
    --c-ink: #171716;
    --c-ink-hover: #3a3936;
    --c-ink-active: #000000;
    --c-ink-muted: #55534e;
    --c-ink-subtle: #64615b;
    --c-line: #e3ddd2;
    --c-line-strong: #171716;
    --c-input-line: #87837b;
    --c-accent: #d4161e;
    --c-accent-hover: #b51219;
    --c-accent-active: #960f14;
    --c-accent-ink: #ffffff;
    --c-accent-text: #c3141b;
    --c-accent-soft: #fbe9e9;
    --c-focus: #d0161d;
    --c-error: #b0121a;
    --c-success: #22633a;
    --c-inverse: #161615;
    --c-inverse-raised: #21211f;
    --c-inverse-ink: #f3f2ee;
    --c-inverse-muted: #aeaba4;
    --c-inverse-line: #3a3935;
    --c-inverse-accent: #ff6b70;
    --c-overlay: rgb(22 22 21 / 0.66);
    --c-banner-shade: rgb(17 17 16 / 0.6);
    /* Text over the darkened banner photo is pure white for the most contrast */
    --c-on-photo: #ffffff;
    --c-glass: rgb(255 255 255 / 0.14);
    --c-glass-line: rgb(255 255 255 / 0.45);
    --c-photo-label: rgb(22 22 21 / 0.78);
    --c-lightbox: rgb(14 14 13 / 0.97);

    /* Type */
    --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

    --fs-2xs: 0.75rem;
    --fs-xs: 0.8125rem;
    --fs-sm: 0.9375rem;
    --fs-base: 1.0625rem;
    --fs-md: 1.1875rem;
    --fs-lg: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
    --fs-xl: clamp(1.4375rem, 1.25rem + 0.75vw, 1.875rem);
    --fs-2xl: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem);
    --fs-page: clamp(2.5rem, 1.7rem + 3.3vw, 4.375rem);
    --fs-display: clamp(2.625rem, 1.6rem + 4vw, 4.875rem);
    --fs-stat: clamp(2.25rem, 1.6rem + 2vw, 3.5rem);

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-display: 500;

    --lh-display: 1.04;
    --lh-heading: 1.1;
    --lh-snug: 1.35;
    --lh-body: 1.65;

    --tracking-display: -0.015em;
    --tracking-heading: -0.01em;
    --tracking-title: -0.005em;
    --tracking-label: 0.14em;

    /* Space: 4px base */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.25rem;
    --s-6: 1.5rem;
    --s-7: 2rem;
    --s-8: 2.5rem;
    --s-9: 3rem;
    --s-10: 4rem;
    --s-11: 5rem;
    --s-12: 6rem;

    --section-y: clamp(3rem, 1.8rem + 3vw, 4.75rem);
    --product-y: clamp(2.5rem, 1.6rem + 2.4vw, 4rem);
    --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
    --grid-gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
    --container: 82rem;
    --header-h: 4.25rem;
    --topbar-h: 0rem;

    /* Lines, motion */
    --hairline: 1px solid var(--c-line);
    --rule: 1px solid var(--c-line-strong);
    --radius: 0;
    --radius-control: 6px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --dur-fast: 150ms;
    --dur: 250ms;
    --dur-slow: 700ms;
    --dur-none: 0.01ms;
    --focus-ring: 2px solid var(--c-focus);
    --shadow-text: 0 1px 18px rgb(0 0 0 / 0.35);
    --focus-offset: 3px;
    --focus-offset-sm: 2px;
    --border-thick: 2px;
    --line-w: 1px;
    --nudge: 3px;
    --z-header: 50;
    --z-skip: 100;
}

@media (min-width: 48em) {
    :root {
        --topbar-h: 2.5rem;
    }
}

@media (min-width: 60em) {
    :root {
        --header-h: 5rem;
    }
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

html.nav-locked {
    overflow: hidden;
}

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-wrap: break-word;
}

img,
svg,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote,
address {
    margin: 0;
}

h1,
h2,
h3 {
    font-weight: var(--fw-semibold);
}

ul,
ol {
    padding: 0;
    list-style: none;
}

address {
    font-style: normal;
}

p {
    max-width: 68ch;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
}

main:focus {
    outline: none;
}

::selection {
    background: var(--c-ink);
    color: var(--c-bg);
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: var(--s-2);
    left: var(--s-2);
    z-index: var(--z-skip);
    padding: var(--s-3) var(--s-5);
    background: var(--c-ink);
    color: var(--c-bg);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-y);
}

.section--alt {
    background: var(--c-bg-alt);
    --c-card: var(--c-surface);
}

.section--flush-top {
    padding-top: 0;
}

/*
 * Single-column grids on phones. A minmax(0, 1fr) track stops one long word,
 * email address or button label from stretching the column past the screen.
 */
.section-head,
.why__grid,
.compare__grid,
.steps,
.story__grid,
.quote__grid,
.faq__grid,
.case,
.cta__panel,
.site-footer__main,
.page-hero__grid,
.product__head,
.product__grid,
.product__media,
.product__copy,
.product__info,
.types,
.form__grid,
.contact-cards {
    grid-template-columns: minmax(0, 1fr);
}

.section-head {
    display: grid;
    gap: var(--s-5);
    margin-bottom: var(--s-6);
}

.section-head__aside {
    display: grid;
    justify-items: start;
    gap: var(--s-3);
    max-width: 38ch;
}

.section-head__aside p {
    color: var(--c-ink-muted);
}

@media (min-width: 60em) {
    .section-head {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        column-gap: var(--grid-gap);
        align-items: end;
        margin-bottom: var(--s-8);
    }

    .section-head__aside {
        justify-self: end;
    }
}

/* ------------------------------------------------------------------ */
/* Type                                                                */
/* ------------------------------------------------------------------ */

.eyebrow {
    display: block;
    font-size: var(--fs-2xs);
    font-weight: var(--fw-bold);
    line-height: 1.4;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--c-accent-text);
}

.eyebrow--light {
    color: var(--c-inverse-accent);
}

.eyebrow--plain {
    color: var(--c-ink-muted);
}

.eyebrow + .h2,
.eyebrow + .h1,
.eyebrow + .display {
    margin-top: var(--s-4);
}

.display {
    font-size: var(--fs-display);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-display);
    letter-spacing: var(--tracking-display);
    max-width: 18ch;
    text-wrap: balance;
}

.h1 {
    font-size: var(--fs-page);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-display);
    letter-spacing: var(--tracking-display);
    max-width: 18ch;
    text-wrap: balance;
}

.h2 {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: var(--tracking-heading);
    max-width: 22ch;
    text-wrap: balance;
}

.h2--sm {
    font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
}

.h3 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    line-height: 1.2;
    letter-spacing: var(--tracking-title);
}

.lead {
    font-size: var(--fs-lg);
    line-height: 1.55;
    color: var(--c-ink-muted);
    max-width: 46ch;
}

.muted {
    color: var(--c-ink-muted);
}

.index-num {
    display: block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    color: var(--c-accent-text);
}

figcaption {
    margin-top: var(--s-3);
    font-size: var(--fs-xs);
    line-height: 1.5;
    color: var(--c-ink-subtle);
}

/* ------------------------------------------------------------------ */
/* Buttons and links                                                   */
/* ------------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    min-height: 3.125rem;
    padding: 0 var(--s-6);
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color var(--dur-fast) var(--ease),
        color var(--dur-fast) var(--ease),
        border-color var(--dur-fast) var(--ease);
}

.btn .icon {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform var(--dur) var(--ease);
}

.btn:hover .icon--nudge {
    transform: translateX(var(--nudge));
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--c-accent);
    color: var(--c-accent-ink);
}

.btn--primary:hover {
    background: var(--c-accent-hover);
}

.btn--primary:active {
    background: var(--c-accent-active);
}

.btn--dark {
    background: var(--c-ink);
    color: var(--c-bg);
}

.btn--dark:hover {
    background: var(--c-ink-hover);
}

.btn--dark:active {
    background: var(--c-ink-active);
}

.btn--outline {
    border-color: var(--c-line-strong);
    background: transparent;
    color: var(--c-ink);
}

.btn--outline:hover {
    background: var(--c-ink);
    color: var(--c-bg);
}

.btn--outline:active {
    background: var(--c-ink-active);
    border-color: var(--c-ink-active);
    color: var(--c-bg);
}

.btn--light {
    background: var(--c-inverse-ink);
    color: var(--c-inverse);
}

.btn--light:hover {
    background: var(--c-surface);
}

.btn--light:active {
    background: var(--c-bg-alt);
}

.btn--ghost-light {
    border-color: var(--c-inverse-muted);
    background: transparent;
    color: var(--c-on-photo);
}

.btn--ghost-light:hover {
    border-color: var(--c-inverse-ink);
    background: var(--c-inverse-ink);
    color: var(--c-inverse);
}

.btn--ghost-light:active {
    background: var(--c-bg-alt);
    color: var(--c-inverse);
}

.btn[disabled],
.btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.btn[aria-busy="true"] {
    cursor: progress;
    opacity: 0.8;
}

.btn--sm {
    min-height: 2.625rem;
    padding: 0 var(--s-5);
    font-size: var(--fs-xs);
}

.btn--lg {
    min-height: 3.5rem;
    padding: 0 var(--s-7);
    font-size: 1rem;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3) var(--s-4);
}

.link-arrow,
.text-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-ink);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--c-input-line);
    text-underline-offset: 0.4em;
    transition:
        text-decoration-color var(--dur-fast) var(--ease),
        color var(--dur-fast) var(--ease);
}

.link-arrow .icon,
.text-btn .icon {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform var(--dur) var(--ease);
}

.link-arrow:hover,
.text-btn:hover {
    text-decoration-color: currentColor;
}

.link-arrow:hover .icon,
.text-btn:hover .icon {
    transform: translateX(var(--nudge));
}

.link-arrow:active,
.text-btn:active {
    color: var(--c-ink-hover);
}

.link-arrow--light {
    color: var(--c-inverse-ink);
    text-decoration-color: var(--c-inverse-muted);
}

.link-arrow--light:active {
    color: var(--c-inverse-muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
}

.tag-list li {
    padding: var(--s-1) var(--s-3);
    border: var(--hairline);
    background: var(--c-surface);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    line-height: 1.7;
    color: var(--c-ink-muted);
}

/* Image hover used on linked photos */
.zoom-img {
    display: block;
    overflow: hidden;
}

.zoom-img img,
.types__media img,
.gallery__item img,
.work__item img,
.case__media img {
    transition: transform var(--dur-slow) var(--ease);
}

.zoom-img:hover img,
.types__media:hover img,
.gallery__item a:hover img,
.work__item a:hover img,
.case__media a:hover img {
    transform: scale(1.035);
}

/* ------------------------------------------------------------------ */
/* Header and navigation                                               */
/* ------------------------------------------------------------------ */

/* Thin information bar above the header, tablets and up */
.topbar {
    display: none;
    background: var(--c-bg-alt);
    color: var(--c-ink-muted);
    font-size: var(--fs-xs);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
    min-height: var(--topbar-h);
}

.topbar__note,
.topbar__links a {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}

.topbar__note {
    max-width: none;
}

.topbar .icon {
    width: 1rem;
    height: 1rem;
    color: var(--c-accent-text);
}

.topbar__links {
    display: flex;
    align-items: center;
    gap: var(--s-7);
}

.topbar__links a {
    min-height: 2.5rem;
    color: var(--c-ink);
    font-weight: var(--fw-medium);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.topbar__links a:hover span {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
}

.topbar__links a:active {
    color: var(--c-ink-hover);
}

@media (min-width: 48em) {
    .topbar {
        display: block;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--c-surface);
    border-bottom: var(--hairline);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    min-height: var(--header-h);
    transition: min-height var(--dur) var(--ease);
}

.site-header__logo {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
}

.site-header__logo img {
    width: 8.5rem;
    max-width: 100%;
    height: auto;
    transition: width var(--dur) var(--ease);
}

.site-header__logo-light {
    display: none;
}

/*
 * With JavaScript the header is transparent at the top of the page and turns
 * solid white once the page scrolls, or while a menu is open (is-solid).
 */
.js .site-header {
    background: transparent;
    border-bottom-color: transparent;
    transition:
        background-color var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        color var(--dur) var(--ease);
}

.js .site-header.is-solid,
.js .site-header.is-open {
    background: var(--c-surface);
    border-bottom-color: var(--c-line);
}

/* Home: the top bar and header sit over the banner photo, in white */
.js .page-home .topbar,
.js .page-home .topbar .icon,
.js .page-home .topbar__links a {
    color: var(--c-on-photo);
}

.js .page-home .topbar :focus-visible {
    outline-color: var(--c-surface);
}

.js .page-home .topbar {
    position: relative;
    z-index: var(--z-header);
    background: transparent;
}

.js .page-home .site-header:not(.is-solid):not(.is-open) {
    color: var(--c-on-photo);
    border-bottom-color: transparent;
}

.js .page-home .site-header:not(.is-solid):not(.is-open) .site-header__logo-dark {
    display: none;
}

.js .page-home .site-header:not(.is-solid):not(.is-open) .site-header__logo-light {
    display: block;
}

.js .page-home .site-header:not(.is-solid):not(.is-open) .site-nav__link,
.js .page-home .site-header:not(.is-solid):not(.is-open) .site-nav__sub-toggle {
    color: var(--c-on-photo);
}

.js .page-home .site-header:not(.is-solid):not(.is-open) .site-nav__sub-toggle:hover {
    background: var(--c-glass);
}

.js .page-home .site-header:not(.is-solid):not(.is-open) .nav-toggle {
    border-color: var(--c-glass-line);
}

.js .page-home .site-header:not(.is-solid):not(.is-open) .nav-toggle:hover {
    border-color: var(--c-inverse-ink);
}

.js .page-home .site-header:not(.is-solid):not(.is-open) :focus-visible {
    outline-color: var(--c-surface);
}

/* The banner slides up under the top bar and header */
.js .page-home .banner {
    margin-top: calc((var(--header-h) + var(--topbar-h) + var(--line-w)) * -1);
    min-height: clamp(40rem, 100svh, 58rem);
}

.js .page-home .banner__inner {
    padding-top: calc(var(--header-h) + var(--topbar-h) + var(--s-9));
}

/* Without JavaScript the menu shows as a wrapped row under the logo */
.nav-toggle,
html:not(.js) .site-nav__sub-toggle,
html:not(.js) .mega {
    display: none;
}

.site-nav {
    width: 100%;
    padding-bottom: var(--s-4);
}

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-6);
}

.site-nav__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.site-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}

.site-nav__link[aria-current="page"] {
    color: var(--c-accent-text);
}

.site-nav__sub-toggle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--c-ink);
    transition: background-color var(--dur-fast) var(--ease);
}

.site-nav__sub-toggle .icon {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform var(--dur) var(--ease);
}

.site-nav__sub-toggle:hover {
    background: var(--c-bg-alt);
}

.site-nav__sub-toggle:active {
    background: var(--c-line);
}

.site-nav__sub-toggle[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

/* Products menu. On phones it opens inside the menu panel as a list */
/* The menu panel is always white, so its text is always dark, even on the home banner */
.mega {
    display: none;
    flex-basis: 100%;
    color: var(--c-ink);
}

.site-nav__item--menu.is-open .mega {
    display: block;
}

.mega__inner {
    padding-block: var(--s-2) var(--s-4);
}

.mega__list {
    display: grid;
    gap: var(--s-1);
}

.mega__link {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-2);
    border-radius: var(--radius-control);
    text-decoration: none;
    transition: background-color var(--dur-fast) var(--ease);
}

.mega__link:hover {
    background: var(--c-bg-alt);
}

.mega__link:active {
    background: var(--c-line);
}

.mega__thumb {
    display: block;
    overflow: hidden;
    background: var(--c-bg-alt);
}

.mega__thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.mega__name {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
}

.mega__desc {
    display: block;
    margin-top: var(--s-1);
    font-size: var(--fs-xs);
    line-height: 1.4;
    color: var(--c-ink-muted);
}

.mega__link:hover .mega__name {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.mega__aside {
    display: none;
}

.site-nav__aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-4) var(--s-6);
    margin-top: var(--s-4);
}

/* Contact lines only appear in the phone menu */
.site-nav__contact {
    display: none;
    color: var(--c-ink);
}

/* With JavaScript, phones collapse the menu behind a toggle */
.js .site-header__inner {
    flex-wrap: nowrap;
}

.js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: 2.75rem;
    padding: 0 var(--s-4);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-control);
    background: transparent;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    transition:
        border-color var(--dur-fast) var(--ease),
        background-color var(--dur-fast) var(--ease);
}

.js .nav-toggle:hover {
    border-color: var(--c-line-strong);
}

.js .nav-toggle:active {
    background: var(--c-bg-alt);
}

.nav-toggle .icon {
    width: 1.125rem;
    height: 1.125rem;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
    display: block;
}

.js .site-nav {
    display: none;
}

/* The open phone menu fills the screen below the header */
.js .site-header.is-open .site-nav {
    position: fixed;
    inset: var(--menu-top, var(--header-h)) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-8);
    width: auto;
    padding: var(--s-2) var(--gutter) var(--s-9);
    overflow-y: auto;
    background: var(--c-surface);
    border-top: var(--hairline);
}

.js .site-header.is-open .site-nav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
}

.js .site-header.is-open .site-nav__item {
    border-bottom: var(--hairline);
}

.js .site-header.is-open .site-nav__link {
    flex: 1;
    min-height: 4rem;
    font-size: var(--fs-xl);
    letter-spacing: var(--tracking-title);
}

.js .site-header.is-open .site-nav__sub-toggle {
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--c-line);
}

.js .site-header.is-open .site-nav__aside .btn {
    width: 100%;
}

.js .site-header.is-open .site-nav__aside {
    margin-top: 0;
}

.js .site-header.is-open .site-nav__contact {
    display: grid;
    gap: var(--s-1);
    border-top: var(--hairline);
    padding-top: var(--s-5);
}

.site-nav__contact a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-4);
    min-height: 2.75rem;
    padding-block: var(--s-2);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.site-nav__contact span {
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--c-ink-muted);
}

/* Narrow phones: the toggle keeps its icon and accessible name, the visible word goes */
@media (max-width: 21.24em) {
    .nav-toggle__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (min-width: 60em) {
    .site-header__inner {
        flex-wrap: nowrap;
        align-items: stretch;
        gap: var(--s-8);
    }

    .site-header.is-scrolled .site-header__inner {
        min-height: calc(var(--header-h) - var(--s-3));
    }

    .site-header__logo {
        flex: none;
        align-self: center;
    }

    .site-header__logo img {
        width: 10rem;
    }

    .site-header.is-scrolled .site-header__logo img {
        width: 9rem;
    }

    .js .nav-toggle {
        display: none;
    }

    .site-nav,
    .js .site-nav,
    .js .site-header.is-open .site-nav {
        position: static;
        display: flex;
        flex: 1;
        flex-direction: row;
        align-items: stretch;
        justify-content: space-between;
        gap: var(--s-8);
        width: auto;
        padding: 0;
        overflow: visible;
        border: 0;
        background: none;
    }

    /* Links sit in the middle; each item is as tall as the bar so the menu opens without a gap */
    .site-nav__list,
    .js .site-header.is-open .site-nav__list {
        flex: 1;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: center;
        gap: var(--s-8);
    }

    .site-nav__item,
    .js .site-header.is-open .site-nav__item {
        flex-wrap: nowrap;
        border: 0;
    }

    .site-nav__link,
    .js .site-header.is-open .site-nav__link {
        flex: none;
        min-height: 0;
        font-size: var(--fs-sm);
        letter-spacing: 0;
    }

    .site-nav__link[aria-current="page"] {
        color: var(--c-ink);
    }

    /* A red rule along the bottom edge marks the current page and the hovered link */
    .site-nav__link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: var(--border-thick);
        background: var(--c-accent);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--dur) var(--ease);
    }

    .site-nav__link:hover::after,
    .site-nav__link[aria-current="page"]::after,
    .site-nav__item--menu.is-open .site-nav__link::after {
        transform: scaleX(1);
    }

    .site-nav__sub-toggle,
    .js .site-header.is-open .site-nav__sub-toggle {
        align-self: center;
        width: 2rem;
        height: 2rem;
        margin-left: var(--s-1);
        border: 0;
    }

    /* The products menu drops down under the whole header */
    .mega {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--c-surface);
        border-top: var(--hairline);
        border-bottom: var(--hairline);
    }

    .mega__inner {
        display: grid;
        grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
        gap: var(--grid-gap);
        max-width: var(--container);
        margin-inline: auto;
        padding: var(--s-7) var(--gutter) var(--s-8);
    }

    .mega__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--s-2) var(--s-4);
    }

    .mega__link {
        grid-template-columns: 4.5rem minmax(0, 1fr);
        padding: var(--s-3);
    }

    .mega__aside {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: var(--s-5);
        padding: var(--s-7);
        background: var(--c-bg-alt);
    }

    .mega__aside-title {
        margin-top: var(--s-3);
        font-size: var(--fs-md);
        font-weight: var(--fw-semibold);
        line-height: 1.4;
        letter-spacing: var(--tracking-title);
    }

    .mega__aside-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--s-3) var(--s-5);
    }

    .site-nav__aside,
    .js .site-header.is-open .site-nav__aside {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        margin: 0;
    }

    .js .site-header.is-open .site-nav__aside .btn {
        width: auto;
    }

    .site-nav__contact,
    .js .site-header.is-open .site-nav__contact {
        display: none;
    }
}

/* ------------------------------------------------------------------ */
/* Home: banner slideshow                                              */
/* ------------------------------------------------------------------ */

.banner {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: clamp(38rem, calc(100svh - var(--header-h) - var(--topbar-h)), 54rem);
    overflow: hidden;
    background: var(--c-inverse);
    color: var(--c-on-photo);
}

.banner__slides {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.banner__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-slow) var(--ease);
}

.banner__slide.is-active {
    opacity: 1;
}

.banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
 * Phones show the whole height of these photos, including the captions burned
 * into their top or bottom edge. A slight zoom anchored to the opposite edge
 * pushes those captions out of frame. Wider screens crop them away already.
 */
.banner__img--low {
    transform: scale(1.25);
    transform-origin: 50% 100%;
}

.banner__img--high {
    transform: scale(1.2);
    transform-origin: 50% 0;
}

@media (min-width: 48em) {
    .banner__img--low,
    .banner__img--high {
        transform: none;
    }
}

/* A flat tint keeps white text readable over bright lit ceilings */
.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--c-banner-shade);
}

.banner__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: var(--s-9);
    padding-block: var(--s-10) var(--s-6);
    text-align: center;
}

.banner__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-shadow: var(--shadow-text);
}

.banner .eyebrow {
    color: var(--c-on-photo);
}

.banner__title {
    margin-top: var(--s-4);
    font-size: var(--fs-display);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-display);
    letter-spacing: var(--tracking-display);
    max-width: 18ch;
    text-wrap: balance;
}

.banner__lead {
    margin-top: var(--s-5);
    font-size: var(--fs-md);
    line-height: 1.55;
    max-width: 46ch;
}

.banner .btn-row {
    justify-content: center;
    margin-top: var(--s-8);
    text-shadow: none;
}

.banner__controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-3);
}

.banner__caption {
    min-height: 1.5em;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-shadow: var(--shadow-text);
}

.banner__nav {
    display: flex;
    align-items: center;
    gap: var(--s-1);
}

/* Each dot is a 40 x 44px target with a short bar drawn inside it */
.banner__dot {
    position: relative;
    width: 2.5rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
}

.banner__dot::before {
    content: "";
    position: absolute;
    left: var(--s-1);
    right: var(--s-1);
    top: 50%;
    height: var(--border-thick);
    background: var(--c-glass-line);
    transform: translateY(-50%);
    transition:
        background-color var(--dur-fast) var(--ease),
        height var(--dur-fast) var(--ease);
}

.banner__dot:hover::before {
    background: var(--c-inverse-muted);
}

.banner__dot[aria-current="true"]::before {
    height: calc(var(--border-thick) * 2);
    background: var(--c-surface);
}



.banner__arrow {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: none;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid var(--c-glass-line);
    border-radius: var(--radius-control);
    background: var(--c-inverse);
    color: var(--c-inverse-ink);
    transform: translateY(-50%);
    transition:
        background-color var(--dur-fast) var(--ease),
        color var(--dur-fast) var(--ease),
        border-color var(--dur-fast) var(--ease);
}

.banner__arrow--prev {
    left: var(--gutter);
}

.banner__arrow--next {
    right: var(--gutter);
}

.banner__arrow:hover {
    border-color: var(--c-surface);
    background: var(--c-surface);
    color: var(--c-ink);
}

.banner__arrow:active {
    background: var(--c-bg-alt);
    color: var(--c-ink);
}

.banner :focus-visible {
    outline-color: var(--c-surface);
}

/* Without JavaScript only the first finished photo shows, with no controls */
html:not(.js) .banner__controls,
html:not(.js) .banner__arrow {
    display: none;
}

@media (min-width: 60em) {
    .banner__inner {
        padding-block: var(--s-12) var(--s-7);
    }

    .banner__arrow {
        display: grid;
    }
}

/* Fact strip under the banner */
.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.facts__item {
    display: grid;
    align-content: start;
    gap: var(--s-1);
    padding: var(--s-6) var(--s-4) var(--s-6) 0;
    border-bottom: var(--hairline);
}

.facts__item:nth-child(even) {
    padding-left: var(--s-5);
    border-left: var(--hairline);
}

.facts__value {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    line-height: 1.15;
    letter-spacing: var(--tracking-title);
}

.facts__label {
    font-size: var(--fs-xs);
    line-height: 1.45;
    color: var(--c-ink-muted);
}

@media (min-width: 48em) {
    .facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-bottom: var(--hairline);
    }

    .facts__item,
    .facts__item:nth-child(even) {
        padding: var(--s-8) var(--s-6);
        border-bottom: 0;
        border-left: var(--hairline);
    }

    .facts__item:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .facts__label {
        font-size: var(--fs-sm);
    }
}

/* ------------------------------------------------------------------ */
/* Home: product cards                                                 */
/* ------------------------------------------------------------------ */

.pcards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3);
}

.pcard {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--c-card);
    text-decoration: none;
    transition: background-color var(--dur-fast) var(--ease);
}

.pcard__media {
    overflow: hidden;
    background: var(--c-bg-alt);
}

.pcard__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease);
}

.pcard__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-1);
    padding: var(--s-3) var(--s-4) var(--s-4);
}

.pcard__name {
    margin-top: var(--s-1);
    font-size: var(--fs-md);
    line-height: 1.25;
}

.pcard__desc {
    display: none;
    font-size: var(--fs-xs);
    line-height: 1.55;
    color: var(--c-ink-muted);
}

.pcard__more {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    margin-top: auto;
    padding-top: var(--s-3);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
}

.pcard__more .icon {
    width: 1rem;
    height: 1rem;
    transition: transform var(--dur) var(--ease);
}

.pcard:hover .pcard__media img {
    transform: scale(1.04);
}

.pcard:hover .pcard__name {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.pcard:hover .pcard__more .icon {
    transform: translateX(var(--nudge));
}

.pcard:active {
    background: var(--c-surface-hover);
}

.pcards__note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 var(--s-4);
    margin-top: var(--s-4);
    font-size: var(--fs-sm);
    color: var(--c-ink-muted);
}

@media (min-width: 48em) {
    .pcards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--s-4);
    }

    .pcard__desc {
        display: block;
    }
}

/* Wide screens: all six in one row, so the section fits one screen */
@media (min-width: 75em) {
    .pcards {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .pcard__media img {
        aspect-ratio: 1;
    }
}

/* ------------------------------------------------------------------ */
/* Home: why Dambhar                                                   */
/* ------------------------------------------------------------------ */

.why__grid {
    display: grid;
    gap: var(--s-9);
}

.why__lead {
    margin-top: var(--s-4);
    color: var(--c-ink-muted);
    max-width: 50ch;
}

.why__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.why__media figcaption {
    color: var(--c-ink-subtle);
}

.reasons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: var(--s-6);
    border-top: var(--hairline);
}

.reason {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    column-gap: var(--s-4);
    row-gap: var(--s-2);
    padding-block: var(--s-5);
    border-bottom: var(--hairline);
}

.reason__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    color: var(--c-accent-text);
    background: var(--c-accent-soft);
}

.reason__icon .icon {
    width: 1.375rem;
    height: 1.375rem;
}

.reason__title {
    align-self: center;
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    line-height: 1.25;
    letter-spacing: var(--tracking-title);
}

.reason p {
    grid-column: 2;
    font-size: var(--fs-sm);
    color: var(--c-ink-muted);
    max-width: 44ch;
}

@media (min-width: 48em) {
    .reasons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--grid-gap);
        border-top: 0;
    }

    .reason {
        grid-template-columns: 3rem minmax(0, 1fr);
        align-content: start;
        row-gap: var(--s-2);
        padding-block: var(--s-5);
        border-top: var(--hairline);
        border-bottom: 0;
    }

    .reason p {
        grid-column: 2;
    }
}

@media (min-width: 60em) {
    .why__grid {
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
        column-gap: clamp(2rem, 0.5rem + 5vw, 6rem);
        align-items: stretch;
    }

    .why__media {
        display: flex;
        flex-direction: column;
    }

    /* Zero base height: the photo fills the row the text sets, never the other way round */
    .why__media img {
        flex: 1 1 0;
        min-height: 22rem;
        aspect-ratio: auto;
        height: 0;
    }
}

/* ------------------------------------------------------------------ */
/* Before and after slider                                             */
/* ------------------------------------------------------------------ */

.compare__grid {
    display: grid;
    gap: var(--s-8);
}

.compare__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.compare__intro p:not(.eyebrow) {
    margin-top: var(--s-5);
    color: var(--c-ink-muted);
    max-width: 42ch;
}

.compare__intro .link-arrow {
    margin-top: var(--s-5);
}

.compare {
    --pos: 50%;
    position: relative;
    overflow: hidden;
    background: var(--c-inverse);
    user-select: none;
    touch-action: pan-y;
}

.compare img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    pointer-events: none;
}

/* The "before" photo sits on top and is clipped to the left of the handle */
.compare__before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: var(--border-thick);
    transform: translateX(-50%);
    background: var(--c-surface);
    pointer-events: none;
}

.compare__knob {
    position: absolute;
    top: 50%;
    left: var(--pos);
    display: grid;
    grid-auto-flow: column;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: -1.625rem 0 0 -1.625rem;
    border-radius: var(--radius-control);
    background: var(--c-surface);
    color: var(--c-ink);
    pointer-events: none;
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.compare__knob .icon {
    width: 1rem;
    height: 1rem;
}

.compare__tag {
    position: absolute;
    top: var(--s-4);
    padding: var(--s-1) var(--s-3);
    background: var(--c-photo-label);
    color: var(--c-inverse-ink);
    font-size: var(--fs-2xs);
    font-weight: var(--fw-bold);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    pointer-events: none;
}

.compare__tag--before {
    left: var(--s-4);
}

.compare__tag--after {
    right: var(--s-4);
}

/* The range input covers the photo, so dragging anywhere moves the handle */
.compare__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
}

.compare__range:focus-visible ~ .compare__knob,
.compare:hover .compare__knob {
    background: var(--c-accent);
    color: var(--c-accent-ink);
}

.compare__range:focus-visible ~ .compare__knob {
    outline: var(--focus-ring);
    outline-color: var(--c-surface);
    outline-offset: var(--focus-offset-sm);
}

/* Without JavaScript the range does nothing, so it is hidden */
html:not(.js) .compare__range,
html:not(.js) .compare__switch {
    display: none;
}

.compare__switch {
    display: flex;
    width: 100%;
    max-width: 22rem;
    margin-top: var(--s-5);
    overflow: hidden;
    border: 1px solid var(--c-line-strong);
    border-radius: var(--radius-control);
}

.compare__switch button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0 var(--s-3);
    border: 0;
    background: transparent;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.compare__switch button + button {
    border-left: 1px solid var(--c-line-strong);
}

.compare__switch button:hover {
    background: var(--c-bg-alt);
}

/* The rounded container clips overflow, so the focus ring is drawn inside */
.compare__switch button:focus-visible {
    outline-offset: calc(var(--focus-offset) * -1 - 1px);
}

.compare__switch button[aria-pressed="true"] {
    background: var(--c-ink);
    color: var(--c-bg);
}

.compare__switch button:active {
    background: var(--c-ink-hover);
    color: var(--c-bg);
}

@media (min-width: 60em) {
    .compare__grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: clamp(2rem, 0.5rem + 4vw, 5rem);
        align-items: center;
    }
}

/* ------------------------------------------------------------------ */
/* Home: process                                                       */
/* ------------------------------------------------------------------ */

.steps {
    display: grid;
    counter-reset: step;
}

.step {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    column-gap: var(--s-3);
    row-gap: var(--s-2);
    padding-block: var(--s-6);
    border-top: var(--hairline);
}

.step:last-child {
    border-bottom: var(--hairline);
}

.step__num {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    line-height: 1.25;
    letter-spacing: var(--tracking-title);
    font-variant-numeric: tabular-nums;
    color: var(--c-accent-text);
}

.step__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    line-height: 1.25;
    letter-spacing: var(--tracking-title);
}

.step p {
    grid-column: 2;
    font-size: var(--fs-sm);
    color: var(--c-ink-muted);
    max-width: 52ch;
}

@media (min-width: 60em) {
    .steps {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        column-gap: var(--grid-gap);
    }

    .step,
    .step:last-child {
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        row-gap: var(--s-3);
        padding-block: var(--s-6) 0;
        border-top: var(--border-thick) solid var(--c-line-strong);
        border-bottom: 0;
    }

    .step:first-child {
        border-top-color: var(--c-accent);
    }

    .step__num {
        margin-bottom: var(--s-5);
        font-size: var(--fs-2xl);
        line-height: 1;
    }

    .step p {
        grid-column: 1;
    }
}

/* ------------------------------------------------------------------ */
/* Home: recent work                                                   */
/* ------------------------------------------------------------------ */

.work {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3);
}

.work__item figure {
    position: relative;
}

.work__item a {
    display: block;
    overflow: hidden;
    background: var(--c-bg-alt);
}

.work__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* A solid label on the photo; clicks pass through to the photo link */
.work__item figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
    max-width: calc(100% - var(--s-4));
    margin: 0;
    padding: var(--s-2) var(--s-3);
    background: var(--c-photo-label);
    color: var(--c-inverse-ink);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    line-height: 1.35;
    pointer-events: none;
}

.work__item figcaption span {
    display: block;
    font-size: var(--fs-2xs);
    font-weight: var(--fw-regular);
}

@media (min-width: 60em) {
    .work {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--s-4);
    }
}

/* ------------------------------------------------------------------ */
/* Inner page heads                                                    */
/* ------------------------------------------------------------------ */

.page-hero {
    padding-block: clamp(2rem, 1.2rem + 3vw, 4rem) clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.page-hero--media {
    padding-bottom: 0;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--c-ink-muted);
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: var(--s-2);
    color: var(--c-ink-subtle);
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--c-ink);
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

.breadcrumb [aria-current="page"] {
    color: var(--c-ink);
}

.page-hero__grid {
    display: grid;
    gap: var(--s-6);
    margin-top: var(--s-8);
}

.page-hero__lead {
    font-size: var(--fs-md);
    line-height: 1.6;
    color: var(--c-ink-muted);
    max-width: 46ch;
}

.page-hero__media {
    margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.page-hero__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 50%;
}

@media (min-width: 48em) {
    .page-hero__media img {
        aspect-ratio: 21 / 9;
        max-height: min(30rem, 50svh);
    }
}

@media (min-width: 60em) {
    .page-hero__grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        column-gap: var(--grid-gap);
        align-items: end;
    }

    .page-hero__lead {
        justify-self: end;
    }
}

/* ------------------------------------------------------------------ */
/* About                                                               */
/* ------------------------------------------------------------------ */

.story__grid {
    display: grid;
    gap: var(--s-8);
}

.story__body > p:not(.eyebrow) {
    margin-top: var(--s-5);
    color: var(--c-ink-muted);
}

.story__body > .story__statement {
    margin-top: var(--s-6);
    font-size: var(--fs-md);
    line-height: 1.5;
    color: var(--c-ink);
    max-width: 40ch;
}

.story__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 62%;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--s-7);
    border-top: var(--rule);
}

.stats__item {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: var(--s-2);
    padding: var(--s-6) var(--s-4) var(--s-6) 0;
    border-bottom: var(--hairline);
}

.stats__item:nth-child(even) {
    padding-left: var(--s-5);
    border-left: var(--hairline);
}

.stats dt {
    font-size: var(--fs-sm);
    line-height: 1.45;
    color: var(--c-ink-muted);
    max-width: 22ch;
}

.stats dd {
    font-size: var(--fs-stat);
    font-weight: var(--fw-semibold);
    line-height: 1;
    letter-spacing: var(--tracking-display);
    font-variant-numeric: tabular-nums;
}

.stats dd span {
    color: var(--c-accent-text);
}

@media (min-width: 60em) {
    .story__grid {
        grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
        column-gap: clamp(2rem, 0.5rem + 5vw, 6rem);
        align-items: center;
    }

    .story__media img {
        aspect-ratio: 1;
        max-height: 26rem;
    }

    .stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-bottom: var(--hairline);
    }

    .stats__item,
    .stats__item:nth-child(even) {
        padding: var(--s-5) var(--s-6);
        border-bottom: 0;
        border-left: var(--hairline);
    }

    .stats__item:first-child {
        padding-left: 0;
        border-left: 0;
    }
}

/* Services: the eight services from the live site, numbered */
.svc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-3);
}

.svc {
    display: grid;
    align-content: start;
    gap: var(--s-1);
    padding: var(--s-4) var(--s-5) var(--s-5);
    background: var(--c-card);
}

.svc__name {
    margin-top: var(--s-1);
    font-size: var(--fs-md);
    line-height: 1.25;
}

.svc p {
    font-size: var(--fs-xs);
    line-height: 1.6;
    color: var(--c-ink-muted);
}

@media (min-width: 37.5em) {
    .svc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 75em) {
    .svc-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--s-4);
    }
}

/* Sectors: an index list, one row per kind of space */
.sectors {
    border-top: var(--rule);
}

.sector {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5rem;
    column-gap: var(--s-5);
    row-gap: var(--s-2);
    align-items: start;
    padding-block: var(--s-4);
    border-bottom: var(--hairline);
}

.sector .index-num {
    grid-column: 1;
}

.sector__name {
    grid-column: 1;
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    line-height: 1.15;
    letter-spacing: var(--tracking-heading);
}

.sector p {
    grid-column: 1;
    font-size: var(--fs-sm);
    color: var(--c-ink-muted);
    max-width: 48ch;
}

.sector__media {
    grid-column: 2;
    grid-row: 1 / span 3;
}

.sector__media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

@media (min-width: 48em) {
    .sector {
        grid-template-columns: 3rem minmax(0, 5fr) minmax(0, 6fr) 5.5rem;
        column-gap: var(--grid-gap);
        align-items: center;
        padding-block: var(--s-2);
    }

    .sector .index-num,
    .sector__name,
    .sector p,
    .sector__media {
        grid-column: auto;
        grid-row: auto;
    }

    .sector__media img {
        aspect-ratio: 4 / 3;
    }
}

/* Values band */
.values__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 var(--grid-gap);
}

.value {
    display: grid;
    align-content: start;
    gap: var(--s-3);
    padding-block: var(--s-7);
    border-top: var(--hairline);
}

.value__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: var(--s-3);
    border: 0;
    color: var(--c-accent-text);
    background: var(--c-accent-soft);
}

.value__icon .icon {
    width: 1.375rem;
    height: 1.375rem;
}

.value__name {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    line-height: 1.2;
    letter-spacing: var(--tracking-title);
}

.value p {
    color: var(--c-ink-muted);
    max-width: 40ch;
}

@media (min-width: 60em) {
    .values__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .value {
        padding-block: var(--s-8) 0;
    }
}

/* Before and after case studies: three jobs side by side */
.cases {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-8);
}

.case {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.case__media {
    order: -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-2);
}

.case__media--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case__media figure {
    min-width: 0;
}

.case__media a {
    display: block;
    overflow: hidden;
    background: var(--c-bg-alt);
}

.case__media img {
    width: 100%;
    height: clamp(9rem, 6rem + 6vw, 12rem);
    object-fit: cover;
}

.case__media figcaption {
    margin-top: var(--s-2);
    font-size: var(--fs-2xs);
    font-weight: var(--fw-bold);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--c-ink-muted);
}

.case__media figure:last-child figcaption {
    color: var(--c-accent-text);
}

.case__info {
    display: grid;
    align-content: start;
    gap: var(--s-2);
}

.case__title {
    font-size: var(--fs-lg);
    line-height: 1.25;
}

.case__info p {
    font-size: var(--fs-sm);
    color: var(--c-ink-muted);
    max-width: 44ch;
}

@media (min-width: 60em) {
    .cases {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--grid-gap);
    }
}

/* ------------------------------------------------------------------ */
/* Products                                                            */
/* ------------------------------------------------------------------ */

.jump {
    margin-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.jump__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3);
}

.jump__list a {
    display: grid;
    gap: var(--s-1);
    height: 100%;
    padding-bottom: var(--s-4);
    background: var(--c-card);
    text-decoration: none;
    transition: background-color var(--dur-fast) var(--ease);
}

.jump__thumb {
    display: block;
    margin-bottom: var(--s-3);
    overflow: hidden;
}

.jump__thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease);
}

.jump__list .index-num,
.jump__name {
    padding-inline: var(--s-4);
}

.jump__name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
}

.jump__list a:hover img {
    transform: scale(1.05);
}

.jump__list a:hover .jump__name {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.jump__list a:active {
    background: var(--c-surface-hover);
}

@media (min-width: 48em) {
    .jump__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 75em) {
    .jump__list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: var(--s-4);
    }
}

.product {
    padding-block: var(--product-y);
    border-top: var(--hairline);
}

.product--alt {
    background: var(--c-bg-alt);
    border-top: 0;
    --c-card: var(--c-surface);
}

.product--alt + .product {
    border-top: 0;
}

.product--lead {
    border-top: 0;
}

.product__head {
    display: grid;
    gap: var(--s-6);
}

.product__head .index-num,
.product__info .index-num {
    margin-bottom: var(--s-3);
}

.product__copy,
.product__info {
    display: grid;
    justify-items: start;
    gap: var(--s-4);
}

.product__copy p:not(.eyebrow),
.product__info p:not(.index-num):not(.eyebrow) {
    max-width: 58ch;
    font-size: var(--fs-sm);
    color: var(--c-ink-muted);
}

.product__info .h2 {
    margin-bottom: var(--s-1);
}

.product__uses {
    display: grid;
    gap: var(--s-3);
    margin-block: var(--s-2) var(--s-3);
}

.product__hero {
    margin-top: var(--s-8);
}

.product__hero img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 55%;
}

.types {
    display: grid;
    gap: var(--s-8) var(--s-4);
    margin-top: var(--s-7);
}

.types__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.types__media {
    display: block;
    width: 100%;
    overflow: hidden;
}

.types__media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.types__name {
    margin-top: var(--s-3);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    line-height: 1.2;
    letter-spacing: var(--tracking-title);
}

.types__item p {
    margin-top: var(--s-2);
    font-size: var(--fs-sm);
    color: var(--c-ink-muted);
}

.types__item .text-btn {
    margin-top: var(--s-2);
}

.product__grid {
    display: grid;
    gap: var(--s-8);
}

.product__media {
    display: grid;
    gap: var(--s-3);
    order: -1;
}

.product--lead .container {
    display: flex;
    flex-direction: column;
}

.product--lead .product__hero {
    order: -1;
    margin: 0 0 var(--s-8);
}

@media (min-width: 37.5em) {
    .types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product__hero img {
        aspect-ratio: 21 / 9;
    }
}

@media (min-width: 60em) {
    .product--lead .container {
        display: block;
    }

    .product--lead .product__hero {
        margin: var(--s-9) 0 0;
    }

    .types {
        gap: var(--s-9) var(--grid-gap);
    }

    .product__head {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--grid-gap);
    }

    .product__head > div:first-child {
        grid-column: 1 / 6;
    }

    .product__copy {
        grid-column: 7 / -1;
    }

    .product__grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--grid-gap);
        align-items: start;
    }

    .product__info,
    .product__media {
        grid-row: 1;
        position: sticky;
        top: calc(var(--header-h) + var(--s-6));
        align-self: start;
    }

    .product__info {
        grid-column: 1 / 6;
    }

    .product__media {
        grid-column: 7 / -1;
    }

    .product__grid--flip .product__info {
        grid-column: 8 / -1;
    }

    .product__grid--flip .product__media {
        grid-column: 1 / 7;
    }
}

@media (min-width: 75em) {
    .types {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 60em) {
    .product--lead .container {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: clamp(2rem, 0.5rem + 4vw, 5rem);
        align-items: start;
    }

    .product--lead .product__head {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--s-4);
    }

    .product--lead .product__head > div:first-child,
    .product--lead .product__copy {
        grid-column: auto;
    }

    .product--lead .types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--s-5) var(--grid-gap);
        margin-top: 0;
    }

    .product--lead .product__head,
    .product--lead .types {
        position: sticky;
        top: calc(var(--header-h) + var(--s-6));
        align-self: start;
    }

    .product--lead .types__media img {
        aspect-ratio: 3 / 1;
    }

    .product--lead .types__name {
        margin-top: var(--s-3);
    }

    .product--lead .types__item .text-btn {
        min-height: 2.25rem;
    }

}

/* Galleries */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3);
}

.gallery__item a {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    background: var(--c-bg-alt);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery--grid .gallery__item img {
    aspect-ratio: 4 / 3;
}

.gallery--grid .gallery__item:first-child {
    grid-column: 1 / -1;
}

.gallery--grid .gallery__item:first-child img {
    aspect-ratio: 3 / 2;
}

.gallery--row .gallery__item img {
    aspect-ratio: 5 / 8;
}

.gallery--stack {
    grid-template-columns: minmax(0, 1fr);
}

.gallery--stack .gallery__item img {
    height: auto;
}

.gallery__zoom {
    position: absolute;
    top: var(--s-3);
    right: var(--s-3);
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-control);
    background: var(--c-surface);
    color: var(--c-ink);
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease);
}

.gallery__zoom .icon {
    width: 1rem;
    height: 1rem;
}

.gallery__item a:hover .gallery__zoom,
.gallery__item a:focus-visible .gallery__zoom {
    opacity: 1;
}

.gallery__more {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s-1);
    background: var(--c-overlay);
    color: var(--c-inverse-ink);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    transition: background-color var(--dur-fast) var(--ease);
}

.gallery__more span {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
}

.gallery__item a:hover .gallery__more {
    background: var(--c-inverse);
}

@media (min-width: 37.5em) {
    .gallery--row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/*
 * Desktop galleries are sized to sit level with the text beside them:
 * grid: one wide photo with four squares underneath
 * row: four tall portrait strips (column wraps)
 * stack: one wide photo with two side by side underneath
 */
@media (min-width: 60em) {
    .gallery--grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .gallery--grid .gallery__item:first-child {
        grid-column: 1 / -1;
    }

    .gallery--grid .gallery__item img {
        aspect-ratio: 1;
    }

    .gallery--grid .gallery__item:first-child img {
        aspect-ratio: 16 / 10;
    }

    /* Crop from the top where a caption is burned into the bottom of the photo */
    .gallery .img-top {
        object-position: 50% 0;
    }

    /* A flatter lead photo where the text beside it is short */
    .gallery--short .gallery__item:first-child img {
        aspect-ratio: 2 / 1;
    }

    .gallery--row .gallery__item img {
        aspect-ratio: 2 / 5;
    }

    /* The last column wrap photo is two shots side by side: show the finished one */
    .gallery--row .gallery__item:last-child img {
        object-position: 85% 50%;
    }

    .gallery--stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery--stack .gallery__item:first-child {
        grid-column: 1 / -1;
    }

    .gallery--stack .gallery__item img {
        aspect-ratio: 16 / 9;
    }

    .gallery--stack .gallery__item:first-child img {
        aspect-ratio: 12 / 5;
    }
}

/* ------------------------------------------------------------------ */
/* Contact                                                             */
/* ------------------------------------------------------------------ */

.contact-cards {
    display: grid;
    gap: var(--s-3);
}

.contact-card {
    display: grid;
    align-content: start;
    gap: var(--s-3);
    padding: var(--s-7) var(--s-6);
    background: var(--c-card);
}

.contact-card__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: var(--s-2);
    background: var(--c-accent-soft);
    color: var(--c-accent-text);
}

.contact-card__icon .icon {
    width: 1.375rem;
    height: 1.375rem;
}

.contact-card__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    line-height: 1.25;
    letter-spacing: var(--tracking-title);
}

.contact-card__lines {
    display: grid;
    gap: var(--s-2);
    font-size: var(--fs-sm);
    color: var(--c-ink-muted);
}

.contact-card__lines a {
    color: var(--c-ink);
    font-weight: var(--fw-semibold);
    text-decoration-color: var(--c-input-line);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
    font-variant-numeric: tabular-nums;
}

.contact-card__lines a:hover {
    text-decoration-color: currentColor;
}

.contact-card__lines span {
    display: block;
    font-size: var(--fs-xs);
}

@media (min-width: 37.5em) {
    .contact-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 75em) {
    .contact-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--s-4);
    }
}

.quote__grid {
    display: grid;
    gap: var(--s-9);
}

.quote__intro > p:not(.eyebrow) {
    margin-top: var(--s-5);
    color: var(--c-ink-muted);
    max-width: 42ch;
}

.next-steps {
    margin-top: var(--s-6);
    border-top: var(--rule);
}

.next-steps li {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: var(--s-1) var(--s-3);
    padding-block: var(--s-4);
    border-bottom: var(--hairline);
}

.next-steps .index-num {
    padding-top: 0.2em;
}

.next-steps strong {
    font-weight: var(--fw-semibold);
}

.next-steps p {
    grid-column: 2;
    font-size: var(--fs-sm);
    color: var(--c-ink-muted);
}

.quote__direct {
    margin-top: var(--s-7);
    font-size: var(--fs-sm);
    color: var(--c-ink-muted);
}

.quote__direct a {
    color: var(--c-ink);
    font-weight: var(--fw-semibold);
    text-underline-offset: 0.3em;
}

.form-card {
    padding: var(--s-7) var(--s-5);
    background: var(--c-surface);
    border: var(--hairline);
}

.form-card:focus {
    outline: none;
}

@media (min-width: 37.5em) {
    .form-card {
        padding: var(--s-6) var(--s-7);
    }
}

@media (min-width: 60em) {
    .quote__grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: clamp(2rem, 0.5rem + 4vw, 5rem);
        align-items: start;
    }

    .quote__intro {
        position: sticky;
        top: calc(var(--header-h) + var(--s-8));
    }
}

/* Form */
.form__head {
    display: grid;
    gap: var(--s-2);
    margin-bottom: var(--s-4);
}

.form__head .muted {
    font-size: var(--fs-sm);
}

.form__hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.form__grid {
    display: grid;
    gap: var(--s-3);
}

.field {
    display: grid;
    align-content: start;
    gap: var(--s-1);
    min-width: 0;
}

.field__label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    line-height: 1.4;
}

.field__input {
    width: 100%;
    min-height: 2.875rem;
    padding: var(--s-3) var(--s-4);
    border: 1px solid var(--c-input-line);
    border-radius: var(--radius-control);
    background: var(--c-surface);
    font-size: var(--fs-base);
    line-height: 1.4;
    appearance: none;
    transition: border-color var(--dur-fast) var(--ease);
}

.field__input::placeholder {
    color: var(--c-ink-subtle);
}

.field__input:hover {
    border-color: var(--c-ink);
}

.field__input:focus-visible,
.field__input:focus {
    border-color: var(--c-ink);
    outline: var(--focus-ring);
    outline-offset: 1px;
}

.field__input[aria-invalid="true"] {
    border-color: var(--c-error);
    border-width: var(--border-thick);
    padding: calc(var(--s-3) - 1px) calc(var(--s-4) - 1px);
}

.field__input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--c-bg-alt);
}

.field__input--area {
    min-height: 4.5rem;
    resize: vertical;
}

.field__hint {
    font-size: var(--fs-xs);
    color: var(--c-ink-muted);
}

.field__error {
    display: flex;
    align-items: flex-start;
    gap: var(--s-2);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    line-height: 1.4;
    color: var(--c-error);
}

.field__error[hidden] {
    display: none;
}

.field__error .icon {
    width: 1rem;
    height: 1rem;
    margin-top: 0.1em;
}

.choice {
    margin: 0;
    padding: 0;
    border: 0;
}

.choice legend {
    padding: 0;
    margin-bottom: var(--s-3);
}

.choice__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
}

.choice__option {
    position: relative;
    display: block;
}

.choice__option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.choice__option span {
    display: block;
    min-height: 2.25rem;
    padding: var(--s-1) var(--s-3);
    border: 1px solid var(--c-input-line);
    border-radius: var(--radius-control);
    background: var(--c-surface);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    line-height: 1.7;
    transition:
        background-color var(--dur-fast) var(--ease),
        color var(--dur-fast) var(--ease),
        border-color var(--dur-fast) var(--ease);
}

.choice__option:hover span {
    border-color: var(--c-ink);
}

.choice__option input:active + span {
    background: var(--c-bg-alt);
}

.choice__option input:focus-visible + span {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset-sm);
}

.choice__option input:checked + span {
    background: var(--c-ink);
    border-color: var(--c-ink);
    color: var(--c-bg);
}

.choice__option input:disabled + span {
    opacity: 0.45;
    cursor: not-allowed;
}

.form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-4) var(--s-6);
    margin-top: var(--s-4);
}

.form__fine {
    font-size: var(--fs-xs);
}

@media (min-width: 37.5em) {
    .form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--s-4);
    }

    .field--full {
        grid-column: 1 / -1;
    }
}

@media (min-width: 37.5em) {
    .field--size,
    .field--wide {
        grid-column: 1 / -1;
    }
}

/* Wide screens: three short fields per row; size and notes share a row */
@media (min-width: 75em) {
    .form__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .field--size {
        grid-column: auto;
    }

    .field--wide {
        grid-column: span 2;
    }
}

/* Notices */
.notice {
    display: flex;
    align-items: flex-start;
    gap: var(--s-4);
    padding: var(--s-5) var(--s-6);
    border: 1px solid currentColor;
    background: var(--c-surface);
}

.notice[hidden] {
    display: none;
}

.notice:focus {
    outline: none;
}

.notice:focus-visible {
    outline: var(--focus-ring);
}

.notice > div {
    display: grid;
    justify-items: start;
    gap: var(--s-2);
    color: var(--c-ink);
}

.notice__icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.1em;
}

.notice__title {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    line-height: 1.35;
}

.notice--success {
    color: var(--c-success);
}

.notice--error {
    color: var(--c-error);
    margin-bottom: var(--s-7);
}

.notice ul {
    display: grid;
    gap: var(--s-1);
    font-size: var(--fs-sm);
}

.notice ul a {
    color: var(--c-error);
    font-weight: var(--fw-semibold);
    text-underline-offset: 0.2em;
}

.notice ul a:hover {
    text-decoration-thickness: var(--border-thick);
}

/* FAQ */
.faq__grid {
    display: grid;
    gap: var(--s-8);
}

.faq__head {
    display: grid;
    align-content: start;
    gap: var(--s-4);
}

.faq__head .h2 {
    margin-top: 0;
}

.faq__head .muted {
    max-width: 36ch;
}

.faq__head a {
    color: var(--c-ink);
    font-weight: var(--fw-semibold);
    text-underline-offset: 0.2em;
}

.faq__list {
    display: grid;
    gap: var(--s-2);
}

.faq__item {
    background: var(--c-card);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
    min-height: 3rem;
    padding: var(--s-3) var(--s-5);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease);
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary:hover span {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.faq__item summary:active {
    color: var(--c-ink-hover);
}

.faq__icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0.3rem;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-control);
    transition:
        transform var(--dur) var(--ease),
        background-color var(--dur-fast) var(--ease),
        color var(--dur-fast) var(--ease);
}

.faq__item[open] .faq__icon {
    transform: rotate(45deg);
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: var(--c-accent-ink);
}

.faq__item p {
    padding: 0 var(--s-5) var(--s-5);
    max-width: 62ch;
    color: var(--c-ink-muted);
}

@media (min-width: 60em) {
    .faq__grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--grid-gap);
    }

    .faq__head {
        grid-column: 1 / 5;
        position: sticky;
        top: calc(var(--header-h) + var(--s-7));
        align-self: start;
    }

    .faq__list {
        grid-column: 6 / -1;
    }
}

/* Map */
.map iframe {
    width: 100%;
    height: clamp(20rem, 45vh, 30rem);
    border: 0;
    filter: grayscale(1);
}

/* ------------------------------------------------------------------ */
/* Call to action panel                                                */
/* ------------------------------------------------------------------ */

.cta {
    padding-block: 0 var(--section-y);
}

.cta--spaced {
    padding-top: var(--section-y);
}

.cta__panel {
    display: grid;
    gap: var(--s-9);
    padding: var(--s-9) var(--s-6);
    background: var(--c-card);
    color: var(--c-ink);
}

.cta__pitch {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta__title {
    margin-top: var(--s-4);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: var(--tracking-heading);
    max-width: 16ch;
    text-wrap: balance;
}

.cta__text {
    margin-top: var(--s-5);
    color: var(--c-ink-muted);
    max-width: 44ch;
}

.cta__pitch .btn-row {
    margin-top: var(--s-8);
}

.contact-list {
    border-top: var(--hairline);
}

.contact-list li {
    border-bottom: var(--hairline);
}

.contact-list__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--s-1) var(--s-4);
    min-height: 3rem;
    padding-block: var(--s-4);
    text-decoration: none;
}

.contact-list__label {
    font-size: var(--fs-xs);
    color: var(--c-ink-muted);
}

.contact-list__value {
    grid-column: 1;
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    line-height: 1.25;
    letter-spacing: var(--tracking-title);
    font-variant-numeric: tabular-nums;
}

.contact-list__icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--c-ink-subtle);
    transition: transform var(--dur) var(--ease), color var(--dur-fast) var(--ease);
}

.contact-list__link:hover .contact-list__value {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

.contact-list__link:hover .contact-list__icon {
    color: var(--c-accent-text);
    transform: translate(var(--nudge), calc(var(--nudge) * -1));
}

.contact-list__link:active .contact-list__value {
    color: var(--c-ink-hover);
}

@media (min-width: 37.5em) {
    .cta__panel {
        padding: clamp(2.5rem, 1rem + 3vw, 4rem);
    }
}

@media (min-width: 60em) {
    .cta__panel {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        column-gap: clamp(2rem, 0.5rem + 5vw, 6rem);
        align-items: center;
        padding: clamp(3.5rem, 1rem + 5vw, 6rem);
    }
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
    background: var(--c-bg-alt);
    color: var(--c-ink);
    font-size: var(--fs-sm);
}

.site-footer__main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-7) var(--grid-gap);
    padding-block: var(--s-9) var(--s-7);
}

.site-footer__brand,
.site-footer__col--contact {
    grid-column: 1 / -1;
}

.site-footer__brand img {
    width: 8.5rem;
    height: auto;
}

.site-footer__brand p {
    margin-top: var(--s-3);
    color: var(--c-ink-muted);
    max-width: 36ch;
}

.site-footer__heading {
    margin-bottom: var(--s-2);
    font-size: var(--fs-2xs);
    font-weight: var(--fw-bold);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--c-ink-muted);
}

.site-footer__col a {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: 1.75rem;
    text-decoration: none;
}

.site-footer__col a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
}

.site-footer__col a:active {
    color: var(--c-ink-hover);
}

.site-footer__col .icon {
    width: 1rem;
    height: 1rem;
    color: var(--c-accent-text);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-1) var(--s-6);
    padding-block: var(--s-3);
    border-top: var(--hairline);
    font-size: var(--fs-xs);
    color: var(--c-ink-muted);
}

.site-footer__areas {
    max-width: none;
}

.site-footer__top-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: 2.75rem;
    color: var(--c-ink);
    font-weight: var(--fw-semibold);
    text-decoration: none;
}

.site-footer__top-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

.site-footer__top-icon {
    width: 1rem;
    height: 1rem;
    transform: rotate(-45deg);
}

@media (min-width: 60em) {
    .site-footer__main {
        grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr);
        padding-block: var(--s-10) var(--s-8);
    }

    .site-footer__brand,
    .site-footer__col--contact {
        grid-column: auto;
    }
}

/* ------------------------------------------------------------------ */
/* Lightbox                                                            */
/* ------------------------------------------------------------------ */

.lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: var(--s-4) var(--gutter);
    border: 0;
    background: var(--c-lightbox);
    color: var(--c-inverse-ink);
}

.lightbox[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: var(--s-4);
}

.lightbox::backdrop {
    background: var(--c-lightbox);
}

.lightbox__bar,
.lightbox__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
}

.lightbox__count {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    color: var(--c-inverse-muted);
    font-variant-numeric: tabular-nums;
}

.lightbox__figure {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    min-height: 0;
}

.lightbox__figure img {
    width: auto;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox__caption {
    max-width: 60ch;
    text-align: center;
    color: var(--c-inverse-muted);
}

.lightbox__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: 2.75rem;
    padding: 0 var(--s-4);
    border: 1px solid var(--c-inverse-line);
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--c-inverse-ink);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    transition:
        background-color var(--dur-fast) var(--ease),
        color var(--dur-fast) var(--ease),
        border-color var(--dur-fast) var(--ease);
}

.lightbox__btn .icon {
    width: 1rem;
    height: 1rem;
}

.lightbox__btn:hover {
    border-color: var(--c-inverse-ink);
}

.lightbox__btn:active {
    background: var(--c-inverse-ink);
    color: var(--c-inverse);
}

.lightbox__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ------------------------------------------------------------------ */
/* Type pairing: Playfair Display for headings, Inter for everything   */
/* else (text, labels, navigation, buttons and forms)                  */
/* ------------------------------------------------------------------ */

.display,
.h1,
.h2,
.banner__title,
.cta__title {
    font-family: var(--font-serif);
    font-weight: var(--fw-display);
}

.h3,
.pcard__name,
.reason__title,
.step__title,
.svc__name,
.sector__name,
.value__name,
.case__title,
.types__name,
.contact-card__title,
.mega__aside-title {
    font-family: var(--font-serif);
    font-weight: var(--fw-semibold);
}

/* Playfair defaults to old-style figures; headings use lining figures so "10 years" sits level */
.display,
.h1,
.h2,
.h3,
.banner__title,
.cta__title,
.pcard__name,
.reason__title,
.step__title,
.svc__name,
.sector__name,
.value__name,
.case__title,
.types__name,
.contact-card__title,
.mega__aside-title {
    font-variant-numeric: lining-nums;
}

/* Large figures use lining numerals so 10 and 6 sit level */
.facts__value,
.stats dd,
.step__num {
    font-family: var(--font-serif);
    font-weight: var(--fw-display);
    font-variant-numeric: lining-nums tabular-nums;
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: var(--dur-none) !important;
        animation-duration: var(--dur-none) !important;
        animation-iteration-count: 1 !important;
    }
}
