/**
 * MXD Solutions, recruitment site design system.
 * Used by index.html and contact.html. The footer-only legacy pages keep styles.css.
 *
 * Bone and ink carry the page. Ember comes from the logo's X and is used sparingly.
 * Containers are square-edged; only actions are round.
 */

:root {
    --ink: #131110;
    --ink-2: #1c1917;
    --ink-3: #2b2724;
    --paper: #f3f1e9;
    --white: #fff;
    --line: #e3e0d5;
    --line-ink: rgba(255, 255, 255, 0.12);

    --text: #131110;
    --text-2: #5f5a52;
    --on-ink: #f6f4ee;
    --on-ink-2: #a9a297;

    --ember: #f0592f;
    --ember-deep: #a93a1b;

    --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --max: 1240px;
    --gutter: clamp(16px, 4vw, 28px);
    --section: clamp(72px, 10vw, 136px);
}

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

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

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

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

section[id] { scroll-margin-top: 96px; }

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

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

.section { padding: var(--section) 0; }
.section--ink { background: var(--ink); color: var(--on-ink); }

/* ============ TYPE ============ */
.label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 1rem;
}
.section--ink .label { color: var(--on-ink-2); }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }

.h2 {
    font-size: clamp(2.1rem, 4.6vw, 3.5rem);
    line-height: 1.08;
}

.lede { color: var(--text-2); max-width: 44ch; text-wrap: pretty; }
.section--ink .lede { color: var(--on-ink-2); }

.section-head {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem clamp(2rem, 6vw, 5rem);
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center {
    display: block;
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
}
.section-head--center .lede { margin: 1rem auto 0; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}
.btn-label {
    display: inline-flex;
    align-items: center;
    height: 54px;
    padding: 0 1.75rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    transition: background 0.2s ease, color 0.2s ease;
}
.btn-arrow {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-left: -2px;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
}
.btn:hover .btn-arrow { background: var(--ember); border-color: var(--ember); color: var(--white); }
.btn:hover .btn-arrow svg { transform: rotate(45deg); }

.btn--light .btn-label { background: var(--white); color: var(--ink); }
.btn--light .btn-arrow { border-color: var(--white); color: var(--white); }

/* ============ HERO ============ */
.hero {
    position: relative;
    margin: 12px 12px 0;
    min-height: min(90vh, 860px);
    min-height: min(90svh, 860px);
    display: flex;
    align-items: flex-end;
    background: var(--ink);
    color: var(--white);
    overflow: hidden;
}
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 100%;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(19, 17, 16, 0.96) 6%, rgba(19, 17, 16, 0.72) 38%, rgba(19, 17, 16, 0.12) 72%),
        linear-gradient(to right, rgba(19, 17, 16, 0.55), rgba(19, 17, 16, 0) 60%);
}
.hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 150px;
    padding-bottom: clamp(24px, 3vw, 36px);
    max-width: calc(var(--max) - 24px);
}
.hero-title {
    font-size: clamp(2.75rem, 5.6vw, 4.75rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}
.hero-title span { display: block; }
.hero-title em { display: block; font-style: normal; color: var(--ember); }
.hero-lede {
    margin-top: 1.25rem;
    max-width: 50ch;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.82);
}
.hero-foot {
    margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem 3rem;
    flex-wrap: wrap;
}
.hero-proof {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem clamp(1.5rem, 4vw, 3.25rem);
}
.hero-proof li {
    font-size: 0.92rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.72);
}
.hero-proof strong {
    display: block;
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--white);
}

/* ============ THE DEAL ============ */
.deal {
    margin: 12px 12px 0;
    background: var(--ink);
    color: var(--on-ink);
}
.deal-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding-block: clamp(2.25rem, 4vw, 3.25rem);
}
.deal-tag {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-ink-2);
    padding-right: clamp(1.5rem, 4vw, 3.5rem);
    border-right: 1px solid var(--line-ink);
}
.deal-text {
    font-size: clamp(1.25rem, 2.3vw, 1.75rem);
    line-height: 1.32;
    letter-spacing: -0.015em;
    max-width: 38em;
}

