/*--------------------------------------------------------------
# DotEdx - landing.css
# The public page at /. Loaded ONLY by _LandingLayout, after app.css.
#
# Every colour here comes from an app.css token, so the landing page
# retunes with the product instead of drifting away from it, and both
# themes work with no second palette to maintain. The handful of
# landing-only values below are scoped to .lp-body for the same reason
# the console scopes its accent to .platform-body: nothing here may
# leak into a screen a signed-in user sees.
#
# NO EXTERNAL REQUESTS AND NO LIBRARY. The CSP is script-src 'self',
# so a 3D library from a CDN is not an option -- and it is not needed.
# The hero is real 3D (perspective + preserve-3d) built from four
# divs, which costs nothing to download, animates on the compositor
# and degrades to a flat stack when transforms are unavailable.
--------------------------------------------------------------*/

.lp-body {
    /* Landing-only surfaces. Deliberately deeper than the app's --background-color: this page
       is a dark showroom around a lit object, while the app is a workspace you read all day. */
    --lp-bg: var(--background-color);
    --lp-glass: color-mix(in srgb, var(--surface-color) 72%, transparent);
    --lp-glass-line: var(--hairline-strong);
    --lp-max: 1180px;
    --lp-section-y: clamp(64px, 9vh, 128px);

    margin: 0;
    background: var(--lp-bg);
    color: var(--default-color);
    font-family: var(--default-font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* The page is one long document; the app's smooth-scroll token makes the in-page nav links glide
   rather than jump. */
.lp-body a { color: inherit; text-decoration: none; }
.lp-body h1, .lp-body h2, .lp-body h3 { font-family: var(--heading-font); color: var(--heading-color); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
.lp-body p { margin: 0; }

.lp-shell { max-width: var(--lp-max); margin-inline: auto; padding-inline: clamp(16px, 4vw, 28px); }

.lp-skip { position: absolute; left: -9999px; top: 0; background: var(--surface-color); color: var(--text-strong); padding: .7rem 1rem; border-radius: 0 0 10px 0; z-index: 100; }
.lp-skip:focus { left: 0; }

/* ---------- Ambient background ----------
   Three slow-drifting radial washes plus a fine grain. Painted on a fixed, pointer-transparent
   layer so scrolling never repaints the gradients and nothing here can swallow a click. */
.lp-aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lp-aurora span {
    position: absolute; display: block; border-radius: 50%;
    opacity: .5;
    animation: lp-drift 26s ease-in-out infinite alternate;
}
/* NO filter: blur() HERE, and that is a performance fix rather than a visual preference. These
   are ~700px wide; a 90px blur on one is an enormous convolution, and the drift below used to
   animate scale() as well — which forces the blurred layer to be RE-RASTERISED every frame
   instead of merely re-composited. Three of them ran permanently, so the page burned GPU while
   the reader sat still. The blur was redundant anyway: each span is a radial-gradient that
   already fades to transparent, so softening it again bought almost nothing. */
.lp-aurora span:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: -14vw; background: radial-gradient(circle, rgba(121,195,47,.40), transparent 68%); }
.lp-aurora span:nth-child(2) { width: 44vw; height: 44vw; right: -10vw; top: 12vh; background: radial-gradient(circle, rgba(34,197,94,.30), transparent 68%); animation-delay: -9s; animation-duration: 32s; }
.lp-aurora span:nth-child(3) { width: 58vw; height: 58vw; left: 22vw; bottom: -26vw; background: radial-gradient(circle, rgba(63,156,12,.26), transparent 70%); animation-delay: -17s; animation-duration: 38s; }
html[data-theme="light"] .lp-aurora span { opacity: .34; }

/* Translation only. scale() changes the rasterised size of the layer, so the compositor cannot
   simply move an already-painted texture — it has to repaint. A pure translate3d stays on the
   compositor thread and costs effectively nothing. */
@keyframes lp-drift {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(5vw, 6vh, 0); }
}

/* Grain sits above the washes and under the content. An inline SVG data URI rather than a PNG:
   img-src allows data:, it is a few hundred bytes, and it scales with no second asset to ship.

   NO mix-blend-mode. A blend mode on a FIXED, full-viewport layer makes the browser composite the
   entire visible page through it on every frame, which is precisely the work you do not want
   sitting permanently between the reader and everything else. Plain alpha gets most of the
   texture for none of that, so the opacity is lowered to compensate for the harder look. */
.lp-grain {
    position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.lp-main { position: relative; z-index: 2; }

/* ---------- Nav ---------- */
.lp-nav {
    position: sticky; top: 0; z-index: 40;
    backdrop-filter: blur(14px) saturate(140%);
    background: color-mix(in srgb, var(--lp-bg) 76%, transparent);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, background .25s ease;
}
/* The hairline appears only once the page has moved, so the hero reads as one surface at rest. */
.lp-nav.is-stuck { border-bottom-color: var(--hairline); background: color-mix(in srgb, var(--lp-bg) 92%, transparent); }
.lp-nav-in { display: flex; align-items: center; gap: var(--space-5); height: 68px; }

.lp-brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--heading-font); font-weight: 700; font-size: 1.12rem; color: var(--text-strong); }
.lp-brand .edx { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lp-nav-links { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; font-family: var(--nav-font); font-size: .88rem; }
.lp-nav-links a { padding: .5rem .7rem; border-radius: 9px; color: var(--text-soft); transition: color .18s ease, background .18s ease; }
.lp-nav-links a:hover { color: var(--text-strong); background: var(--hover-bg); }
.lp-nav-actions { display: flex; align-items: center; gap: var(--space-2); }

.lp-nav-toggle { display: none; }

/* ---------- Hero ---------- */
.lp-hero { position: relative; padding-top: clamp(40px, 7vh, 84px); padding-bottom: var(--lp-section-y); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }

.lp-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--nav-font); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--accent-link);
    background: var(--brand-grad-soft); border: 1px solid var(--accent-border);
    padding: .4rem .75rem; border-radius: 999px;
}
.lp-eyebrow .icon { width: 1em; height: 1em; }

