:root {
    --green-950: #082718;
    --green-900: #0d3422;
    --green-800: #155232;
    --green-700: #1c6a40;
    --green-500: #2b9458;
    --gold-500: #FDC530;
    --gold-300: #FFE27A;
    --cream: #fbf8ef;
    --cream-2: #f4f0e3;
    --sage: #e9eee5;
    --ink: #0b2618;
    --muted: #52635a;
    --line: rgba(13, 52, 34, .14);
    --shadow: 0 24px 60px rgba(8, 39, 24, .12);
    --header-h: 88px;
    --radius-lg: 30px;
    --radius-md: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
button, a { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { color: inherit; }

::selection { background: rgba(253, 197, 48, .32); }

@keyframes ctaSheen {
    0% { transform: translateX(-220%) skewX(-22deg); }
    100% { transform: translateX(480%) skewX(-22deg); }
}

.skip-link {
    position: fixed;
    z-index: 9999;
    left: 16px;
    top: 12px;
    transform: translateY(-160%);
    background: white;
    color: var(--green-950);
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 5vw, 84px);
    background: rgba(251, 248, 239, .82);
    border: 1px solid rgba(253, 197, 48, .20);
    border-left-color: rgba(253, 197, 48, .12);
    border-right-color: rgba(253, 197, 48, .12);
    backdrop-filter: blur(16px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.70),
        inset 0 -1px 0 rgba(253,197,48,.16);
    transition: height .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
    height: 74px;
    background: rgba(251,248,239,.96);
    border-color: rgba(253,197,48,.22);
    box-shadow:
        inset 0 -1px 0 rgba(253,197,48,.16),
        0 8px 30px rgba(8,39,24,.06);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-950);
    text-decoration: none;
}
.brand-mark {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
    object-position: center;
    flex: 0 0 52px;
    /* Optical correction: centers the yellow output node of the mark
       against the EduSchedX text, not just the PNG bounding box. */
    transform: translateY(2px);
}
.brand-name {
    display: inline-flex;
    align-items: center;
    align-self: center;
    font-size: 1.34rem;
    font-weight: 820;
    letter-spacing: -.035em;
    line-height: .96;
    transform: translateY(0);
}
.brand-name-main {
    color: var(--green-950);
    transition: color .22s ease;
}
.brand-name-x {
    color: var(--gold-500);
    margin-left: .02em;
    transition: color .22s ease, text-shadow .22s ease;
}
.brand:hover .brand-name-main,
.brand:focus-visible .brand-name-main { color: var(--green-800); }
.brand:hover .brand-name-x,
.brand:focus-visible .brand-name-x {
    color: #FFD246;
    text-shadow: 0 0 14px rgba(253,197,48,.18);
}
.site-nav { display: flex; align-items: center; gap: clamp(22px, 2.5vw, 42px); }
.site-nav a {
    position: relative;
    text-decoration: none;
    color: #294337;
    font-weight: 650;
    font-size: .96rem;
}
.site-nav a:not(.nav-login)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--gold-500);
    transition: right .25s ease;
}
.site-nav a:hover::after,
.site-nav a.active::after { right: 0; }
.nav-login {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid rgba(232,173,0,.42);
    border-radius: 0;
    color: var(--green-950) !important;
    background: var(--gold-500);
    box-shadow: 0 9px 22px rgba(253,197,48,.20);
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}
.nav-login::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -35%;
    width: 28%;
    height: 180%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 28%, rgba(255,255,255,.78) 50%, rgba(255,255,255,.18) 72%, transparent 100%);
    transform: translateX(-220%) skewX(-22deg);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}
.nav-login:hover,
.nav-login:focus-visible {
    transform: translateY(-1px);
    color: var(--green-950) !important;
    background: #FFD246;
    border-color: rgba(232,173,0,.56);
    box-shadow: 0 12px 25px rgba(253,197,48,.24), 0 0 0 1px rgba(255,255,255,.28) inset;
}
.nav-login:hover::before,
.nav-login:focus-visible::before {
    opacity: 1;
    animation: ctaSheen .85s cubic-bezier(.22,.76,.29,1) forwards;
}
.nav-login:active {
    transform: translateY(1px) scale(.985);
    background: #FDC530;
    box-shadow:
        0 4px 10px rgba(253,197,48,.18),
        inset 0 2px 6px rgba(8,39,24,.10);
}

.menu-toggle { display: none; }

.panel-rail {
    position: fixed;
    z-index: 900;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 10px;
}
.rail-dot {
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: rgba(13, 52, 34, .42);
    text-decoration: none;
    font-size: .64rem;
    font-weight: 800;
    border: 1px solid transparent;
    transition: .25s ease;
}
.rail-dot::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.rail-dot span { opacity: 0; transform: scale(.75); transition: .2s ease; }
.rail-dot:hover,
.rail-dot.active { color: var(--green-900); border-color: rgba(13, 52, 34, .18); background: rgba(251, 248, 239, .82); }
.rail-dot:hover::before,
.rail-dot.active::before { opacity: 0; }
.rail-dot:hover span,
.rail-dot.active span { opacity: 1; transform: scale(1); }

.page-shell { position: relative; }
.story-panel { position: relative; min-height: 100svh; overflow: hidden; }
.panel-inner { width: min(1480px, calc(100% - 120px)); margin: 0 auto; position: relative; z-index: 2; }
.eyebrow,
.hero-kicker {
    margin: 0;
    color: var(--green-700);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .18em;
    text-transform: uppercase;
}

/* HERO */
.hero-panel {
    min-height: max(760px, 100svh);
    display: grid;
    place-items: center;
    padding: calc(var(--header-h) + 54px) 72px 74px;
    background:
        linear-gradient(rgba(13, 52, 34, .024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 52, 34, .024) 1px, transparent 1px),
        #ffffff;
    background-size: 48px 48px, 48px 48px, auto;
}
.hero-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13,52,34,.14), transparent);
}
.hero-content {
    position: relative;
    z-index: 3;
    width: min(1220px, 94vw);
    text-align: center;
    padding: 44px 20px 58px;
}
.hero-kicker { margin-bottom: 18px; }
.hero-wordmark {
    margin: 0 auto;
    display: inline-block;
    color: var(--green-950);
    font-size: clamp(5rem, 12.3vw, 11.2rem);
    font-weight: 900;
    letter-spacing: -.085em;
    line-height: .82;
    outline: none;
    background: linear-gradient(100deg,
        var(--green-950) 0%,
        var(--green-950) 34%,
        var(--gold-300) 43%,
        var(--green-500) 50%,
        var(--gold-500) 57%,
        var(--green-950) 66%,
        var(--green-950) 100%);
    background-size: 260% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position .78s cubic-bezier(.22,.75,.23,1), filter .3s ease;
}
.hero-wordmark:hover,
.hero-wordmark:focus-visible {
    background-position: 0 0;
    filter: drop-shadow(0 8px 18px rgba(253, 197, 48, .13));
}
.hero-title {
    margin: 30px auto 0;
    max-width: 900px;
    font-size: clamp(1.55rem, 3vw, 2.7rem);
    line-height: 1.12;
    font-weight: 780;
    letter-spacing: -.045em;
    color: var(--green-800);
}
.hero-summary {
    margin: 22px auto 0;
    max-width: 780px;
    color: #4c5f55;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.72;
}
.hero-actions { display: flex; justify-content: center; gap: 14px; margin-top: 32px; }
.button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 208px;
    width: 208px;
    min-height: 62px;
    padding: 0 24px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 780;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.button::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -35%;
    width: 28%;
    height: 180%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.12) 28%, rgba(255,255,255,.74) 50%, rgba(255,255,255,.12) 72%, transparent 100%);
    transform: translateX(-220%) skewX(-22deg);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}
