/* ========================================================================== 
   ARMAND DIGITAL — REFONTE DE SITE WEB
   Diagnostic editorial, selective reconstruction and migration safety.
   ========================================================================== */

.page-refonte {
    --refonte-space: clamp(84px, 8vw, 144px);
    --refonte-gap: clamp(52px, 6vw, 96px);
    background: var(--paper);
    color: var(--ink);
}

.page-refonte main {
    overflow: clip;
}

.refonte-diagnostic,
.refonte-triage,
.refonte-proof,
.refonte-method,
.refonte-migration,
.refonte-scope,
.refonte-budget,
.refonte-faq,
.refonte-next {
    padding-inline: var(--page-gutter);
}

.refonte-index,
.refonte-kicker {
    margin: 0;
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.67rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.refonte-heading {
    width: min(1600px, 100%);
    margin: 0 auto var(--refonte-gap);
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(520px, 1.45fr);
    column-gap: clamp(48px, 8vw, 150px);
}

.refonte-heading .refonte-index {
    grid-column: 1;
}

.refonte-heading h2,
.refonte-proof__intro h2,
.refonte-method__heading h2,
.migration-heading h2,
.refonte-budget h2,
.refonte-faq h2,
.refonte-next h2 {
    margin: 0;
    font-size: clamp(3.35rem, 6vw, 7.2rem);
    font-weight: 500;
    letter-spacing: -0.067em;
    line-height: 0.9;
}

.refonte-heading h2 {
    grid-column: 2;
}

.refonte-heading h2 span,
.refonte-proof__intro h2 span,
.refonte-method__heading h2 span,
.migration-heading h2 span,
.refonte-budget h2 span,
.refonte-faq h2 span,
.refonte-next h2 span {
    display: block;
    color: rgba(8, 8, 8, 0.38);
}

.refonte-heading > p:last-child {
    grid-column: 2;
    max-width: 680px;
    margin: 34px 0 0;
    color: rgba(8, 8, 8, 0.63);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.65;
}

/* Hero */

.refonte-hero {
    position: relative;
    min-height: 100svh;
    padding: 86px var(--page-gutter) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 58%, rgba(255, 73, 56, 0.105), transparent 27%),
        linear-gradient(115deg, #080808, #0c0c0b 70%, #12110f);
    color: var(--paper);
}

.refonte-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.52;
    background-image:
        linear-gradient(to right, transparent calc(100% - 1px), rgba(255, 255, 255, 0.05) 1px),
        linear-gradient(to bottom, transparent calc(100% - 1px), rgba(255, 255, 255, 0.04) 1px);
    background-size: clamp(120px, 12vw, 220px) 100%, 100% 104px;
    pointer-events: none;
}

.refonte-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1600px, 100%);
    min-height: calc(100svh - 86px);
    margin: auto;
    display: grid;
    grid-template-rows: 76px minmax(0, 1fr) auto 76px;
    border-inline: 1px solid var(--paper-12);
}

