/* ==========================================================================
   Emberforge – dark vermilion theme
   Palette and component styling follow the "Ember" dashboard reference:
   near-black wine background, crimson feature cards, vermilion accents,
   soft bordered surfaces, pill controls.
   ========================================================================== */

:root {
    --bg: #10050a;
    --surface: #1a0a10;
    --surface-2: #240f17;
    --line: rgba(255, 110, 84, 0.14);
    --line-strong: rgba(255, 110, 84, 0.3);

    --text: #fff6f3;
    --muted: #c9a7a5;
    --faint: #94707a;

    --crimson: #b3122e;
    --crimson-hi: #cf1f3b;
    --ember: #ff5c3a;
    --ember-hi: #ff7a5c;
    --dim: #4a1c26;
    --on-ember: #2a0509;

    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;

    --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 76px;
}

/* ---------- Base ---------- */

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

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(900px 520px at 88% -4%, rgba(179, 18, 46, 0.38), transparent 62%),
        radial-gradient(700px 480px at -4% 38%, rgba(255, 92, 58, 0.08), transparent 62%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--ember-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

[hidden] { display: none !important; }

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

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--ember);
    color: var(--on-ember);
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-ember); }

.icon { width: 20px; height: 20px; flex: none; }

.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}

/* ---------- Buttons and small controls ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--ember);
    color: var(--on-ember);
    box-shadow: 0 10px 34px -10px rgba(255, 92, 58, 0.6);
}
.btn-primary:hover { background: var(--ember-hi); color: var(--on-ember); box-shadow: 0 14px 40px -10px rgba(255, 92, 58, 0.75); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--line-strong);
    color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 122, 92, 0.55); color: var(--text); }

.btn-light {
    background: #fff;
    color: #8f0f26;
}
.btn-light:hover { background: #ffe9e4; color: #8f0f26; }

.btn-lg { padding: 15px 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}
.pill--high   { background: rgba(179, 18, 46, 0.42); color: #ffd5cc; }
.pill--medium { background: rgba(255, 92, 58, 0.16); color: #ffcfc2; }
.pill--low    { background: rgba(255, 255, 255, 0.06); color: var(--muted); }

.icon-btn {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(16, 5, 10, 0.7);
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { background: var(--surface-2); border-color: rgba(255, 122, 92, 0.55); }

/* Segmented control (tabs and filters) */
.seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
}
.seg__btn {
    padding: 8px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.seg__btn:hover { color: var(--text); }
.seg__btn.is-active,
.seg__btn[aria-selected="true"],
.seg__btn[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--crimson), var(--crimson-hi));
    color: #fff;
    box-shadow: 0 6px 18px -8px rgba(207, 31, 59, 0.8);
}

/* ---------- Cards ---------- */

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)), var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.card--hot {
    background: linear-gradient(135deg, #a8102a 0%, #c41e3a 100%);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 26px 60px -28px rgba(207, 31, 59, 0.75);
}

.card--ember {
    background: linear-gradient(150deg, #8f0f26 0%, #c6243a 55%, #e5472f 100%);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 26px 60px -30px rgba(229, 71, 47, 0.6);
}

.icon-tile {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 92, 58, 0.12);
    color: var(--ember-hi);
}
.icon-tile .icon { width: 22px; height: 22px; }
.card--hot .icon-tile,
.card--ember .icon-tile { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.2); color: #fff; }

/* Row lists, as in the reference's "Up next" panel */
.rows { display: grid; }
.row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); }
.row__dot--high { background: var(--ember); box-shadow: 0 0 0 4px rgba(255, 92, 58, 0.18); }
.row__dot--medium { background: var(--crimson-hi); }
.row__dot--low { background: #7a3a4a; }
.row__text { display: grid; min-width: 0; }
.row__title { font-weight: 600; }
.row__note { font-size: 0.88rem; color: var(--muted); }

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: rgba(16, 5, 10, 0.6);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(16, 5, 10, 0.86); }