.button-primary {
    color: var(--green-950);
    border-color: rgba(232,173,0,.34);
    background: var(--gold-500);
    box-shadow: 0 9px 22px rgba(253,197,48,.20);
}
.button-primary:hover,
.button-primary:focus-visible {
    transform: translateY(-1px);
    color: var(--green-950);
    border-color: rgba(232,173,0,.50);
    background: #FFD246;
    box-shadow: 0 12px 25px rgba(253,197,48,.24), 0 0 0 1px rgba(255,255,255,.28) inset;
}
.button-primary:hover::before,
.button-primary:focus-visible::before {
    opacity: 1;
    animation: ctaSheen .85s cubic-bezier(.22,.76,.29,1) forwards;
}
.button-primary:active {
    transform: translateY(1px) scale(.985);
    background: #FDC530;
    box-shadow:
        0 4px 10px rgba(253,197,48,.17),
        inset 0 2px 6px rgba(8,39,24,.10);
}

.button-secondary {
    color: var(--green-950);
    background: rgba(255,255,255,.82);
    border-color: var(--green-800);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.button-secondary:hover,
.button-secondary:focus-visible {
    transform: translateY(-1px);
    border-color: var(--green-700);
    background: white;
    box-shadow: 0 10px 22px rgba(8,39,24,.08);
}
.button-secondary:hover::before,
.button-secondary:focus-visible::before {
    opacity: 1;
    animation: ctaSheen .85s cubic-bezier(.22,.76,.29,1) forwards;
}
.button-secondary:active {
    transform: translateY(1px) scale(.985);
    box-shadow: inset 0 2px 5px rgba(8,39,24,.07);
}


.hero-chromosome {
    position: absolute;
    z-index: 1;
    inset: 76px 4vw 24px;
    pointer-events: none;
    opacity: .78;
}
.chromosome-svg { position: absolute; width: 100%; height: 100%; overflow: visible; }
.chromosome-svg path {
    fill: none;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
}
.strand {
    stroke: rgba(13,52,34,.20);
    stroke-width: 4;
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
}
.rung {
    /* Remove the decorative yellow rungs in the hero.
       Keep the neutral grid and main chromosome strands. */
    stroke: transparent;
    stroke-width: 0;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
}
.page-ready .strand { animation: drawPath 1.35s .18s cubic-bezier(.3,.8,.2,1) forwards; }
.page-ready .rung { animation: drawPath 1s .55s ease forwards; }
.chromosome-node {
    position: absolute;
    width: 78px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 10px;
    text-align: center;
    border-radius: 50%;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .02em;
    color: var(--green-950);
    background: rgba(251,248,239,.92);
    border: 2px solid rgba(13,52,34,.14);
    box-shadow: 0 12px 28px rgba(13,52,34,.09), inset 0 0 0 6px rgba(255,255,255,.5);
    opacity: 0;
    transform: scale(.68);
}
.node-green::after,
.node-gold::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid;
    border-radius: inherit;
    opacity: .24;
}
.node-green::after { border-color: var(--green-500); }
.node-gold::after { border-color: var(--gold-500); }
.node-a { left: 11%; top: 11%; }
.node-b { right: 11%; top: 11%; }
.node-c { left: 25%; top: 40%; }
.node-d { right: 25%; top: 40%; }
.node-e { left: 14%; bottom: 8%; }
.node-f { right: 14%; bottom: 8%; }
.page-ready .chromosome-node { animation: nodeArrive .65s .85s cubic-bezier(.2,.8,.2,1) forwards; }
.page-ready .node-b { animation-delay: .94s; }
.page-ready .node-c { animation-delay: 1.03s; }
.page-ready .node-d { animation-delay: 1.12s; }
.page-ready .node-e { animation-delay: 1.21s; }
.page-ready .node-f { animation-delay: 1.30s; }
@keyframes drawPath { to { stroke-dashoffset: 0; } }
@keyframes nodeArrive { to { opacity: .92; transform: scale(1); } }