/* ============ PROMISES ============ */
.promises {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--line);
}
.promise {
    position: relative;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-right: 1px solid var(--line);
    transition: background 0.25s ease;
}
.promise:last-child { border-right: 0; }
.promise:hover { background: var(--paper); }
.promise-num {
    position: absolute;
    top: clamp(1.75rem, 3vw, 2.5rem);
    right: clamp(1.75rem, 3vw, 2.5rem);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--paper);
    font-size: 0.78rem;
    transition: background 0.25s ease;
}
.promise:hover .promise-num { background: var(--white); }
.promise-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    background: var(--ink);
    color: var(--white);
    margin-bottom: 2rem;
}
.promise-icon svg { width: 28px; height: 28px; }
.promise h3 {
    font-size: 1.3rem;
    line-height: 1.2;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.promise p { font-size: 0.98rem; color: var(--text-2); }

/* ============ WHO WE ARE ============ */
.who {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--ink);
    color: var(--on-ink);
    margin: 0 12px;
}
.who-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    padding: clamp(2rem, 5vw, 4.5rem);
    background: radial-gradient(120% 90% at 0% 100%, var(--ember-deep) 0%, rgba(169, 58, 27, 0.35) 38%, rgba(19, 17, 16, 0) 72%);
}
.who-copy p + p { margin-top: 1rem; }
.who-copy .body { color: rgba(246, 244, 238, 0.82); max-width: 46ch; }
.who-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-ink);
}
.who-stats strong {
    display: block;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.who-stats span { font-size: 0.92rem; color: rgba(246, 244, 238, 0.72); }
.who-photo { position: relative; min-height: 460px; }
.who-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============ TRADES ============ */
.crew {
    position: relative;
    margin: 0 12px;
    padding: var(--section) 0 clamp(3rem, 6vw, 5rem);
    overflow: hidden;
    background: var(--ink);
    color: var(--on-ink);
}
.crew::before {
    content: '';
    position: absolute;
    left: 0;
    top: 24%;
    width: 10px;
    height: 42%;
    background: var(--ember);
}
.crew .label { color: var(--on-ink-2); }
.crew-title {
    position: relative;
    z-index: 2;
    margin-bottom: -0.6em;
    font-size: clamp(3.2rem, 15vw, 13rem);
    font-weight: 700;
    font-stretch: 75%;
    line-height: 0.86;
    letter-spacing: -0.012em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--white);
    pointer-events: none;
}
.strips {
    --scale: 1;
    position: relative;
    z-index: 1;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    align-items: start;
}
.strip {
    margin-top: var(--top);
    transform: translateY(var(--shift, 0));
    will-change: transform;
}
.strip-img {
    height: calc(var(--h) * var(--scale));
    overflow: hidden;
    background: var(--ink-2);
}
.strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.12);
    transition: filter 0.45s ease, transform 0.7s ease;
}
.strip:hover img,
.strip.is-colour img { filter: none; transform: scale(1.04); }
.strip figcaption { padding-top: 0.8rem; }
.strip figcaption strong {
    display: block;
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.strip figcaption span { font-size: 0.92rem; color: var(--on-ink-2); }
.crew-foot {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem clamp(2rem, 6vw, 5rem);
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-ink);
}
.crew-foot .lede { color: var(--on-ink-2); max-width: 48ch; }

/* ============ MARQUEE ============ */
.marquee {
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 44s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
    display: flex;
    flex: none;
    gap: 0.45em;
    padding-right: 0.45em;
    font-size: clamp(3.25rem, 10vw, 8.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}
.marquee-group span:nth-child(even) {
    color: var(--white);
    -webkit-text-stroke: 3px var(--ink);
    paint-order: stroke fill;
    letter-spacing: 0;
}
@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ============ HOW IT WORKS ============ */
.how { padding-top: 0; }
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1080px;
    margin: 0 auto;
    padding: 12px;
}
.step {
    aspect-ratio: 1;
    margin-inline: -7px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    background: var(--paper);
    box-shadow: 0 0 0 9px var(--white), 0 0 0 10px var(--line);
    transition: background 0.3s ease, color 0.3s ease;
}
.step-tag {
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-size: 0.74rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    transition: background 0.3s ease, color 0.3s ease;
}
.step h3 { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.2; }
.step p {
    margin-top: 0.45rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--text-2);
    max-width: 19ch;
    transition: color 0.3s ease;
}
.step.is-lit,
.steps:hover .step:hover { background: var(--ink); color: var(--white); z-index: 1; position: relative; }
.steps:hover .step.is-lit:not(:hover) { background: var(--paper); color: var(--text); }
.step.is-lit p,
.steps:hover .step:hover p { color: var(--on-ink-2); }
.steps:hover .step.is-lit:not(:hover) p { color: var(--text-2); }
.step.is-lit .step-tag,
.steps:hover .step:hover .step-tag { background: var(--ember); }
.steps:hover .step.is-lit:not(:hover) .step-tag { background: var(--ink); }

