:root {
    --brand-red: #cc1616;
    --brand-red-2: #e82d2d;
    --ink: #191919;
    --ink-2: #2f3135;
    --text: #444444;
    --muted: #737780;
    --line: #e7e7e7;
    --paper: #ffffff;
    --soft: #f6f6f6;
    --soft-red: #fff1f1;
    --blue: #244e8f;
    --radius: 2px;
    --shadow: 0 8px 28px rgba(25, 25, 25, 0.08);
    --font-body: "Plus Jakarta Sans", "Segoe UI Variable", "Segoe UI", sans-serif;
    --font-display: "Outfit", "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --section-y: clamp(40px, 5vw, 64px);
    --section-x: clamp(20px, 5vw, 82px);
    --section-y-tight: clamp(28px, 3.5vw, 44px);
    --section-y-closer: clamp(12px, 1.8vw, 24px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 15.75px;
    line-height: 1.66;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

/* Safety: constrain inline SVG icons globally */
svg:not(:root) {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 74px;
    padding: 0 clamp(20px, 5vw, 82px);
    background: rgba(25, 25, 25, 0.96);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(14px);
}

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

.site-nav {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 74px;
    padding: 0 18px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0;
}

.site-nav a.active,
.site-nav a:hover {
    background: var(--brand-red);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-left: 16px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-cta:hover {
    border-color: var(--brand-red);
    background: var(--brand-red);
}

#nav-toggle,
.nav-toggle-button {
    display: none;
}

.hero-section {
    position: relative;
    display: grid;
    align-items: end;
    min-height: calc(100vh - 74px);
    padding: clamp(70px, 9vw, 122px) clamp(20px, 5vw, 82px);
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.36) 100%),
        url("images/hero-slide.webp") center / cover no-repeat;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: var(--brand-red);
}

.home-hero,
.home-hero-photo {
    display: grid;
    grid-template-columns: 1fr;
    align-items: end;
    min-height: min(92vh, 820px);
    overflow: hidden;
    padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 82px);
    background: #111111;
}

.home-hero-photo .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero-photo .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.home-hero-photo .hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.62) 46%, rgba(10, 10, 10, 0.28) 100%),
        linear-gradient(0deg, rgba(10, 10, 10, 0.45) 0%, transparent 42%);
    pointer-events: none;
}

.home-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.brand-mark {
    margin: 0 0 18px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3.2vw, 2.55rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.home-hero h1 {
    max-width: 760px;
    font-size: clamp(2rem, 3.4vw, 3.35rem);
    font-weight: 600;
}

.home-hero .hero-copy {
    max-width: 620px;
    margin-top: 18px;
    font-size: clamp(0.98rem, 1.15vw, 1.08rem);
}

.home-hero .hero-actions {
    margin-top: 28px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 790px;
}

.credibility-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.credibility-bar span {
    padding: 22px clamp(16px, 2.5vw, 28px);
    border-right: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
}

.credibility-bar span:last-child {
    border-right: 0;
}

.platforms-section {
    background:
        linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
}

.platforms-intro {
    max-width: 780px;
    margin-bottom: clamp(20px, 3vw, 28px);
}

.platforms-section .section-lead {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.platforms-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.platform-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    min-height: 100%;
    padding: 26px;
    border: 1px solid var(--line);
    background:
        linear-gradient(160deg, rgba(204, 22, 22, 0.035), transparent 40%),
        #ffffff;
    transition: border-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
    border-color: rgba(204, 22, 22, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(25, 25, 25, 0.08);
}

.platform-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(204, 22, 22, 0.25);
    background: #fff;
    color: var(--brand-red);
}

.platform-icon svg {
    width: 22px;
    height: 22px;
}

.platform-card-body {
    display: grid;
    gap: 10px;
    align-content: start;
}

.platform-card strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.18rem;
}

.platform-stack {
    color: var(--brand-red);
    font-size: 0.82rem;
    font-weight: 600;
}

