/* ==========================================================================
   Transformera — dark premium
   Built on the existing brand palette. Green-yellow is a signal, not a wash:
   it appears at most twice per viewport. Depth comes from layered translucent
   surfaces, a top highlight edge, and long soft shadows.
   ========================================================================== */

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

:root {
    /* Brand ground */
    --ink:        #06060F;
    --surface-1:  #0C0C17;
    --surface-2:  #12121F;

    /* Brand accents */
    --lime:       #C2F970;
    --lime-dim:   #9BD44A;
    --peri:       #C8C5F2;
    --peri-soft:  #8A8BD3;
    --twilight:   #4744B6;
    --ghost:      #F8F8FF;

    /* Text */
    --text:       #F4F4FB;
    --text-2:     #A5A5BE;
    --text-3:     #6E6E8A;

    /* Translucent system — every surface and edge derives from these */
    --glass:      rgba(255, 255, 255, 0.045);
    --glass-2:    rgba(255, 255, 255, 0.075);
    --edge:       rgba(255, 255, 255, 0.09);
    --edge-2:     rgba(255, 255, 255, 0.15);
    --hi:         rgba(255, 255, 255, 0.07);

    --lift:       0 1px 0 var(--hi) inset, 0 28px 70px -28px rgba(0, 0, 0, 0.9);
    --lift-hover: 0 1px 0 rgba(255, 255, 255, 0.12) inset,
                  0 36px 90px -30px rgba(0, 0, 0, 0.95),
                  0 0 0 1px rgba(194, 249, 112, 0.18);

    --radius:     20px;
    --radius-sm:  14px;

    --shell:      1240px;
    --pad:        clamp(20px, 5vw, 48px);

    --display: 'Sora', 'Helvetica Neue', Arial, sans-serif;
    --body:    'Manrope', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }

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

::selection { background: rgba(194, 249, 112, 0.28); color: #fff; }

/* --------------------------------------------------------------------------
   Ambient light. Two wide, very low-alpha pools plus a fine grain, so large
   dark areas have tone instead of going flat and cheap.
   -------------------------------------------------------------------------- */

.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60rem 40rem at 12% -8%, rgba(71, 68, 182, 0.30), transparent 62%),
        radial-gradient(48rem 34rem at 92% 6%, rgba(194, 249, 112, 0.085), transparent 60%),
        radial-gradient(52rem 40rem at 70% 88%, rgba(138, 139, 211, 0.11), transparent 65%);
}

.ambient::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.d1, .d2, .d3, .d4 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.03;
    text-wrap: balance;
}

.d1 { font-size: clamp(2.6rem, 6.2vw, 5.1rem); }
.d2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.028em; }
.d3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); letter-spacing: -0.022em; line-height: 1.18; }
.d4 { font-size: 1.0625rem; letter-spacing: -0.015em; line-height: 1.25; font-weight: 600; }

/* The one glowing thing in the hero */
.glow-text {
    color: var(--lime);
    text-shadow: 0 0 48px rgba(194, 249, 112, 0.42), 0 0 100px rgba(194, 249, 112, 0.16);
}

/* Small caps label. No mono — wide-tracked Manrope reads more expensive. */
.label {
    font-family: var(--body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--text-3);
}

.label--lime { color: var(--lime); }
.label--peri { color: var(--peri-soft); }

.lede {
    font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-2);
    font-weight: 400;
    max-width: 52ch;
}

.prose { color: var(--text-2); max-width: 64ch; }
.prose + .prose { margin-top: 1.05em; }

/* --------------------------------------------------------------------------
   Chip — eyebrow with a live dot
   -------------------------------------------------------------------------- */

.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 13px;
    border: 1px solid var(--edge);
    border-radius: 999px;
    background: var(--glass);
    box-shadow: 0 1px 0 var(--hi) inset;
}

.chip__dot {
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 3px rgba(194, 249, 112, 0.16);
}

.chip__dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--lime);
    opacity: 0.6;
    animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
    0%   { transform: scale(0.7); opacity: 0.7; }
    70%  { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Navigation — floating blurred bar
   -------------------------------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: 16px;
    padding-bottom: 16px;
}

.nav__bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 62px;
    padding: 0 12px 0 20px;
    border: 1px solid var(--edge);
    border-radius: 999px;
    background: rgba(12, 12, 23, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 1px 0 var(--hi) inset, 0 20px 50px -24px rgba(0, 0, 0, 0.9);
}

.nav__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: -0.02em;
    color: var(--text);
    flex: 0 0 auto;
}

.nav__logo .mark { width: 26px; height: 26px; color: var(--lime); }

.nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav__link {
    display: block;
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover { color: var(--text); background: var(--glass); }

.nav__link[aria-current='page'] { color: var(--text); background: var(--glass-2); }

.nav__burger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    position: relative;
    border: 1px solid var(--edge);
}

.nav__burger span {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.24s ease, opacity 0.18s ease;
}

.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 20px; }
.nav__burger span:nth-child(3) { top: 25px; }

.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 24px;
    border-radius: 999px;
    font-family: var(--body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.24s ease,
                background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn__arrow { transition: transform 0.24s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--lime {
    background: var(--lime);
    color: #0A1200;
    box-shadow: 0 0 0 0 rgba(194, 249, 112, 0.22), 0 14px 34px -12px rgba(194, 249, 112, 0.42);
}

.btn--lime:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 6px rgba(194, 249, 112, 0.13), 0 18px 44px -12px rgba(194, 249, 112, 0.55);
}

.btn--ghost {
    border: 1px solid var(--edge-2);
    background: var(--glass);
    color: var(--text);
    box-shadow: 0 1px 0 var(--hi) inset;
}

.btn--ghost:hover { background: var(--glass-2); border-color: rgba(255, 255, 255, 0.26); }

.btn--sm { padding: 11px 18px; font-size: 0.875rem; }

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.section { padding: clamp(56px, 6vw, 88px) 0; }
.section--top { padding-top: clamp(32px, 3.5vw, 52px); }

.sechead { margin-bottom: clamp(36px, 4vw, 56px); }
.sechead__label { display: block; margin-bottom: 18px; }
.sechead__title { margin-bottom: 20px; max-width: 24ch; }

/* Hairline divider that fades at both ends */
.rule {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--edge), transparent);
}

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

.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 6vw, 80px); }

.hero__chip { margin-bottom: 28px; }
.hero__title { margin-bottom: 26px; max-width: 19ch; }
.hero__lede { margin-bottom: 36px; }

/* --------------------------------------------------------------------------
   Surfaces — one card recipe, used everywhere
   -------------------------------------------------------------------------- */

.card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    background: linear-gradient(158deg, var(--glass-2), var(--glass) 55%, rgba(255, 255, 255, 0.018));
    box-shadow: var(--lift);
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1),
                box-shadow 0.28s ease, border-color 0.28s ease;
}

.card--hover:hover {
    transform: translateY(-4px);
    border-color: rgba(194, 249, 112, 0.26);
    box-shadow: var(--lift-hover);
}

/* Stat row */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat__val {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.1rem, 3.4vw, 2.9rem);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 12px;
    color: var(--text);
}

.stat__val--sm {
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--lime);
}

.stat__label { display: block; margin-bottom: 12px; }

.stat__note {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-2);
}

/* --------------------------------------------------------------------------
   Signature: the complexity-to-clarity plot
   -------------------------------------------------------------------------- */

.plot { position: relative; }

.plot__frame { overflow-x: auto; overscroll-behavior-x: contain; }
.plot__svg { width: 100%; height: auto; }

.plot__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--edge);
}

.plot__legend-item { display: flex; align-items: center; gap: 9px; }

.plot__swatch {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.pl-tangle {
    fill: none;
    stroke: var(--peri);
    stroke-width: 1.2;
    opacity: 0.46;
}

.pl-gate {
    stroke: var(--lime);
    stroke-width: 3.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 12px rgba(194, 249, 112, 0.75));
    transform-box: fill-box;
    transform-origin: center;
}

.pl-lane {
    fill: none;
    stroke: var(--ghost);
    stroke-width: 1.5;
    opacity: 0.85;
}

.pl-node {
    fill: var(--lime);
    filter: drop-shadow(0 0 8px rgba(194, 249, 112, 0.9));
}

.pl-label {
    font-family: var(--body);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    fill: var(--text-3);
}

.pl-label--lime { fill: var(--lime); }
.pl-label--peri { fill: var(--peri-soft); }
.pl-label--out  { fill: var(--text-2); letter-spacing: 0.1em; }

/* --------------------------------------------------------------------------
   Pillars
   -------------------------------------------------------------------------- */

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

.pillar { padding: 30px 28px 32px; }

.pillar__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    border: 1px solid rgba(194, 249, 112, 0.3);
    border-radius: 12px;
    background: rgba(194, 249, 112, 0.07);
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--lime);
}

.pillar__stage { display: block; margin-bottom: 12px; }
.pillar__title { margin-bottom: 14px; }

.pillar__body {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-2);
}

/* --------------------------------------------------------------------------
   Stages — vertical track with a glowing spine
   -------------------------------------------------------------------------- */

.stages { position: relative; }