.scroll-cue {
    position: absolute;
    z-index: 4;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    gap: 8px;
    color: rgba(13,52,34,.58);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.scroll-cue i { width: 1px; height: 28px; background: linear-gradient(var(--green-700), transparent); }

/* PROCESS */
.method-panel {
    padding: calc(var(--header-h) + 54px) 0 100px;
    background:
        radial-gradient(circle at 84% 18%, rgba(43,148,88,.10), transparent 24%),
        linear-gradient(180deg, #f1f0e5, #e9eee5 48%, #f2f1e7);
}
.method-shell { min-height: 820px; }
.section-heading { max-width: 780px; }
.section-heading h2,
.about-title h2 {
    margin: 12px 0 0;
    font-size: clamp(2.6rem, 6vw, 5.8rem);
    line-height: .98;
    letter-spacing: -.055em;
    color: var(--green-950);
}
.genome-process {
    position: relative;
    margin-top: 74px;
    padding: 20px 0 30px;
    display: grid;
    gap: 88px;
}
.process-spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 160px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}
.process-helix {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.process-helix path {
    fill: none;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.helix-strand {
    stroke: rgba(13,52,34,.13);
    stroke-width: 3;
}
.helix-progress {
    --process-progress: 0;
    opacity: 0;
    transition: opacity .22s ease;
}
.genome-process.has-progress .helix-progress { opacity: 1; }
.helix-progress path {
    stroke-width: 3.2;
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--process-progress));
    transition: stroke-dashoffset .12s linear;
}
.helix-progress path:first-child { stroke: var(--gold-500); }
.helix-progress path:last-child { stroke: var(--green-500); }

/* Once Review / node 03 is reached, force both colored strands to finish
   through the chromosome tail. This keeps the flow continuous on desktop,
   mobile browsers, and in-app browsers. */
.genome-process.flow-complete .helix-progress {
    opacity: 1;
}
.genome-process.flow-complete .helix-progress path {
    stroke-dashoffset: 0 !important;
}

.helix-rungs path {
    stroke: rgba(13,52,34,.17);
    stroke-width: 1.5;
    transition: stroke .35s ease, opacity .35s ease;
}
/* Keep chromosome rungs neutral; only the two flowing strands gain color as the user scrolls. */
.genome-process:has(.process-stage.is-active) .helix-rungs path { stroke: rgba(13,52,34,.17); }
.process-stage {
    --node-shift: 0px;
    position: relative;
    min-height: 250px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr);
    align-items: center;
    z-index: 1;
}
.stage-prepare { --node-shift: -32px; }
.stage-generate { --node-shift: 34px; }
.stage-review { --node-shift: -28px; }
.process-node {
    grid-column: 2;
    justify-self: center;
    width: 76px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--green-900);
    background: var(--cream);
    border: 2px solid rgba(13,52,34,.18);
    box-shadow: 0 10px 28px rgba(13,52,34,.08), inset 0 0 0 8px rgba(255,255,255,.55);
    font-size: 1rem;
    font-weight: 900;
    transform: translateX(var(--node-shift));
    transition: transform .5s cubic-bezier(.22,.8,.22,1), color .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.process-stage.is-active .process-node {
    color: white;
    background: var(--green-800);
    border-color: var(--gold-300);
    box-shadow: 0 0 0 8px rgba(253,197,48,.11), 0 18px 36px rgba(13,52,34,.16);
}
.process-copy {
    max-width: 470px;
    opacity: .48;
    transition: opacity .5s ease, transform .55s cubic-bezier(.22,.8,.22,1);
}
.process-copy h3 { margin: 5px 0 10px; color: var(--green-950); font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -.045em; }
.process-copy p:not(.process-label) { margin: 0; color: #506258; font-size: 1.05rem; line-height: 1.65; }
.process-label { margin: 0; color: var(--green-700); font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.stage-prepare .process-copy {
    grid-column: 1;
    justify-self: end;
    text-align: right;
    padding-right: 76px;
    transform: translate(-18px,-24px);
}
.stage-generate .process-copy {
    grid-column: 3;
    padding-left: 76px;
    transform: translate(22px,18px);
}
.stage-review .process-copy {
    grid-column: 1;
    justify-self: end;
    text-align: right;
    padding-right: 76px;
    transform: translate(-14px,28px);
}
.process-stage.is-active .process-copy { opacity: 1; }
.stage-prepare.is-active .process-copy { transform: translate(0,-24px); }
.stage-generate.is-active .process-copy { transform: translate(0,18px); }
.stage-review.is-active .process-copy { transform: translate(0,28px); }

/* Scheduling inputs as allocation blocks connected by a route — not a plain list. */
.node-data {
    grid-column: 3;
    position: relative;
    width: min(430px,100%);
    height: 240px;
    margin-left: 42px;
}
.input-route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.input-route path {
    fill: none;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
}
.input-route-base { stroke: rgba(13,52,34,.13); stroke-width: 2.4; }
.input-route-progress {
    stroke: var(--green-500);
    stroke-width: 2.8;
    stroke-dasharray: 640;
    stroke-dashoffset: 640;
    transition: stroke-dashoffset 1s cubic-bezier(.22,.8,.22,1);
}
.input-slot {
    position: absolute;
    min-width: 126px;
    padding: 12px 15px 12px 19px;
    border: 1px solid rgba(13,52,34,.13);
    border-radius: 14px 14px 14px 5px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 12px 28px rgba(13,52,34,.075);
    color: var(--green-950);
    opacity: .18;
    transform: translateY(14px) scale(.96);
    transition: opacity .4s ease, transform .5s cubic-bezier(.22,.8,.22,1), box-shadow .3s ease, border-color .3s ease;
}
.input-slot::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--green-500);
}
.input-slot::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cream);
    border: 3px solid var(--gold-500);
    box-shadow: 0 0 0 5px rgba(253,197,48,.10);
}
.input-slot i {
    display: block;
    width: 30px;
    height: 3px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(13,52,34,.15);
}
.input-slot strong { font-size: .88rem; letter-spacing: -.015em; }
.slot-faculty { left: 2%; top: 46%; }
.slot-faculty::after { right: -16px; top: 18px; }
.slot-rooms { left: 29%; top: 8%; }
.slot-rooms::before { background: var(--gold-500); }
.slot-rooms::after { left: -15px; bottom: -6px; }
.slot-sections { left: 48%; bottom: 4%; }
.slot-sections::after { right: -16px; top: 18px; }
.slot-times { right: 0; top: 20%; }
.slot-times::before { background: var(--green-700); }
.slot-times::after { left: -15px; bottom: 10px; }
.stage-prepare.is-active .input-route-progress { stroke-dashoffset: 0; }
.stage-prepare.is-active .input-slot { opacity: 1; transform: none; }
.stage-prepare.is-active .slot-rooms { transition-delay: .10s; }
.stage-prepare.is-active .slot-sections { transition-delay: .20s; }
.stage-prepare.is-active .slot-times { transition-delay: .30s; }
.input-slot:hover { border-color: rgba(43,148,88,.26); box-shadow: 0 16px 32px rgba(13,52,34,.11); }
.ga-engine {
    grid-column: 1;
    justify-self: end;
    position: relative;
    width: min(360px, 100%);
    height: 260px;
    margin-right: 32px;
}
.ga-engine-links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.ga-engine-links path {
    fill: none;
    stroke: rgba(13,52,34,.20);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    transition: stroke-dashoffset .85s cubic-bezier(.22,.8,.22,1), stroke .35s ease;
}
.ga-core,
.ga-gene {
    position: absolute;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 50%;
    background: rgba(251,248,239,.94);
    border: 1px solid rgba(13,52,34,.18);
    color: var(--green-950);
    box-shadow: 0 12px 28px rgba(13,52,34,.08), inset 0 0 0 6px rgba(255,255,255,.52);
    opacity: .25;
    transform: scale(.84);
    transition: opacity .42s ease, transform .42s cubic-bezier(.22,.8,.22,1), box-shadow .42s ease, border-color .42s ease;
}
.ga-core {
    left: 50%;
    top: 50%;
    width: 116px;
    height: 116px;
    transform: translate(-50%,-50%) scale(.82);
    border: 2px solid rgba(253,197,48,.56);
    background: linear-gradient(145deg, var(--green-950), var(--green-800));
    color: white;
    box-shadow: 0 0 0 12px rgba(253,197,48,.08), 0 22px 44px rgba(13,52,34,.18);
}
.ga-core::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px dashed rgba(253,197,48,.38);
}
.ga-core small {
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-300);
}
.ga-core strong {
    margin-top: -12px;
    font-size: 1.05rem;
    letter-spacing: -.025em;
}
.ga-gene {
    width: 78px;
    height: 78px;
    padding: 7px;
    font-size: .64rem;
    font-weight: 820;
    line-height: 1.05;
}
.gene-select { left: 3%; top: 4%; }
.gene-cross { right: 3%; top: 4%; }
.gene-mutate { left: 9%; bottom: 0; }
.gene-check { right: 9%; bottom: 0; }
.stage-generate.is-active .ga-engine-links path { stroke-dashoffset: 0; stroke: rgba(43,148,88,.35); }
.stage-generate.is-active .ga-gene { opacity: 1; transform: scale(1); }
.stage-generate.is-active .ga-core { opacity: 1; transform: translate(-50%,-50%) scale(1); animation: gaCoreGlow 2.25s ease-in-out infinite; }
.stage-generate.is-active .gene-cross { transition-delay: .08s; }
.stage-generate.is-active .gene-mutate { transition-delay: .16s; }
.stage-generate.is-active .gene-check { transition-delay: .24s; }
@keyframes gaCoreGlow {
    50% { box-shadow: 0 0 0 17px rgba(253,197,48,.10), 0 25px 48px rgba(13,52,34,.21); }
}

