@layer tokens, base, layout, components, utilities, motion, pages;
/* pages/home.css */
@layer pages {
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-bottom: clamp(40px, 5vw, 64px);
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center 40%;
    will-change: transform;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            var(--scrim-strong) 0%,
            var(--scrim-mid) 34%,
            var(--scrim-whisper) 62%,
            var(--scrim-low) 100%
        ),
        linear-gradient(to left, var(--scrim-half), transparent 55%);
}

.hero-inner {
    position: relative;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
    color: var(--white);
    margin-bottom: 8vh;
}

.hero .eyebrow {
    color: var(--light-tint-2);
    margin-bottom: 1rem;
}

.hero .eyebrow::before {
    background: var(--light);
}

.hero h1 {
    font-size: var(--fs-hero);
    font-weight: 700;
    line-height: 1.35;
    max-width: 14ch;
    text-wrap: pretty;
    letter-spacing: 0.02em;
    filter: drop-shadow(var(--shadow-hero));
}


@keyframes sheen-sweep {
    0% {
        --sheen: 150%;
    }

    100% {
        --sheen: -50%;
    }
}


.hero h1 .hw {
    --sheen: 300%;

    background-image: linear-gradient(
        100deg,
        var(--white) calc(var(--sheen) - 16%),
        var(--light-tint-3) calc(var(--sheen) - 6%),
        var(--light-tint-2) var(--sheen),
        var(--light-tint-3) calc(var(--sheen) + 6%),
        var(--white) calc(var(--sheen) + 16%)
    );
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: sheen-sweep 5s linear infinite;
}


.hero h1 .hw.hw-blue {
    background-image: linear-gradient(
        100deg,
        var(--light) calc(var(--sheen) - 16%),
        var(--light-tint-1) calc(var(--sheen) - 6%),
        var(--white) var(--sheen),
        var(--light-tint-1) calc(var(--sheen) + 6%),
        var(--light) calc(var(--sheen) + 16%)
    );
}


.hero h1 .hw:nth-child(2) {
    animation-delay: 0.12s;
}

.hero h1 .hw:nth-child(3) {
    animation-delay: 0.24s;
}

.hero h1 .hw:nth-child(4) {
    animation-delay: 0.36s;
}

.hero-sub {
    margin-top: 1rem;
    max-width: 44ch;
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: var(--on-dark-82);
    font-weight: 300;
    line-height: 1.75;
}

.hero-cta {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}


.hero [data-hero] {
    opacity: 0;
    transform: translateY(28px);
}


.about {
    background: var(--white);
    position: relative;
    overflow: hidden;
}


.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: stretch;
}

.about-copy {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 2;
    align-self: center;
    padding-block: clamp(0.5rem, 2vw, 1.5rem);
}

.about-copy .pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid var(--line-accent);
    border-radius: var(--radius-pill);
    padding: 0.4rem 1.1rem;
    color: var(--sky);
    font-weight: 600;
    font-size: 0.78rem;
}

.about-copy .pill::before,
.about-copy .pill::after {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--light);
    flex: none;
}

.about-copy h2 {
    font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.9rem);
    margin-top: 1.2rem;
    line-height: 1.35;
    font-weight: 700;
    max-width: 18ch;
    text-wrap: balance;
}

.about-copy .lead {
    margin-top: 1.25rem;
    font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
    color: var(--ink);
    line-height: 1.95;
    max-width: 58ch;
    text-wrap: pretty;
}

.about-copy .btn {
    margin-top: 1.8rem;
}

.about-visual {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 1;
    min-height: 320px;
}

.about-visual .frame {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 0;
    box-shadow: var(--shadow-frame);
}

.about-visual .frame picture {
    display: block;
    width: 100%;
    height: 100%;
}

.about-visual .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 50%;
    will-change: transform;
}


.vm {
    --bg: var(--paper);
    --edge: clamp(34px, 6vw, 90px);

    position: relative;
    overflow-x: clip;
    background: var(--paper);
}

.vm > .wrap {
    position: relative;
    z-index: 1;
}




.programs {
    background: var(--white);
}

.prog-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.4rem, 3vw, 2.6rem);
}

.prog-cards > li {
    display: flex;
}