.stage {
    position: relative;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 0 26px;
    padding-bottom: 34px;
}

.stage:last-child { padding-bottom: 0; }

/* The spine connects the stages, so it only draws between them */
.stage:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 52px;
    bottom: 6px;
    left: 21px;
    width: 1px;
    background: linear-gradient(180deg, rgba(194, 249, 112, 0.5), rgba(194, 249, 112, 0.05));
}

.stage__dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border: 1px solid var(--edge-2);
    border-radius: 50%;
    background: var(--surface-2);
    box-shadow: 0 1px 0 var(--hi) inset;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--lime);
}

.stage__from { display: block; margin-bottom: 6px; }
.stage__name { margin-bottom: 8px; }

.stage__body {
    font-size: 0.9375rem;
    color: var(--text-2);
    max-width: 56ch;
}

.stage__head { padding-top: 3px; }

/* Principles */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.principle { padding: 24px 26px 26px; }

.principle__mark {
    width: 8px;
    height: 8px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 12px rgba(194, 249, 112, 0.8);
}

.principle__name { margin-bottom: 8px; }

.principle__body {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-2);
}

/* --------------------------------------------------------------------------
   Split layout (approach: copy left, principles right)
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */

.cta {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 72px);
    border: 1px solid var(--edge);
    border-radius: 28px;
    background:
        radial-gradient(40rem 22rem at 78% 12%, rgba(194, 249, 112, 0.15), transparent 65%),
        radial-gradient(36rem 24rem at 8% 96%, rgba(71, 68, 182, 0.4), transparent 62%),
        linear-gradient(158deg, var(--glass-2), rgba(255, 255, 255, 0.02));
    box-shadow: var(--lift);
    text-align: center;
}

.cta__title { margin: 0 auto 18px; max-width: 22ch; }
.cta__body { margin: 0 auto 30px; max-width: 48ch; color: var(--text-2); }
.cta__actions { justify-content: center; }

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

.foot { padding: clamp(48px, 6vw, 72px) 0 44px; }

.foot__top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--edge);
}

.foot__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.foot__logo .mark { width: 24px; height: 24px; color: var(--lime); }

.foot__text {
    font-size: 0.9375rem;
    color: var(--text-2);
    max-width: 40ch;
}

.foot__head { display: block; margin-bottom: 16px; }

.foot__list li + li { margin-top: 10px; }

.foot__list a {
    font-size: 0.9375rem;
    color: var(--text-2);
    transition: color 0.2s ease;
}

.foot__list a:hover { color: var(--lime); }

.foot__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 24px;
}

.foot__meta { font-size: 0.8125rem; color: var(--text-3); }

.foot__legal { display: flex; gap: 22px; }

.foot__legal a { transition: color 0.2s ease; }
.foot__legal a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.js .rise {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js .rise.is-in { opacity: 1; transform: none; }

/* Stagger children of a revealed row */
.js .rise--stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js .rise--stagger.is-in > * { opacity: 1; transform: none; }
.js .rise--stagger.is-in > *:nth-child(2) { transition-delay: 0.08s; }
.js .rise--stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
.js .rise--stagger.is-in > *:nth-child(4) { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   Plot draw-in
   -------------------------------------------------------------------------- */

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes gateIn { to { transform: scaleY(1); opacity: 1; } }

.plot--anim .pl-tangle {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.2s ease-out forwards;
}

.plot--anim .pl-gate {
    transform: scaleY(0);
    opacity: 0;
    animation: gateIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards;
}

.plot--anim .pl-lane {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 0.9s ease-out 1.15s forwards;
}

.plot--anim .pl-node,
.plot--anim .pl-label {
    opacity: 0;
    animation: fade 0.55s ease-out forwards;
}

.plot--anim .pl-node  { animation-delay: 1.9s; }
.plot--anim .pl-label { animation-delay: 2s; }
.plot--anim .pl-label--peri { animation-delay: 0.15s; }
.plot--anim .pl-label--lime { animation-delay: 1.3s; }

.plot--anim .pl-tangle:nth-of-type(1) { animation-delay: 0.04s; }
.plot--anim .pl-tangle:nth-of-type(2) { animation-delay: 0.10s; }
.plot--anim .pl-tangle:nth-of-type(3) { animation-delay: 0.15s; }
.plot--anim .pl-tangle:nth-of-type(4) { animation-delay: 0.21s; }
.plot--anim .pl-tangle:nth-of-type(5) { animation-delay: 0.26s; }
.plot--anim .pl-tangle:nth-of-type(6) { animation-delay: 0.32s; }
.plot--anim .pl-tangle:nth-of-type(7) { animation-delay: 0.37s; }
.plot--anim .pl-tangle:nth-of-type(8) { animation-delay: 0.42s; }
.plot--anim .pl-tangle:nth-of-type(9) { animation-delay: 0.48s; }
.plot--anim .pl-tangle:nth-of-type(10) { animation-delay: 0.54s; }
.plot--anim .pl-tangle:nth-of-type(11) { animation-delay: 0.59s; }
.plot--anim .pl-tangle:nth-of-type(12) { animation-delay: 0.65s; }
.plot--anim .pl-tangle:nth-of-type(13) { animation-delay: 0.70s; }
.plot--anim .pl-tangle:nth-of-type(14) { animation-delay: 0.76s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1040px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .split { grid-template-columns: minmax(0, 1fr); }
    .foot__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav__links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px;
        border: 1px solid var(--edge);
        border-radius: var(--radius);
        background: rgba(12, 12, 23, 0.96);
        backdrop-filter: blur(18px);
        box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.95);
        display: none;
    }

    .nav.is-open .nav__links { display: flex; }
    .nav__link { padding: 13px 14px; border-radius: var(--radius-sm); }
    .nav__links .btn { margin-top: 8px; width: 100%; }
    .nav__burger { display: block; }

    .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .hero__title { max-width: none; }
}