.lp-h1 { font-size: clamp(2.3rem, 5.6vw, 4.05rem); margin-top: var(--space-5); font-weight: 700; }
.lp-h1 em { font-style: normal; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lede { margin-top: var(--space-5); font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.62; color: var(--text-soft); max-width: 54ch; }

.lp-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.lp-cta-row .btn { padding: .78rem 1.35rem; font-size: .95rem; border-radius: 12px; }

.lp-hero-note { margin-top: var(--space-6); font-size: .85rem; color: var(--text-faint); display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.lp-hero-note span { display: inline-flex; align-items: center; gap: .4rem; }
.lp-hero-note .icon { color: var(--emerald); }

/* ---------- The 3D scene ----------
   One institution drawn as the four planes the product actually has. The slabs are stacked on the
   Z axis inside a rotated, preserve-3d stage; the labels are NOT in that stage, because text
   inside a 56-degree rotation is unreadable -- they are flat 2D chips positioned over it, which
   also keeps them crisp and selectable. */
.lp-scene {
    position: relative;
    perspective: 1500px;
    perspective-origin: 50% 42%;
    height: clamp(330px, 42vw, 470px);
    --rx: 0deg; /* written by landing.js from pointer position */
    --rz: 0deg;
}

.lp-stage {
    position: absolute; inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(calc(54deg + var(--rx))) rotateZ(calc(-38deg + var(--rz)));
    transition: transform .28s cubic-bezier(.2, .7, .2, 1);
    animation: lp-hover 9s ease-in-out infinite alternate;
}
@keyframes lp-hover {
    from { translate: 0 -8px; }
    to   { translate: 0 8px; }
}

.lp-slab {
    position: absolute; left: 50%; top: 50%;
    width: min(330px, 62%); aspect-ratio: 3 / 2;
    margin-left: min(-165px, -31%); margin-top: -11%;
    border-radius: 18px;
    transform: translate3d(0, 0, var(--z, 0px));
    background: linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 88%, transparent), color-mix(in srgb, var(--surface-deep) 92%, transparent));
    border: 1px solid var(--lp-glass-line);
    box-shadow: var(--elev-2), 0 0 0 1px color-mix(in srgb, var(--accent-color) 12%, transparent) inset;
    padding: 14px 16px;
    animation: lp-slab-float 7s ease-in-out infinite alternate;
}
/* Each plane sits a fixed distance above the one below it, and the separation is the point: it is
   the hierarchy, drawn. */