.how-note {
    width: fit-content;
    margin: 2.75rem auto 0;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.95rem;
    text-align: center;
}
.how-note a { font-weight: 600; text-underline-offset: 3px; }

/* ============ PRICING ============ */
.pricing {
    position: relative;
    overflow: hidden;
    margin: 0 12px;
}
.pricing::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 50% at 50% 0%, rgba(169, 58, 27, 0.55), rgba(19, 17, 16, 0) 100%);
    pointer-events: none;
}
.pricing > .wrap { position: relative; }

.tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.tier {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 0;
    background: var(--ink-2);
    color: var(--on-ink);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}
.tier:hover { background: var(--ink-3); }
.tier[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.tier-name { font-size: 1.05rem; font-weight: 500; }
.tier-price {
    display: block;
    margin: 1.25rem 0 0.15rem;
    font-size: clamp(2.75rem, 5.2vw, 4rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}
.tier-gst { font-size: 0.88rem; color: var(--on-ink-2); }
.tier[aria-pressed="true"] .tier-gst { color: var(--text-2); }
.tier-roles {
    display: block;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-ink);
    font-size: 0.98rem;
    color: var(--on-ink-2);
}
.tier[aria-pressed="true"] .tier-roles { border-color: var(--line); color: var(--text-2); }

/* Calculator */
.calc {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    margin-top: 12px;
    background: var(--ink-2);
}
.calc-controls {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-right: 1px solid var(--line-ink);
}
.calc-title {
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.calc-tiers {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.calc-tier {
    padding: 0.5rem 1rem;
    border: 1px solid var(--line-ink);
    border-radius: 999px;
    background: none;
    color: var(--on-ink);
    font: 500 0.92rem var(--font);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.calc-tier[aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.calc-salary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--on-ink-2);
}
.calc-salary-row output {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--on-ink);
    font-variant-numeric: tabular-nums;
}
.calc input[type="range"] {
    width: 100%;
    height: 28px;
    accent-color: var(--ember);
    cursor: pointer;
}
.calc-result {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}
.calc-row-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--on-ink-2);
    margin-bottom: 0.4rem;
}
.calc-row-head strong {
    font-weight: 500;
    color: var(--on-ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.calc-bar {
    display: block;
    height: 14px;
    background: #5c544d;
    transition: width 0.3s ease;
}
.calc-bar--mxd { background: var(--ember); }
.calc-save {
    padding-top: 1rem;
    border-top: 1px solid var(--line-ink);
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    letter-spacing: -0.01em;
}
.calc-save strong { font-weight: 600; color: var(--ember); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pricing-foot {
    margin-top: 1.75rem;
    font-size: 0.82rem;
    color: var(--on-ink-2);
}

/* ============ PAYMENT TERMS ============ */
.terms { padding: var(--section) 0 0; }
.terms .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.terms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem clamp(2rem, 5vw, 4rem);
}
.terms-grid > div { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.terms-grid h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: 0.4rem; }
.terms-grid p { color: var(--text-2); max-width: 34ch; }

/* ============ SCREENING ============ */
.screen-grid {
    display: grid;
    grid-template-columns: 1fr 1.65fr;
    gap: 12px;
}
.screen-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    background: var(--ink);
    color: var(--on-ink);
}
.screen-big {
    font-size: clamp(3.75rem, 7vw, 5.5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}
.screen-card p { margin-top: 0.75rem; color: var(--on-ink-2); max-width: 30ch; }
.checks {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.check {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 1.1rem;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border-bottom: 1px solid var(--line);
}
.check:nth-child(odd) { border-right: 1px solid var(--line); }
.check:nth-last-child(-n+2) { border-bottom: 0; }
.check-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
}
.check-icon svg { width: 20px; height: 20px; }
.check h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 0.35rem; }
.check p { font-size: 0.95rem; line-height: 1.5; color: var(--text-2); }

.screen-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    background: var(--paper);
}
.screen-note q {
    quotes: none;
    font-size: 1.05rem;
    color: var(--text-2);
}
.screen-note p { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.28; letter-spacing: -0.015em; }
.screen-photo { position: relative; min-height: 340px; }
.screen-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============ FAQ ============ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}
.faq-side { position: sticky; top: 104px; }
.faq-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 1rem;
    min-height: 300px;
    margin-top: 2rem;
    padding: 1.5rem;
    color: var(--white);
    background: var(--ink);
    overflow: hidden;
}
.faq-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
}
.faq-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(19, 17, 16, 0.92) 10%, rgba(19, 17, 16, 0.1) 75%);
}
.faq-card > :not(img) { position: relative; z-index: 1; }
.faq-card p { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    padding: 1.3rem 0;
    font-size: clamp(1.1rem, 1.7vw, 1.3rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.012em;
    list-style: none;
    cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background:
        linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat,
        var(--paper);
    transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    padding-bottom: 1.4rem;
    color: var(--text-2);
    max-width: 60ch;
}

/* ============ TRADIES ============ */
.tradies {
    margin: 0 12px;
    color: var(--on-ink);
    background:
        radial-gradient(70% 150% at 100% 100%, var(--ember-deep) 0%, rgba(169, 58, 27, 0.35) 45%, rgba(19, 17, 16, 0) 78%),
        var(--ink);
}
.tradies-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem 3rem;
    flex-wrap: wrap;
    padding-block: clamp(2.5rem, 5vw, 4rem);
}
.tradies h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    line-height: 1.1;
}
.tradies p { margin-top: 0.6rem; color: rgba(246, 244, 238, 0.8); }

