:root {
    --ink: #f4f7fb;
    --ink-soft: #c6d0d7;
    --paper: #070a0f;
    --paper-2: #111820;
    --card: rgba(13, 18, 26, 0.78);
    --line: rgba(244, 247, 251, 0.14);
    --muted: #8c9aa4;
    --electric: #15d8ff;
    --water: #2b8cff;
    --land: #b4ff2f;
    --carbon: #f4f7fb;
    --risk: #ff5b2f;
    --ai: #15d8ff;
    --non-ai: #26303a;
    --radius: 28px;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 14% 8%, rgba(21, 216, 255, 0.2), transparent 28%),
        radial-gradient(circle at 84% 10%, rgba(255, 91, 47, 0.13), transparent 26%),
        radial-gradient(circle at 70% 82%, rgba(180, 255, 47, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(12, 18, 26, 0.94), rgba(5, 8, 12, 0.98)),
        var(--paper);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.64;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(244, 247, 251, 0.044) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 247, 251, 0.036) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg width='1040' height='620' viewBox='0 0 1040 620' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cg stroke='%23f4f7fb' stroke-opacity='.16' stroke-width='1.1'%3E%3Cpath d='M-60 110C90 35 185 170 330 102s216-111 360-32 209 103 350 10 203-61 300 20'/%3E%3Cpath d='M-50 286c145-87 236 50 365-5s184-127 332-44 218 111 356 18 226-55 330 41'/%3E%3Cpath d='M-54 502c128-61 212 51 346 11s189-128 340-45 218 91 352 21 235-52 338 33'/%3E%3Ccircle cx='196' cy='182' r='108'/%3E%3Ccircle cx='197' cy='182' r='34'/%3E%3Ccircle cx='574' cy='312' r='160'/%3E%3Ccircle cx='574' cy='312' r='62'/%3E%3Ccircle cx='860' cy='162' r='92'/%3E%3Ccircle cx='884' cy='452' r='128'/%3E%3Cpath d='M146 184c124-46 244 118 428 128s257-104 383-80'/%3E%3Cpath d='M259 498c120-93 214-68 315-186 87-102 195-124 318-54'/%3E%3C/g%3E%3Cg stroke='%2315d8ff' stroke-opacity='.34' stroke-width='1.4'%3E%3Cpath d='M99 132c91 39 146 83 259 55s198-87 305-21 144 119 253 82'/%3E%3Ccircle cx='196' cy='182' r='8' fill='%2315d8ff' fill-opacity='.45' stroke='none'/%3E%3Ccircle cx='574' cy='312' r='7' fill='%2315d8ff' fill-opacity='.36' stroke='none'/%3E%3Ccircle cx='860' cy='162' r='6' fill='%2315d8ff' fill-opacity='.34' stroke='none'/%3E%3C/g%3E%3Cg stroke='%23b4ff2f' stroke-opacity='.22' stroke-width='1.3'%3E%3Cpath d='M115 456c125-86 250-23 386-121 136-98 243-71 401 22'/%3E%3Ccircle cx='884' cy='452' r='7' fill='%23b4ff2f' fill-opacity='.3' stroke='none'/%3E%3Ccircle cx='330' cy='102' r='5' fill='%23b4ff2f' fill-opacity='.24' stroke='none'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 90px 90px, 90px 90px, 1120px 680px;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.38;
    background-image:
        radial-gradient(circle at 18% 24%, rgba(244, 247, 251, 0.36) 0 1.5px, transparent 2px),
        radial-gradient(circle at 71% 18%, rgba(21, 216, 255, 0.58) 0 2px, transparent 2.6px),
        radial-gradient(circle at 82% 66%, rgba(180, 255, 47, 0.42) 0 2px, transparent 2.6px),
        radial-gradient(circle at 38% 78%, rgba(255, 91, 47, 0.34) 0 1.8px, transparent 2.4px);
    background-size: 210px 190px, 280px 240px, 260px 230px, 330px 280px;
    animation: cosmicDrift 22s ease-in-out infinite alternate;
}

@keyframes cosmicDrift {
    from {
        transform: translate3d(-8px, -6px, 0) scale(1);
    }

    to {
        transform: translate3d(10px, 8px, 0) scale(1.025);
    }
}

button {
    font: inherit;
}

main {
    width: min(1500px, calc(100% - 44px));
    margin: 0 auto;
}

.hero,
.kpi-strip,
.story-section,
.matrix-section,
.planning-section,
.closing {
    margin: clamp(24px, 4vw, 56px) 0;
}

.hero {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(26px, 4vw, 44px);
    align-items: start;
    padding: clamp(42px, 7vw, 92px) 0 clamp(20px, 4vw, 44px);
}