.platform-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.platform-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.platform-techs li {
    padding: 7px 10px;
    border: 1px solid var(--line);
    background: var(--soft);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.platform-foot {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.platforms-row,
.platforms-grid {
    display: none;
}

.governance-block {
    display: grid;
    gap: 22px;
}

.governance-block h3 {
    max-width: 640px;
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}

.governance-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.governance-card {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 100%;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(165deg, rgba(204, 22, 22, 0.18), transparent 46%),
        var(--ink);
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.governance-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.governance-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #ff6a6a;
}

.governance-icon svg {
    width: 20px;
    height: 20px;
}

.governance-card strong {
    font-family: var(--font-display);
    font-size: 1.12rem;
}

.governance-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
    line-height: 1.55;
}

.governance-tag {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.governance-strip {
    display: none;
}

.home-method-governance {
    display: grid;
    gap: clamp(24px, 3.5vw, 36px);
    background:
        linear-gradient(180deg, #f3f3f3 0%, #fafafa 48%, #ffffff 100%);
}

.method-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 40px;
}

.method-intro .method-copy {
    max-width: 760px;
}

.text-link {
    color: var(--brand-red);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.text-link:hover {
    color: var(--brand-red-2);
}

.method-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: clamp(28px, 4vw, 36px);
    list-style: none;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(204, 22, 22, 0.04), transparent 42%),
        #ffffff;
}

.method-track::before {
    content: "";
    position: absolute;
    top: calc(clamp(28px, 4vw, 36px) + 28px);
    left: calc(clamp(28px, 4vw, 36px) + 28px);
    right: calc(clamp(28px, 4vw, 36px) + 28px);
    height: 2px;
    background: linear-gradient(90deg, var(--brand-red), #d8d8d8 35%, #d8d8d8 65%, var(--brand-red));
    pointer-events: none;
}

.method-phase {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 100%;
    padding: 0 4px 0 0;
}

.method-phase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.method-node {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(204, 22, 22, 0.28);
    background: #ffffff;
    color: var(--brand-red);
    box-shadow: 0 10px 28px rgba(25, 25, 25, 0.06);
}

.method-node svg {
    width: 22px;
    height: 22px;
}

.method-step-num {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.method-phase strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.method-phase > p {
    margin: 0;
    min-height: 4.6em;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.method-outcome {
    display: grid;
    gap: 4px;
    margin-top: auto;
    padding: 14px 14px 15px;
    border-top: 2px solid var(--brand-red);
    background: var(--ink);
    color: #ffffff;
}

.method-outcome span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.method-outcome em {
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.method-steps {
    display: none;
}


.eyebrow {
    margin: 0 0 14px;
    color: var(--brand-red);
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-section .eyebrow {
    color: #ff6a6a;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: 0;
}

.hero-section h1 {
    color: #ffffff;
}

h1 {
    max-width: 900px;
    font-size: clamp(2.32rem, 4.15vw, 4.25rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.58rem, 2.35vw, 2.48rem);
    font-weight: 700;
}

h3 {
    font-size: 1.08rem;
    font-weight: 700;
}

p,
li,
input,
select,
textarea {
    font-weight: 400;
}

.hero-copy {
    max-width: 700px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.35vw, 1.14rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.hero-capabilities span {
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.primary-action {
    border: 2px solid var(--brand-red);
    color: #ffffff;
    background: var(--brand-red);
}

.primary-action:hover {
    border-color: var(--brand-red-2);
    background: var(--brand-red-2);
}

.secondary-action {
    border: 2px solid rgba(255, 255, 255, 0.78);
    color: #ffffff;
    background: transparent;
}

.secondary-action:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.hero-visual {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-top: 4px solid var(--brand-red);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.92)),
        linear-gradient(90deg, rgba(204, 22, 22, 0.08), transparent 44%);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -96px;
    top: -96px;
    border: 32px solid rgba(204, 22, 22, 0.07);
    border-radius: 50%;
}

.brief-header,
.brief-main,
.brief-steps,
.insight-strip {
    position: relative;
    z-index: 1;
}

.brief-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.brief-header span,
.brief-label {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.brief-header strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.98rem;
    text-transform: uppercase;
}

.brief-badge {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid #f0b4b4;
    color: var(--brand-red) !important;
    background: #fff7f7;
}

.brief-main {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
}

.brief-main h2 {
    margin-top: 7px;
    color: var(--ink);
    font-size: clamp(1.28rem, 2vw, 1.68rem);
    text-transform: none;
}

.brief-main p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.readiness-ring {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
        conic-gradient(var(--brand-red) 0 72%, #ececec 72% 100%);
    box-shadow: inset 0 0 0 1px rgba(25, 25, 25, 0.05);
}

.readiness-ring strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.72rem;
    line-height: 1;
}

.readiness-ring span {
    margin-top: -20px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.brief-steps {
    display: grid;
    gap: 9px;
}

.brief-step {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 70px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
}

.brief-step span {
    color: var(--brand-red);
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
}

.brief-step strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.2;
}

.brief-step small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.brief-step.active {
    border-color: var(--ink);
    background: var(--ink);
}

.brief-step.active strong {
    color: #ffffff;
}

.brief-step.active small {
    color: rgba(255, 255, 255, 0.68);
}

.brief-step.active span {
    color: #ff6a6a;
}

.brief-step.highlight {
    border-color: #efb2b2;
    background: #fff2f2;
}

.insight-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 16px 18px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-red), #a90f0f);
}

.insight-strip span {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
}

.insight-strip strong {
    max-width: 260px;
    font-family: var(--font-display);
    line-height: 1.25;
    text-align: right;
}

.modernization-dashboard {
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-top: 4px solid var(--brand-red);
    background: rgba(255, 255, 255, 0.96);
}

.modernization-dashboard::before {
    display: none;
}

.dashboard-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid var(--line);
}

.dashboard-header span,
.dashboard-score span,
.dashboard-flow span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
}

.dashboard-header strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.02rem;
}

.dashboard-status {
    flex: 0 0 auto;
    padding: 7px 10px;
    color: var(--brand-red) !important;
    background: var(--soft-red);
}

.dashboard-score {
    display: grid;
    grid-template-columns: 1fr 92px;
    gap: 18px;
    align-items: center;
    padding: 24px;
}

.dashboard-score strong {
    display: block;
    margin-top: 7px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.34rem;
    line-height: 1.2;
}

.score-pill {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border: 1px solid #efb4b4;
    background: #fff7f7;
}

.score-pill strong {
    margin: 0;
    color: var(--brand-red);
    font-size: 1.9rem;
    line-height: 1;
}

.score-pill span {
    color: var(--muted);
    font-size: 0.68rem;
}

.dashboard-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.dashboard-flow div {
    min-height: 96px;
    padding: 16px 14px;
    border-right: 1px solid var(--line);
    background: #ffffff;
}

.dashboard-flow div:last-child {
    border-right: 0;
}

.dashboard-flow div.active {
    color: #ffffff;
    background: var(--ink);
}

.dashboard-flow div.active span {
    color: rgba(255, 255, 255, 0.62);
}

.dashboard-flow strong {
    display: block;
    margin-top: 18px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.92rem;
}

.dashboard-flow div.active strong {
    color: #ffffff;
}

.dashboard-list {
    display: grid;
    gap: 1px;
    padding: 18px 24px 24px;
    background: #f0f0f0;
}

.dashboard-list div {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    background: #ffffff;
}

.dashboard-list span {
    width: 8px;
    height: 8px;
    background: var(--brand-red);
}

.dashboard-list p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.dashboard-list strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.9rem;
}