.lp-slab--platform    { --z: 0px;   animation-delay: -.2s; }
.lp-slab--institution { --z: 54px;  animation-delay: -1.4s; }
.lp-slab--campus      { --z: 108px; animation-delay: -2.6s; }
.lp-slab--portals     { --z: 162px; animation-delay: -3.8s; }

@keyframes lp-slab-float {
    from { transform: translate3d(0, 0, var(--z)); }
    to   { transform: translate3d(0, 0, calc(var(--z) + 14px)); }
}

/* A single sheen that crosses each slab on a long loop, so the glass reads as glass.

   IT TRANSLATES, it does not slide a background-position. background-position is not a
   compositor property: animating it repainted all four slabs on every frame, permanently. A
   transform on a narrow strip clipped by the slab looks identical and runs on the compositor.
   The clip is why the slab no longer declares preserve-3d — it has no 3D children of its own
   (the mini UI inside is flat), and overflow:hidden would force it flat regardless. */
.lp-slab { overflow: hidden; }
.lp-slab::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 55%;
    pointer-events: none;
    background: linear-gradient(105deg, transparent, color-mix(in srgb, var(--accent-color) 26%, transparent) 50%, transparent);
    animation: lp-sheen 8s linear infinite;
    opacity: .55;
}
.lp-slab--institution::after { animation-delay: -2s; }
.lp-slab--campus::after { animation-delay: -4s; }
.lp-slab--portals::after { animation-delay: -6s; }
@keyframes lp-sheen {
    from { transform: translateX(-100%); }
    to   { transform: translateX(282%); }
}

/* Miniature UI inside each slab. Abstract on purpose -- a legible screenshot at this angle would
   be a lie about what you can read, and these are shapes that suggest rows, charts and chips. */
.lp-mini { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.lp-mini-row { display: flex; align-items: center; gap: 7px; }
.lp-mini-bar { height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--default-color) 20%, transparent); }
.lp-mini-bar.is-accent { background: var(--brand-grad); }
.lp-mini-dot { width: 13px; height: 13px; border-radius: 5px; background: color-mix(in srgb, var(--accent-color) 38%, transparent); flex: none; }
.lp-mini-cols { display: flex; align-items: flex-end; gap: 6px; margin-top: auto; height: 42%; }
.lp-mini-cols i { flex: 1; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--accent-color) 30%, transparent); }
.lp-mini-cols i:nth-child(2) { background: var(--brand-grad); }
.lp-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: auto; }
.lp-mini-grid i { aspect-ratio: 1; border-radius: 6px; background: color-mix(in srgb, var(--default-color) 13%, transparent); }
.lp-mini-grid i:nth-child(3), .lp-mini-grid i:nth-child(6) { background: color-mix(in srgb, var(--accent-color) 34%, transparent); }

/* Flat labels over the 3D stage. */
.lp-tags { position: absolute; inset: 0; pointer-events: none; }
.lp-tag {
    position: absolute; left: var(--tx); top: var(--ty);
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--nav-font); font-size: .74rem; font-weight: 600; letter-spacing: .02em;
    color: var(--text-soft);
    background: color-mix(in srgb, var(--surface-color) 96%, transparent);
    border: 1px solid var(--hairline-strong);
    padding: .3rem .6rem; border-radius: 999px;
    white-space: nowrap;
}
.lp-tag b { color: var(--text-strong); font-weight: 600; }
.lp-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-color); flex: none; }
.lp-tag--platform    { --tx: 2%;  --ty: 78%; }
.lp-tag--institution { --tx: 60%; --ty: 62%; }
.lp-tag--campus      { --tx: 0%;  --ty: 34%; }
.lp-tag--portals     { --tx: 58%; --ty: 12%; }