.masthead,
.section-kicker,
.board-label,
.chart-head,
footer {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 900;
}

.masthead {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin: 0 0 clamp(24px, 3vw, 44px);
    color: var(--land);
    font-size: clamp(0.75rem, 1vw, 0.95rem);
}

.masthead span {
    color: var(--ink-soft);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    width: 100%;
    max-width: 1500px;
    margin-bottom: clamp(22px, 2.6vw, 38px);
    font-size: clamp(4.8rem, 9.4vw, 11.2rem);
    line-height: 0.88;
    letter-spacing: -0.074em;
    font-weight: 900;
    white-space: nowrap;
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(2.6rem, 6vw, 6.4rem);
    line-height: 0.86;
    letter-spacing: -0.075em;
    font-weight: 900;
}

h3 {
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.subtitle {
    width: 100%;
    max-width: 1380px;
    color: var(--ink-soft);
    font-size: clamp(1.35rem, 2.24vw, 2.18rem);
    line-height: 1.15;
    font-weight: 800;
}

.shock-board,
.chart-card,
.matrix-section,
.planning-tile,
.closing,
.kpi-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.shock-board {
    position: relative;
    width: 100%;
    padding: clamp(24px, 3vw, 42px);
    overflow: hidden;
}

.shock-board::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 2px solid rgba(244, 247, 251, 0.62);
    border-radius: calc(var(--radius) - 8px);
    pointer-events: none;
}

.board-label {
    position: relative;
    margin-bottom: 32px;
    color: var(--ink);
    font-size: clamp(1.38rem, 2vw, 2.22rem);
    letter-spacing: 0.21em;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 22px rgba(43, 140, 255, 0.22);
}

.shock-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.shock-grid article {
    display: grid;
    grid-template-columns: 1fr;
    align-items: baseline;
    gap: 14px;
    padding: clamp(18px, 2vw, 28px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(244, 247, 251, 0.035);
}

.shock-grid article:last-child {
    border-bottom: 1px solid var(--line);
}

.shock-grid span {
    color: var(--muted);
    font-weight: 900;
}

.shock-grid strong {
    font-size: clamp(2rem, 4vw, 4.6rem);
    line-height: 0.86;
    letter-spacing: -0.06em;
}

.shock-grid p {
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    line-height: 1.34;
    font-weight: 800;
}

.clarifier {
    position: relative;
    margin: 28px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    line-height: 1.45;
    font-weight: 800;
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kpi-card {
    position: relative;
    min-height: 356px;
    padding: clamp(22px, 1.85vw, 30px);
    overflow: hidden;
    cursor: crosshair;
    display: grid;
    grid-template-rows: 62px 90px 90px minmax(76px, 1fr);
    align-content: start;
}

.kpi-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -52px;
    bottom: -52px;
    border: 2px solid rgba(244, 247, 251, 0.14);
    border-radius: 50%;
}

.kpi-card p {
    display: flex;
    align-items: flex-start;
    min-height: 0;
    margin-bottom: 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.17em;
    font-size: clamp(0.8rem, 0.84vw, 0.94rem);
    line-height: 1.18;
    font-weight: 900;
}

.kpi-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 90px;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--line);
}

.kpi-values strong {
    font-size: clamp(1.48rem, 2.1vw, 2.52rem);
    line-height: 0.9;
    letter-spacing: -0.058em;
    font-weight: 900;
    white-space: nowrap;
}

.kpi-values span {
    color: #c2cad2;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    font-size: clamp(1.12rem, 1.34vw, 1.56rem);
    font-weight: 900;
}

.kpi-values.future strong {
    color: var(--land);
}

.kpi-card:nth-child(1) .future strong {
    color: var(--water);
}

.kpi-card:nth-child(4) .future strong {
    color: var(--carbon);
}

.kpi-card em {
    display: flex;
    align-items: flex-start;
    min-height: 0;
    margin-top: 0;
    padding-top: 18px;
    color: var(--ink-soft);
    font-size: clamp(0.94rem, 1vw, 1.08rem);
    font-style: normal;
    font-weight: 900;
    line-height: 1.18;
}

.story-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(20px, 3vw, 34px) 0;
}

.story-section.reverse {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
}

.section-copy {
    padding: clamp(8px, 1vw, 18px);
}

.section-copy.compact {
    max-width: 980px;
    margin-bottom: 26px;
}

.section-kicker {
    margin-bottom: 16px;
    color: var(--water);
    font-size: 0.78rem;
}

