/* ==========================================================
           PAGE: education.html  (palette sampled from education.jpg:
           near-black with crimson cast, ochre and parchment highlights)
           ========================================================== */
        [data-page="education"] {
            --ed-ink:      #ECE3D2;
            --ed-body:     #A2937C;
            --ed-crimson:  #9E1B1B;
            --ed-ochre:    #C8A24A;
            --ed-line:     rgba(236, 227, 210, 0.16);
            background: #0A0404;
            color: var(--ed-body);
            font-family: 'SF Pro Rounded', ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif;
        }

        [data-page="education"] .ed-hero {
            position: relative;
            overflow: hidden;
        }

        [data-page="education"] .ed-heroimg {
            position: absolute;
            inset: 0;
            /* 12%, not centred: the hero is 2.41 wide against a 1.54 image, so
               334px of height is cropped. At 32% that crop took the jester's cap
               and the top of his head off. */
            background: url('../../assets/img/education.jpg') center 12% / cover no-repeat;
            z-index: 0;
        }

        [data-page="education"] .ed-heroimg::after {
            content: '';
            position: absolute;
            inset: 0;
            background:
                linear-gradient(180deg, rgba(10,4,4,0.62) 0%, rgba(10,4,4,0.34) 34%, rgba(10,4,4,0.86) 78%, #0A0404 100%);
        }

        [data-page="education"] .ed-heroinner {
            position: relative;
            z-index: 1;
            max-width: 1120px;
            margin: 0 auto;
            padding: 168px 56px 92px;
            min-height: 66vh;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }

        /* heavy bookish Didone, falling back through the serif stack */
        [data-page="education"] .ed-title {
            font-family: 'Bodoni 72', 'Didot', 'Big Caslon', 'Hoefler Text', 'New York', Georgia, serif;
            font-weight: 700;
            font-size: clamp(60px, 11vw, 168px);
            line-height: 0.9;
            letter-spacing: -0.02em;
            color: var(--ed-ink);
            margin: 0 0 18px;
            text-shadow: 0 6px 34px rgba(0, 0, 0, 0.75);
        }

        [data-page="education"] .ed-sub {
            font-family: 'Snell Roundhand', 'Apple Chancery', 'Zapfino', cursive;
            font-size: clamp(20px, 2.4vw, 33px);
            line-height: 1.45;
            color: var(--ed-ochre);
            margin: 0;
            text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
        }

        [data-page="education"] .ed-list {
            max-width: 1120px;
            margin: 0 auto;
            padding: 24px 56px 130px;
        }

        [data-page="education"] .ed-entry {
            padding: 56px 0;
            border-top: 1px solid var(--ed-line);
            display: grid;
            grid-template-columns: clamp(150px, 15vw, 214px) 1fr;
            gap: 46px;
        }

        /* All three crests are full-colour artwork on transparency, so they sit
           straight on the page ground with no plate behind them. */
        [data-page="education"] .ed-logo {
            width: clamp(132px, 13vw, 190px);
            height: clamp(132px, 13vw, 190px);
            object-fit: contain;
            display: block;
            margin-bottom: 22px;
            filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
        }

        [data-page="education"] .ed-stage {
            font-family: 'SF Mono', Monaco, monospace;
            font-size: 11px;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--ed-crimson);
            padding-top: 9px;
        }

        [data-page="education"] .ed-school {
            font-family: 'Bodoni 72', 'Didot', 'Hoefler Text', 'New York', Georgia, serif;
            font-size: clamp(26px, 3vw, 40px);
            font-weight: 700;
            line-height: 1.15;
            color: var(--ed-ink);
            margin: 0 0 6px;
        }

        [data-page="education"] .ed-degree {
            font-size: 14px;
            letter-spacing: 0.04em;
            color: var(--ed-ochre);
            margin-bottom: 22px;
        }

        [data-page="education"] .ed-label {
            font-family: 'SF Mono', Monaco, monospace;
            font-size: 11px;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: rgba(236, 227, 210, 0.42);
            margin: 26px 0 10px;
        }

        [data-page="education"] .ed-body p {
            font-size: 15.5px;
            line-height: 1.85;
            color: var(--ed-body);
            margin: 0 0 15px;
            max-width: 720px;
        }

        @media (max-width: 860px) {
            [data-page="education"] .ed-heroinner { padding: 110px 24px 60px; min-height: 48vh; }
            [data-page="education"] .ed-list { padding: 16px 24px 80px; }
            [data-page="education"] .ed-entry { grid-template-columns: 1fr; gap: 14px; }
        }


        /* A fullscreen opaque window hides the desk entirely, but every ambient
           animation behind it kept running: 107 of them, painting nothing. */
        body.window-open .ambient-layer *,
        body.window-open .clock-layer *,
        body.window-open .scene-grain,
        body.window-open .hitbox { animation-play-state: paused !important; }

        body.window-open .scene-grain { display: none; }

        /* the viewport blur had nothing left to blur once page grounds went opaque,
           yet still cost a full-screen backdrop pass every frame */