/* ---------- Facts band ----------
   Product facts, not customer counts. Nothing here is a claim we cannot point at in the codebase. */
.lp-facts { border-block: 1px solid var(--hairline); background: color-mix(in srgb, var(--surface-color) 40%, transparent); }
.lp-facts-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-6); padding-block: var(--space-10); }
.lp-fact b { display: block; font-family: var(--heading-font); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; color: var(--text-strong); line-height: 1; }
.lp-fact span { display: block; margin-top: .5rem; font-size: .88rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- Sections ---------- */
.lp-section { padding-block: var(--lp-section-y); }
.lp-section-head { max-width: 62ch; }
.lp-kicker { font-family: var(--nav-font); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-link); }
.lp-h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-top: var(--space-4); }
.lp-sub { margin-top: var(--space-4); font-size: 1.02rem; line-height: 1.62; color: var(--text-soft); }

/* ---------- Workflow ---------- */
.lp-flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: var(--space-10); }
.lp-chain { width: 100%; height: auto; overflow: visible; }
/* Dashed rather than solid: it reads as a route still being travelled, and at 12% white a solid
   hairline all but disappears against the page. */
.lp-chain-track { fill: none; stroke: var(--hairline-strong); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
/* One dash travelling the whole path, so the chain reads as a route a request takes rather than
   four unrelated badges. The dash figures follow the path length (354px for M56 46 V400) -- change
   the geometry in the view and these have to move with it. */
.lp-chain-pulse { fill: none; stroke: var(--accent-color); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 34 390; animation: lp-pulse 4.4s linear infinite; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent-color) 75%, transparent)); }
@keyframes lp-pulse { from { stroke-dashoffset: 424; } to { stroke-dashoffset: 0; } }
.lp-chain-node { fill: var(--surface-color); stroke: var(--hairline-strong); stroke-width: 2; }
.lp-chain-node.is-done { stroke: var(--accent-color); fill: color-mix(in srgb, var(--accent-color) 16%, var(--surface-color)); }
.lp-chain-ico { fill: none; stroke: var(--text-soft); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lp-chain-node.is-done + .lp-chain-ico { stroke: var(--accent-link); }
.lp-chain text { font-family: var(--nav-font); font-size: 15px; font-weight: 600; fill: var(--text-strong); }
.lp-chain .lp-chain-step { font-size: 11.5px; fill: var(--text-faint); font-weight: 500; }

.lp-points { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-5); }
.lp-points li { display: grid; grid-template-columns: 26px 1fr; gap: var(--space-4); align-items: start; }
.lp-points .icon { width: 20px; height: 20px; color: var(--emerald); margin-top: 2px; }
.lp-points b { display: block; color: var(--text-strong); font-family: var(--nav-font); font-size: .97rem; }
.lp-points p { margin-top: .3rem; font-size: .92rem; line-height: 1.6; color: var(--text-muted); }

/* ---------- Card grids ---------- */
.lp-grid { display: grid; gap: var(--space-5); margin-top: var(--space-10); }
.lp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.lp-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.lp-card {
    position: relative;
    padding: var(--space-6);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-color) 72%, transparent);
    border: 1px solid var(--hairline);
    box-shadow: var(--elev-1);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    overflow: hidden;
}
.lp-card::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-color) 55%, transparent), transparent);
    opacity: 0; transition: opacity .22s ease;
}
.lp-card:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: var(--elev-2), var(--glow-green); }
.lp-card:hover::before { opacity: 1; }