.section-copy p:not(.section-kicker),
.closing p:not(.section-kicker) {
    color: var(--ink-soft);
    font-size: clamp(1.04rem, 1.45vw, 1.28rem);
    line-height: 1.5;
    font-weight: 800;
}

.chart-card {
    min-height: 520px;
    padding: clamp(20px, 3vw, 36px);
}

.chart-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
    color: var(--ink-soft);
    font-size: clamp(1.12rem, 1.46vw, 1.64rem);
    letter-spacing: 0.17em;
    font-weight: 900;
    text-transform: uppercase;
}

.chart-head strong {
    color: var(--land);
    font-size: 1.08em;
}

.slope-chart {
    display: grid;
    gap: clamp(22px, 3vw, 38px);
}

.slope-row {
    --color: var(--water);
    display: grid;
    grid-template-columns: 150px 150px 1fr 160px;
    gap: 20px;
    align-items: center;
    min-height: 78px;
}

.slope-label {
    font-weight: 900;
    color: var(--ink);
}

.slope-value {
    font-weight: 900;
    color: var(--ink-soft);
    text-align: left;
}

.slope-value.future {
    color: var(--ink);
    text-align: left;
}

.slope-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(244, 247, 251, 0.1);
}

.slope-track::before {
    content: "";
    position: absolute;
    inset: 0;
    width: var(--growth-width, 100%);
    border-radius: inherit;
    background: color-mix(in srgb, var(--color), transparent 28%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-visible .slope-track::before {
    transform: scaleX(1);
}

.slope-dot {
    position: absolute;
    top: 50%;
    width: 28px;
    height: 28px;
    border: 3px solid var(--color);
    border-radius: 50%;
    background: var(--paper);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 7px rgba(244, 247, 251, 0.04);
}

.slope-dot.future {
    left: 100%;
    background: var(--color);
}

.slope-dot.current {
    left: var(--current-pos, 47%);
}

.stacked-chart {
    display: grid;
    gap: 34px;
}

.stacked-row {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 20px;
    align-items: center;
}

.year-label {
    color: var(--ink);
    font-weight: 900;
    font-size: clamp(1.5rem, 2.4vw, 2.3rem);
    letter-spacing: -0.05em;
}

.stacked-bar {
    position: relative;
    height: 86px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--non-ai);
    cursor: crosshair;
}

.stacked-seg {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent),
        var(--ai);
    transition: width 1000ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-visible .stacked-seg {
    width: var(--ai-width);
}

.stacked-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #061015;
    left: 28px;
    font-weight: 900;
}

.stacked-total {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink);
    font-weight: 900;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 900;
}

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

.legend i {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ai);
}

.legend span:nth-child(2) i {
    background: var(--non-ai);
    border: 1px solid var(--line);
}

.matrix-section {
    padding: clamp(18px, 3.1vw, 42px) 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.matrix-wrap {
    position: relative;
    max-width: 1240px;
    margin: 34px auto 0;
    padding: 104px 118px 112px;
}

.risk-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
}

.matrix-cell {
    min-height: 214px;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    cursor: crosshair;
    transition: transform 180ms ease, background 180ms ease;
}

.matrix-cell:nth-child(2n) {
    border-right: 0;
}

.matrix-cell:nth-child(n + 3) {
    border-bottom: 0;
}

.matrix-cell span {
    display: inline-flex;
    min-width: 250px;
    justify-content: center;
    padding: 20px 30px;
    border-radius: 999px;
    background: rgba(7, 10, 15, 0.82);
    border: 1px solid var(--line);
    font-weight: 900;
    font-size: clamp(1.18rem, 1.68vw, 1.74rem);
}

.matrix-cell:hover,
.matrix-cell:focus-visible {
    transform: scale(1.02);
    outline: none;
    z-index: 2;
}

.matrix-cell.collision {
    background: #5a2623;
}

.matrix-cell.opportunity {
    background: #2f3f24;
}

.matrix-cell.watch {
    background: #123f4a;
}

.matrix-cell.monitor {
    background: #151c24;
}

.axis-label {
    position: absolute;
    color: #eef4fa;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: clamp(1.26rem, 1.86vw, 2.12rem);
    font-weight: 900;
    white-space: nowrap;
    text-shadow: 0 0 22px rgba(244, 247, 251, 0.16);
}

.axis-label.top {
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
}

.axis-label.bottom {
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
}

.axis-label.left {
    left: -96px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

.axis-label.right {
    right: -96px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}

.planning-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 58px);
    align-items: start;
}

.planning-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.planning-tile {
    min-height: 370px;
    padding: clamp(24px, 1.7vw, 30px);
    cursor: crosshair;
    transition: transform 180ms ease, box-shadow 180ms ease;
    display: grid;
    grid-template-rows: 74px 160px 1fr;
    align-content: start;
}