.trust-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.trust-band div {
    padding: 28px clamp(20px, 5vw, 82px);
    border-right: 1px solid var(--line);
}

.trust-band div:last-child {
    border-right: 0;
}

.trust-band span,
.signal-grid span,
.method-list span,
.newsletter-form span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.trust-band strong {
    display: block;
    margin-top: 5px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.home-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.home-metrics div {
    padding: 28px clamp(20px, 5vw, 82px);
    border-right: 1px solid var(--line);
}

.home-metrics div:last-child {
    border-right: 0;
}

.home-metrics span {
    display: block;
    color: var(--brand-red);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.home-metrics strong {
    display: block;
    margin-top: 7px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.35;
}

.section,
.page-hero {
    padding: var(--section-y) var(--section-x);
}

.page-hero.compact {
    padding-top: var(--section-y-tight);
    padding-bottom: var(--section-y-tight);
}

/* Tighten stack: services → how we work → how we deliver → intake */
.section.home-services {
    padding-bottom: var(--section-y-closer);
}

.section.home-method-governance {
    padding-top: var(--section-y-closer);
    padding-bottom: var(--section-y-closer);
}

.section.platforms-section {
    padding-top: var(--section-y-closer);
    padding-bottom: var(--section-y-closer);
}

.intake-shell {
    padding-top: var(--section-y-closer);
}

.page-hero {
    background: linear-gradient(90deg, #191919 0%, #2a2a2a 100%);
    color: #ffffff;
}

.page-hero h1,
.page-hero p:not(.eyebrow) {
    max-width: 920px;
    color: #ffffff;
}

.page-hero p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.04rem;
}

.services-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.66)),
        url("images/cta-bg.webp") center / cover no-repeat;
}