.site-header__bar {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.logo:hover { color: var(--text); }
.logo__mark {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    /*background: var(--ember);*/
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(255, 92, 58, 0.7);
}
.logo__mark svg { width: 22px; height: 22px; }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.nav__list a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__list a.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--crimson), var(--crimson-hi));
    box-shadow: 0 8px 24px -10px rgba(207, 31, 59, 0.8);
}
.nav__cta-mobile { display: none; }

.nav-toggle {
    display: none;
    place-items: center;
    width: 44px; height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---------- Sections ---------- */

.section {
    padding-block: clamp(52px, 8vw, 96px);
    scroll-margin-top: calc(var(--header-h) - 8px);
}

.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.section-head--tight { margin-bottom: 0; }

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

.hero {
    padding-top: clamp(32px, 6vw, 72px);
    scroll-margin-top: 0;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.hero__copy h1 { max-width: 15ch; }
.lead { margin-top: 20px; max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.ticks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; color: var(--muted); font-size: 0.95rem; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks .icon { color: var(--ember); width: 18px; height: 18px; }

/* Build profile panel (the memorable element) */
.profile { padding: clamp(20px, 3vw, 28px); }
.profile__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.profile__title { font-size: 1.3rem; letter-spacing: -0.01em; }
.profile__focus { margin-top: 18px; color: var(--muted); font-size: 0.95rem; min-height: 3em; }

.bars {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(8px, 2vw, 18px);
    margin-top: 18px;
}
.bars::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 190px;
    background-image: linear-gradient(var(--line) 1px, transparent 1px);
    background-size: 100% 25%;
    border-bottom: 1px solid var(--line);
    pointer-events: none;
}
.bar { position: relative; display: grid; justify-items: stretch; gap: 10px; }
.bar__col { display: flex; align-items: flex-end; height: 190px; }
.bar__fill {
    display: block;
    width: 100%;
    height: calc(var(--v) * 1%);
    border-radius: 10px 10px 4px 4px;
    background: var(--dim);
    transition: height 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease;
}
.bar.is-top .bar__fill { background: var(--ember); }
.bar.is-second .bar__fill { background: var(--crimson); }
.bar__label { text-align: center; font-size: 0.78rem; font-weight: 500; color: var(--faint); }
.bar.is-top .bar__label { color: var(--ember-hi); }

/* Bars rise once when the page loads */
.js .profile:not(.is-ready) .bar__fill { height: 0; }
.js .profile .bar:nth-child(2) .bar__fill { transition-delay: 0.06s; }
.js .profile .bar:nth-child(3) .bar__fill { transition-delay: 0.12s; }
.js .profile .bar:nth-child(4) .bar__fill { transition-delay: 0.18s; }
.js .profile .bar:nth-child(5) .bar__fill { transition-delay: 0.24s; }

.profile .rows { margin-top: 22px; }
.profile__cta {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--ember-hi);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: clamp(32px, 5vw, 56px);
}
.stat { display: grid; gap: 4px; align-content: start; padding: 22px 24px; border-radius: 20px; }
.stat__label { font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.stat__value {
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--ember-hi);
    font-variant-numeric: tabular-nums;
}
.stat__note { font-size: 0.88rem; color: var(--faint); }
.stat.card--hot .stat__label,
.stat.card--hot .stat__note { color: rgba(255, 255, 255, 0.82); }
.stat.card--hot .stat__value { color: #fff; }

/* ---------- Builds ---------- */

.builds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.build { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.build__summary { color: var(--muted); font-size: 0.97rem; }
.card--hot .build__summary { color: rgba(255, 255, 255, 0.86); }

.checks { display: grid; gap: 10px; margin-top: 4px; font-size: 0.93rem; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.checks .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--ember); }
.card--hot .checks .icon { color: #fff; }

.build__link {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 600;
    color: var(--ember-hi);
}
.card--hot .build__link { color: #fff; }

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

.services {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}
.services__intro { display: grid; gap: 28px; }
.promo { display: grid; gap: 12px; justify-items: start; padding: 26px; }
.promo p { color: rgba(255, 255, 255, 0.88); max-width: 40ch; }
.promo .btn { margin-top: 8px; }

.service-list { padding: 8px 24px; }
.service {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.service:first-child { border-top: 0; }
.service__text { display: grid; gap: 2px; }
.service__title { font-weight: 600; font-size: 1.05rem; }
.service__desc { color: var(--muted); font-size: 0.95rem; max-width: 56ch; }

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

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step .pill { margin-top: auto; }
.step__num {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--ember);
    color: var(--on-ember);
    font-weight: 700;
}

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

.gallery-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile {
    display: grid;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 12px 12px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)), var(--surface);
    color: inherit;
    font: inherit;
    text-align: left;
    align-content: start;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.tile:hover { border-color: rgba(255, 122, 92, 0.5); transform: translateY(-2px); }
.tile__art {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: radial-gradient(120% 90% at 50% 0%, #2a1018, #12060a);
}
.tile__art svg,
.tile__art img { width: 100%; height: 100%; object-fit: cover; }
.tile__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-inline: 6px; }
.tile__title { font-weight: 600; font-size: 1.05rem; }
.tile__spec { padding-inline: 6px; color: var(--muted); font-size: 0.88rem; }

/* Lightbox */
.lightbox {
    width: min(920px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    overflow: auto;
}
.lightbox::backdrop { background: rgba(10, 2, 5, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; }
.lightbox__art { background: radial-gradient(120% 90% at 50% 0%, #2a1018, #12060a); min-height: 260px; display: grid; align-items: center; }
.lightbox__art svg, .lightbox__art img { width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.lightbox__body { display: grid; gap: 14px; align-content: center; justify-items: start; padding: clamp(24px, 4vw, 40px); }
.lightbox__spec { font-weight: 600; color: var(--ember-hi); }
.lightbox__body p { color: var(--muted); }
.lightbox__controls { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }

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

.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about__copy { display: grid; gap: 18px; }
.about__copy h2 { max-width: 20ch; margin-bottom: 6px; }
.about__copy p { color: var(--muted); max-width: 60ch; }
.about__brands-title { margin-top: 10px; font-size: 1rem; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.88rem;
}

.standards { padding: 24px 28px; }
.standards__title { margin-bottom: 6px; }
.standards .rows { grid-auto-rows: auto; }
.standards .row { grid-template-columns: auto 1fr; align-items: start; }
.standards .row__dot { margin-top: 8px; }

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

.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq__list { padding: 6px 24px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:first-child { border-top: 0; }
.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chevron { color: var(--ember-hi); transition: transform 0.25s ease; }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__item p { padding: 0 0 20px; max-width: 60ch; color: var(--muted); }

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

.quote { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.quote__info { display: grid; gap: 18px; padding: clamp(24px, 3.5vw, 36px); }
.quote__info > p { color: rgba(255, 255, 255, 0.9); max-width: 40ch; }
.quote__info a { color: #fff; }

.contact { display: grid; gap: 14px; }
.contact li { display: flex; gap: 12px; align-items: flex-start; }
.contact .icon { margin-top: 2px; }

.hours { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.hours h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 1rem; }
.hours dl { display: grid; gap: 6px; margin: 0; font-size: 0.95rem; }
.hours dl > div { display: flex; justify-content: space-between; gap: 16px; }
.hours dt { color: rgba(255, 255, 255, 0.85); }
.hours dd { margin: 0; font-weight: 600; text-align: right; }

.quote__form { padding: clamp(22px, 3.5vw, 36px); }
.quote form { display: grid; gap: 20px; }

.field, .field-group { display: grid; gap: 8px; min-width: 0; }
.field-group { margin: 0; padding: 0; border: 0; }
.field > label,
.field-group > legend { padding: 0; font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--faint); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--text);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: var(--faint); }
.input:hover { border-color: rgba(255, 122, 92, 0.5); }
.input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255, 92, 58, 0.25); }
.input[aria-invalid="true"] { border-color: #ff6b6b; }
textarea.input { resize: vertical; min-height: 130px; }
select.input {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a7a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}
select.input option { background: #1a0a10; color: var(--text); }

.field-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.counter { margin-left: auto; font-size: 0.82rem; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.field-error { color: #ff9a9a; font-size: 0.88rem; }
.form-note { text-align: center; font-size: 0.85rem; color: var(--faint); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__body {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    font-size: 0.93rem;
    font-weight: 500;
    line-height: 1.3;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.choice__body .icon { color: var(--ember-hi); }
.choice:hover .choice__body { border-color: rgba(255, 122, 92, 0.55); }
.choice input:checked + .choice__body {
    border-color: rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, var(--crimson), var(--crimson-hi));
    color: #fff;
}
.choice input:checked + .choice__body .icon { color: #fff; }
.choice input:focus-visible + .choice__body { outline: 2px solid var(--ember); outline-offset: 3px; }

.checks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ember); cursor: pointer; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 16px; border-radius: 14px; font-size: 0.95rem; }
.alert--error { border: 1px solid rgba(255, 107, 107, 0.5); background: rgba(255, 107, 107, 0.1); color: #ffd0d0; }

.success { display: grid; gap: 14px; justify-items: start; padding: clamp(12px, 3vw, 24px) 0; }
.success:focus { outline: none; }
.success__icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--ember);
    color: var(--on-ember);
}
.success__icon .icon { width: 26px; height: 26px; stroke-width: 2.4; }
.success p { color: var(--muted); max-width: 46ch; }
.success strong { color: var(--text); }

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

.site-footer { margin-top: clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding-block: clamp(36px, 5vw, 56px);
}
.footer__brand { display: grid; gap: 14px; align-content: start; }
.footer__brand p { color: var(--muted); max-width: 34ch; }
.footer__col h2 { margin-bottom: 14px; font-size: 1rem; letter-spacing: 0; }
.footer__col ul { display: grid; gap: 10px; color: var(--muted); font-size: 0.95rem; }
.footer__col a { color: var(--muted); text-decoration: none; }
.footer__col a:hover { color: var(--text); text-decoration: underline; }
.footer__base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 20px;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-size: 0.88rem;
}
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.to-top:hover { color: var(--text); }
.to-top .icon { width: 16px; height: 16px; }

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

@media (max-width: 1100px) {
    .builds,
    .steps { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

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

    .site-header__cta { display: none; }
    .nav-toggle { display: grid; }

    .nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        display: none;
        margin: 0;
        padding: 12px var(--gutter) 20px;
        border-bottom: 1px solid var(--line);
        background: rgba(16, 5, 10, 0.97);
    }
    .nav.is-open { display: block; }
    .nav__list { flex-direction: column; }
    .nav__list a { padding: 14px 16px; }
    .nav__cta-mobile { display: inline-flex; width: 100%; margin-top: 12px; }

    .hero__grid,
    .services,
    .about,
    .faq,
    .quote { grid-template-columns: 1fr; }

    .hero__copy h1 { max-width: 18ch; }
    .services__intro { gap: 20px; }
}

@media (max-width: 720px) {
    .lightbox__inner { grid-template-columns: 1fr; }
    .lightbox__art { min-height: 0; }
    .lightbox__controls { top: 10px; right: 10px; }
    .grid-2 { grid-template-columns: 1fr; }
    .gallery-head .seg { width: 100%; }
    .gallery-head .seg__btn { flex: 1 1 auto; }
}

@media (max-width: 560px) {
    .builds,
    .steps,
    .stats { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .profile__head .seg { width: 100%; }
    .profile__head .seg__btn { flex: 1 1 auto; padding-inline: 8px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .row { gap: 10px; }
    .service-list,
    .faq__list { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
    .tile:hover { transform: none; }
}