@media (max-width: 760px) {
    .plot__svg { min-width: 620px; }
    .plot__frame { padding-bottom: 10px; }
}

@media (max-width: 560px) {
    .stats { grid-template-columns: minmax(0, 1fr); }
    .foot__top { grid-template-columns: minmax(0, 1fr); }
    .actions .btn { width: 100%; }
    .card { padding: 24px 22px; }
    .stage { grid-template-columns: 44px minmax(0, 1fr); gap: 0 18px; }
    .stage__dot { width: 36px; height: 36px; font-size: 0.875rem; }
    .stage:not(:last-child)::before { left: 18px; top: 44px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .js .rise,
    .js .rise--stagger > * { opacity: 1; transform: none; }

    .plot--anim .pl-tangle,
    .plot--anim .pl-lane { stroke-dashoffset: 0; }
    .plot--anim .pl-gate { transform: none; opacity: 1; }
    .plot--anim .pl-node,
    .plot--anim .pl-label { opacity: 1; }
}

/* ==========================================================================
   Sub-page components
   ========================================================================== */

/* Page head — shorter than the home hero, same voice */
.pagehead { padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 3vw, 40px); }
.pagehead__chip { margin-bottom: 24px; }
.pagehead__title { margin-bottom: 22px; max-width: 20ch; }

/* --------------------------------------------------------------------------
   Checklists — a lime tick instead of a bullet
   -------------------------------------------------------------------------- */

.checks { display: grid; gap: 12px; }

.check {
    position: relative;
    padding-left: 30px;
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.check::before {
    content: '';
    position: absolute;
    top: 0.52em;
    left: 4px;
    width: 12px;
    height: 6px;
    border-left: 1.6px solid var(--lime);
    border-bottom: 1.6px solid var(--lime);
    transform: rotate(-45deg);
}

/* A plain dotted variant for statements of fact rather than deliverables */
.dots { display: grid; gap: 10px; }

.dot-item {
    position: relative;
    padding-left: 22px;
    color: var(--text-2);
    font-size: 0.9375rem;
}

.dot-item::before {
    content: '';
    position: absolute;
    top: 0.66em;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--peri-soft);
}

.dots--nested { margin: 10px 0 0 22px; }

/* --------------------------------------------------------------------------
   Legal content — numbered clauses, hairline rule between each
   -------------------------------------------------------------------------- */

.legal { max-width: 74ch; }

.legal__item + .legal__item {
    margin-top: clamp(32px, 4vw, 44px);
    padding-top: clamp(32px, 4vw, 44px);
    border-top: 1px solid var(--edge);
}

.legal__title {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 16px;
}

.legal__num {
    font-family: var(--display);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--lime);
    letter-spacing: 0.02em;
}

.legal .prose + .dots,
.legal .dots + .prose { margin-top: 14px; }

.legal__link {
    color: var(--lime);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(194, 249, 112, 0.4);
    transition: color 0.2s ease;
}

.legal__link:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Figure block — one oversized number with its caption
   -------------------------------------------------------------------------- */

.figure {
    display: flex;
    align-items: baseline;
    gap: 22px;
    flex-wrap: wrap;
}

.figure__val {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(3.4rem, 7vw, 5.4rem);
    line-height: 0.9;
    letter-spacing: -0.045em;
    color: var(--lime);
    text-shadow: 0 0 60px rgba(194, 249, 112, 0.32);
}