.services-focus {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.services-focus div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: center;
    padding: 28px clamp(20px, 5vw, 82px);
    border-right: 1px solid var(--line);
}

.services-focus div:last-child {
    border-right: 0;
}

.services-focus span {
    color: var(--brand-red);
    font-family: var(--font-display);
    font-weight: 700;
}

.services-focus strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.98rem;
    line-height: 1.35;
}

.services-overview {
    background: var(--soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-panel {
    display: grid;
    align-content: start;
    min-height: 390px;
    padding: 28px;
    border: 1px solid var(--line);
    border-top: 2px solid var(--ink);
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.service-panel:hover {
    transform: none;
    border-top-color: var(--brand-red);
    box-shadow: none;
}

.service-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.service-panel-head span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: var(--brand-red);
    font-family: var(--font-display);
    font-weight: 700;
}

.service-panel-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.service-panel h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.service-panel > p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 0.94rem;
}

.service-panel ul {
    display: grid;
    gap: 9px;
    margin: auto 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.service-panel li {
    position: relative;
    padding-left: 18px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
}

.service-panel li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 8px;
    height: 2px;
    background: var(--brand-red);
}

.service-packages {
    display: grid;
    grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
    gap: clamp(34px, 6vw, 84px);
    align-items: start;
}

.package-grid {
    display: grid;
    gap: 16px;
}

.package-grid article {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 22px;
    padding: 24px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.package-grid span {
    color: var(--brand-red);
    font-family: var(--font-display);
    font-weight: 700;
}

.package-grid h3 {
    margin-bottom: 7px;
    font-size: 1.06rem;
}

.package-grid p {
    grid-column: 2;
    margin: -8px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.services-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0 var(--section-x) var(--section-y);
    padding: clamp(28px, 4vw, 40px);
    border-top: 4px solid var(--brand-red);
    background: var(--ink);
    color: #ffffff;
}

.services-cta h2 {
    color: #ffffff;
}

.services-cta p:not(.eyebrow) {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.74);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
    gap: clamp(34px, 6vw, 84px);
    align-items: center;
}

.section p {
    color: var(--muted);
}

.home-intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(380px, 0.82fr);
    gap: clamp(34px, 6vw, 86px);
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, #ffffff 0%, #ffffff 58%, #f5f5f5 58%, #f5f5f5 100%);
}

.home-intro p {
    margin-top: 0;
    font-size: 1rem;
}

.intro-story {
    max-width: 820px;
}

.intro-story h2 {
    max-width: 760px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
}

.intro-lead {
    max-width: 690px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.15vw, 1.08rem) !important;
    line-height: 1.78;
}

.intro-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 720px;
    margin-top: 30px;
}

.intro-proof-grid div {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand-red);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(25, 25, 25, 0.05);
}

.intro-proof-grid strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.98rem;
}

.intro-proof-grid span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.intro-panel {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(25, 25, 25, 0.1);
    border-top: 4px solid var(--brand-red);
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(25, 25, 25, 0.1);
}

.intro-panel::before {
    content: "";
    position: absolute;
    inset: 18px 18px auto auto;
    width: 72px;
    height: 72px;
    border-top: 2px solid rgba(204, 22, 22, 0.22);
    border-right: 2px solid rgba(204, 22, 22, 0.22);
}

.intro-panel-head {
    max-width: 560px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.intro-panel-head span,
.intro-panel-foot span {
    display: block;
    color: var(--brand-red);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intro-panel-head strong {
    display: block;
    max-width: 520px;
    margin-top: 8px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.24rem, 1.7vw, 1.65rem);
    line-height: 1.18;
}

.intro-points {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.intro-points span {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 66px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: #fbfbfb;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.35;
}

.intro-points span strong {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--brand-red);
    background: var(--soft-red);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
}

.intro-panel-foot {
    margin-top: 22px;
    padding: 18px 20px;
    color: #ffffff;
    background: var(--ink);
}

.intro-panel-foot strong {
    display: block;
    margin-top: 6px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.98rem;
    line-height: 1.35;
}

.image-panel {
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--brand-red);
    box-shadow: var(--shadow);
}