.lp-card-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-grad-soft); border: 1px solid var(--accent-border); color: var(--accent-link); }
.lp-card-ico .icon { width: 20px; height: 20px; }
.lp-card h3 { margin-top: var(--space-5); font-size: 1.06rem; }
.lp-card p { margin-top: var(--space-3); font-size: .92rem; line-height: 1.6; color: var(--text-muted); }

/* Role cards tilt toward the pointer. A small rotation only -- this is a card, not a toy, and a
   big one makes the text swim. */
.lp-role { --mx: 50%; --my: 50%; }
.lp-role::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease;
    background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent-color) 16%, transparent), transparent 70%);
}
.lp-role:hover::after { opacity: 1; }
.lp-role-tag { font-family: var(--nav-font); font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); }
.lp-role ul { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: .5rem; }
.lp-role li { position: relative; padding-left: 1.1rem; font-size: .88rem; color: var(--text-muted); line-height: 1.55; }
.lp-role li::before { content: ""; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-color); }

/* ---------- Accreditation ---------- */
.lp-naac { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.lp-ledger { border-radius: var(--radius); border: 1px solid var(--hairline); background: color-mix(in srgb, var(--surface-color) 80%, transparent); box-shadow: var(--elev-2); overflow: hidden; }
.lp-ledger-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--hairline); font-family: var(--nav-font); font-size: .82rem; color: var(--text-muted); }
.lp-ledger-head b { color: var(--text-strong); font-weight: 600; }
.lp-ledger-row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--hairline); }
.lp-ledger-row:last-child { border-bottom: 0; }
.lp-ledger-row small { display: block; margin-top: .2rem; font-size: .78rem; color: var(--text-faint); }
.lp-ledger-row span:first-child { font-size: .9rem; color: var(--text-soft); }
.lp-stamp { font-family: var(--nav-font); font-size: .74rem; font-weight: 700; padding: .25rem .55rem; border-radius: 7px; white-space: nowrap; }
.lp-stamp--ok { color: var(--status-good); background: color-mix(in srgb, var(--status-good) 14%, transparent); }
.lp-stamp--wait { color: var(--status-warn); background: color-mix(in srgb, var(--status-warn) 14%, transparent); }
.lp-ledger-foot { padding: var(--space-4) var(--space-5); font-size: .8rem; color: var(--text-faint); background: color-mix(in srgb, var(--surface-2) 60%, transparent); }

/* ---------- Closing CTA ---------- */
.lp-cta {
    position: relative; overflow: hidden;
    border-radius: 26px; padding: clamp(32px, 6vw, 72px);
    text-align: center;
    background: linear-gradient(145deg, color-mix(in srgb, var(--accent-color) 16%, var(--surface-color)), color-mix(in srgb, var(--surface-deep) 94%, transparent));
    border: 1px solid var(--accent-border);
    box-shadow: var(--elev-2);
}
.lp-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.lp-cta p { margin-top: var(--space-5); margin-inline: auto; max-width: 56ch; color: var(--text-soft); line-height: 1.62; }
.lp-cta .lp-cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.lp-foot { border-top: 1px solid var(--hairline); margin-top: var(--lp-section-y); }
.lp-foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); padding-block: var(--space-8); font-size: .85rem; color: var(--text-faint); }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-left: auto; }
.lp-foot-links a:hover { color: var(--accent-link-hover); }

/* ---------- Off-screen idling ----------
   Set by landing.js when the hero (or the workflow chain) has scrolled out of view. An animation
   nobody can see still costs a frame to advance, and on a page this long the reader spends most
   of their time below the hero — so the scene kept shimmering and floating for the entire scroll.
   Paused rather than removed, so coming back finds it mid-drift rather than snapped to the start. */
.lp-idle-scene .lp-stage,
.lp-idle-scene .lp-slab,
.lp-idle-scene .lp-slab::after { animation-play-state: paused; }
.lp-idle-chain .lp-chain-pulse { animation-play-state: paused; }

/* ---------- Reveal on scroll ----------
   The initial state is applied by landing.js adding .lp-ready to <html>, never in this file. A
   visitor whose JS failed must not be left with a page of invisible sections. */