/* ============ BRIEF ============ */
.brief {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: stretch;
}
.brief-aside {
    display: grid;
    grid-template-columns: 1fr 92px;
    min-height: 520px;
    margin-left: calc(-1 * var(--gutter));
}
.brief-photo { position: relative; }
.brief-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.brief-rail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
}
.brief-rail span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
#brief .h2 { margin-bottom: 1.75rem; }

/* form.js injects base (dark) styles; these restyle the brief variant */
.brief-form .mxd-form { gap: 1.1rem; }
.brief-form .mxd-form .form-group[hidden] { display: none; }
.brief-form .mxd-form label,
.brief-form .mxd-form .services-label {
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
}
.brief-form .mxd-form input,
.brief-form .mxd-form textarea {
    width: 100%;
    background: var(--paper);
    border: 1px solid transparent;
    border-radius: 0;
    padding: 0.9rem 1rem;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);
}
.brief-form .mxd-form input::placeholder,
.brief-form .mxd-form textarea::placeholder { color: #807a70; }
.brief-form .mxd-form input:focus,
.brief-form .mxd-form textarea:focus { border-color: var(--ink); }
.brief-form .brief-roles {
    display: inline-flex;
    width: fit-content;
    padding: 4px;
    background: var(--paper);
    border-radius: 999px;
}
.brief-form .brief-role {
    padding: 0.55rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--text);
    font: 600 0.95rem var(--font);
    cursor: pointer;
}
.brief-form .brief-role[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.brief-form .mxd-form .svc-btn {
    font-family: var(--font);
    font-size: 0.9rem;
    letter-spacing: 0;
    padding: 0.5rem 0.9rem;
    border-color: var(--line);
    color: var(--text);
}
.brief-form .mxd-form .svc-btn:hover { border-color: var(--ink); color: var(--text); }
.brief-form .mxd-form .svc-btn.selected { background: var(--ink); border-color: var(--ink); color: var(--white); }
.brief-form .mxd-form .submit-btn {
    align-self: flex-start;
    height: 54px;
    padding: 0 2rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
.brief-form .mxd-form .submit-btn:hover:not(:disabled) { background: var(--ember-deep); transform: none; }
.brief-form .brief-note { font-size: 0.9rem; color: var(--text-2); }
.brief-form .brief-privacy { font-size: 0.82rem; margin-top: -0.4rem; }
.brief-form .brief-privacy a { color: inherit; text-underline-offset: 3px; }

/* ============ CONTACT PAGE ============ */
.page-head {
    margin: 12px 12px 0;
    padding: 150px 0 clamp(3rem, 6vw, 5rem);
    color: var(--on-ink);
    background:
        radial-gradient(60% 130% at 100% 0%, var(--ember-deep) 0%, rgba(169, 58, 27, 0.3) 45%, rgba(19, 17, 16, 0) 78%),
        var(--ink);
}
.page-head h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}
.page-head p { margin-top: 1rem; max-width: 52ch; color: rgba(246, 244, 238, 0.8); }
.next-steps { list-style: none; counter-reset: step; }
.next-steps li {
    counter-increment: step;
    position: relative;
    padding: 1.25rem 0 1.25rem 3.25rem;
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
}
.next-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1.25rem;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-size: 0.85rem;
}
.next-steps strong { display: block; font-weight: 500; font-size: 1.15rem; color: var(--text); }