.image-panel img {
    width: 100%;
    min-height: 380px;
    object-fit: cover;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 26px;
    margin-bottom: 38px;
}

.section-heading h2 {
    max-width: 880px;
}

.section-heading a {
    color: var(--brand-red);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    position: relative;
    min-height: 310px;
    padding: 34px 28px;
    border: 1px solid var(--line);
    border-top: 4px solid transparent;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(25, 25, 25, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-top-color: var(--brand-red);
    box-shadow: 0 20px 55px rgba(25, 25, 25, 0.13);
}

.service-icon,
.service-detail-list article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    color: #ffffff;
    background: var(--brand-red);
    font-family: var(--font-display);
    font-weight: 700;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.28;
}

.service-card p {
    margin: 0 0 18px;
}

.service-card ul,
.service-detail-list ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink);
}

.service-card li,
.service-detail-list li {
    margin: 5px 0;
}

.home-services {
    background: var(--soft);
}

.home-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-service-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) minmax(180px, 0.5fr);
    gap: 22px;
    align-items: start;
    padding: 26px;
    border: 1px solid var(--line);
    border-top: 2px solid var(--ink);
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.home-service-card:hover {
    transform: none;
    border-top-color: var(--brand-red);
    box-shadow: none;
}

.home-service-card > span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #ffffff;
    background: var(--brand-red);
    font-family: var(--font-display);
    font-weight: 700;
}

.home-service-card h3 {
    margin-bottom: 8px;
    font-size: 1.06rem;
}

.home-service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.home-service-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-service-card li {
    position: relative;
    padding-left: 17px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 500;
}

.home-service-card li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 7px;
    height: 2px;
    background: var(--brand-red);
}

.dark-section {
    color: #ffffff;
    background:
        linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.78)),
        url("images/cta-bg.webp") center / cover no-repeat;
}

.dark-section h2,
.dark-section h3 {
    color: #ffffff;
}

.dark-section .eyebrow {
    color: #ff6a6a;
}

.dark-section p {
    color: rgba(255, 255, 255, 0.76);
}

.home-outcomes {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(34px, 6vw, 84px);
    color: #ffffff;
    background:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url("images/cta-bg.webp") center / cover no-repeat;
}

.home-outcomes h2,
.home-outcomes h3 {
    color: #ffffff;
}

.home-outcomes p {
    color: rgba(255, 255, 255, 0.74);
}

.home-outcomes .eyebrow {
    color: #ff6a6a;
}

.outcome-grid {
    display: grid;
    gap: 16px;
}

.outcome-grid article {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(25, 25, 25, 0.62);
}

.outcome-grid span {
    color: #ff6a6a;
    font-family: var(--font-display);
    font-weight: 700;
}

.outcome-grid h3 {
    margin-bottom: 7px;
    font-size: 1.02rem;
}

.outcome-grid p {
    grid-column: 2;
    margin: -6px 0 0;
    font-size: 0.92rem;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.path-grid div {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(25, 25, 25, 0.68);
}

.path-grid span,
.timeline span {
    color: var(--brand-red-2);
    font-family: var(--font-display);
    font-weight: 700;
}

.process-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.68)),
        url("images/cta-bg.webp") center / cover no-repeat;
}

.process-summary {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
    gap: clamp(30px, 6vw, 84px);
    align-items: end;
    padding-bottom: 36px;
}

.process-summary p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.process-timeline {
    position: relative;
    display: grid;
    gap: 24px;
    padding-top: 34px;
}

.process-timeline::before {
    content: "";
    position: absolute;
    top: 34px;
    bottom: 34px;
    left: calc(clamp(20px, 5vw, 82px) + 42px);
    width: 1px;
    background: var(--line);
}

.process-timeline article {
    position: relative;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
}

.process-number {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border: 1px solid #f0b0b0;
    border-top: 4px solid var(--brand-red);
    color: var(--brand-red);
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(25, 25, 25, 0.08);
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
}

.process-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
    gap: clamp(22px, 4vw, 52px);
    align-items: start;
    min-height: 210px;
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand-red);
    background: #ffffff;
    box-shadow: none;
}