.prog-card {
    --pc: var(--sea);
    --pc-lift: var(--sea-3);

    position: relative;
    display: flex;
    flex-direction: column;
    inline-size: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    outline-offset: 6px;
    transition: border-color 0.35s var(--ease);
}

.prog-card-sky {
    --pc: var(--sky);
    --pc-lift: var(--sky-2);
}

.prog-card-dark {
    --pc: var(--dark);
    --pc-lift: var(--dark-3);
}

.pc-panel {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: radial-gradient(120% 95% at 50% 15%, var(--pc-lift), var(--pc) 72%);
}

.pc-icon {
    inline-size: clamp(52px, 5vw, 72px);
    block-size: clamp(52px, 5vw, 72px);
    color: var(--white);
    opacity: 0.92;
    translate: 0 -12%;
    transition: scale 0.6s var(--ease-out);
}

.pc-panel .leaves {
    position: absolute;
    inset-inline: 0;
    inset-block-end: -1px;
    inline-size: 100%;
    block-size: 28%;
    overflow: visible;
}

.pc-panel .leaves path {
    fill: var(--white);
    transition:
        translate 0.7s var(--ease),
        opacity 0.5s;
}

.pc-body {
    flex: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: start;
    gap: 0.7rem;
    padding: 0.4rem clamp(1.1rem, 2vw, 1.6rem) clamp(1.3rem, 2.2vw, 1.8rem);
}

.prog-card .idx {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--sky);
}

.prog-card h3 {
    font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem);
    line-height: 1.35;
    color: var(--sea);
    text-wrap: balance;
}

.prog-card .more {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--sea);
}

.prog-card .go {
    display: grid;
    place-items: center;
    inline-size: 42px;
    block-size: 42px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--sky);
    transition:
        background-color 0.35s,
        color 0.35s,
        translate 0.45s var(--ease-out);
}

.prog-card .go svg {
    width: 14px;
    height: 12px;
}

.prog-card:is(:hover, :focus-visible) {
    border-color: var(--line-card-hover);
}

.prog-card:is(:hover, :focus-visible) .pc-icon {
    scale: 1.06;
}

.prog-card:is(:hover, :focus-visible) .lf1 {
    translate: 0 46px;
    opacity: 0;
}

.prog-card:is(:hover, :focus-visible) .lf2 {
    translate: 0 30px;
    opacity: 0;
    transition-delay: 0.06s;
}

.prog-card:is(:hover, :focus-visible) .go {
    background: var(--sky);
    color: var(--white);
    translate: -6px 0;
}

@media (prefers-reduced-motion: reduce) {
    .prog-card:is(:hover, :focus-visible) :is(.pc-icon, .lf1, .lf2, .go) {
        scale: none;
        translate: none;
    }
}


.practical {
    --bg: var(--paper);
    --edge: clamp(34px, 6vw, 90px);

    background: var(--paper);
    position: relative;
    overflow-x: clip;
}

.practical > .wrap {
    position: relative;
    z-index: 1;
}

.practical-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}


.shield {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    aspect-ratio: 75.7/88.18;
}

.shield .lens {
    position: absolute;
    inset: 0;
    clip-path: url("#cp-shield");
    background: var(--sea);
    border-radius: var(--radius);
}

.shield picture {
    display: block;
    width: 100%;
    height: 100%;
}


.shield img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 50%;
}

.shield-line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.shield-line path {
    fill: none;
    stroke: var(--light);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.practical-copy h2 {
    font-size: var(--fs-display);
    margin-top: 1rem;
    max-width: 16ch;
}

.practical-copy .lead-p {
    margin-top: 1.4rem;
    font-size: clamp(1.06rem, 1rem + 0.32vw, 1.25rem);
    color: var(--ink-soft);
    max-width: 48ch;
}


.feat-list .feat:hover {
    transform: translateX(-8px);
    transition-delay: 0s;
}


.why {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.why-grid {
    display: grid;
    gap: clamp(2.2rem, 4vw, 3.2rem);
}

.why-title {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 700;
    margin: 0;
}

.why-head p {
    margin-top: 1.3rem;
    color: var(--ink-soft);
    max-width: 52ch;
}

.why-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 1.6vw, 1.5rem);
}


.why-cards .wcard:hover {
    transform: translateY(-6px);
    border-color: var(--line-card-hover);
    box-shadow: var(--shadow-card-hover);
    transition-delay: 0s;
}


