.content-page {
    background:
        radial-gradient(circle at 8% 6%, rgba(93, 229, 142, 0.16), transparent 28rem),
        linear-gradient(180deg, #f8fffb 0, #ffffff 32rem);
}

.page-shell {
    width: min(calc(100% - 48px), var(--shell));
    margin-inline: auto;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 24%, rgba(69, 215, 142, 0.25), transparent 18rem),
        linear-gradient(110deg, #f4fff8 0%, #eefcf4 52%, #e9faff 100%);
}

.page-hero::before,
.page-hero::after {
    position: absolute;
    border-radius: 50%;
    background: rgba(72, 219, 139, 0.12);
    content: "";
}

.page-hero::before {
    top: -90px;
    right: 25%;
    width: 250px;
    height: 250px;
}

.page-hero::after {
    right: -100px;
    bottom: -130px;
    width: 360px;
    height: 360px;
}

.page-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 500px;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: clamp(35px, 6vw, 86px);
    padding-block: 64px;
}

.page-hero-copy h1,
.page-hero-copy h2,
.content-panel h2,
.page-cta h2,
.learner-banner h2 {
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.page-hero-copy h1 {
    max-width: 650px;
    margin: 10px 0 18px;
    font-size: clamp(48px, 5.4vw, 76px);
}

.page-hero-copy h1 span {
    display: block;
    color: var(--green);
}

.page-hero-copy h2 {
    margin: -8px 0 15px;
    font-size: clamp(25px, 2.6vw, 36px);
}

.page-hero-copy > p:not(.page-kicker) {
    max-width: 600px;
    margin: 0 0 28px;
    color: var(--ink-soft);
    font-size: 18px;
}

.page-kicker {
    margin: 0 0 7px;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.page-section {
    padding: 32px 0;
}

.page-section--compact {
    padding: 13px 0;
}

.page-section--soft {
    background: linear-gradient(90deg, rgba(228, 255, 238, .75), rgba(236, 249, 255, .7));
}

.content-panel,
.company-card,
.learner-banner,
.page-cta {
    border: 1px solid rgba(7, 25, 67, .08);
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 20px 54px rgba(15, 64, 88, .08);
}

.content-panel h2,
.page-cta h2,
.learner-banner h2 {
    margin: 0 0 14px;
    font-size: clamp(31px, 3.5vw, 48px);
}

.content-panel p,
.page-cta p,
.learner-banner p {
    color: var(--ink-soft);
}

.story-panel,
.growth-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    align-items: center;
    gap: clamp(35px, 6vw, 80px);
    padding: clamp(32px, 5vw, 62px);
}

.story-panel > div:first-child > p:not(.page-kicker),
.growth-panel > div:first-child > p:not(.page-kicker) {
    max-width: 660px;
    margin: 12px 0 0;
    font-size: 16px;
}

.story-visual {
    position: relative;
    display: grid;
    min-height: 330px;
    place-items: center;
    margin: 0;
    padding: 24px;
    overflow: hidden;
    border-radius: 45% 55% 42% 58% / 54% 38% 62% 46%;
    background: linear-gradient(145deg, #fff8be, #ecfff2 68%);
    text-align: center;
}

.story-visual img {
    width: min(82%, 290px);
    height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 18px 26px rgba(15, 64, 88, .14));
}

.story-visual strong {
    position: absolute;
    top: 26px;
    right: 18px;
    max-width: 165px;
    padding: 10px 13px;
    border-radius: 15px;
    color: #1268a7;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 10px 24px rgba(15, 64, 88, .1);
    font-size: 18px;
    line-height: 1.2;
    transform: rotate(-3deg);
}

.impact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    padding: clamp(30px, 4vw, 52px);
    background: linear-gradient(135deg, #f5fff8, #ebfbf2);
}

.impact-copy p:last-child {
    max-width: 690px;
    margin: 0;
}

.impact-fact {
    align-self: stretch;
    padding: 28px;
    border: 1px solid rgba(0, 168, 90, .13);
    border-radius: 23px;
    background: rgba(255, 255, 255, .8);
    text-align: center;
}

.impact-fact span {
    display: block;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.impact-fact strong {
    display: block;
    margin: 9px 0 6px;
    color: var(--green);
    font-size: clamp(35px, 4vw, 54px);
    line-height: 1;
}

.impact-fact p {
    margin: 0;
    font-size: 13px;
}

.capability-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.capability-grid article {
    min-height: 132px;
    padding: 22px 16px;
    border: 1px solid rgba(7, 25, 67, .07);
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.capability-grid span {
    display: block;
    min-height: 38px;
    color: var(--green);
    font-size: 29px;
    font-weight: 850;
    letter-spacing: -8px;
}

.capability-grid h3 {
    margin: 10px 0 0;
    font-size: 15px;
}

.growth-panel {
    background: linear-gradient(120deg, #fff, #f3fff8);
}

.growth-path {
    position: relative;
    min-height: 320px;
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, #ecf9ff 0 48%, #dff8e9 49% 100%);
}

.growth-path img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(15, 64, 88, .13));
}

.growth-path figcaption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 7px;
}

.growth-path figcaption span {
    min-width: 155px;
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: #fff;
    box-shadow: 0 7px 16px rgba(15, 64, 88, .12);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.learner-banner {
    display: grid;
    min-height: 280px;
    grid-template-columns: 42% 58%;
    overflow: hidden;
}

.learner-banner img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: 50% 44%;
}

.learner-banner > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(26px, 5vw, 60px);
    background: linear-gradient(115deg, #f4fff7, #eefaff);
}

.learner-banner h2 {
    font-size: clamp(28px, 3vw, 43px);
}

.learner-banner p:last-child {
    margin: 0;
}

.page-section--cta {
    padding: 18px 0 32px;
}

.page-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 30px 36px;
    background: linear-gradient(110deg, #e9ffef, #d9fae4);
}

.page-cta h2 {
    margin-bottom: 5px;
    font-size: clamp(28px, 3vw, 42px);
}

.page-cta p:last-child {
    margin: 0;
}

.puzzle-illustration {
    position: relative;
    display: grid;
    min-height: 370px;
    place-items: center;
    margin: 0;
}

.puzzle-illustration img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 24px 38px rgba(15, 64, 88, .15));
}