.refonte-hero__meta,
.refonte-hero__footer {
    padding-inline: clamp(24px, 3vw, 52px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-block: 1px solid var(--paper-12);
    color: var(--paper-56);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.11em;
}

.refonte-hero__meta nav {
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.refonte-hero__meta a {
    transition: color 220ms var(--ease-out);
}

.refonte-hero__meta a:hover,
.refonte-hero__meta a:focus-visible,
.refonte-hero__meta [aria-current="page"] {
    color: var(--paper);
}

.refonte-hero__body {
    align-self: center;
    padding: clamp(28px, 4vh, 64px) clamp(24px, 5vw, 90px);
}

.refonte-hero h1 {
    max-width: 1400px;
    margin: clamp(18px, 2.4vh, 32px) 0 0;
    font-size: clamp(4rem, min(7.2vw, 15vh), 8.7rem);
    font-weight: 500;
    letter-spacing: -0.075em;
    line-height: 0.85;
}

.refonte-hero h1 span {
    display: block;
    color: var(--paper-40);
}

.refonte-hero__argument {
    max-width: 930px;
    margin: clamp(24px, 4vh, 48px) 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(26px, 4vw, 64px);
}

.refonte-hero__argument p {
    margin: 0;
    color: var(--paper-72);
    font-size: clamp(0.95rem, 1vw, 1.08rem);
    line-height: 1.7;
}

.refonte-hero__actions {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    border-top: 1px solid var(--paper-12);
}

.refonte-action {
    min-height: 86px;
    padding: 0 clamp(24px, 3vw, 50px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 350ms var(--ease-out), color 350ms var(--ease-out);
}

.refonte-action + .refonte-action {
    border-left: 1px solid var(--paper-12);
}

.refonte-action--primary {
    background: var(--signal);
    color: var(--ink);
}

.refonte-action--primary:hover,
.refonte-action--primary:focus-visible {
    background: var(--paper);
}

.refonte-action:not(.refonte-action--primary):hover,
.refonte-action:not(.refonte-action--primary):focus-visible {
    background: var(--paper-08);
}

/* Diagnostic */

.refonte-diagnostic {
    padding-top: var(--refonte-space);
    padding-bottom: var(--refonte-space);
}

.diagnostic-system {
    width: min(1600px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: minmax(390px, 0.82fr) minmax(0, 1.18fr);
    border: 1px solid rgba(8, 8, 8, 0.18);
}

.diagnostic-system__tabs {
    border-right: 1px solid rgba(8, 8, 8, 0.18);
}

.diagnostic-tab {
    width: 100%;
    min-height: 118px;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid rgba(8, 8, 8, 0.16);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background 300ms var(--ease-out), color 300ms var(--ease-out);
}

.diagnostic-tab:last-child {
    border-bottom: 0;
}

.diagnostic-tab > span {
    grid-row: 1 / 3;
    padding-top: 4px;
    color: rgba(8, 8, 8, 0.45);
    font-family: var(--font-mono);
    font-size: 0.64rem;
}

.diagnostic-tab strong {
    font-size: clamp(1.12rem, 1.5vw, 1.55rem);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.diagnostic-tab small {
    margin-top: 8px;
    color: rgba(8, 8, 8, 0.57);
    font-size: 0.82rem;
    line-height: 1.45;
}

.diagnostic-tab:hover,
.diagnostic-tab:focus-visible {
    background: rgba(8, 8, 8, 0.045);
}

.diagnostic-tab.is-active {
    background: var(--ink);
    color: var(--paper);
}

.diagnostic-tab.is-active > span,
.diagnostic-tab.is-active small {
    color: var(--paper-56);
}

.diagnostic-result {
    min-height: 590px;
    padding: clamp(42px, 6vw, 96px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(rgba(8, 8, 8, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 8, 8, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
}

.diagnostic-result.is-changing > * {
    opacity: 0;
    transform: translateY(12px);
}

.diagnostic-result > * {
    transition: opacity 260ms var(--ease-out), transform 350ms var(--ease-out);
}

.diagnostic-result__label {
    margin: 0 0 28px;
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
}

.diagnostic-result h3 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 5.4rem);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.diagnostic-result > p:not(.diagnostic-result__label, .diagnostic-result__decision) {
    max-width: 720px;
    margin: 34px 0 0;
    color: rgba(8, 8, 8, 0.65);
    font-size: clamp(1rem, 1.15vw, 1.18rem);
    line-height: 1.65;
}

.diagnostic-result__checks {
    margin-top: 42px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.diagnostic-result__checks span {
    padding: 9px 12px;
    border: 1px solid rgba(8, 8, 8, 0.2);
    font-family: var(--font-mono);
    font-size: 0.61rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.diagnostic-result__decision {
    margin: 48px 0 0;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    border-top: 1px solid rgba(8, 8, 8, 0.22);
}

.diagnostic-result__decision span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.diagnostic-result__decision strong {
    font-size: 1rem;
    font-weight: 600;
}

/* Triage */

.refonte-triage {
    padding-top: var(--refonte-space);
    padding-bottom: var(--refonte-space);
    background: var(--ink);
    color: var(--paper);
}

.refonte-heading--dark h2 span {
    color: var(--paper-40);
}

.refonte-heading--dark > p:last-child {
    color: var(--paper-56);
}

.triage-grid {
    width: min(1600px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--paper-18);
}

.triage-grid article {
    min-height: 480px;
    padding: clamp(32px, 4vw, 62px);
    display: flex;
    flex-direction: column;
    transition: background 350ms var(--ease-out), color 350ms var(--ease-out);
}

.triage-grid article + article {
    border-left: 1px solid var(--paper-18);
}

.triage-grid article:hover {
    background: var(--paper);
    color: var(--ink);
}

.triage-grid article > span {
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
}

.triage-grid h3 {
    margin: 80px 0 0;
    font-size: clamp(2rem, 3vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.triage-grid p {
    margin: 30px 0 0;
    color: var(--paper-56);
    line-height: 1.65;
}

.triage-grid article:hover p {
    color: rgba(8, 8, 8, 0.62);
}

.triage-grid strong {
    margin-top: auto;
    padding-top: 48px;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Rebuild sequence */

.refonte-proof {
    padding-top: var(--refonte-space);
    padding-bottom: var(--refonte-space);
    background: #0b0b0b;
    color: var(--paper);
}

.refonte-proof__intro {
    width: min(1600px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(520px, 1.45fr);
    column-gap: clamp(48px, 8vw, 150px);
}

.refonte-proof__intro h2,
.refonte-proof__intro > p:last-child {
    grid-column: 2;
}

.refonte-proof__intro h2 span {
    color: var(--paper-40);
}

.refonte-proof__intro > p:last-child {
    max-width: 700px;
    margin: 34px 0 0;
    color: var(--paper-56);
    line-height: 1.65;
}

.refonte-proof__stage {
    width: min(1600px, 100%);
    margin: var(--refonte-gap) auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    gap: clamp(44px, 7vw, 120px);
}

.refonte-proof__visual {
    position: sticky;
    top: 116px;
    height: min(70vh, 740px);
    overflow: hidden;
    border: 1px solid var(--paper-18);
    background: #151515;
}

.refonte-proof__visual-item {
    position: absolute;
    inset: 24px;
    margin: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    transition: opacity 500ms var(--ease-out), transform 680ms var(--ease-out);
}

.refonte-proof__visual-item.is-active {
    opacity: 1;
    transform: none;
}

.refonte-proof__visual-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.refonte-proof__counter {
    position: absolute;
    right: 20px;
    bottom: 18px;
    padding: 8px 11px;
    background: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
}

.refonte-proof__counter b {
    color: var(--signal);
    font-weight: 500;
}

.refonte-proof__steps {
    min-width: 0;
}

.refonte-proof__step {
    min-height: 78vh;
    padding: 72px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.34;
    transition: opacity 350ms var(--ease-out);
}

.refonte-proof__step.is-active {
    opacity: 1;
}

.refonte-proof__step > span {
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
}

.refonte-proof__step h3 {
    margin: 30px 0 0;
    font-size: clamp(2.5rem, 4.1vw, 5.2rem);
    font-weight: 500;
    letter-spacing: -0.062em;
    line-height: 0.94;
}

.refonte-proof__step p {
    max-width: 570px;
    margin: 30px 0 0;
    color: var(--paper-56);
    font-size: 1rem;
    line-height: 1.65;
}

.refonte-proof__note {
    padding-top: 26px;
    border-top: 1px solid var(--paper-18);
    color: var(--paper);
    font-weight: 600;
}

/* Method */

.refonte-method {
    padding-top: var(--refonte-space);
    padding-bottom: var(--refonte-space);
}

.refonte-method__inner {
    width: min(1600px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: minmax(330px, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(70px, 10vw, 180px);
}

.refonte-method__heading {
    position: sticky;
    top: 128px;
    align-self: start;
}

.refonte-method__heading h2 {
    margin-top: 46px;
}

.refonte-method__heading > p:last-child {
    max-width: 520px;
    margin: 34px 0 0;
    color: rgba(8, 8, 8, 0.63);
    font-size: clamp(1rem, 1.15vw, 1.16rem);
    line-height: 1.68;
}

.method-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(8, 8, 8, 0.22);
}

.method-list li {
    min-height: 190px;
    padding: 32px 0;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 70px);
    border-bottom: 1px solid rgba(8, 8, 8, 0.22);
}

.method-list li > span {
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.method-list h3 {
    margin: 0;
    font-size: clamp(2.1rem, 3.4vw, 4.2rem);
    font-weight: 500;
    letter-spacing: -0.055em;
}

.method-list p {
    max-width: 650px;
    margin: 14px 0 0;
    color: rgba(8, 8, 8, 0.6);
    line-height: 1.6;
}

.method-list strong {
    display: block;
    max-width: 650px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(8, 8, 8, 0.13);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Migration */

.refonte-migration {
    padding-top: var(--refonte-space);
    padding-bottom: var(--refonte-space);
    background: #e7e3db;
}

.migration-heading {
    width: min(1600px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(520px, 1.45fr);
    column-gap: clamp(48px, 8vw, 150px);
}

.migration-heading .refonte-index {
    grid-column: 1;
}

.migration-heading h2,
.migration-heading > p:last-child {
    grid-column: 2;
}

.migration-heading > p:last-child {
    max-width: 680px;
    margin: 34px 0 0;
    color: rgba(8, 8, 8, 0.62);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.68;
}

.migration-ledger {
    width: min(1600px, 100%);
    margin: var(--refonte-gap) auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(8, 8, 8, 0.18);
    border: 1px solid rgba(8, 8, 8, 0.18);
}

.migration-ledger article {
    min-height: clamp(390px, 34vw, 500px);
    padding: clamp(30px, 3.8vw, 58px);
    display: flex;
    flex-direction: column;
    background: var(--paper);
}

.migration-ledger article > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
}

.migration-ledger article > div span {
    color: var(--signal);
}

.migration-ledger article > div small {
    color: rgba(8, 8, 8, 0.48);
    font: inherit;
}

.migration-ledger h3 {
    margin: auto 0 0;
    padding-top: 72px;
    font-size: clamp(2.5rem, 3.6vw, 4.7rem);
    font-weight: 500;
    letter-spacing: -0.06em;
}

.migration-ledger p {
    max-width: 620px;
    margin: 24px 0 0;
    color: rgba(8, 8, 8, 0.62);
    line-height: 1.65;
}

.migration-ledger strong {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(8, 8, 8, 0.15);
    font-size: 0.86rem;
    line-height: 1.5;
}

.migration-ledger .migration-ledger__signal {
    background: var(--ink);
    color: var(--paper);
}

.migration-ledger__signal > div small,
.migration-ledger__signal p {
    color: var(--paper-56);
}

.migration-ledger__signal strong {
    border-color: var(--paper-18);
}

/* Scope */

.refonte-scope,
.refonte-faq {
    padding-top: var(--refonte-space);
    padding-bottom: var(--refonte-space);
}

.scope-grid {
    width: min(1600px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1px;
    background: rgba(8, 8, 8, 0.18);
    border: 1px solid rgba(8, 8, 8, 0.18);
}

.scope-item {
    --scope-column-span: 5;
    min-height: clamp(380px, 35vw, 520px);
    padding: clamp(30px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    grid-column: span var(--scope-column-span);
    background: var(--paper);
}

.scope-item--primary,
.scope-item--wide {
    --scope-column-span: 7;
}

.scope-item > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.11em;
}

.scope-item > div span {
    color: var(--signal);
}

.scope-item > div small {
    color: rgba(8, 8, 8, 0.48);
    font: inherit;
}

.scope-grid h3 {
    margin: auto 0 0;
    padding-top: 80px;
    font-size: clamp(2rem, 3.2vw, 4.1rem);
    font-weight: 500;
    letter-spacing: -0.055em;
}

.scope-grid p {
    max-width: 600px;
    margin: 24px 0 0;
    color: rgba(8, 8, 8, 0.6);
    line-height: 1.6;
}

.scope-item strong {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(8, 8, 8, 0.15);
    font-size: 0.86rem;
    line-height: 1.5;
}

.scope-item--primary {
    background: var(--ink);
    color: var(--paper);
}

.scope-item--primary > div small,
.scope-item--primary p {
    color: var(--paper-56);
}

.scope-item--primary strong {
    border-color: var(--paper-18);
}

/* Budget */

.refonte-budget {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    background: var(--ink);
    color: var(--paper);
}

.refonte-budget__copy,
.refonte-budget__aside {
    min-height: 680px;
    padding: var(--refonte-space) clamp(30px, 5vw, 84px);
}

.refonte-budget__copy {
    border-right: 1px solid var(--paper-18);
}

.refonte-budget h2 {
    margin-top: 34px;
}

.refonte-budget h2 span {
    color: var(--paper-40);
}

.refonte-budget__copy > p:not(.refonte-index) {
    max-width: 720px;
    margin: 40px 0 0;
    color: var(--paper-56);
    line-height: 1.65;
}

.refonte-budget a {
    transition: color 220ms var(--ease-out);
}

.refonte-budget__copy > a {
    margin-top: 54px;
    display: inline-flex;
    gap: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--signal);
    font-weight: 700;
}

.refonte-budget__copy > a:hover,
.refonte-budget__copy > a:focus-visible,
.refonte-budget__aside > a:hover,
.refonte-budget__aside > a:focus-visible {
    color: var(--signal);
}

.refonte-budget__aside {
    display: flex;
    flex-direction: column;
}

.refonte-budget__aside > span {
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.11em;
}

.refonte-budget__aside ul {
    margin: 70px 0 0;
    padding: 0;
    list-style: none;
}

.refonte-budget__aside li {
    padding: 20px 0 20px 26px;
    border-bottom: 1px solid var(--paper-18);
    color: var(--paper-72);
    line-height: 1.5;
}

.refonte-budget__aside li::before {
    content: "↳";
    float: left;
    margin-left: -26px;
    color: var(--signal);
}

.refonte-budget__aside > a {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 34px;
    border-top: 1px solid var(--paper-18);
    font-weight: 700;
}

/* FAQ */

.refonte-faq {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: clamp(70px, 10vw, 180px);
}

.refonte-faq header {
    position: sticky;
    top: 128px;
    align-self: start;
}

.refonte-faq h2 {
    margin-top: 34px;
}

.refonte-faq__list {
    border-top: 1px solid rgba(8, 8, 8, 0.22);
}

.refonte-faq details {
    border-bottom: 1px solid rgba(8, 8, 8, 0.22);
}

.refonte-faq summary {
    min-height: 112px;
    display: grid;
    grid-template-columns: 42px 1fr 24px;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    list-style: none;
}

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

.refonte-faq summary span {
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.63rem;
}

.refonte-faq summary strong {
    font-size: clamp(1.08rem, 1.45vw, 1.48rem);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.refonte-faq summary i,
.refonte-faq summary i::after {
    width: 17px;
    height: 1px;
    display: block;
    background: var(--ink);
    transition: transform 260ms var(--ease-out);
}

.refonte-faq summary i::after {
    content: "";
    transform: rotate(90deg);
}

.refonte-faq details[open] summary i::after {
    transform: rotate(0);
}

.refonte-faq details > p {
    max-width: 720px;
    margin: -4px 0 38px 62px;
    color: rgba(8, 8, 8, 0.63);
    line-height: 1.7;
}

/* Related service */

.refonte-related {
    padding-inline: var(--page-gutter);
    background: #e7e3db;
}

.refonte-related__inner {
    width: min(1600px, 100%);
    min-height: 210px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(150px, 0.42fr) minmax(360px, 1fr) auto;
    align-items: center;
    gap: clamp(32px, 6vw, 100px);
    border-top: 1px solid rgba(8, 8, 8, 0.2);
}

.refonte-related h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3.6rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1;
}

.refonte-related__inner > div p {
    max-width: 620px;
    margin: 16px 0 0;
    color: rgba(8, 8, 8, 0.62);
    line-height: 1.6;
}

.refonte-related nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.refonte-related a {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--signal);
    font-weight: 700;
    transition: color 220ms var(--ease-out);
}

.refonte-related a:hover,
.refonte-related a:focus-visible {
    color: var(--signal);
}

/* Final */

.refonte-next {
    padding-top: var(--refonte-space);
    background: var(--ink);
    color: var(--paper);
}

.refonte-next > .refonte-index,
.refonte-next > h2 {
    width: min(1600px, 100%);
    margin-inline: auto;
}

.refonte-next h2 {
    margin-top: 36px;
    padding-bottom: clamp(80px, 10vw, 160px);
}

.refonte-next h2 span {
    color: var(--paper-40);
}

.refonte-next__actions {
    margin-inline: calc(var(--page-gutter) * -1);
    display: grid;
    grid-template-columns: 1.15fr 0.925fr 0.925fr;
    border-top: 1px solid var(--paper-18);
}

.refonte-next__actions a {
    min-height: 150px;
    padding: 30px clamp(24px, 3vw, 52px);
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: center;
    gap: 8px 18px;
    border-right: 1px solid var(--paper-18);
    transition: background 350ms var(--ease-out), color 350ms var(--ease-out);
}

.refonte-next__actions a:last-child {
    border-right: 0;
}

.refonte-next__actions small {
    grid-column: 1 / 3;
    color: var(--paper-56);
}

.refonte-next__actions strong {
    font-weight: 700;
}

.refonte-next__actions a:hover,
.refonte-next__actions a:focus-visible {
    background: var(--paper-08);
}

.refonte-next__actions .refonte-next__primary {
    background: var(--signal);
    color: var(--ink);
    font-size: clamp(1.25rem, 2vw, 2.3rem);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.refonte-next__actions .refonte-next__primary:hover,
.refonte-next__actions .refonte-next__primary:focus-visible {
    background: var(--paper);
}

@media (max-width: 1050px) {
    .refonte-heading,
    .refonte-proof__intro,
    .refonte-method__inner,
    .migration-heading {
        grid-template-columns: 1fr;
    }

    .refonte-heading h2,
    .refonte-heading > p:last-child,
    .refonte-proof__intro h2,
    .refonte-proof__intro > p:last-child,
    .migration-heading h2,
    .migration-heading > p:last-child {
        grid-column: 1;
    }

    .refonte-heading h2,
    .refonte-proof__intro h2,
    .migration-heading h2 {
        margin-top: 32px;
    }

    .refonte-method__inner {
        gap: var(--refonte-gap);
    }

    .refonte-method__heading {
        position: static;
    }

    .diagnostic-system {
        grid-template-columns: minmax(320px, 0.78fr) 1.22fr;
    }

    .triage-grid {
        grid-template-columns: 1fr;
    }

    .triage-grid article {
        min-height: 360px;
    }

    .triage-grid article + article {
        border-left: 0;
        border-top: 1px solid var(--paper-18);
    }

    .refonte-proof__stage {
        grid-template-columns: 1fr 0.8fr;
        gap: 42px;
    }

    .refonte-faq {
        grid-template-columns: 1fr;
    }

    .refonte-faq header {
        position: static;
    }

    .migration-ledger {
        grid-template-columns: 1fr;
    }

    .migration-ledger article {
        min-height: 360px;
    }

    .scope-item {
        --scope-column-span: 6;
    }

    .refonte-budget {
        grid-template-columns: 1fr;
    }

    .refonte-budget__copy {
        border-right: 0;
        border-bottom: 1px solid var(--paper-18);
    }

    .refonte-next__actions {
        grid-template-columns: 1fr;
    }

    .refonte-next__actions a {
        min-height: 110px;
        border-right: 0;
        border-bottom: 1px solid var(--paper-18);
    }
}

@media (max-width: 760px) {
    .page-refonte {
        --refonte-space: 72px;
        --refonte-gap: 46px;
    }

    .refonte-related {
        padding-inline: 18px;
    }

    .refonte-related__inner {
        min-height: 0;
        padding-block: 46px;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .refonte-related a {
        justify-self: start;
    }

    .refonte-hero {
        min-height: auto;
        padding: 74px 18px 0;
    }

    .refonte-hero__inner {
        min-height: calc(100svh - 74px);
        grid-template-rows: auto auto auto auto;
        border-inline: 0;
    }

    .refonte-hero__meta {
        min-height: 72px;
        padding: 18px 0;
    }

    .refonte-hero__meta > span {
        display: none;
    }

    .refonte-hero__body {
        padding: 42px 0 38px;
    }

    .refonte-hero h1 {
        font-size: clamp(3.1rem, 13.4vw, 5.3rem);
        line-height: 0.9;
    }

    .refonte-hero__argument {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 34px;
    }

    .refonte-hero__actions {
        grid-template-columns: 1fr;
    }

    .refonte-action {
        min-height: 74px;
        padding-inline: 18px;
    }

    .refonte-action + .refonte-action {
        border-left: 0;
        border-top: 1px solid var(--paper-12);
    }

    .refonte-hero__footer {
        min-height: 64px;
        padding-inline: 0;
        font-size: 0.57rem;
    }

    .refonte-heading h2,
    .refonte-proof__intro h2,
    .refonte-method__heading h2,
    .migration-heading h2,
    .refonte-budget h2,
    .refonte-faq h2,
    .refonte-next h2 {
        font-size: clamp(2.8rem, 12.5vw, 4.5rem);
    }

    .diagnostic-system {
        grid-template-columns: 1fr;
    }

    .diagnostic-system__tabs {
        border-right: 0;
        border-bottom: 1px solid rgba(8, 8, 8, 0.18);
    }

    .diagnostic-tab {
        min-height: 102px;
        padding: 20px 18px;
        grid-template-columns: 30px 1fr;
        column-gap: 12px;
    }

    .diagnostic-result {
        min-height: 520px;
        padding: 50px 22px;
    }

    .diagnostic-result h3 {
        font-size: clamp(2.35rem, 10vw, 3.6rem);
    }

    .diagnostic-result__decision {
        flex-direction: column;
        gap: 12px;
    }

    .triage-grid article {
        min-height: 390px;
        padding: 30px 24px;
    }

    .triage-grid h3 {
        margin-top: 56px;
    }

    .refonte-proof__stage {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .refonte-proof__visual {
        z-index: 2;
        top: 84px;
        height: min(47svh, 370px);
    }

    .refonte-proof__visual-item {
        inset: 14px;
    }

    .refonte-proof__step {
        min-height: 62svh;
        padding: 48px 0;
        opacity: 1;
    }

    .method-list li {
        min-height: 0;
        padding: 34px 0;
        grid-template-columns: 42px 1fr;
        align-items: start;
        gap: 18px;
    }

    .migration-ledger article {
        min-height: 360px;
        padding: 30px 22px;
    }

    .scope-grid {
        grid-template-columns: 1fr;
    }

    .scope-item {
        --scope-column-span: 1;
        min-height: 360px;
        padding: 28px 22px;
    }

    .scope-grid h3 {
        padding-top: 70px;
    }

    .refonte-budget__copy,
    .refonte-budget__aside {
        min-height: 600px;
        padding: 76px 22px;
    }

    .refonte-faq {
        gap: 56px;
    }

    .refonte-faq summary {
        min-height: 96px;
        grid-template-columns: 28px 1fr 18px;
        gap: 12px;
    }

    .refonte-faq details > p {
        margin: 0 0 32px 40px;
    }

    .refonte-next h2 {
        padding-bottom: 76px;
    }

    .refonte-next__actions a {
        min-height: 104px;
        padding: 24px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .diagnostic-result > *,
    .refonte-proof__visual-item,
    .refonte-proof__step {
        transition: none;
    }
}