.process-card span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--brand-red);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.process-card h2 {
    font-size: clamp(1.45rem, 2.2vw, 2.2rem);
}

.process-card p {
    max-width: 740px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.process-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-card li {
    position: relative;
    padding-left: 20px;
    color: var(--ink);
    font-weight: 500;
}

.process-card li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 8px;
    height: 2px;
    background: var(--brand-red);
}

.process-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0 var(--section-x) var(--section-y);
    padding: clamp(28px, 4vw, 40px);
    border-top: 4px solid var(--brand-red);
    background: var(--ink);
    color: #ffffff;
}

.process-cta h2 {
    color: #ffffff;
}

.process-cta p:not(.eyebrow) {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.74);
}

.about-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.62)),
        url("images/hero-slide.webp") center / cover no-repeat;
}

.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.9fr);
    gap: clamp(34px, 6vw, 88px);
    align-items: start;
}

.about-intro p:not(.eyebrow) {
    margin-top: 0;
    color: var(--muted);
    font-size: 1rem;
}

.about-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-top: 24px;
}

.about-proof article {
    min-height: 310px;
    padding: 32px 28px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand-red);
    background: #ffffff;
    box-shadow: 0 12px 38px rgba(25, 25, 25, 0.07);
}

.about-proof span,
.value-grid article span {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--brand-red);
    font-family: var(--font-display);
    font-weight: 700;
}

.about-proof h2 {
    font-size: clamp(1.28rem, 1.9vw, 1.72rem);
}

.about-proof p,
.value-grid p {
    color: var(--muted);
}

.about-split {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(34px, 6vw, 84px);
    align-items: center;
    background: var(--soft);
}

.about-service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.about-service-list span {
    padding: 14px 16px;
    border-left: 3px solid var(--brand-red);
    background: #ffffff;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
}

.about-values {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(34px, 6vw, 84px);
    align-items: start;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.value-grid article {
    min-height: 210px;
    padding: 26px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.value-grid h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.value-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.value-list article {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.value-list span {
    color: var(--brand-red);
    font-family: var(--font-display);
    font-weight: 700;
}

.value-list h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.value-list p {
    margin: 0;
    color: var(--muted);
}

.footer-location {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.about-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0 var(--section-x) var(--section-y);
    padding: clamp(28px, 4vw, 40px);
    border-top: 4px solid var(--brand-red);
    background: var(--ink);
    color: #ffffff;
}

.about-cta h2 {
    color: #ffffff;
}

.about-cta p:not(.eyebrow) {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.74);
}

.method-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.method-list div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 22px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.method-list strong {
    color: var(--ink);
    font-family: var(--font-display);
}

.home-method {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vw, 42px);
    align-items: start;
}

.home-method-governance .method-list {
    max-width: none;
}

.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: var(--section-y) var(--section-x) clamp(48px, 6vw, 72px);
}

.legal-page h1 {
    margin-bottom: 18px;
}

.legal-page p {
    color: var(--muted);
    margin: 0 0 16px;
}

.legal-page ul {
    margin: 0 0 20px;
    padding-left: 20px;
    color: var(--muted);
}

.home-method p {
    max-width: 660px;
}

.intake-shell {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(340px, 1.18fr);
    gap: 24px;
    padding: var(--section-y-closer) var(--section-x) var(--section-y);
    background: var(--soft);
}

.intake-panel,
.contact-form,
.newsletter-form,
.cta-band {
    background: #ffffff;
    box-shadow: 0 0 30px rgba(214, 215, 216, 0.52);
}

.intake-panel,
.contact-form {
    padding: clamp(26px, 4vw, 42px);
    border-top: 4px solid var(--brand-red);
}

.readiness-meter {
    margin-top: 28px;
    padding: 20px;
    background: #f9f9f9;
}

.readiness-meter > div:first-child,
.slider-field > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.readiness-meter strong {
    color: var(--brand-red);
    font-size: 1.55rem;
}

.readiness-note {
    margin: 14px 0 0;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.5;
}

.field-hint {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.45;
}

.readiness-meter .field-hint {
    margin-top: 8px;
}

label .field-hint {
    margin-top: -2px;
}

.assess-field {
    display: grid;
    gap: 8px;
}