.puzzle-note,
.support-note,
.support-bubble {
    position: absolute;
    padding: 13px 16px;
    border-radius: 18px;
    color: #1257a1;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 28px rgba(15, 64, 88, .1);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.2;
    transform: rotate(-5deg);
}

.puzzle-note { right: 0; bottom: 18px; }

/* About page */
.about-page {
    padding-bottom: 0;
    background:
        radial-gradient(circle at 8% 4%, rgba(93, 229, 142, .17), transparent 25rem),
        radial-gradient(circle at 94% 30%, rgba(94, 198, 255, .11), transparent 24rem),
        linear-gradient(180deg, #f8fffb 0, #fff 30rem);
}

.about-page #our-story {
    scroll-margin-top: 96px;
}

.about-hero {
    background:
        radial-gradient(circle at 76% 34%, rgba(89, 223, 142, .27), transparent 17rem),
        radial-gradient(circle at 91% 9%, rgba(80, 196, 255, .15), transparent 13rem),
        linear-gradient(108deg, #f6fff9 0%, #effcf5 53%, #e9faff 100%);
}

.about-hero .page-hero-grid {
    min-height: 480px;
    grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
    padding-block: 52px;
}

.about-hero .page-hero-copy h1 {
    max-width: 610px;
    font-size: clamp(48px, 5vw, 70px);
}

.about-hero .page-hero-copy > p:not(.page-kicker) {
    max-width: 570px;
}

.about-page .page-section {
    padding: 18px 0;
    background: #fff;
}

.about-page .page-section--soft {
    background:
        radial-gradient(circle at 88% 18%, rgba(88, 219, 139, .13), transparent 22rem),
        linear-gradient(90deg, #f2fff7, #eefaff);
}

.about-page .content-panel,
.about-page .learner-banner,
.about-page .page-cta {
    border-color: rgba(0, 134, 75, .1);
    box-shadow: 0 18px 48px rgba(15, 64, 88, .075);
}

/* Keep About page sections open and spacious, matching Learning Journeys. */
.about-page .story-panel,
.about-page .impact-panel,
.about-page .growth-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.about-page .story-panel,
.about-page .growth-panel {
    gap: clamp(26px, 5vw, 64px);
    padding: clamp(28px, 4vw, 48px);
}

.about-section-copy > p:not(.page-kicker) {
    max-width: 670px;
}

.about-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.about-section-heading > div {
    min-width: 0;
}

.about-section-heading h2 {
    margin-bottom: 12px;
}

.about-section-icon,
.journey-icon,
.capability-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
}

.about-section-icon {
    width: 56px;
    height: 56px;
    margin-top: 2px;
}

.about-section-icon svg,
.journey-icon svg,
.capability-icon svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.about-section-icon svg {
    width: 28px;
    height: 28px;
}

.about-section-icon--green {
    color: #079b55;
    background: #e1fae9;
}

.about-section-icon--lime {
    color: #58af17;
    background: #ecfbdc;
}

.about-page .story-visual {
    min-height: 300px;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 240, 128, .62), transparent 46%),
        linear-gradient(145deg, #fffdf0, #ecfff2 68%);
}