/* ============ LEGAL PAGES ============ */
.legal { max-width: 760px; }
.legal-updated { margin-bottom: 2rem; font-size: 0.92rem; }
.legal h2 {
    margin: 2.5rem 0 0.6rem;
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    line-height: 1.25;
}
.legal p, .legal li { color: var(--text-2); }
.legal p + p, .legal ul + p { margin-top: 0.75rem; }
.legal strong { color: var(--text); font-weight: 600; }
.legal ul { margin: 0.5rem 0 0 1.25rem; }
.legal li + li { margin-top: 0.35rem; }
.legal a { color: var(--text); text-underline-offset: 3px; }
.legal mark { padding: 0 0.2em; background: #fde4da; color: var(--text); }
.legal-table { margin: 1rem 0; overflow-x: auto; }
.legal table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.95rem; }
.legal th, .legal td { padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--text-2); }
.legal th { font-weight: 600; color: var(--text); }
.legal td:last-child { white-space: nowrap; color: var(--text); }

/* ============ FOOTER ============ */
.footer {
    position: relative;
    overflow: hidden;
    margin: 12px;
    color: var(--on-ink);
    background:
        radial-gradient(50% 55% at 50% 100%, rgba(169, 58, 27, 0.75) 0%, rgba(19, 17, 16, 0) 100%),
        var(--ink);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-logo { display: inline-flex; flex-direction: column; gap: 0.6rem; }
.footer-logo svg { height: 46px; width: auto; fill: currentColor; }
/* Letters are spread edge to edge, so the width always matches the logo */
.logo-sol {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: var(--on-ink-2);
}
.logo-sol i { font-style: normal; }
.footer-blurb { margin-top: 1rem; max-width: 36ch; color: var(--on-ink-2); font-size: 0.98rem; }
.footer h2 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    margin-bottom: 0.9rem;
}
.footer ul { list-style: none; }
.footer li + li { margin-top: 0.45rem; }
.footer-top a {
    color: var(--on-ink-2);
    text-decoration: none;
    font-size: 0.98rem;
}
.footer-top a:hover { color: var(--white); }

.footer-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25em;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding: clamp(1rem, 2vw, 1.5rem) 0;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    font-size: clamp(1.3rem, 7.2vw, 6rem);
    font-weight: 500;
    line-height: 1.05;
    white-space: nowrap;
    letter-spacing: -0.035em;
    text-decoration: none;
    text-transform: uppercase;
}
.footer-cta svg {
    width: 0.8em;
    height: 0.8em;
    flex: none;
    transition: transform 0.25s ease;
}
.footer-cta:hover svg { transform: translateX(0.12em); }

