:root {
    --paper: #f3efe9;
    --paper-2: #ece5d9;
    --card: #fbf8f2;
    --ink: #14110b;
    --ink-2: #211c13;
    --ink-soft: #4b463c;
    --muted: #857c6d;
    --line: #ded6c6;
    --line-2: #c9bfa9;
    --gold: #edb61e;
    --gold-deep: #b8860f;
    --gold-soft: #f6e7be;
    --display: "Space Grotesk", sans-serif;
    --body: "IBM Plex Sans", sans-serif;
    --mono: "IBM Plex Mono", monospace;
    --maxw: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

:focus-visible {
    outline: 2.5px solid var(--gold-deep);
    outline-offset: 3px;
    border-radius: 3px;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

/* ---------- mono eyebrow ---------- */
.eyebrow {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.eyebrow .retmark {
    width: 14px;
    height: 14px;
    flex: none;
}

.retmark circle,
.retmark line {
    stroke: currentColor;
    stroke-width: 1.4;
    fill: none;
}

.retmark .dot {
    fill: currentColor;
    stroke: none;
}

.sec-head {
    max-width: 640px;
    margin-bottom: 52px;
}

.sec-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.sec-head h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.sec-head p {
    color: var(--ink-soft);
    font-size: 1.08rem;
    margin-top: 16px;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 14px 26px;
    border-radius: 2px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: 0.22s ease;
}

.btn-gold {
    background: var(--gold);
    color: var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
}

.btn-gold:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--ink);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-arrow {
    transition: transform 0.22s;
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* ---------- header ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(243, 239, 233, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition:
        border-color 0.3s,
        box-shadow 0.3s;
}

header.scrolled {
    border-color: var(--line);
    box-shadow: 0 8px 30px -22px rgba(20, 17, 11, 0.5);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav .btn {
    padding: 11px 20px;
    font-size: 0.9rem;
    box-shadow: 3px 3px 0 var(--ink);
}

.nav .btn:hover {
    box-shadow: 5px 5px 0 var(--ink);
}

.menu-btn {
    display: none;
    background: none;
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    padding: 9px 11px;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    margin: 4px 0;
    transition: 0.25s;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 16px 24px 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.mobile-menu a {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 500;
}

.mobile-menu .btn {
    margin-top: 14px;
    justify-content: center;
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    padding: 70px 0 90px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5.6vw, 4.35rem);
    letter-spacing: -0.035em;
}

.hero h1 .hl {
    color: var(--gold-deep);
}

.hero .lead {
    font-size: 1.16rem;
    color: var(--ink-soft);
    margin: 26px 0 0;
    max-width: 520px;
}

.triplet {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 26px 0 34px;
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.triplet span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.triplet b {
    color: var(--gold-deep);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-ticks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 30px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    font-family: var(--mono);
}

.hero-ticks span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tick {
    color: var(--gold-deep);
    font-weight: 700;
}

/* hero console visual */
.console {
    position: relative;
    background: var(--ink);
    border-radius: 6px;
    padding: 22px;
    box-shadow:
        22px 22px 0 -6px rgba(20, 17, 11, 0.09),
        0 40px 80px -40px rgba(20, 17, 11, 0.6);
}

.console-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.console-top .lbl {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    color: #b9ae96;
    text-transform: uppercase;
}

.console-top .live {
    font-family: var(--mono);
    font-size: 0.66rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 6px;
}

.console-top .live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(237, 182, 30, 0.5);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 6px rgba(237, 182, 30, 0);
    }
}

.chartbox {
    position: relative;
    height: 230px;
    margin: 8px 0 4px;
}

.chartbox svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.reticle-grp {
    transform-origin: center;
    animation: lockin 1.2s cubic-bezier(0.2, 0.9, 0.2, 1) 0.5s both;
}

@keyframes lockin {
    0% {
        opacity: 0;
        transform: scale(2.4) rotate(-12deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.trendline {
    stroke: var(--gold);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw 1.6s ease 0.3s forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.chip {
    background: #211c12;
    border: 1px solid #33291a;
    border-radius: 4px;
    padding: 12px 14px;
}

.chip .n {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.chip .n b {
    color: var(--gold);
}

.chip .c {
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9c917c;
    margin-top: 2px;
}

.float-photo {
    position: absolute;
    right: -26px;
    bottom: -34px;
    width: 150px;
    height: 150px;
    border-radius: 6px;
    border: 3px solid var(--paper);
    background: linear-gradient(135deg, #2a2318, #161009);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.float-photo .ph {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: #8a7f6a;
    padding: 0 10px;
    line-height: 1.5;
}

/* ---------- trust strip ---------- */
.trust {
    background: var(--ink);
    color: var(--paper);
}

.trust .wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding-top: 26px;
    padding-bottom: 26px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    color: #e7dfcf;
}

.trust-item .retmark {
    width: 18px;
    height: 18px;
    color: var(--gold);
    flex: none;
}

/* ---------- who we help ---------- */
.help-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.help-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 22px 18px;
    transition: 0.22s;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.help-card:hover {
    border-color: var(--ink);
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 -2px rgba(20, 17, 11, 0.08);
}

.help-card .ic {
    width: 30px;
    height: 30px;
    color: var(--gold-deep);
}

.help-card .ic svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
}

.help-card b {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}

/* ---------- problems ---------- */
.problems {
    background: var(--paper-2);
}

.prob-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.prob-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    padding: 22px 22px 22px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.prob-card .x {
    font-family: var(--mono);
    color: var(--gold-deep);
    font-weight: 600;
    flex: none;
    margin-top: 1px;
}

.prob-card p {
    font-size: 0.98rem;
    color: var(--ink-soft);
}

.prob-note {
    text-align: center;
    font-family: var(--display);
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.prob-note .hl {
    color: var(--gold-deep);
}

/* ---------- framework timeline ---------- */
.frame {
    background: var(--ink);
    color: var(--paper);
}

.frame .eyebrow {
    color: var(--gold);
}

.frame .sec-head h2 {
    color: #fff;
}

.frame .sec-head p {
    color: #c9bfa9;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 16px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, #3a3020, var(--gold), #3a3020);
}

.tl-step {
    padding: 0 14px;
    position: relative;
    text-align: center;
}

.tl-marker {
    width: 54px;
    height: 54px;
    margin: 0 auto 22px;
    position: relative;
    z-index: 2;
    background: var(--ink);
}

.tl-marker svg {
    width: 100%;
    height: 100%;
}

.tl-marker circle,
.tl-marker line {
    stroke: var(--gold);
    fill: none;
}

.tl-marker .ring {
    stroke-width: 2;
}

.tl-marker .cx {
    stroke-width: 1.5;
    opacity: 0.7;
}

.tl-marker .core {
    fill: var(--gold);
    stroke: none;
}

.tl-num {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tl-step h3 {
    font-size: 1.12rem;
    color: #fff;
    margin-bottom: 10px;
}

.tl-step p {
    font-size: 0.9rem;
    color: #b7ad97;
    line-height: 1.55;
}

/* ---------- services ---------- */
.serv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.serv {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: 0.2s;
    font-weight: 500;
}

.serv:hover {
    border-color: var(--gold-deep);
    background: #fff;
}

.serv .ic {
    width: 26px;
    height: 26px;
    color: var(--gold-deep);
    flex: none;
}

.serv .ic svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
}

/* ---------- why rpkd contrast ---------- */
.why {
    background: var(--paper-2);
}

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

.con-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.con-card .most {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px dashed var(--line-2);
}

.con-card .most s {
    text-decoration: none;
    position: relative;
}

.con-card .most s::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 52%;
    height: 1.5px;
    background: var(--muted);
    transform: rotate(-2deg);
}

.con-card .we {
    font-family: var(--display);
    font-size: 1.32rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.con-card .we b {
    color: var(--gold-deep);
}

.con-card .tag {
    position: absolute;
    top: -1px;
    right: -1px;
    background: var(--ink);
    color: var(--gold);
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    padding: 6px 12px;
    border-bottom-left-radius: 6px;
}

/* ---------- portfolio ---------- */
.marquee {
    overflow: hidden;
    position: relative;
    margin-top: 8px;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 8%,
        #000 92%,
        transparent
    );
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 8%,
        #000 92%,
        transparent
    );
}

.marquee-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: scroll 34s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

.logo-chip {
    width: 212px;
    height: 112px;
    flex: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px;
    text-decoration: none;
    transition: 0.22s;
}

.logo-chip:hover {
    border-color: var(--gold-deep);
    box-shadow: 6px 6px 0 -2px rgba(20, 17, 11, 0.08);
    transform: translateY(-3px);
}

.logo-img {
    max-height: 46px;
    max-width: 158px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: 0.25s;
}

.logo-chip:hover .logo-img {
    filter: grayscale(0);
    opacity: 1;
}

.logo-fallback {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.06rem;
    color: var(--ink);
    text-align: center;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.logo-cap {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.port-note {
    text-align: center;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 26px;
    letter-spacing: 0.04em;
}

/* ---------- case studies ---------- */
.cases {
    background: var(--paper-2);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.case {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.case-shot {
    height: 180px;
    background: repeating-linear-gradient(
        45deg,
        #efe9dc,
        #efe9dc 12px,
        #eae2d1 12px,
        #eae2d1 24px
    );
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.case-shot .ph {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--line);
    padding: 8px 14px;
    border-radius: 3px;
}

.case-body {
    padding: 26px;
}

.case-spec {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 12px;
}

.case h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.case-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 14px;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.case-row .k {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 3px;
}

.case-row .v {
    color: var(--ink-soft);
}

.case-metrics {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--line-2);
}

.metric .n {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.7rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.metric .n b {
    color: var(--gold-deep);
}

.metric .c {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- branding journey ---------- */
.journey {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    margin-top: 8px;
}

.j-step {
    flex: 1;
    min-width: 150px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 22px 18px;
    position: relative;
}

.j-step .jn {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    color: var(--gold-deep);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.j-step p {
    font-size: 0.96rem;
    font-weight: 500;
}

.j-arrow {
    align-self: center;
    color: var(--line-2);
    flex: none;
    font-size: 1.3rem;
}

.journey-note {
    margin-top: 34px;
    font-family: var(--display);
    font-size: clamp(1.2rem, 2.6vw, 1.6rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    max-width: 720px;
}

.journey-note .hl {
    color: var(--gold-deep);
}

/* ---------- comparison table ---------- */
.diff {
    background: var(--ink);
    color: var(--paper);
}

.diff .eyebrow {
    color: var(--gold);
}

.diff .sec-head h2 {
    color: #fff;
}

.ctable {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    margin-top: 8px;
}

.ctable th {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    padding: 16px 22px;
    color: #b7ad97;
    font-weight: 500;
}

.ctable th.rp {
    color: var(--ink);
    background: var(--gold);
    border-radius: 5px 5px 0 0;
}

.ctable td {
    padding: 18px 22px;
    border-top: 1px solid #2c2417;
}

.ctable .other {
    color: #9c917c;
}

.ctable .rpcell {
    background: #211c12;
    font-weight: 500;
    color: #fff;
    position: relative;
}

.ctable .rpcell::before {
    content: "✓";
    color: var(--gold);
    font-weight: 700;
    margin-right: 10px;
}

.ctable tr:last-child .rpcell {
    border-radius: 0 0 5px 5px;
}

/* ---------- faq ---------- */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    padding: 24px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-family: var(--display);
    font-size: 1.14rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.faq-q .pm {
    flex: none;
    width: 26px;
    height: 26px;
    position: relative;
}

.faq-q .pm::before,
.faq-q .pm::after {
    content: "";
    position: absolute;
    background: var(--gold-deep);
    transition: 0.25s;
    top: 50%;
    left: 50%;
}

.faq-q .pm::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.faq-q .pm::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.faq-item.open .pm::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-a p {
    padding: 0 4px 26px;
    color: var(--ink-soft);
    font-size: 1rem;
    max-width: 680px;
}

/* ---------- final cta ---------- */
.final {
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
}

.final::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    border: 2px solid rgba(237, 182, 30, 0.14);
    border-radius: 50%;
}

.final::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 180px;
    height: 180px;
    border: 2px solid rgba(237, 182, 30, 0.1);
    border-radius: 50%;
}

.final-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.final .eyebrow {
    color: var(--gold);
}

.final h2 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    color: #fff;
}

.final p {
    color: #c9bfa9;
    margin-top: 18px;
    font-size: 1.08rem;
    max-width: 440px;
}

.final-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    font-family: var(--mono);
    font-size: 0.9rem;
    color: #e7dfcf;
}

.final-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.final-contact .retmark {
    width: 16px;
    height: 16px;
    color: var(--gold);
}

.formcard {
    background: var(--card);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.formcard h3 {
    color: var(--ink);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    font-family: var(--body);
    font-size: 0.95rem;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    transition: 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold-deep);
    box-shadow: 0 0 0 3px rgba(237, 182, 30, 0.16);
}

.field textarea {
    resize: vertical;
    min-height: 74px;
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.formcard .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.form-note {
    font-family: var(--mono);
    font-size: 0.66rem;
    color: var(--muted);
    text-align: center;
    margin-top: 14px;
    letter-spacing: 0.03em;
}

.form-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.form-success.show {
    display: block;
}

.form-success .retmark {
    width: 44px;
    height: 44px;
    color: var(--gold-deep);
    margin: 0 auto 16px;
}

.form-success h3 {
    margin-bottom: 8px;
}

.form-success p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* ---------- footer ---------- */
footer {
    background: #0f0c07;
    color: #b7ad97;
    padding: 64px 0 30px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #2a2318;
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.foot-mark {
    width: 34px;
    height: 34px;
}

.foot-mark circle,
.foot-mark line {
    stroke: var(--gold);
    fill: none;
}

.foot-mark .core {
    fill: var(--gold);
    stroke: none;
}

.foot-word {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.foot-word .k {
    color: var(--gold);
}

.foot-word small {
    display: block;
    font-family: var(--mono);
    font-size: 0.56rem;
    letter-spacing: 0.34em;
    color: #8a7f6a;
    font-weight: 500;
    margin-top: 2px;
}

.foot-brand-col p {
    font-size: 0.9rem;
    max-width: 280px;
    line-height: 1.6;
}

.foot-col h4 {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a7f6a;
    margin-bottom: 16px;
    font-weight: 500;
}

.foot-col a,
.foot-col span {
    display: block;
    font-size: 0.92rem;
    padding: 5px 0;
    color: #c9bfa9;
    transition: 0.2s;
}

.foot-col a:hover {
    color: var(--gold);
}

.foot-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 26px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: #8a7f6a;
}

.foot-bottom a {
    color: var(--gold);
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .console {
        max-width: 460px;
    }

    .help-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .serv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust .wrap {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .final-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

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

    .timeline {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .timeline::before {
        display: none;
    }

    .tl-step {
        text-align: left;
        display: grid;
        grid-template-columns: 54px 1fr;
        gap: 8px 18px;
        padding: 14px 0;
        border-bottom: 1px solid #2a2318;
    }

    .tl-marker {
        margin: 0;
    }

    .tl-step .txt {
        grid-column: 2;
    }
}

@media (max-width: 680px) {
    .section {
        padding: 70px 0;
    }

    .nav-links,
    .nav-cta .btn {
        display: none;
    }

    .menu-btn {
        display: block;
    }

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

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

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

    .trust .wrap {
        grid-template-columns: 1fr;
    }

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

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

    .ctable {
        font-size: 0.9rem;
    }

    .ctable th,
    .ctable td {
        padding: 12px 12px;
    }

    .float-photo {
        width: 110px;
        height: 110px;
        right: -10px;
        bottom: -24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .trendline {
        stroke-dashoffset: 0;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}