.about-page .story-visual img {
    width: min(76%, 245px);
    height: 245px;
}

.about-page .story-visual strong {
    top: 22px;
    right: 28px;
    width: 190px;
    max-width: calc(100% - 56px);
    box-sizing: border-box;
    overflow-wrap: normal;
}

.about-page .impact-panel {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 290px);
    padding: clamp(28px, 4vw, 48px);
}

.about-page .impact-copy > p {
    max-width: 720px;
    margin: 10px 0 0;
}

.about-page .impact-fact {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: center;
}

.about-page .impact-fact strong {
    font-size: clamp(34px, 3.7vw, 50px);
}

.about-page .capability-grid {
    gap: 15px;
}

.about-page .capability-grid article {
    display: grid;
    min-height: 142px;
    place-items: center;
    align-content: center;
    padding: 20px 14px;
}

.about-page .capability-icon {
    display: grid;
    width: 52px;
    height: 52px;
    min-height: 0;
    place-items: center;
    letter-spacing: normal;
}

.about-page .capability-icon svg {
    width: 27px;
    height: 27px;
}

.capability-icon--green { color: #029b55 !important; background: #dcf9e7; }
.capability-icon--purple { color: #8547e9 !important; background: #eee3ff; }
.capability-icon--blue { color: #158edb !important; background: #e1f3ff; }
.capability-icon--pink { color: #ed4772 !important; background: #ffe3eb; }

.about-page .capability-grid h3 {
    max-width: 150px;
    margin-top: 10px;
    line-height: 1.2;
}

.about-page .growth-path {
    min-height: 300px;
}

.about-page .growth-path img {
    height: 300px;
}

.about-page .learner-banner {
    min-height: 235px;
    grid-template-columns: minmax(0, 62%) minmax(300px, 38%);
}

.about-page .learner-banner img {
    min-height: 235px;
    object-position: center;
}

.about-page .learner-banner > div {
    position: relative;
    padding: clamp(28px, 4vw, 48px);
    overflow: hidden;
}

.about-page .learner-banner > div::after {
    position: absolute;
    right: -35px;
    bottom: -75px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(87, 220, 138, .12);
    content: "";
}

.about-page .page-section--cta {
    padding: 10px 0 30px;
}

.about-page .page-cta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    padding: 26px 32px;
}

.journey-icon {
    width: 58px;
    height: 58px;
    color: white;
    background: linear-gradient(145deg, #20c773, #008c4c);
    box-shadow: 0 12px 24px rgba(0, 143, 78, .2);
}

.journey-icon svg {
    width: 29px;
    height: 29px;
}

.about-page .puzzle-illustration {
    min-height: 360px;
}

.about-page .puzzle-illustration img {
    max-height: 390px;
}

.about-page .puzzle-note {
    top: 20px;
    right: 0;
    bottom: auto;
}

.about-page .puzzle-note--secondary {
    top: auto;
    right: 3%;
    bottom: 8px;
    color: #1268a7;
    transform: rotate(3deg);
}

/* Contact page */
.contact-hero .page-hero-grid {
    min-height: 440px;
}

.contact-hero .page-hero-copy h1 {
    margin-bottom: 8px;
}

.support-illustration {
    position: relative;
    display: grid;
    min-height: 350px;
    place-items: end center;
    margin: 0;
}

.support-illustration > img {
    width: 100%;
    max-height: 390px;
    object-fit: contain;
    filter: drop-shadow(0 24px 40px rgba(15, 64, 88, .16));
}

.support-bubble { top: 6px; left: 0; color: var(--green-dark); }
.support-note { right: 0; top: 104px; }

.company-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(170px, 230px);
    align-items: center;
    gap: 22px;
    padding: 28px 36px;
    overflow: hidden;
}

.company-card::after {
    position: absolute;
    right: 110px;
    bottom: -80px;
    width: 240px;
    height: 170px;
    border-radius: 48% 52% 0 0;
    background: rgba(99, 222, 144, .15);
    content: "";
}

.company-icon,
.contact-form-icon {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border-radius: 50%;
    color: var(--green-dark);
    background: #e3faea;
    font-size: 33px;
}

.company-icon svg {
    display: block;
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.company-card h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: clamp(23px, 2.6vw, 35px);
}

.company-card p {
    margin: 2px 0 9px;
    color: var(--ink-soft);
}

.company-card address {
    font-style: normal;
    font-weight: 700;
}

.company-building {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 155px;
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(15, 64, 88, .12));
}

.message-panel,
.support-panel {
    padding: clamp(25px, 4vw, 42px);
}

.message-panel {
    scroll-margin-top: 96px;
}

.panel-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.panel-heading-row h2,
.contact-form-heading h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 38px);
}