.lp-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.lp-ready [data-reveal].is-in { opacity: 1; transform: none; }
.lp-ready [data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
.lp-ready [data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
.lp-ready [data-reveal][data-reveal-delay="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .lp-hero-grid, .lp-flow-grid, .lp-naac { grid-template-columns: minmax(0, 1fr); }
    /* NOT order: -1. Putting the scene first on a phone is tempting and wrong -- it is decoration,
       and it pushed the headline, the lede and both calls to action below the fold, so the first
       screen of a landing page said nothing. */
    .lp-scene { height: clamp(290px, 62vw, 400px); }
    .lp-lede, .lp-sub { max-width: none; }
}

@media (max-width: 760px) {
    /* The stage's rotated footprint is wider than the column it sits in and the flat labels ride
       its corners, so they shrink together -- otherwise the longest tag runs off the screen and
       is clipped by the body's overflow rule. */
    .lp-scene { height: clamp(235px, 68vw, 320px); }
    .lp-slab { width: min(238px, 56%); margin-left: min(-119px, -28%); }
    .lp-slab--institution { --z: 40px; }
    .lp-slab--campus      { --z: 80px; }
    .lp-slab--portals     { --z: 120px; }
    .lp-tag { font-size: .64rem; padding: .22rem .5rem; }
    .lp-tag--platform    { --tx: 0%;  --ty: 82%; }
    .lp-tag--campus      { --tx: 0%;  --ty: 28%; }
    /* Anchored to the right edge rather than pushed off it: "parent / student" is the longest
       label on the page and no left offset keeps it inside a 375px screen. */
    .lp-tag--institution { left: auto; right: 0; --ty: 64%; }
    .lp-tag--portals     { left: auto; right: 0; --ty: 6%; }
}

@media (max-width: 760px) {
    /* The link row collapses into the toggle; .is-open drops it below the bar as a sheet. */
    .lp-nav-links {
        display: none; position: absolute; left: 0; right: 0; top: 68px;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: var(--space-3) clamp(16px, 4vw, 28px) var(--space-5);
        /* FULLY OPAQUE, and no backdrop-filter of its own. The translucent fill this started as
           sat inside .lp-nav's backdrop-filter, and the nested pair composited to something far
           more see-through than its 97% alpha implied -- the hero headline read straight through
           the open menu. A navigation sheet gains nothing from translucency anyway. */
        background: var(--lp-bg);
        border-bottom: 1px solid var(--hairline);
        box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
    }
    .lp-nav-links.is-open { display: flex; }
    .lp-nav-links a { padding: .8rem .2rem; font-size: .96rem; border-radius: 0; }
    .lp-nav-toggle { display: inline-flex; margin-left: auto; }
    .lp-nav-actions { margin-left: 0; }
    .lp-nav-in { position: relative; }
    .lp-cta-row .btn { width: 100%; }
    .lp-facts-in { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
}

/* ---------- Reduced motion ----------
   Everything decorative stops. The scene keeps its 3D arrangement -- it is information, not
   motion -- but holds still, and the reveal transitions are removed rather than merely shortened
   so nothing depends on a transitionend that never fires. */
@media (prefers-reduced-motion: reduce) {
    .lp-body { scroll-behavior: auto; }
    .lp-aurora span, .lp-slab, .lp-slab::after, .lp-stage, .lp-chain-pulse { animation: none !important; }
    .lp-stage { transition: none; }
    .lp-slab { transform: translate3d(0, 0, var(--z, 0px)); }
    .lp-chain-pulse { opacity: .85; stroke-dasharray: none; }
    .lp-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
    .lp-card:hover { transform: none; }
}

/* ---------- Print ----------
   Nobody prints a landing page on purpose, but a saved PDF should be readable rather than a black
   rectangle with a 3D stack in it. */
@media print {
    .lp-aurora, .lp-grain, .lp-scene, .lp-nav { display: none; }
    .lp-body { background: #fff; color: #000; }
}