.footer-base {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    padding-block: 1.5rem;
    font-size: 0.82rem;
    color: var(--on-ink-2);
    text-align: center;
}
.footer-cookies {
    padding: 0.4rem 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.footer-cookies:hover { color: var(--white); }
.footer-legal { color: inherit; text-decoration: underline; text-underline-offset: 3px; padding: 0.4rem 0; }
.footer-legal:hover { color: var(--white); }

/* ============ MOTION ============ */
.fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in { opacity: 1; transform: none; transition: none; }
    .marquee-track { animation: none; }
    .btn-arrow svg, .faq-item summary::after, .calc-bar, .footer-cta svg { transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1040px) {
    .promises { grid-template-columns: repeat(2, 1fr); }
    .promise:nth-child(2) { border-right: 0; }
    .promise:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .strips { --scale: 0.82; }
    .screen-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .faq-side { position: static; }
    .faq-card { display: none; }
}

@media (max-width: 860px) {
    .section-head { grid-template-columns: 1fr; gap: 1rem; }
    .who { grid-template-columns: 1fr; }
    .who-photo { min-height: 340px; order: -1; }
    .tiers { grid-template-columns: 1fr; }
    .calc { grid-template-columns: 1fr; }
    .calc-controls { border-right: 0; border-bottom: 1px solid var(--line-ink); }
    .terms-grid { grid-template-columns: 1fr; }
    .brief { grid-template-columns: 1fr; }
    .brief--contact > :last-child { order: -1; }
    .brief-aside { min-height: 280px; margin-right: calc(-1 * var(--gutter)); grid-template-columns: 1fr 72px; }
    .footer-top { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }

    .strips { --scale: 0.9; grid-template-columns: repeat(3, 1fr); gap: 2rem 10px; }
    .strip { transform: none; will-change: auto; }

    .steps { grid-template-columns: 1fr; justify-items: center; }
    .step {
        width: min(264px, 76vw);
        margin: -9px 0;
    }
    .step:first-child { margin-top: 0; }
}

@media (max-width: 640px) {
    .hero, .deal, .who, .pricing, .tradies, .page-head { margin-inline: 8px; }
    .footer { margin: 8px; }
    .hero { margin-top: 8px; }
    .hero-img { height: 58%; object-position: 72% 50%; }
    .hero::after {
        background: linear-gradient(to top, var(--ink) 44%, rgba(19, 17, 16, 0.55) 62%, rgba(19, 17, 16, 0.05) 88%);
    }
    .hero-inner { padding-top: 260px; }
    .hero-title { font-size: clamp(2.1rem, 9.6vw, 3.25rem); }
    .hero-foot { flex-direction: column; align-items: flex-start; }
    .hero-proof { display: grid; grid-template-columns: repeat(3, auto); gap: 1rem; }
    .hero-proof li { font-size: 0.82rem; }
    .hero-proof strong { font-size: 1.3rem; }
    .deal-inner { grid-template-columns: 1fr; gap: 1rem; }
    .deal-tag { border-right: 0; padding-right: 0; }
    .promises { grid-template-columns: 1fr; }
    .promise, .promise:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
    .promise:last-child { border-bottom: 0; }
    .crew, .tradies { margin-inline: 8px; }
    .strips { --scale: 0.6; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 8px; }
    .strip { margin-top: 0; }
    .strip:nth-child(even) { margin-top: 36px; }
    .crew-title { margin-bottom: -0.34em; }
    .crew-foot { grid-template-columns: 1fr; }
    .checks { grid-template-columns: 1fr; }
    .check:nth-child(odd) { border-right: 0; }
    .check:nth-last-child(2) { border-bottom: 1px solid var(--line); }
    .brief-form .mxd-form .form-row { flex-direction: column; }
    .footer-top a { display: inline-block; padding: 0.3rem 0; }
    .calc input[type="range"] { height: 40px; }
    .footer-top { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

    /* Buttons run the full width on phones */
    .btn { display: flex; width: 100%; }
    .btn-label { flex: 1; justify-content: center; }
    .brief-form .mxd-form .submit-btn { align-self: stretch; width: 100%; }
    .brief-form .brief-roles { display: flex; width: 100%; }
    .brief-form .brief-role { flex: 1; }
    .calc-tier { flex: 1; }
}