.planning-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.planning-tile span {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 0;
    border: 2px solid currentColor;
    border-radius: 50%;
    color: var(--water);
    font-weight: 900;
}

.planning-tile h3 {
    margin: 0;
    min-height: 0;
    display: flex;
    align-items: flex-start;
}

.planning-tile:nth-child(2) span {
    color: var(--land);
}

.planning-tile:nth-child(3) span {
    color: var(--risk);
}

.planning-tile:nth-child(4) span {
    color: var(--carbon);
}

.planning-tile:nth-child(5) span {
    color: var(--land);
}

.planning-tile p {
    margin: 0;
    color: var(--ink-soft);
    max-width: 18ch;
    font-size: clamp(1.02rem, 1.05vw, 1.14rem);
    font-weight: 800;
    line-height: 1.35;
    align-self: start;
}

.closing {
    padding: clamp(28px, 6vw, 82px);
    border-top: 3px solid rgba(244, 247, 251, 0.74);
    border-bottom: 3px solid rgba(244, 247, 251, 0.74);
}

.closing h2 {
    max-width: 1180px;
}

.closing p:not(.section-kicker) {
    max-width: 1020px;
}

footer {
    width: min(1500px, calc(100% - 44px));
    margin: 0 auto;
    padding: 20px 0 42px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

footer a {
    color: var(--ink-soft);
    text-decoration-color: rgba(21, 216, 255, 0.58);
    text-underline-offset: 4px;
}

footer a:hover {
    color: var(--ink);
}

.tooltip {
    position: fixed;
    z-index: 30;
    max-width: 310px;
    padding: 12px 14px;
    border: 1px solid rgba(244, 247, 251, 0.18);
    border-radius: 16px;
    background: rgba(7, 10, 15, 0.96);
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.35;
    font-weight: 800;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 14px));
    transition: opacity 120ms ease;
}

.tooltip.is-visible {
    opacity: 1;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1180px) {
    .hero,
    .story-section,
    .story-section.reverse,
    .planning-section {
        grid-template-columns: 1fr;
    }

    .kpi-strip,
    .planning-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .planning-tile:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    main,
    footer {
        width: min(100% - 24px, 680px);
    }

    .hero {
        min-height: auto;
        padding-top: 42px;
    }

    h1 {
        font-size: clamp(3.35rem, 18vw, 5.6rem);
        white-space: normal;
    }

    h2 {
        font-size: clamp(2.55rem, 13vw, 4.2rem);
    }

    .subtitle {
        font-size: 1.16rem;
    }

    .board-label {
        margin-bottom: 20px;
        font-size: 1.05rem;
    }

    .shock-grid article {
        gap: 8px;
    }

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

    .kpi-strip,
    .planning-grid {
        grid-template-columns: 1fr;
    }

    .kpi-card {
        min-height: auto;
        padding: 24px;
        grid-template-rows: auto auto auto auto;
        gap: 12px;
    }

    .kpi-card p,
    .kpi-card em {
        min-height: 0;
    }

    .kpi-values {
        min-height: auto;
        padding-bottom: 12px;
    }

    .kpi-values strong {
        font-size: clamp(2.15rem, 12vw, 4rem);
    }

    .kpi-values span {
        font-size: 1rem;
    }

    .planning-tile:last-child {
        grid-column: auto;
    }

    .chart-card {
        min-height: 0;
    }

    .slope-row {
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: 126px;
    }

    .slope-track {
        margin: 12px 0;
    }

    .stacked-row {
        grid-template-columns: 1fr;
    }

    .stacked-bar {
        height: 74px;
    }

    .matrix-wrap {
        margin-top: 22px;
        padding: 58px 0 66px;
    }

    .risk-matrix {
        grid-template-columns: 1fr;
    }

    .matrix-cell {
        min-height: 124px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .matrix-cell:nth-child(n + 3) {
        border-bottom: 1px solid var(--line);
    }

    .matrix-cell:last-child {
        border-bottom: 0;
    }

    .axis-label.left,
    .axis-label.right {
        display: none;
    }

    .axis-label.top,
    .axis-label.bottom {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        letter-spacing: 0.16em;
    }

    .planning-tile {
        min-height: auto;
        display: grid;
        grid-template-rows: 64px auto auto;
        gap: 16px;
    }

    .planning-tile span {
        margin-bottom: 22px;
    }

    .planning-tile h3 {
        min-height: 0;
        margin-bottom: 0;
    }

    .planning-tile p {
        max-width: none;
    }
}