.announce {
    --bg: var(--paper);
    --edge: clamp(34px, 6vw, 90px);

    position: relative;
    overflow-x: clip;
    background: var(--paper);
}

.announce > .wrap {
    position: relative;
    z-index: 1;
}

.announce .sec-head .t h2 {
    font-size: var(--fs-display);
    max-width: 20ch;
}

.announce .date {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--sky);
    font-weight: 700;
    font-size: 0.85rem;
}

.announce .date .dot {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--light);
    transform: rotate(45deg);
}

.ann-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: clamp(1rem, 2vw, 1.6rem);
}

.ann-feature {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--radius);
    background: var(--sky);
    color: var(--white);
    padding: clamp(4.4rem, 6vw, 5.2rem) clamp(1.8rem, 4vw, 3rem) clamp(1.8rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.6rem;
    min-height: 400px;
}

.ann-feature .ghost {
    position: absolute;
    overflow: visible;
    pointer-events: none;
    width: 78%;
    inset-inline-end: -20%;
    bottom: -24%;
    z-index: -1;
}

.ann-feature .ghost use {
    fill: var(--on-dark-08);
}

.ribbon {
    position: absolute;
    top: 0;
    inset-inline-start: clamp(1.8rem, 4vw, 3rem);
    padding: 0.9rem 0.9rem 1.3rem;
    background: var(--light);
    color: var(--dark);
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 0.86rem;
    line-height: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
    transition: padding 0.45s var(--ease-out);
}

.ann-feature:hover .ribbon {
    padding-top: 1.4rem;
}

.ann-feature h3 {
    font-size: var(--fs-h3);
    line-height: 1.45;
    color: var(--white);
    max-width: 22ch;
    text-wrap: balance;
}

.ann-feature p {
    margin-top: 0.9rem;
    color: var(--on-dark-90);
    max-width: 52ch;
    font-size: 0.98rem;
}

.ann-feature .date {
    color: var(--white);
}

.ann-feature .date .dot {
    background: var(--white);
}

.ann-feature .foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ann-side {
    display: grid;
    gap: clamp(1rem, 2vw, 1.6rem);
}

.ann-card {
    position: relative;
    display: grid;
}

.ann-card .sheet {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: var(--paper-3);
    transform: rotate(-1.2deg) translate(-4px, 4px);
    transition: transform 0.55s var(--ease-out);
}

.ann-card .face {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    transition: transform 0.5s var(--ease-out);
}

.ann-card:hover .face {
    transform: translateY(-4px);
}

.ann-card:hover .sheet {
    transform: rotate(-3.5deg) translate(-10px, 10px);
}

.ann-card .tab {
    position: absolute;
    top: 0;
    inset-inline-end: 1.5rem;
    width: 16px;
    height: 22px;
    background: var(--light);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
    transition: height 0.45s var(--ease-out);
}

.ann-card:hover .tab {
    height: 34px;
}

.ann-card h4 {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--sea);
    text-wrap: balance;
}

.ann-card p {
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.ann-card .rd {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--sky);
    font-weight: 700;
    font-size: 0.85rem;
}

.ann-card .rd svg {
    width: 12px;
    height: 12px;
    transition: transform 0.35s var(--ease-out);
}

.ann-card:hover .rd svg {
    transform: translateX(-4px);
}




@media (width <= 1080px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-copy {
        grid-column: 1;
        grid-row: 1;
        padding-block: 0;
    }

    .about-visual {
        grid-column: 1;
        grid-row: 2;
        min-height: 0;
    }

    .about-visual .frame {
        position: relative;
        inset: auto;
        aspect-ratio: 16/9;
    }

    .practical-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        gap: 2.5rem;
    }

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

    .practical-copy {
        order: 2;
    }
}

@media (width <= 980px) {
    .prog-cards {
        grid-template-columns: 1fr;
    }

    .pc-panel {
        aspect-ratio: 16 / 7;
    }
}

@media (width <= 820px) {
    .ann-grid {
        grid-template-columns: 1fr;
    }
}

@media (width <= 520px) {
    .hero {
        min-height: 92svh;
    }

    .why-cards {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        width: 100%;
    }

    .hero-cta .btn {
        flex: 1;
        justify-content: center;
    }
}
}