.mini-timetable {
    grid-column: 3;
    width: min(520px, 100%);
    margin-left: 54px;
    padding: 17px 18px 20px;
    border: 1px solid rgba(13,52,34,.15);
    border-radius: 24px;
    background: rgba(251,248,239,.80);
    box-shadow: 0 20px 48px rgba(13,52,34,.09);
}
.mini-timetable-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 12px;
    border-bottom: 1px solid rgba(13,52,34,.10);
}
.mini-timetable-head > span {
    color: var(--green-950);
    font-size: .8rem;
    font-weight: 850;
    letter-spacing: -.01em;
}
.mini-timetable-head small {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--green-700);
    background: rgba(43,148,88,.08);
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.schedule-flow {
    position: relative;
    height: 270px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 16px;
    background:
        linear-gradient(rgba(13,52,34,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13,52,34,.045) 1px, transparent 1px),
        rgba(255,255,255,.34);
    background-size: 40px 40px;
}
.schedule-curve {
    position: absolute;
    inset: 10px 9px;
    width: calc(100% - 18px);
    height: calc(100% - 20px);
    overflow: visible;
}
.schedule-curve path {
    fill: none;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}
.schedule-curve-base { stroke: rgba(13,52,34,.13); stroke-width: 3; }
.schedule-curve-progress {
    stroke: var(--gold-500);
    stroke-width: 3;
    stroke-dasharray: 850;
    stroke-dashoffset: 850;
    transition: stroke-dashoffset 1.15s cubic-bezier(.22,.8,.22,1);
}
.stage-review.is-active .schedule-curve-progress { stroke-dashoffset: 0; }
.schedule-event {
    position: absolute;
    z-index: 2;
    min-width: 150px;
    padding: 10px 12px 11px;
    border: 1px solid rgba(13,52,34,.11);
    border-left: 4px solid var(--green-500);
    border-radius: 12px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 10px 24px rgba(13,52,34,.09);
    opacity: 0;
    transform: translateY(12px) scale(.97);
    transition: opacity .45s ease, transform .45s cubic-bezier(.22,.8,.22,1), box-shadow .3s ease;
}
.schedule-event::before {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold-500);
    box-shadow: 0 0 0 5px rgba(253,197,48,.12);
}
.schedule-event time {
    display: block;
    margin-bottom: 4px;
    color: #6b786f;
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .04em;
}
.schedule-event strong {
    display: block;
    color: var(--green-950);
    font-size: .78rem;
    line-height: 1.1;
}
.schedule-event span {
    display: block;
    margin-top: 4px;
    color: #53645a;
    font-size: .62rem;
    font-weight: 700;
}
.event-a { left: 6%; top: 58%; border-left-color: var(--green-500); }
.event-a::before { right: -14px; top: 18px; }
.event-b { left: 39%; top: 12%; border-left-color: var(--gold-500); }
.event-b::before { left: -15px; bottom: -6px; }
.event-c { right: 4%; top: 52%; border-left-color: var(--green-700); }
.event-c::before { left: -15px; top: 18px; }
.stage-review.is-active .schedule-event { opacity: 1; transform: none; }
.stage-review.is-active .event-a { transition-delay: .18s; }
.stage-review.is-active .event-b { transition-delay: .34s; }
.stage-review.is-active .event-c { transition-delay: .50s; }
.schedule-event:hover { box-shadow: 0 14px 30px rgba(13,52,34,.13); }

/* ABOUT — compact, specific, manuscript-grounded system summary */
.about-panel {
    min-height: auto;
    display: block;
    padding: calc(var(--header-h) + 8px) 0 28px;
    color: white;
    background: var(--green-950);
}
.about-grid-bg {
    position: absolute;
    inset: 0;
    opacity: .18;
    background:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
        radial-gradient(circle at 82% 30%, rgba(255,226,122,.15), transparent 25%);
    background-size: 56px 56px, 56px 56px, auto;
}
.about-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    column-gap: clamp(40px, 3vw, 56px);
    row-gap: 16px;
    align-items: center;
}
.about-title {
    display: flex;
    align-items: center;
}
.about-title h2 {
    margin: 0;
    max-width: none;
    color: white;
    font-size: clamp(2.8rem, 3.65vw, 4.15rem);
    line-height: .94;
}
.about-heading {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: .14em;
    white-space: nowrap;
}
.about-prefix {
    color: #fffaf0;
}
.about-wordmark {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-right: .44em;
}
.about-wordmark-main {
    color: #fffaf0;
}
.about-wordmark-x {
    color: var(--gold-500);
    text-shadow: 0 0 18px rgba(253,197,48,.12);
}

/* Small chromosome / gene-locus mark attached to the EduSchedX word.
   It gives the About title an EduSchedX-specific visual signature without
   adding another heading or more copy. */
.about-gene-mark {
    position: absolute;
    right: -.02em;
    top: 50%;
    bottom: auto;
    width: .28em;
    height: .28em;
    border: 2px solid var(--gold-500);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(255,226,122,.08);
    transform: translate(100%, -46%);
}
.about-gene-mark::before {
    content: "";
    position: absolute;
    width: .54em;
    height: 2px;
    left: 50%;
    top: 50%;
    background: rgba(255,226,122,.56);
    transform: translate(-92%, -50%) rotate(-22deg);
    transform-origin: right center;
}
.about-gene-mark i,
.about-gene-mark b,
.about-gene-mark em {
    position: absolute;
    display: block;
    border-radius: 50%;
    font-style: normal;
}
.about-gene-mark i {
    width: .10em;
    height: .10em;
    left: 50%;
    top: 50%;
    background: #fffaf0;
    transform: translate(-50%, -50%);
}
.about-gene-mark b {
    width: .085em;
    height: .085em;
    left: -.26em;
    top: -.08em;
    background: var(--green-500);
}
.about-gene-mark em {
    width: .07em;
    height: .07em;
    right: -.14em;
    bottom: -.10em;
    background: var(--gold-300);
}

.about-copy {
    align-self: center;
    display: flex;
    align-items: center;
    padding-top: 0;
}
.about-copy p { max-width: 700px; }
.about-copy .about-detail {
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: clamp(.98rem, 1.02vw, 1.08rem);
    line-height: 1.56;
    letter-spacing: -.004em;
}
.about-capabilities {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255,255,255,.14);
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.about-capabilities span {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-right: 1px solid rgba(255,255,255,.10);
}
.about-capabilities span:last-child { border-right: 0; }
.about-capabilities small {
    color: var(--gold-500);
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .08em;
}
.about-capabilities strong {
    color: rgba(255,255,255,.82);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .62s ease, transform .62s cubic-bezier(.22,.75,.23,1); }