.figure__cap {
    font-size: 1rem;
    color: var(--text-2);
    max-width: 34ch;
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

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

.field { display: grid; gap: 9px; }
.field--wide { grid-column: 1 / -1; }

.field__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.005em;
}

.field__req { color: var(--lime); }

.input, .select, .textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--edge);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 1px 0 var(--hi) inset;
    font-family: var(--body);
    font-size: 0.9375rem;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input::placeholder, .textarea::placeholder { color: var(--text-3); }

.input:hover, .select:hover, .textarea:hover { border-color: var(--edge-2); }

.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: rgba(194, 249, 112, 0.55);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(194, 249, 112, 0.13);
}

.textarea { min-height: 148px; resize: vertical; line-height: 1.6; }

/* Native select needs an explicit arrow and dark option colours */
.select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236E6E8A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.select option { background: var(--surface-2); color: var(--text); }

.form__submit { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }

.form__feedback {
    display: none;
    grid-column: 1 / -1;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--edge);
    font-size: 0.9375rem;
}

.form__feedback--success {
    display: block;
    border-color: rgba(194, 249, 112, 0.4);
    background: rgba(194, 249, 112, 0.09);
    color: var(--lime);
}

.form__feedback--error {
    display: block;
    border-color: rgba(255, 138, 120, 0.42);
    background: rgba(255, 138, 120, 0.1);
    color: #FFB3A7;
}

/* --------------------------------------------------------------------------
   Contact layout — form beside the direct routes
   -------------------------------------------------------------------------- */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
}

.aside { display: grid; gap: 16px; }

.info { padding: 24px 26px 26px; }

.info__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border: 1px solid rgba(194, 249, 112, 0.28);
    border-radius: 11px;
    background: rgba(194, 249, 112, 0.07);
    color: var(--lime);
}

.info__icon svg { width: 18px; height: 18px; }

.info__name { margin-bottom: 8px; }

.info__body {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-2);
}

.info__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--lime);
}

.info__link:hover { text-decoration: underline; text-underline-offset: 3px; }

.info__value {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.02em;
    color: var(--text);
    word-break: break-word;
}

.info__value:hover { color: var(--lime); }

/* --------------------------------------------------------------------------
   Story blocks — alternating copy and supporting panel
   -------------------------------------------------------------------------- */

.story { display: grid; gap: clamp(28px, 4vw, 56px); }

.story__panel { padding: 30px 30px 32px; }

.story__panel-head { margin-bottom: 18px; }

.pull {
    padding: 26px 28px;
    border-left: 2px solid var(--lime);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: linear-gradient(90deg, rgba(194, 249, 112, 0.07), transparent 80%);
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.5;
    color: var(--text);
    font-weight: 500;
}

@media (max-width: 900px) {
    .contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    .form { grid-template-columns: minmax(0, 1fr); }
    .form__submit { justify-self: stretch; }
    .figure { gap: 14px; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.service { padding: clamp(26px, 3vw, 42px); }

.service + .service { margin-top: 20px; }

.service__head {
    padding-bottom: 26px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--edge);
}

.service__badge {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.service__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border: 1px solid rgba(194, 249, 112, 0.3);
    border-radius: 13px;
    background: rgba(194, 249, 112, 0.07);
    font-family: var(--display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--lime);
}

.service__title { margin-bottom: 16px; }

.service__intro {
    color: var(--text-2);
    max-width: 72ch;
    font-size: 1rem;
}

/* The three supporting lists sit side by side on wide screens */
.service__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 40px);
}

.sublist__head {
    display: block;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--edge);
}

/* What we deliver — nested capability groups */
.deliver {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}

.mini {
    padding: 20px 22px 22px;
    border: 1px solid var(--edge);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
}

.mini__name {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}

.mini__name::before {
    content: '';
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 10px rgba(194, 249, 112, 0.8);
}

.mini .dots { gap: 7px; }
.mini .dot-item { font-size: 0.875rem; padding-left: 18px; }
.mini .dot-item::before { width: 4px; height: 4px; top: 0.62em; }

.service__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding-top: 28px;
    margin-top: 30px;
    border-top: 1px solid var(--edge);
}

.service__outcomes {
    padding: 22px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(194, 249, 112, 0.18);
    background: linear-gradient(140deg, rgba(194, 249, 112, 0.06), transparent 70%);
}

@media (max-width: 980px) {
    .service__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .sublist__head { margin-bottom: 14px; }
}

@media (max-width: 620px) {
    .deliver { grid-template-columns: minmax(0, 1fr); }
    .service__badge { flex-wrap: wrap; }
    .service__foot .btn { width: 100%; }
}