.meter-track {
    height: 8px;
    margin-top: 14px;
    overflow: hidden;
    background: #ececec;
}

.meter-track span {
    display: block;
    height: 100%;
    background: var(--brand-red);
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.signal-grid div {
    padding: 18px;
    background: var(--ink);
    color: #ffffff;
}

.signal-grid strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.signal-grid span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.signal-grid p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    line-height: 1.45;
}

.contact-form,
.newsletter-form {
    display: grid;
    gap: 16px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d5d5d5;
    border-radius: 0;
    background: #ffffff;
    color: var(--ink);
}

input,
select {
    min-height: 46px;
    padding: 0 13px;
}

textarea {
    min-height: 140px;
    padding: 12px 13px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(204, 22, 22, 0.16);
    border-color: var(--brand-red);
}

.slider-field {
    display: grid;
    gap: 8px;
}

.slider-field input[type="number"] {
    display: none;
}

.slider-field input[type="range"] {
    accent-color: var(--brand-red);
    padding: 0;
}

.validation-message,
.form-status.error {
    color: #a10f0f;
}

.form-status.success {
    color: #187143;
}

.newsletter-form {
    margin: 0 var(--section-x) var(--section-y);
    padding: 26px;
    grid-template-columns: 1fr minmax(280px, 430px);
    align-items: center;
    border-top: 4px solid var(--ink);
}

.newsletter-form div {
    display: flex;
    gap: 8px;
}

.newsletter-form button {
    min-width: 92px;
    min-height: 46px;
    border: 0;
    color: #ffffff;
    background: var(--brand-red);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) minmax(150px, 0.72fr) minmax(130px, 0.55fr) minmax(260px, 0.95fr);
    gap: clamp(28px, 4vw, 56px);
    padding: 64px clamp(20px, 5vw, 82px) 28px;
    color: rgba(255, 255, 255, 0.74);
    background:
        linear-gradient(135deg, rgba(204, 22, 22, 0.16), transparent 28%),
        #0c0c0c;
}

.site-footer img {
    width: 172px;
    margin-bottom: 22px;
}

.site-footer h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 600;
    text-transform: uppercase;
}