.js .reveal.visible { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 4px; }

@media (max-width: 1100px) {
    .panel-inner { width: min(100% - 72px, 1100px); }
    .panel-rail { display: none; }
    .hero-chromosome { opacity: .58; inset-inline: -6vw; }
    .chromosome-node { width: 68px; font-size: .61rem; }
    .process-stage { grid-template-columns: minmax(0,1fr) 128px minmax(0,1fr); }
    .process-spine { width: 128px; }
    .stage-prepare .process-copy, .stage-review .process-copy { padding-right: 48px; }
    .stage-generate .process-copy { padding-left: 48px; }
    .node-data { margin-left: 22px; transform: scale(.93); transform-origin: left center; }
    .mini-timetable { margin-left: 34px; }
    .ga-engine { margin-right: 18px; transform: scale(.9); transform-origin: right center; }
}

@media (min-width: 901px) {
    .about-copy {
        justify-content: center;
    }
    .about-copy .about-detail {
        max-width: 700px;
    }
}

@media (min-width: 901px) {
    .about-heading {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
}

@media (max-width: 900px) {
    /* Soft focus backdrop when the mobile menu is open.
       Keeps the menu/header crisp while slightly blurring the page behind it. */
    body::before {
        content: "";
        position: fixed;
        z-index: 940;
        inset: var(--header-h) 0 0;
        background: rgba(8, 39, 24, 0);
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
        opacity: 0;
        pointer-events: none;
        transition:
            opacity .22s ease,
            background .22s ease,
            backdrop-filter .22s ease;
    }

    body:has(.site-nav.open)::before {
        opacity: 1;
        background: rgba(8, 39, 24, .07);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    :root { --header-h: 74px; }
    .site-header { height: var(--header-h); padding-inline: 22px; }
    .brand-mark { width: 48px; height: 48px; flex-basis: 48px; transform: translateY(2px); }
    .menu-toggle {
        display: grid;
        gap: 6px;
        place-content: center;
        width: 46px;
        height: 46px;
        border: 1px solid rgba(253,197,48,.52);
        border-radius: 13px;
        background: rgba(255,255,255,.78);
        box-shadow: 0 8px 20px rgba(13,52,34,.08);
        transition: background .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
    }
    .menu-toggle:hover,
    .menu-toggle:focus-visible {
        transform: translateY(-1px);
        background: rgba(255,255,255,.92);
        border-color: rgba(253,197,48,.72);
        box-shadow: 0 11px 24px rgba(13,52,34,.12), 0 0 0 3px rgba(253,197,48,.07);
    }
    .menu-toggle span:not(.sr-only) {
        width: 21px;
        height: 2px;
        background: var(--green-950);
        border-radius: 999px;
        transform-origin: center;
        transition: transform .22s ease, background .22s ease;
    }
    .menu-toggle[aria-expanded="true"] {
        background: var(--gold-500);
        border-color: var(--gold-500);
    }
    .menu-toggle[aria-expanded="true"] span:not(.sr-only) { background: var(--green-950); }
    .menu-toggle[aria-expanded="true"] span:not(.sr-only):first-child { transform: translateY(4px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

    .site-nav {
        position: absolute;
        z-index: 1010;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        display: none;
        padding: 8px 18px 14px;
        border: 1px solid var(--line);
        border-top: 3px solid var(--gold-500);
        border-radius: 18px;
        background: rgba(251,248,239,.99);
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: grid; gap: 0; }
    .site-nav a {
        padding: 14px 10px;
        text-align: center;
    }
    .site-nav a::after { display: none; }
    .site-nav a:not(.nav-login) {
        border-bottom: 1px solid rgba(13,52,34,.12);
    }
    .site-nav a:not(.nav-login):hover,
    .site-nav a:not(.nav-login):focus-visible,
    .site-nav a:not(.nav-login).active {
        color: var(--green-900);
        background: rgba(253,197,48,.07);
    }
    .nav-login { text-align: center; margin-top: 10px; width: 100%; min-width: 0; }
    .panel-inner { width: min(100% - 42px, 760px); }
    .hero-panel { padding-inline: 20px; }
    .hero-content { padding-inline: 0; }
    .hero-chromosome { inset: 90px -18vw 40px; opacity: .46; }
    .chromosome-node { width: 58px; font-size: .52rem; }
    .hero-wordmark { font-size: clamp(4.3rem, 18vw, 8rem); }
    .scroll-cue {
        bottom: 16px;
        width: min(100% - 40px, 380px);
        text-align: center;
    }
    .scroll-cue span { display: block; }

    .method-panel { padding-bottom: 70px; }
    .genome-process { gap: 58px; margin-top: 56px; }
    .process-spine { left: 4px; transform: none; width: 86px; }
    .process-stage { --node-shift: 0px; grid-template-columns: 88px minmax(0,1fr); gap: 18px; min-height: auto; padding-block: 24px; align-items: start; }
    .stage-prepare { --node-shift: -7px; }
    .stage-generate { --node-shift: 9px; }
    .stage-review { --node-shift: -5px; }
    .process-node { grid-column: 1; grid-row: 1; width: 64px; margin-top: 6px; }
    .process-copy,
    .stage-prepare .process-copy,
    .stage-review .process-copy,
    .stage-generate .process-copy { grid-column: 2; grid-row: 1; justify-self: stretch; text-align: left; padding: 0; transform: translateY(8px); }
    .process-stage.is-active .process-copy,
    .stage-prepare.is-active .process-copy,
    .stage-generate.is-active .process-copy,
    .stage-review.is-active .process-copy { transform: none; }
    .node-data, .ga-engine, .mini-timetable { grid-column: 2; grid-row: 2; margin: 0; }
    .node-data { width: min(100%,430px); height: 225px; transform: none; }
    .ga-engine { justify-self: start; }
    .mini-timetable { width: min(100%, 520px); }
    .about-shell { grid-template-columns: 1fr; gap: 22px; }
    .about-heading {
        flex-wrap: wrap;
        white-space: normal;
    }
    .about-copy { padding-top: 0; }
    .about-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
    .about-capabilities span:nth-child(2) { border-right: 0; }
    .about-capabilities span:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.10); }
}

@media (max-width: 600px) {
    .brand { gap: 7px; }
    .brand-mark { width: 44px; height: 44px; flex-basis: 44px; transform: translateY(2px); }
    .brand-name { font-size: 1.18rem; line-height: .96; transform: translateY(0); }

    .hero-panel { min-height: 100svh; padding-top: 112px; padding-bottom: 108px; }
    .hero-content {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
        text-align: center;
    }
    .hero-kicker { font-size: .66rem; letter-spacing: .13em; }
    .hero-wordmark {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding-inline: 2px;
        font-size: clamp(3.35rem, 14.7vw, 4.65rem);
        letter-spacing: -.072em;
        line-height: .88;
        white-space: nowrap;
        text-align: center;
        text-indent: -.025em;
    }
    .scroll-cue {
        bottom: 18px;
        gap: 7px;
        font-size: .64rem;
        letter-spacing: .075em;
        line-height: 1.35;
    }
    .scroll-cue i { height: 24px; }
    .hero-title { margin-top: 22px; font-size: 1.55rem; }
    .hero-summary { font-size: .96rem; line-height: 1.6; }
    .about-title h2 {
        font-size: clamp(2.55rem, 11.5vw, 3.45rem);
    }
    .about-heading {
        justify-content: flex-start;
        gap: .12em;
        white-space: normal;
    }
    .about-copy .about-detail {
        font-size: .94rem;
        line-height: 1.52;
    }
    .hero-actions { flex-direction: column; align-items: stretch; width: min(100%, 330px); margin-inline: auto; }
    .hero-actions .button { width: 100%; min-width: 0; min-height: 58px; }
    .hero-chromosome { opacity: .34; inset: 90px -38vw 60px; }
    .chromosome-node { width: 50px; font-size: .46rem; }
    .node-a { left: 20%; } .node-b { right: 20%; }
    .node-e { left: 22%; } .node-f { right: 22%; }
    .section-heading h2, .about-title h2 { font-size: clamp(2.5rem, 13vw, 4rem); }
    .process-stage { grid-template-columns: 68px minmax(0,1fr); gap: 12px; }
    .process-spine { left: -3px; width: 76px; }
    .process-node { width: 54px; font-size: .82rem; }
    .process-copy h3 { font-size: 1.8rem; }
    .node-data { height: 250px; }
    .input-slot { min-width: 108px; padding: 10px 12px 10px 16px; }
    .input-slot strong { font-size: .78rem; }
    .slot-faculty { left: 0; top: 48%; }
    .slot-rooms { left: 24%; top: 8%; }
    .slot-sections { left: 38%; bottom: 2%; }
    .slot-times { right: 0; top: 22%; }
    .mini-timetable { padding: 12px; }
    .about-panel { min-height: auto; padding: calc(var(--header-h) + 12px) 0 30px; }
    .about-title h2 { font-size: clamp(2.55rem, 12vw, 3.6rem); }
    .about-copy .about-detail { font-size: .94rem; line-height: 1.5; }
    .about-capabilities { grid-template-columns: 1fr; margin-top: 6px; }
    .about-capabilities span,
    .about-capabilities span:nth-child(2) {
        min-height: 58px;
        padding: 13px 10px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.10);
    }
    .about-capabilities span:last-child { border-bottom: 0; }
}


@media (max-width: 720px) {
    .ga-engine { width: min(100%, 330px); height: 238px; transform: none; }
    .ga-gene { width: 68px; height: 68px; font-size: .58rem; }
    .ga-core { width: 104px; height: 104px; }
    .schedule-flow { height: 360px; }
    .schedule-curve { inset: 12px 3px; width: calc(100% - 6px); height: calc(100% - 24px); }
    .schedule-event { min-width: 142px; }
    .event-a { left: 4%; top: 62%; }
    .event-b { left: 32%; top: 12%; }
    .event-c { right: 3%; top: 43%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ga-engine-links path, .schedule-curve-progress { transition: none !important; stroke-dashoffset: 0 !important; }
    .ga-core, .ga-gene, .schedule-event, .node-data span { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
    .ga-core { transform: translate(-50%,-50%) !important; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .hero-wordmark { background: none; -webkit-text-fill-color: currentColor; color: var(--green-950); }
    .chromosome-svg path { stroke-dashoffset: 0; }
    .chromosome-node { opacity: .9; transform: none; }
}

/* ============================================================
   WELCOME HEADER - FACULTY-DASHBOARD GREEN CONNECTION
   Keeps existing typography/nav/button colors unchanged.
   Only refines header surface color and Sign In proportions.
   ============================================================ */

.site-header {
    background: rgba(239, 246, 239, .92);
    border-color: rgba(20, 105, 57, .13);
    border-left-color: rgba(20, 105, 57, .10);
    border-right-color: rgba(20, 105, 57, .10);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.76),
        inset 0 -1px 0 rgba(20,105,57,.08);
    transition:
        height .28s ease,
        background-color .28s ease,
        border-color .28s ease,
        box-shadow .28s ease,
        backdrop-filter .28s ease;
}

/*
 * Scroll state:
 * a single, slightly deeper sage-green surface.
 * Text, logo colors, and gold Sign In button stay unchanged.
 */
.site-header.scrolled {
    background: rgba(220, 236, 224, .97);
    border-color: rgba(20, 105, 57, .17);
    box-shadow:
        inset 0 -1px 0 rgba(20,105,57,.10),
        0 9px 28px rgba(8,39,24,.08);
}

/* Keep the CTA visual language, but reduce the oversized proportions. */
@media (min-width: 901px) {
    .site-header .nav-login {
        min-width: 108px;
        min-height: 44px;
        padding: 0 18px;
        font-size: .93rem;
    }
}

/* Mobile/tablet keeps the existing responsive nav behavior. */
@media (max-width: 900px) {
    .site-header {
        background: rgba(239, 246, 239, .96);
    }

    .site-header.scrolled {
        background: rgba(220, 236, 224, .98);
    }
}

/* ============================================================
   WELCOME HEADER - DARK GREEN GRADIENT + MINIMAL ACADEMIC CTA
   ============================================================ */

/* Initial state: slightly darker EduSchedX green gradient. */
.site-header {
    background:
        linear-gradient(112deg,
            rgba(24, 76, 53, .97) 0%,
            rgba(31, 96, 66, .96) 54%,
            rgba(45, 112, 78, .95) 100%);
    border-color: rgba(255,255,255,.08);
    box-shadow:
        inset 0 -1px 0 rgba(255,255,255,.08),
        0 6px 24px rgba(8,39,24,.10);
    transition:
        height .28s ease,
        background .32s ease,
        border-color .28s ease,
        box-shadow .28s ease,
        backdrop-filter .28s ease;
}

/* Initial header typography: preserve typeface, only ensure contrast. */
.site-header:not(.scrolled) .brand-name-main {
    color: #F5F7F2;
}
.site-header:not(.scrolled) .brand-name-x {
    color: #FDC530;
}
.site-header:not(.scrolled) .site-nav a:not(.nav-login) {
    color: #F2F6F1;
}
.site-header:not(.scrolled) .site-nav a:not(.nav-login)::after {
    background: #FDC530;
}

/* Initial Sign In: minimal academic treatment that belongs to the green header. */
.site-header:not(.scrolled) .nav-login {
    min-width: 104px;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid rgba(241, 246, 240, .50);
    border-radius: 8px;
    color: #F7FAF6 !important;
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    font-size: .90rem;
    font-weight: 760;
}
.site-header:not(.scrolled) .nav-login::before {
    display: none;
}
.site-header:not(.scrolled) .nav-login:hover,
.site-header:not(.scrolled) .nav-login:focus-visible {
    color: #123C2A !important;
    background: #F6F2E8;
    border-color: #F6F2E8;
    box-shadow: 0 8px 20px rgba(8,39,24,.14);
    transform: translateY(-1px);
}

/*
 * Scrolled state: clearly different surface color.
 * Header becomes a lighter sage gradient, while Sign In flips to a
 * solid deep-green academic button.
 */
.site-header.scrolled {
    background:
        linear-gradient(110deg,
            rgba(224, 238, 226, .98) 0%,
            rgba(211, 231, 217, .98) 52%,
            rgba(229, 239, 226, .98) 100%);
    border-color: rgba(20,105,57,.14);
    box-shadow:
        inset 0 -1px 0 rgba(20,105,57,.09),
        0 9px 28px rgba(8,39,24,.09);
}

.site-header.scrolled .brand-name-main {
    color: var(--green-950);
}
.site-header.scrolled .brand-name-x {
    color: #E7A900;
}
.site-header.scrolled .site-nav a:not(.nav-login) {
    color: #234334;
}
.site-header.scrolled .nav-login {
    min-width: 104px;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid #18563C;
    border-radius: 8px;
    color: #F8FBF8 !important;
    background: #18563C;
    box-shadow: 0 7px 16px rgba(24,86,60,.15);
    font-size: .90rem;
    font-weight: 760;
}
.site-header.scrolled .nav-login::before {
    display: none;
}
.site-header.scrolled .nav-login:hover,
.site-header.scrolled .nav-login:focus-visible {
    color: #0F3224 !important;
    background: #FDC530;
    border-color: #E7A900;
    box-shadow: 0 8px 18px rgba(253,197,48,.18);
    transform: translateY(-1px);
}

/* Academic/minimal hero CTAs: less wide and less tall than the old buttons. */
.hero-actions {
    gap: 12px;
    margin-top: 28px;
}

.hero-actions .button {
    width: auto;
    min-width: 168px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: .94rem;
    font-weight: 760;
}

/* Primary hero Sign In: restrained green instead of a large gold block. */
.hero-actions .button-primary {
    color: #F8FBF8;
    border-color: #18563C;
    background: #18563C;
    box-shadow: 0 8px 18px rgba(24,86,60,.14);
}
.hero-actions .button-primary:hover,
.hero-actions .button-primary:focus-visible {
    color: #123C2A;
    border-color: #E7A900;
    background: #FDC530;
    box-shadow: 0 9px 20px rgba(253,197,48,.17);
}

/* Secondary stays quiet and academic. */
.hero-actions .button-secondary {
    color: #173D2B;
    border-color: rgba(24,86,60,.48);
    background: rgba(255,255,255,.78);
    box-shadow: none;
}
.hero-actions .button-secondary:hover,
.hero-actions .button-secondary:focus-visible {
    border-color: #18563C;
    background: #F5F9F5;
    box-shadow: 0 7px 16px rgba(8,39,24,.07);
}

/* Remove the old sweeping sheen from the simplified CTA treatment. */
.hero-actions .button::before {
    display: none;
}

@media (max-width: 900px) {
    /*
     * Mobile header remains green in both states, but the scrolled state
     * visibly shifts to a deeper/different green rather than turning ivory.
     */
    .site-header {
        background:
            linear-gradient(112deg,
                rgba(24,76,53,.98) 0%,
                rgba(37,103,72,.98) 100%);
    }

    .site-header.scrolled {
        background:
            linear-gradient(112deg,
                rgba(15,65,45,.99) 0%,
                rgba(28,87,61,.99) 100%);
    }

    /* Keep hamburger readable on the darker header. */
    .menu-toggle {
        background: rgba(255,255,255,.94);
        border-color: rgba(253,197,48,.46);
    }

    /*
     * The dropdown itself remains light, so restore dark text inside it
     * regardless of header scroll state.
     */
    .site-header .site-nav.open a:not(.nav-login) {
        color: #294337;
    }

    .site-header .site-nav.open .nav-login {
        width: auto;
        min-width: 112px;
        min-height: 42px;
        justify-self: center;
        margin-top: 10px;
        padding: 0 18px;
    }

    /* Hero Sign In + How It Works should not become oversized full-width bars. */
    .hero-actions {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 10px;
        margin-top: 24px;
    }

    .hero-actions .button {
        width: min(42vw, 158px);
        min-width: 0;
        min-height: 48px;
        padding: 0 14px;
        font-size: .88rem;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .hero-actions {
        gap: 8px;
    }

    .hero-actions .button {
        width: min(43vw, 146px);
        min-height: 46px;
        padding-inline: 10px;
        font-size: .84rem;
    }

    .site-header:not(.scrolled) .nav-login,
    .site-header.scrolled .nav-login {
        min-width: 104px;
        min-height: 40px;
        padding-inline: 15px;
        font-size: .86rem;
    }
}

/* ============================================================
   WELCOME HEADER - COORDINATED GREEN STATE 1 / STATE 2
   - Header, header Sign In, and mobile menu button change together.
   - Hero Sign In uses the same green family as the header.
   - Mobile hero CTAs are compact and centered.
   ============================================================ */

:root {
    --welcome-green-1: #1B6848;
    --welcome-green-1b: #237A54;
    --welcome-green-2: #0F4A34;
    --welcome-green-2b: #176243;
    --welcome-cream: #F7F5ED;
    --welcome-gold: #FDC530;
}

/* ---------- STATE 1: page opens ---------- */

.site-header {
    background:
        linear-gradient(
            112deg,
            var(--welcome-green-1) 0%,
            var(--welcome-green-1b) 100%
        ) !important;
}

/* Header Sign In matches the initial green family instead of looking detached. */
.site-header:not(.scrolled) .nav-login {
    min-width: 104px !important;
    min-height: 42px !important;
    padding: 0 17px !important;
    color: var(--welcome-cream) !important;
    background: rgba(12, 77, 51, .46) !important;
    border: 1px solid rgba(247,245,237,.58) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
}

/* Hero Sign In uses the same EduSchedX green as the header. */
.hero-actions .button-primary {
    color: #FFFFFF !important;
    background: var(--welcome-green-1) !important;
    border-color: var(--welcome-green-1) !important;
    box-shadow: 0 8px 18px rgba(27,104,72,.16) !important;
}

.hero-actions .button-primary:hover,
.hero-actions .button-primary:focus-visible {
    background: var(--welcome-green-1b) !important;
    border-color: var(--welcome-green-1b) !important;
    color: #FFFFFF !important;
}

/* Mobile hamburger/menu button belongs to State 1. */
@media (max-width: 900px) {
    .site-header:not(.scrolled) .menu-toggle {
        color: var(--welcome-green-2) !important;
        background: var(--welcome-cream) !important;
        border: 1px solid rgba(242,201,76,.58) !important;
        box-shadow: 0 6px 16px rgba(9,55,36,.13) !important;
    }

    .site-header:not(.scrolled) .menu-toggle span,
    .site-header:not(.scrolled) .menu-toggle::before,
    .site-header:not(.scrolled) .menu-toggle::after {
        background-color: var(--welcome-green-2) !important;
    }
}

/* ---------- STATE 2: after scroll ---------- */

.site-header.scrolled {
    background:
        linear-gradient(
            112deg,
            var(--welcome-green-2) 0%,
            var(--welcome-green-2b) 100%
        ) !important;
    border-color: rgba(255,255,255,.08) !important;
    box-shadow:
        inset 0 -1px 0 rgba(255,255,255,.08),
        0 9px 28px rgba(5,43,28,.16) !important;
}

/* Keep the header typography readable on the darker State 2. */
.site-header.scrolled .brand-name-main {
    color: #F7F8F4 !important;
}

.site-header.scrolled .brand-name-x {
    color: var(--welcome-gold) !important;
}

.site-header.scrolled .site-nav a:not(.nav-login) {
    color: #F4F7F2 !important;
}

/* Header Sign In visibly changes together with State 2. */
.site-header.scrolled .nav-login {
    min-width: 104px !important;
    min-height: 42px !important;
    padding: 0 17px !important;
    color: var(--welcome-green-2) !important;
    background: var(--welcome-gold) !important;
    border: 1px solid var(--welcome-gold) !important;
    border-radius: 8px !important;
    box-shadow: 0 7px 18px rgba(242,201,76,.17) !important;
}

.site-header.scrolled .nav-login:hover,
.site-header.scrolled .nav-login:focus-visible {
    color: var(--welcome-green-2) !important;
    background: #FFF3BF !important;
    border-color: #FFF3BF !important;
}

/* Mobile menu button also changes in State 2. */
@media (max-width: 900px) {
    .site-header.scrolled .menu-toggle {
        color: var(--welcome-cream) !important;
        background: rgba(255,255,255,.10) !important;
        border: 1px solid rgba(242,201,76,.72) !important;
        box-shadow: 0 6px 16px rgba(3,37,24,.18) !important;
    }

    .site-header.scrolled .menu-toggle span,
    .site-header.scrolled .menu-toggle::before,
    .site-header.scrolled .menu-toggle::after {
        background-color: var(--welcome-cream) !important;
    }

    /*
     * The opened nav sheet remains light for readability.
     * Its CTA is intentionally compact and centered.
     */
    .site-header .site-nav.open {
        background: rgba(249,249,245,.98) !important;
    }

    .site-header .site-nav.open a:not(.nav-login) {
        color: #294337 !important;
    }

    .site-header .site-nav.open .nav-login {
        width: auto !important;
        min-width: 104px !important;
        max-width: 132px !important;
        min-height: 40px !important;
        justify-self: center !important;
        align-self: center !important;
        margin: 10px auto 0 !important;
        padding: 0 16px !important;
    }
}

/* ---------- MOBILE HERO BUTTONS: compact + centered ---------- */

@media (max-width: 900px) {
    .hero-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
        margin-top: 24px !important;
    }

    .hero-actions .button {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 136px !important;
        max-width: 154px !important;
        min-height: 46px !important;
        padding: 0 16px !important;
        border-radius: 8px !important;
        font-size: .86rem !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 390px) {
    .hero-actions {
        gap: 8px !important;
    }

    .hero-actions .button {
        min-width: 128px !important;
        max-width: 144px !important;
        min-height: 44px !important;
        padding-inline: 12px !important;
        font-size: .82rem !important;
    }
}

/* Keep the primary and secondary CTA visually balanced when wrapped. */
@media (max-width: 320px) {
    .hero-actions {
        flex-direction: column !important;
    }

    .hero-actions .button {
        width: 144px !important;
        min-width: 144px !important;
    }
}

/* ============================================================
   UNIFIED EDUSCHEDX BRAND LOGO + OFFICIAL YELLOW
   Official palette from eduschedx-logo.svg:
   green #146939, dark #17321A, yellow #FDC530, ivory #F7F3E8
   ============================================================ */

:root {
    --edx-logo-green: #146939;
    --edx-logo-dark: #17321A;
    --edx-logo-yellow: #FDC530;
    --edx-logo-ivory: #F7F3E8;

    /* Keep existing Welcome yellow accents aligned to the official logo. */
    --gold-500: var(--edx-logo-yellow);
}

.site-header .brand-mark {
    object-fit: contain;
    object-position: center;
    filter: none;
}

/* Keep the X and header accent tied to the logo's exact yellow. */
.site-header .brand-name-x,
.site-header:not(.scrolled) .brand-name-x,
.site-header.scrolled .brand-name-x {
    color: var(--edx-logo-yellow) !important;
}

/* Existing gold accent lines/buttons should visually align with the official mark. */
.site-header:not(.scrolled) .site-nav a:not(.nav-login)::after,
.site-header.scrolled .site-nav a:not(.nav-login)::after {
    background: var(--edx-logo-yellow) !important;
}

.site-header.scrolled .nav-login {
    background: var(--edx-logo-yellow) !important;
    border-color: var(--edx-logo-yellow) !important;
}

/* The logo is the branding focus; no extra glow/filter around the SVG. */
.brand-mark {
    background: transparent;
}



/* ==========================================================================
   EduSchedX_Welcome_TeamFooter — MERGED PATCH
   Welcome page footer (dark green, minimal, responsive). UI-only.
   ========================================================================== */
.edx-footer {
    background:
        radial-gradient(circle at 12% 0%, rgba(253, 197, 48, .07), transparent 30%),
        #0d3f2c;
    color: rgba(255, 255, 255, .92);
    padding: clamp(44px, 6vw, 72px) 20px 28px;
}
.edx-footer__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}
.edx-footer__brand h2 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    letter-spacing: -.035em;
    color: #fff;
}
.edx-footer__brand p {
    margin: 0;
    max-width: 320px;
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
    line-height: 1.6;
}
.edx-footer__col h3 {
    margin: 0 0 14px;
    color: var(--gold-500);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.edx-footer__col nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.edx-footer__col a {
    display: inline-block;
    padding: 3px 0;
    color: rgba(255, 255, 255, .85);
    font-size: .95rem;
    text-decoration: none;
    transition: color .2s ease;
}
.edx-footer__col a:hover,
.edx-footer__col a:focus-visible {
    color: var(--gold-500);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.edx-footer__bottom {
    margin-top: clamp(30px, 4vw, 48px);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    color: rgba(255, 255, 255, .6);
    font-size: .8rem;
}
.edx-footer__bottom p {
    margin: 0 0 4px;
}
.edx-footer__bottom p:last-child {
    margin-bottom: 0;
}
@media (max-width: 720px) {
    .edx-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* About paragraph cards (presentation-only) */
.about-copy {
    align-items: stretch;
    gap: 18px;
}
.about-copy .about-card {
    flex: 1 1 0;
    min-width: 0;
    padding: clamp(20px, 2.4vw, 30px);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 0;
}
@media (max-width: 900px) {
    .about-copy {
        flex-direction: column;
    }
    .about-copy .about-card {
        flex: none;
    }
}

/* About desktop-only vertical tightening (mobile spacing unchanged) */
@media (min-width: 1024px) {
    .about-panel {
        padding-top: clamp(40px, 3vw, 56px);
        padding-bottom: clamp(32px, 2.5vw, 48px);
    }
}