.contact-form-heading {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-bottom: 25px;
}

.contact-form-heading p {
    margin: 3px 0 0;
}

.contact-form {
    display: grid;
    gap: 15px;
}

.contact-form-required-note {
    justify-self: end;
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.contact-required-mark {
    color: #b42318;
}

.contact-optional-note {
    color: var(--ink-soft);
    font-weight: 650;
}

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

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(7, 25, 67, .18);
    border-radius: 13px;
    outline: 0;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.contact-form input {
    min-height: 51px;
    padding: 0 15px;
}

.contact-form textarea {
    min-height: 150px;
    padding: 14px 15px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(0, 168, 90, .11);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8d97ab;
}

.contact-submit-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-form-status {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
}

.contact-form-status.is-error { color: #b42318; }
.contact-form-status.is-success { color: var(--green-dark); }

.contact-form .button[disabled] {
    cursor: wait;
    opacity: .62;
    transform: none;
}

.hours-pill {
    margin: 0;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--green-dark) !important;
    background: #e7fbed;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.hours-pill small {
    font-weight: 650;
}

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

.support-contact-card {
    display: grid;
    min-height: 145px;
    align-content: center;
    grid-template-columns: auto 1fr;
    gap: 2px 13px;
    padding: 22px;
    border: 1px solid rgba(7, 25, 67, .08);
    border-radius: 18px;
    background: linear-gradient(145deg, #f1fff6, #fff);
}

.support-contact-card:nth-child(2) { background: linear-gradient(145deg, #eef8ff, #fff); }

.support-card-icon {
    grid-row: 1 / span 2;
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    background: var(--green);
    line-height: 0;
}

.support-card-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.support-card-grid small {
    align-self: end;
    color: var(--ink-soft);
    font-weight: 800;
}

.support-card-grid strong {
    align-self: start;
    overflow-wrap: anywhere;
    color: var(--blue-dark);
    font-size: 14px;
}

.contact-cta {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .7), transparent 12rem),
        linear-gradient(110deg, #dfffE7, #c9f7da);
}

.contact-cta > div {
    position: relative;
    z-index: 2;
}

.contact-cta > img {
    width: 155px;
    height: 125px;
    margin-block: -25px;
    margin-left: auto;
    margin-right: clamp(20px, 8vw, 120px);
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(15, 64, 88, .12));
}

/* Hero layout: all content pages stack at the same tablet breakpoint. */
@media (max-width: 980px) {
    .page-hero-grid,
    .about-hero .page-hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
        align-items: start;
        gap: var(--hero-tablet-gap);
        padding-block: var(--hero-tablet-padding-top) var(--hero-tablet-padding-bottom);
    }

    .page-hero-copy {
        text-align: center;
    }

    .page-hero-copy > p:not(.page-kicker) {
        margin-inline: auto;
    }

    .puzzle-illustration,
    .about-page .puzzle-illustration,
    .support-illustration {
        width: min(100%, 720px);
        height: var(--hero-tablet-media-height);
        min-height: var(--hero-tablet-media-height);
        align-self: start;
        margin-inline: auto;
    }

    .puzzle-illustration img,
    .about-page .puzzle-illustration img,
    .support-illustration > img {
        width: 100%;
        height: var(--hero-tablet-media-height);
        max-height: none;
        object-fit: contain;
        object-position: center;
    }
}

@media (max-width: 900px) {
    .story-panel,
    .growth-panel {
        grid-template-columns: 1fr;
    }

    .impact-panel {
        grid-template-columns: 1fr;
    }

    .impact-fact {
        max-width: 480px;
    }

    .capability-grid {
        grid-column: 1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .support-card-grid {
        grid-template-columns: 1fr;
    }

    .about-page .impact-panel {
        grid-template-columns: 1fr;
    }

    .about-page .impact-fact {
        width: 100%;
        max-width: none;
        min-height: 0;
    }
}

@media (max-width: 980px) {
    .page-shell {
        width: min(calc(100% - 34px), var(--shell));
    }
}

@media (max-width: 680px) {
    .page-hero-copy h1 {
        font-size: clamp(42px, 13vw, 60px);
    }

    .page-hero-grid,
    .about-hero .page-hero-grid {
        min-height: 0;
        gap: var(--hero-mobile-gap);
        padding-block: var(--hero-mobile-padding-top) var(--hero-mobile-padding-bottom);
    }

    .puzzle-illustration,
    .about-page .puzzle-illustration,
    .support-illustration {
        height: var(--hero-mobile-media-height);
        min-height: var(--hero-mobile-media-height);
    }

    .puzzle-illustration img,
    .about-page .puzzle-illustration img,
    .support-illustration > img {
        height: var(--hero-mobile-media-height);
    }

    .story-panel,
    .growth-panel,
    .impact-panel,
    .message-panel,
    .support-panel {
        padding: 27px 22px;
        border-radius: 22px;
    }

    .capability-grid,
    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .learner-banner {
        grid-template-columns: 1fr;
    }

    .learner-banner img {
        min-height: 225px;
        max-height: 270px;
    }

    .page-cta,
    .panel-heading-row,
    .contact-submit-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .page-cta .button,
    .panel-heading-row .button,
    .contact-submit-row .button {
        width: 100%;
    }

    .company-card {
        grid-template-columns: auto 1fr;
        padding: 25px 22px;
    }

    .about-page .story-panel,
    .about-page .growth-panel,
    .about-page .impact-panel {
        padding: 27px 22px;
    }

    .about-section-heading {
        gap: 13px;
    }

    .about-section-icon {
        width: 48px;
        height: 48px;
    }

    .about-section-icon svg {
        width: 24px;
        height: 24px;
    }

    .about-page .learner-banner {
        grid-template-columns: 1fr;
    }

    .about-page .learner-banner img {
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 2206 / 713;
    }

    .about-page .page-cta {
        grid-template-columns: 1fr;
    }

    .about-page .journey-icon {
        margin-inline: auto;
    }

    .company-building {
        grid-column: 1 / -1;
        width: min(100%, 320px);
        margin-inline: auto;
    }

    .contact-cta > img {
        align-self: center;
        margin-inline: auto;
    }

    .g-recaptcha {
        max-width: 100%;
        overflow: hidden;
        transform-origin: left top;
    }
}

@media (max-width: 680px) {
    .page-shell {
        width: min(calc(100% - 28px), var(--shell));
    }
}

@media (max-width: 410px) {
    .puzzle-illustration {
        margin: 0;
    }

    .support-illustration {
        margin: 0;
    }

    .company-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .company-icon {
        margin-inline: auto;
    }

    .g-recaptcha {
        transform: scale(.88);
    }

    .about-page .puzzle-note {
        right: 24px;
    }

    .about-page .puzzle-note--secondary {
        right: 34px;
    }

    .about-page .capability-grid {
        grid-template-columns: 1fr;
    }
}

/* Match the About and Contact heroes to the shared desktop hero frame. */
@media (min-width: 981px) {
    .about-hero .page-hero-grid,
    .contact-hero .page-hero-grid {
        min-height: var(--hero-desktop-min-height);
        grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
        align-items: start;
        gap: var(--hero-desktop-gap);
        padding-block: var(--hero-desktop-padding);
    }

    .about-hero .puzzle-illustration,
    .contact-hero .support-illustration {
        width: 100%;
        height: var(--hero-desktop-media-height);
        min-height: var(--hero-desktop-media-height);
        align-self: start;
        place-items: center;
    }

    .about-hero .puzzle-illustration img,
    .contact-hero .support-illustration > img {
        width: 100%;
        height: var(--hero-desktop-media-height);
        max-height: none;
        object-fit: contain;
        object-position: center;
    }
}

/* Shared long-form treatment for the redesigned public legal pages. */
.legal-page {
    background:
        radial-gradient(circle at 10% 4%, rgba(93, 229, 142, .12), transparent 26rem),
        linear-gradient(180deg, #f8fffb 0, #fff 24rem);
}

.legal-hero {
    border-bottom: 1px solid rgba(7, 25, 67, .06);
}

.legal-hero-inner {
    display: grid;
    min-height: 280px;
    align-content: center;
    justify-items: center;
    padding-block: 58px;
    text-align: center;
}

.legal-hero h1 {
    margin: 4px 0 14px;
    color: var(--ink);
    font-size: clamp(44px, 5vw, 68px);
    letter-spacing: -.04em;
    line-height: 1.05;
}

.legal-hero-inner > p:last-child {
    max-width: 620px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 17px;
}

.legal-section {
    padding-block: clamp(32px, 5vw, 64px);
}

.legal-document {
    width: min(calc(100% - 48px), 1040px);
    padding: clamp(34px, 5vw, 68px);
    overflow-wrap: anywhere;
}

.legal-document > :first-child {
    margin-top: 0;
}

.legal-document p,
.legal-document li {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.78;
}

.legal-document p {
    margin: 0 0 1.15em;
}

.legal-document h2 {
    margin: 40px 0 16px;
    padding-top: 28px;
    border-top: 1px solid rgba(7, 25, 67, .09);
    color: var(--ink);
    font-size: clamp(20px, 2.2vw, 26px);
    letter-spacing: -.015em;
    line-height: 1.3;
}

.legal-document h3 {
    margin: 28px 0 12px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.35;
}

.legal-document ul {
    margin: 0 0 1.45em;
    padding-left: 1.5rem;
}

.legal-document li + li {
    margin-top: .65em;
}

.legal-document a {
    color: var(--green-dark);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-document a:hover,
.legal-document a:focus-visible {
    color: var(--green);
}

.legal-effective-date {
    display: inline-flex;
    margin-bottom: 28px !important;
    padding: 9px 14px;
    border: 1px solid rgba(0, 134, 75, .16);
    border-radius: 999px;
    color: var(--green-dark) !important;
    background: rgba(93, 229, 142, .11);
    font-size: 13px !important;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.legal-warning {
    margin-bottom: 30px;
    padding: 20px 22px;
    border-left: 4px solid var(--green);
    border-radius: 0 16px 16px 0;
    color: var(--ink) !important;
    background: rgba(93, 229, 142, .09);
    font-weight: 750;
}

.privacy-page .legal-document > ul:first-of-type {
    columns: 2;
    column-gap: 38px;
    margin: 22px 0 34px;
    padding: 24px 24px 24px 48px;
    border: 1px solid rgba(7, 25, 67, .08);
    border-radius: 18px;
    background: rgba(241, 255, 247, .72);
}

.privacy-page .legal-document > ul:first-of-type li {
    break-inside: avoid;
}

@media (max-width: 680px) {
    .legal-hero-inner {
        min-height: 220px;
        padding-block: 42px;
    }

    .legal-hero h1 {
        font-size: clamp(38px, 12vw, 52px);
    }

    .legal-document {
        width: min(calc(100% - 28px), 1040px);
        padding: 28px 21px;
        border-radius: 22px;
    }

    .legal-document h2 {
        margin-top: 32px;
        padding-top: 23px;
        font-size: 20px;
    }

    .legal-document p,
    .legal-document li {
        font-size: 15px;
        line-height: 1.72;
    }

    .privacy-page .legal-document > ul:first-of-type {
        columns: 1;
        padding: 20px 20px 20px 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .content-page * {
        scroll-behavior: auto;
    }
}