.site-footer p {
    margin: 0;
    max-width: 430px;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-brand {
    display: grid;
    align-content: start;
    gap: 16px;
}

.footer-email {
    display: inline-flex;
    width: fit-content;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-cta {
    padding: 24px;
    border-top: 4px solid var(--brand-red);
    background: rgba(255, 255, 255, 0.06);
}

.footer-cta h2 {
    margin-bottom: 12px;
    font-size: 1.28rem;
    line-height: 1.25;
    text-transform: none;
}

.footer-cta p {
    margin-bottom: 20px;
}

.footer-cta .primary-action {
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.78rem;
}

.footer-bottom {
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.88rem;
}

.service-detail-list {
    display: grid;
    gap: 0;
}

.service-detail-list article,
.timeline article {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 24px;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}

.service-detail-list h2,
.timeline h2 {
    font-size: clamp(1.34rem, 2.1vw, 2rem);
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(28px, 5vw, 46px);
    border-top: 4px solid var(--brand-red);
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    max-width: 420px;
    padding: 16px;
    color: #ffffff;
    background: var(--brand-red);
}

#blazor-error-ui .dismiss {
    margin-left: 12px;
    cursor: pointer;
}

@media (max-width: 1040px) {
    .site-header {
        grid-template-columns: auto auto;
        justify-content: space-between;
        min-height: 70px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .nav-toggle-button {
        display: grid;
        gap: 5px;
        width: 44px;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.45);
    }

    .nav-toggle-button span {
        height: 2px;
        background: #ffffff;
    }

    .site-nav,
    .nav-cta {
        display: none;
    }

    #nav-toggle:checked ~ .site-nav {
        display: grid;
        grid-column: 1 / -1;
        justify-content: stretch;
        margin-top: 12px;
    }

    #nav-toggle:checked ~ .site-nav a {
        min-height: 44px;
        padding: 0 12px;
    }

    #nav-toggle:checked ~ .site-nav a::after {
        display: none;
    }

    #nav-toggle:checked ~ .site-nav a.active {
        box-shadow: inset 3px 0 0 var(--brand-red);
    }

    #nav-toggle:checked ~ .nav-cta {
        display: inline-flex;
        grid-column: 1 / -1;
        width: 100%;
        margin: 8px 0 0;
    }

    .hero-section,
    .home-hero,
    .home-intro,
    .home-outcomes,
    .home-method,
    .split-section,
    .process-summary,
    .about-intro,
    .about-split,
    .about-values,
    .intake-shell,
    .credibility-bar,
    .governance-panel {
        grid-template-columns: 1fr;
    }

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

    .hero-section {
        min-height: auto;
    }

    .home-hero {
        min-height: min(78vh, 640px);
        padding-top: 52px;
        padding-bottom: 64px;
    }

    .credibility-bar span {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .credibility-bar span:last-child {
        border-bottom: 0;
    }

    .method-track {
        grid-template-columns: 1fr 1fr;
        gap: 22px 18px;
    }

    .method-track::before {
        display: none;
    }

    .method-phase > p {
        min-height: 0;
    }

    .home-hero .modernization-dashboard {
        display: none;
    }

    .service-grid,
    .home-service-grid,
    .services-grid,
    .services-focus,
    .path-grid,
    .home-metrics,
    .intro-proof-grid,
    .about-proof,
    .trust-band {
        grid-template-columns: 1fr;
    }

    .home-intro {
        background: #ffffff;
    }

    .trust-band div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-band div:last-child {
        border-bottom: 0;
    }

    .section-heading,
    .cta-band,
    .services-cta,
    .service-packages,
    .process-cta,
    .about-cta,
    .newsletter-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .process-timeline::before {
        left: calc(clamp(20px, 5vw, 82px) + 32px);
    }

    .process-timeline article {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 18px;
    }

    .process-number {
        width: 66px;
        height: 66px;
    }

    .process-card {
        grid-template-columns: 1fr;
    }

    .package-grid article {
        grid-template-columns: 76px 1fr;
    }

    .home-service-card {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .home-service-card ul {
        grid-column: 2;
    }

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

@media (max-width: 640px) {
    h1 {
        font-size: 2.18rem;
    }

    h2 {
        font-size: 1.64rem;
    }

    .brand-mark {
        font-size: 1.45rem;
    }

    .hero-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .home-hero {
        min-height: min(72vh, 560px);
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .home-hero-photo .hero-media img {
        object-position: 68% center;
    }

    .nav-cta {
        font-size: 0.72rem;
        padding: 0 14px;
    }

    .platforms-row li {
        width: 100%;
    }

    .method-track {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .method-phase-top {
        margin-bottom: 2px;
    }

    .platforms-panel {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .field-grid,
    .dashboard-score,
    .dashboard-list div,
    .intro-points span,
    .home-service-card,
    .package-grid article,
    .outcome-grid article,
    .signal-grid,
    .newsletter-form div,
    .about-service-list,
    .value-grid,
    .service-detail-list article,
    .timeline article,
    .process-timeline article,
    .method-list div {
        display: grid;
        grid-template-columns: 1fr;
    }

    .process-timeline::before {
        display: none;
    }

    .process-number {
        width: 54px;
        height: 54px;
    }

    .process-card {
        padding: 24px 20px;
    }

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

    .footer-bottom {
        display: grid;
    }

    .primary-action,
    .secondary-action {
        width: 100%;
    }

    .home-service-card ul,
    .package-grid p,
    .outcome-grid p {
        grid-column: auto;
    }

    .dashboard-flow {
        grid-template-columns: 1fr;
    }

    .score-pill {
        width: 80px;
        height: 80px;
    }
}

/* Customer portal remember-me (global to beat Bootstrap / shared input rules) */
.portal-login-form .portal-remember {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    white-space: nowrap;
    cursor: pointer;
}

.portal-login-form .portal-remember-input {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    max-width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.portal-login-form .portal-remember-box {
    box-sizing: border-box;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1.5px solid #bdbdbd;
    background: #fff;
    display: inline-grid;
    place-items: center;
}

.portal-login-form .portal-remember-box::after {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    background: #fff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.portal-login-form .portal-remember-input:checked + .portal-remember-box {
    border-color: #cc1616;
    background: #cc1616;
}

.portal-login-form .portal-remember-input:checked + .portal-remember-box::after {
    transform: scale(1);
}

.portal-login-form .portal-remember-text {
    white-space: nowrap;
    line-height: 1.2;
}


