/*
 * Hanfu.dk editorial front page
 * Scoped to body.hanfu-home so existing registration/report pages are untouched.
 */

body.hanfu-home {
    --hanfu-black: #0d0c0c;
    --hanfu-black-soft: #171311;
    --hanfu-red: #941e25;
    --hanfu-red-bright: #b22931;
    --hanfu-ivory: #f3eadb;
    --hanfu-paper: #eee3d2;
    --hanfu-gold: #c49a4a;
    --hanfu-ink: #211b18;
    --hanfu-muted: #756a60;
    --hanfu-line: rgba(33, 27, 24, 0.18);
    --hanfu-shell: min(1280px, calc(100vw - 96px));
    background: var(--hanfu-ivory);
    color: var(--hanfu-ink);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.72;
    margin: 0;
    overflow-x: hidden;
}

body.hanfu-home,
body.hanfu-home * {
    box-sizing: border-box;
}

body.hanfu-home .wp-site-blocks,
body.hanfu-home .hanfu-page-content,
body.hanfu-home .hanfu-page-content > * {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
}

body.hanfu-home .wp-site-blocks {
    display: block;
}

body.hanfu-home img {
    display: block;
    height: auto;
    max-width: 100%;
}

body.hanfu-home a {
    color: inherit;
}

body.hanfu-home.hanfu-menu-open {
    overflow: hidden;
}

body.hanfu-home h1,
body.hanfu-home h2,
body.hanfu-home h3,
body.hanfu-home h4,
body.hanfu-home p,
body.hanfu-home dl,
body.hanfu-home figure,
body.hanfu-home ul {
    margin: 0;
}

body.hanfu-home h1,
body.hanfu-home h2,
body.hanfu-home h3,
body.hanfu-home h4 {
    color: inherit;
    font-family: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 0.98;
}

body.hanfu-home :where([lang="zh-Hant"]) {
    font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
}

.hanfu-shell {
    margin-inline: auto;
    width: var(--hanfu-shell);
}

.hanfu-skip-link {
    background: var(--hanfu-ivory);
    color: var(--hanfu-black) !important;
    font-size: 0.82rem;
    font-weight: 700;
    left: 18px;
    padding: 11px 16px;
    position: fixed;
    text-decoration: none;
    top: -100px;
    transition: top 160ms ease;
    z-index: 99999;
}

.hanfu-skip-link:focus {
    outline: 2px solid var(--hanfu-gold);
    top: 18px;
}

body.admin-bar .hanfu-skip-link:focus {
    top: 50px;
}

/* Header */
.hanfu-header {
    color: #fff;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: background 260ms ease, box-shadow 260ms ease, transform 260ms ease;
    z-index: 1000;
}

body.admin-bar .hanfu-header {
    top: 32px;
}

.hanfu-header::after {
    background: rgba(255, 255, 255, 0.22);
    bottom: 0;
    content: "";
    height: 1px;
    left: 48px;
    position: absolute;
    right: 48px;
    transition: opacity 220ms ease;
}

.hanfu-header.is-scrolled,
.hanfu-header.is-open {
    backdrop-filter: blur(18px);
    background: rgba(13, 12, 12, 0.94);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.16);
}

.hanfu-header.is-scrolled::after,
.hanfu-header.is-open::after {
    opacity: 0;
}

.hanfu-header__inner {
    align-items: center;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    margin-inline: auto;
    min-height: 90px;
    width: var(--hanfu-shell);
}

.hanfu-brand {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 13px;
    text-decoration: none;
}

.hanfu-brand__seal {
    align-items: center;
    background: var(--hanfu-red);
    border: 1px solid rgba(243, 234, 219, 0.8);
    color: var(--hanfu-ivory);
    display: inline-flex;
    font-size: 1.6rem;
    height: 48px;
    justify-content: center;
    line-height: 1;
    outline: 1px solid rgba(196, 154, 74, 0.65);
    outline-offset: 3px;
    width: 48px;
}

/* The supplied association seal is a square JPEG.  Keep its white centre for
   legibility and use this round frame to visually remove the outside corners. */
.hanfu-brand__logo {
    align-items: center;
    background: var(--hanfu-ivory);
    border: 1px solid rgba(243, 234, 219, 0.86);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.34);
    display: inline-flex;
    flex: 0 0 auto;
    height: 56px;
    justify-content: center;
    outline: 1px solid rgba(196, 154, 74, 0.65);
    outline-offset: 3px;
    overflow: hidden;
    width: 56px;
}

body.hanfu-home .hanfu-brand__logo-image {
    display: block;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 47% 50%;
    width: 100%;
}

/* The original red Han mark returns as the association's small signature seal. */
.hanfu-brand__seal--signet {
    flex: 0 0 34px;
    font-size: 1.2rem;
    height: 34px;
    width: 34px;
}

.hanfu-brand__words {
    display: flex;
    flex-direction: column;
    font-size: 0.72rem;
    letter-spacing: 0.055em;
    line-height: 1.34;
    text-transform: uppercase;
}

.hanfu-brand__words strong {
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.035em;
}

.hanfu-nav {
    align-items: center;
    display: flex;
    gap: clamp(16px, 1.7vw, 29px);
}

.hanfu-nav > a {
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
}

.hanfu-nav > a::after {
    background: var(--hanfu-gold);
    bottom: -9px;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms ease;
    width: 100%;
}

.hanfu-nav > a:hover::after,
.hanfu-nav > a:focus-visible::after,
.hanfu-nav > a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hanfu-language {
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.5);
    display: inline-flex;
    font-size: 0.7rem;
    gap: 6px;
    letter-spacing: 0.04em;
    margin-left: 3px;
    padding-left: clamp(16px, 1.7vw, 26px);
    white-space: nowrap;
}

.hanfu-language strong {
    color: #fff;
    font-weight: 600;
}

.hanfu-menu-toggle {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: none;
    font: inherit;
    gap: 12px;
    padding: 8px 0 8px 8px;
}

.hanfu-menu-toggle__label {
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hanfu-menu-toggle__icon {
    display: block;
    height: 18px;
    position: relative;
    width: 25px;
}

.hanfu-menu-toggle__icon i {
    background: currentColor;
    height: 1px;
    left: 0;
    position: absolute;
    transition: transform 220ms ease, top 220ms ease;
    width: 25px;
}

.hanfu-menu-toggle__icon i:first-child { top: 5px; }
.hanfu-menu-toggle__icon i:last-child { top: 13px; }
.hanfu-header.is-open .hanfu-menu-toggle__icon i:first-child { top: 9px; transform: rotate(45deg); }
.hanfu-header.is-open .hanfu-menu-toggle__icon i:last-child { top: 9px; transform: rotate(-45deg); }

/* Shared type and controls */
.hanfu-eyebrow,
.hanfu-section-label,
.hanfu-kicker {
    font-size: 0.71rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hanfu-eyebrow,
.hanfu-section-label {
    align-items: center;
    display: flex;
    gap: 13px;
}

.hanfu-eyebrow::before,
.hanfu-section-label::before {
    background: currentColor;
    content: "";
    height: 1px;
    width: 36px;
}

.hanfu-section-label {
    color: var(--hanfu-red);
    margin-bottom: 26px !important;
}

.hanfu-section-label--gold {
    color: var(--hanfu-gold);
}

.hanfu-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hanfu-button {
    align-items: center;
    border: 1px solid transparent;
    display: inline-flex;
    font-size: 0.73rem;
    font-weight: 600;
    gap: 32px;
    justify-content: space-between;
    letter-spacing: 0.08em;
    min-height: 54px;
    padding: 14px 22px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.hanfu-button:hover,
.hanfu-button:focus-visible {
    transform: translateY(-2px);
}

.hanfu-button--red {
    background: var(--hanfu-red);
    color: #fff !important;
}

.hanfu-button--red:hover,
.hanfu-button--red:focus-visible {
    background: var(--hanfu-red-bright);
}

.hanfu-button--ghost {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff !important;
}

.hanfu-button--ghost:hover,
.hanfu-button--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
}

.hanfu-button--ivory {
    background: var(--hanfu-ivory);
    color: var(--hanfu-black) !important;
}

.hanfu-button--ivory:hover,
.hanfu-button--ivory:focus-visible {
    background: #fff;
}

/* Hero */
.hanfu-hero {
    background: var(--hanfu-black);
    color: #fff;
    height: clamp(760px, 100svh, 980px);
    min-height: 760px;
    overflow: hidden;
    position: relative;
}

/* Keep the opening scene within one viewport on desktop. */
@media (min-width: 901px) {
    .hanfu-hero {
        height: 100svh;
        min-height: 0;
    }

    .hanfu-hero__content {
        min-height: 100%;
    }
}

.hanfu-hero__media,
.hanfu-hero__shade {
    inset: 0;
    position: absolute;
}

.hanfu-hero__media img {
    height: 100%;
    object-fit: cover;
    object-position: center center;
    width: 100%;
}

.hanfu-hero__media::after {
    background: linear-gradient(90deg, rgba(13, 12, 12, 0.92) 0%, rgba(13, 12, 12, 0.68) 34%, rgba(13, 12, 12, 0.12) 72%, rgba(13, 12, 12, 0.22) 100%);
    content: "";
    inset: 0;
    position: absolute;
}

.hanfu-hero__shade {
    background:
        linear-gradient(180deg, rgba(13, 12, 12, 0.44) 0%, transparent 28%, transparent 65%, rgba(13, 12, 12, 0.78) 100%),
        linear-gradient(90deg, rgba(148, 30, 37, 0.11), transparent 42%);
}

.hanfu-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 760px;
    padding-block: 150px 110px;
    position: relative;
    z-index: 2;
}

.hanfu-hero .hanfu-eyebrow {
    color: rgba(255, 255, 255, 0.76);
    margin-bottom: 32px;
}

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

.hanfu-hero h1 {
    color: #fff;
    font-size: clamp(4.8rem, 8vw, 8.4rem);
    max-width: 830px;
    text-wrap: balance;
}

.hanfu-hero h1 em {
    color: var(--hanfu-gold);
    font-weight: 500;
}

.hanfu-hero__intro {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1.25vw, 1.17rem);
    line-height: 1.75;
    margin: 32px 0 38px !important;
    max-width: 555px;
}

.hanfu-hero__chinese {
    bottom: 83px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.75rem;
    letter-spacing: 0.26em;
    position: absolute;
    right: 49px;
    writing-mode: vertical-rl;
    z-index: 2;
}

.hanfu-scroll-cue {
    align-items: center;
    bottom: 36px;
    color: rgba(255, 255, 255, 0.72) !important;
    display: flex;
    font-size: 0.65rem;
    gap: 12px;
    left: 50%;
    letter-spacing: 0.17em;
    position: absolute;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
    z-index: 2;
}

.hanfu-scroll-cue i {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    display: block;
    height: 30px;
    position: relative;
    width: 18px;
}

.hanfu-scroll-cue i::after {
    animation: hanfu-scroll 1.8s ease-in-out infinite;
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 3px;
    left: 6px;
    position: absolute;
    top: 7px;
    width: 3px;
}

@keyframes hanfu-scroll {
    0%, 100% { opacity: 0.25; transform: translateY(0); }
    45% { opacity: 1; }
    70% { opacity: 0.2; transform: translateY(10px); }
}

.hanfu-hero .hanfu-reveal {
    animation: hanfu-hero-in 850ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hanfu-hero h1 { animation-delay: 90ms !important; }
.hanfu-hero__intro { animation-delay: 180ms !important; }
.hanfu-hero .hanfu-actions { animation-delay: 270ms !important; }

@keyframes hanfu-hero-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Foundation */
.hanfu-foundation {
    background: var(--hanfu-black);
    color: var(--hanfu-ivory);
    overflow: hidden;
    padding: clamp(110px, 12vw, 175px) 0;
    position: relative;
}

.hanfu-foundation__art {
    background-image:
        linear-gradient(90deg, var(--hanfu-black) 0%, rgba(13, 12, 12, 0.98) 25%, rgba(13, 12, 12, 0.53) 72%, rgba(13, 12, 12, 0.34) 100%),
        url("../images/hanfu-textile-bg.webp");
    background-position: center, right center;
    background-repeat: no-repeat;
    background-size: cover, auto 100%;
    inset: 0;
    opacity: 0.78;
    position: absolute;
}

.hanfu-foundation__inner {
    position: relative;
    z-index: 1;
}

.hanfu-foundation__grid {
    display: grid;
    gap: clamp(70px, 10vw, 170px);
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.hanfu-foundation__mark {
    color: rgba(196, 154, 74, 0.2);
    font-size: clamp(7rem, 13vw, 12rem);
    line-height: 0.8;
    margin-bottom: -10px !important;
}

.hanfu-foundation h2 {
    color: var(--hanfu-ivory);
    font-size: clamp(3rem, 4.8vw, 5.4rem);
}

.hanfu-foundation__statement {
    align-self: end;
    max-width: 610px;
}

.hanfu-foundation__statement > p:last-child {
    color: rgba(243, 234, 219, 0.7);
    font-size: 0.96rem;
}

.hanfu-zh-quote {
    color: #fff;
    font-size: clamp(1.2rem, 1.65vw, 1.58rem);
    font-weight: 500;
    line-height: 2;
}

.hanfu-rule {
    background: linear-gradient(90deg, var(--hanfu-gold), transparent);
    display: block;
    height: 1px;
    margin: 34px 0;
    width: 100%;
}

/* Association */
.hanfu-about {
    background: var(--hanfu-ivory);
    padding: clamp(105px, 12vw, 175px) 0;
}

.hanfu-about__grid {
    align-items: center;
    display: grid;
    gap: clamp(55px, 8vw, 125px);
    grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.92fr);
}

.hanfu-about__image {
    min-height: 680px;
    overflow: visible;
    position: relative;
}

.hanfu-about__image::before {
    border: 1px solid var(--hanfu-gold);
    content: "";
    inset: 30px -24px -30px 30px;
    pointer-events: none;
    position: absolute;
}

.hanfu-about__image img {
    height: 680px;
    object-fit: cover;
    position: relative;
    width: 100%;
}

.hanfu-image-note {
    align-items: center;
    bottom: 23px;
    color: #fff;
    display: flex;
    font-size: 0.66rem;
    font-weight: 600;
    gap: 11px;
    left: 25px;
    letter-spacing: 0.12em;
    position: absolute;
    text-transform: uppercase;
}

.hanfu-image-note::before {
    background: var(--hanfu-gold);
    content: "";
    height: 1px;
    width: 29px;
}

.hanfu-about__content h2 {
    color: var(--hanfu-ink);
    font-size: clamp(3.4rem, 5vw, 5.5rem);
    margin-bottom: 35px;
}

.hanfu-about__content > p:not(.hanfu-section-label):not(.hanfu-values) {
    color: #5e554e;
    margin-bottom: 22px;
}

.hanfu-about__content .hanfu-lead {
    color: var(--hanfu-ink) !important;
    font-size: 1.1rem;
    line-height: 1.78;
}

.hanfu-mission-list {
    list-style: none;
    margin-top: 38px !important;
    padding: 0;
}

.hanfu-mission-list li {
    align-items: baseline;
    border-top: 1px solid var(--hanfu-line);
    display: grid;
    font-size: 0.89rem;
    gap: 16px;
    grid-template-columns: 34px 1fr;
    padding: 15px 0;
}

.hanfu-mission-list li:last-child {
    border-bottom: 1px solid var(--hanfu-line);
}

.hanfu-mission-list span {
    color: var(--hanfu-red);
    font-size: 0.68rem;
    font-weight: 600;
}

.hanfu-values {
    align-items: center;
    color: var(--hanfu-red);
    display: flex;
    font-size: 0.95rem;
    gap: 16px;
    letter-spacing: 0.13em;
    margin-top: 35px !important;
}

.hanfu-values i {
    background: var(--hanfu-gold);
    border-radius: 50%;
    height: 4px;
    width: 4px;
}

/* Discover */
.hanfu-discover {
    background: #fffaf2;
    padding: clamp(105px, 12vw, 175px) 0;
}

.hanfu-section-heading {
    align-items: end;
    display: grid;
    gap: clamp(48px, 9vw, 150px);
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    margin-bottom: clamp(65px, 8vw, 100px);
}

.hanfu-section-heading h2 {
    color: var(--hanfu-ink);
    font-size: clamp(4rem, 7vw, 7rem);
}

.hanfu-section-heading > p {
    color: var(--hanfu-muted);
    font-size: 1.02rem;
    padding-bottom: 8px;
}

.hanfu-discover__feature {
    align-items: center;
    display: grid;
    gap: clamp(50px, 8vw, 120px);
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
}

.hanfu-discover__image {
    overflow: hidden;
    position: relative;
}

.hanfu-discover__image::after {
    background: linear-gradient(0deg, rgba(13, 12, 12, 0.78), transparent 42%);
    content: "";
    inset: 0;
    position: absolute;
}

.hanfu-discover__image img {
    height: 680px;
    object-fit: cover;
    width: 100%;
}

.hanfu-discover__caption {
    bottom: 26px;
    color: #fff;
    left: 29px;
    max-width: 380px;
    position: absolute;
    z-index: 1;
}

.hanfu-discover__caption span {
    color: var(--hanfu-gold);
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hanfu-discover__caption p {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.45rem;
    line-height: 1.2;
    margin-top: 8px !important;
}

.hanfu-discover__copy > p {
    color: #5f554d;
    margin-bottom: 24px !important;
}

.hanfu-note {
    align-items: center;
    border-bottom: 1px solid var(--hanfu-line);
    border-top: 1px solid var(--hanfu-line);
    display: grid;
    gap: 20px;
    grid-template-columns: 80px 1fr;
    margin-top: 40px;
    padding: 25px 0;
}

.hanfu-note > span {
    color: var(--hanfu-red);
    font-size: 2rem;
    letter-spacing: 0.08em;
}

.hanfu-note strong {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.35rem;
    line-height: 1.1;
}

.hanfu-note p {
    color: var(--hanfu-muted);
    font-size: 0.78rem;
    line-height: 1.6;
    margin-top: 6px !important;
}

.hanfu-pillars {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, 1fr);
    margin-top: clamp(75px, 10vw, 130px);
}

.hanfu-pillars article {
    border-left: 1px solid var(--hanfu-line);
    min-height: 350px;
    padding: 9px clamp(28px, 4vw, 58px) 35px;
    position: relative;
}

.hanfu-pillars article:last-child {
    border-right: 1px solid var(--hanfu-line);
}

.hanfu-pillar-number {
    color: var(--hanfu-red);
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.hanfu-pillar-chinese {
    color: rgba(148, 30, 37, 0.14);
    font-size: 6rem;
    line-height: 1;
    margin: 24px 0 -15px !important;
}

.hanfu-pillars h3 {
    color: var(--hanfu-ink);
    font-size: 2.55rem;
    margin-bottom: 17px;
}

.hanfu-pillars article > p:last-child {
    color: var(--hanfu-muted);
    font-size: 0.86rem;
    line-height: 1.72;
}

/* Events */
.hanfu-events {
    background: var(--hanfu-black-soft);
    color: var(--hanfu-ivory);
    padding: clamp(105px, 12vw, 175px) 0;
}

.hanfu-section-heading--light h2 {
    color: var(--hanfu-ivory);
}

.hanfu-section-heading--light > p {
    color: rgba(243, 234, 219, 0.6);
}

.hanfu-featured-event {
    background: var(--hanfu-red);
    display: grid;
    grid-template-columns: 190px 1fr 250px;
    min-height: 355px;
    overflow: hidden;
    position: relative;
}

.hanfu-featured-event::after {
    border: 1px solid rgba(196, 154, 74, 0.45);
    content: "";
    inset: 12px;
    pointer-events: none;
    position: absolute;
}

.hanfu-featured-event__date {
    align-items: center;
    border-right: 1px solid rgba(243, 234, 219, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hanfu-featured-event__date strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 7.5rem;
    font-weight: 500;
    letter-spacing: -0.07em;
    line-height: 0.72;
}

.hanfu-featured-event__date span {
    font-size: 0.67rem;
    letter-spacing: 0.18em;
    line-height: 1.7;
    margin-top: 27px;
    text-align: center;
    text-transform: uppercase;
}

.hanfu-featured-event__body {
    align-self: center;
    padding: 50px clamp(40px, 5vw, 75px);
    position: relative;
    z-index: 1;
}

.hanfu-featured-event .hanfu-kicker {
    color: var(--hanfu-gold);
    margin-bottom: 15px;
}

.hanfu-featured-event h3 {
    color: #fff;
    font-size: clamp(2.8rem, 4vw, 4.5rem);
    margin-bottom: 20px;
}

.hanfu-featured-event__body > p:not(.hanfu-kicker) {
    color: rgba(255, 255, 255, 0.76);
    max-width: 660px;
}

.hanfu-featured-event dl {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 42px;
    margin-top: 28px;
}

.hanfu-featured-event dl div {
    display: grid;
    gap: 2px;
    grid-template-columns: auto 1fr;
}

.hanfu-featured-event dt {
    color: var(--hanfu-gold);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hanfu-featured-event dd {
    font-size: 0.76rem;
    margin: 0;
}

.hanfu-event-link {
    align-items: center;
    background: rgba(13, 12, 12, 0.17);
    display: flex;
    flex-direction: column;
    font-size: 0.71rem;
    font-weight: 600;
    gap: 28px;
    justify-content: center;
    letter-spacing: 0.09em;
    padding: 35px;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 220ms ease;
    z-index: 1;
}

.hanfu-event-link:hover,
.hanfu-event-link:focus-visible {
    background: rgba(13, 12, 12, 0.34);
}

.hanfu-event-link i {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    font-size: 1.1rem;
    height: 56px;
    justify-content: center;
    transition: transform 220ms ease;
    width: 56px;
}

.hanfu-event-link:hover i,
.hanfu-event-link:focus-visible i {
    transform: rotate(45deg);
}

.hanfu-archive-heading {
    align-items: end;
    display: grid;
    gap: 60px;
    grid-template-columns: 1fr minmax(300px, 0.6fr);
    margin: 115px 0 48px;
}

.hanfu-archive-heading .hanfu-section-label {
    margin-bottom: 14px !important;
}

.hanfu-archive-heading h3 {
    color: var(--hanfu-ivory);
    font-size: clamp(2.8rem, 4vw, 4.3rem);
}

.hanfu-archive-heading > p {
    color: rgba(243, 234, 219, 0.55);
    font-size: 0.86rem;
}

.hanfu-archive-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}

.hanfu-archive-grid__image {
    aspect-ratio: 4 / 3;
    margin-bottom: 22px;
    overflow: hidden;
}

.hanfu-archive-grid img {
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}

.hanfu-archive-grid article:hover img {
    transform: scale(1.035);
}

.hanfu-archive-grid .hanfu-kicker {
    color: var(--hanfu-gold);
    margin-bottom: 8px;
}

.hanfu-archive-grid h4 {
    color: var(--hanfu-ivory);
    font-size: 1.85rem;
    line-height: 1.1;
}

/* Gallery */
.hanfu-gallery {
    background: var(--hanfu-paper);
    padding: clamp(105px, 12vw, 175px) 0;
}

.hanfu-gallery__heading {
    align-items: end;
    display: flex;
    gap: 50px;
    justify-content: space-between;
    margin-bottom: 65px;
}

.hanfu-gallery__heading h2 {
    color: var(--hanfu-ink);
    font-size: clamp(4rem, 7vw, 7rem);
}

.hanfu-gallery__heading > p {
    color: var(--hanfu-muted);
    max-width: 430px;
    padding-bottom: 12px;
}

.hanfu-gallery__grid {
    display: grid;
    gap: 23px;
    grid-auto-rows: 270px;
    grid-template-columns: repeat(12, 1fr);
}

.hanfu-gallery__item {
    grid-column: span 4;
    grid-row: span 2;
    overflow: hidden;
    position: relative;
}

.hanfu-gallery__item--wide {
    grid-column: span 8;
}

.hanfu-gallery__item--portrait {
    grid-column: span 4;
    grid-row: span 3;
}

.hanfu-gallery__item:nth-child(3) {
    grid-column: span 4;
}

.hanfu-gallery__item:nth-child(4) {
    grid-column: span 4;
}

.hanfu-gallery__item::after {
    background: linear-gradient(0deg, rgba(13, 12, 12, 0.78), transparent 45%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.hanfu-gallery__item img {
    height: 100%;
    object-fit: cover;
    transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}

.hanfu-gallery__item:hover img {
    transform: scale(1.035);
}

.hanfu-gallery__item figcaption {
    bottom: 23px;
    color: #fff;
    display: flex;
    font-size: 0.68rem;
    font-weight: 600;
    justify-content: space-between;
    left: 24px;
    letter-spacing: 0.09em;
    position: absolute;
    right: 24px;
    text-transform: uppercase;
    z-index: 1;
}

.hanfu-gallery__item figcaption span:last-child {
    color: rgba(255, 255, 255, 0.62);
}

/* CTA */
.hanfu-cta {
    background: var(--hanfu-red);
    color: #fff;
    overflow: hidden;
    padding: clamp(110px, 12vw, 170px) 0;
    position: relative;
}

.hanfu-cta::before {
    background: linear-gradient(90deg, rgba(13, 12, 12, 0.22), transparent 60%);
    content: "";
    inset: 0;
    position: absolute;
}

.hanfu-cta__ring {
    align-items: center;
    border: 1px solid rgba(196, 154, 74, 0.48);
    border-radius: 50%;
    display: flex;
    height: 520px;
    justify-content: center;
    position: absolute;
    right: -110px;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
}

.hanfu-cta__ring::before,
.hanfu-cta__ring::after {
    border: 1px solid rgba(196, 154, 74, 0.24);
    border-radius: 50%;
    content: "";
    inset: 32px;
    position: absolute;
}

.hanfu-cta__ring::after {
    inset: 66px;
}

.hanfu-cta__ring span {
    color: rgba(243, 234, 219, 0.16);
    font-size: 14rem;
}

.hanfu-cta__inner {
    position: relative;
    z-index: 1;
}

.hanfu-cta h2 {
    color: #fff;
    font-size: clamp(4.5rem, 8vw, 8rem);
    max-width: 850px;
}

.hanfu-cta__inner > p:not(.hanfu-section-label):not(.hanfu-cta__note) {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.4rem, 2.1vw, 2rem);
    margin: 22px 0 38px !important;
}

.hanfu-cta .hanfu-actions {
    margin-top: 42px;
}

.hanfu-cta__note {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.78rem;
    margin-top: 60px !important;
    max-width: 590px;
    padding-top: 20px;
}

/* Footer */
.hanfu-footer {
    background: var(--hanfu-black);
    color: var(--hanfu-ivory);
    padding: 80px 0 30px;
}

.hanfu-footer__inner {
    display: grid;
    gap: 60px;
    grid-template-columns: 1.4fr 0.8fr 0.7fr;
    margin-inline: auto;
    width: var(--hanfu-shell);
}

.hanfu-footer__brand {
    align-items: center;
    display: flex;
    gap: 20px;
}

.hanfu-footer__brand strong {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.12;
}

.hanfu-footer__brand p {
    color: var(--hanfu-gold);
    font-size: 0.73rem;
    letter-spacing: 0.09em;
    margin-top: 7px;
}

.hanfu-footer__contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hanfu-footer__contact span {
    color: rgba(243, 234, 219, 0.48);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.hanfu-footer__contact a {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.45rem;
    text-decoration-color: var(--hanfu-red);
    text-underline-offset: 5px;
}

.hanfu-footer__nav {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
}

.hanfu-footer__nav a {
    color: rgba(243, 234, 219, 0.68);
    font-size: 0.76rem;
    text-decoration: none;
}

.hanfu-footer__nav a:hover,
.hanfu-footer__nav a:focus-visible {
    color: #fff;
}

.hanfu-footer__base {
    border-top: 1px solid rgba(243, 234, 219, 0.15);
    color: rgba(243, 234, 219, 0.38);
    display: flex;
    font-size: 0.63rem;
    grid-column: 1 / -1;
    justify-content: space-between;
    letter-spacing: 0.06em;
    padding-top: 24px;
    text-transform: uppercase;
}

/* Keyboard focus */
body.hanfu-home :focus-visible {
    outline: 2px solid var(--hanfu-gold);
    outline-offset: 5px;
}

/* Scroll reveal, enhanced only after JS opts in */
.hanfu-motion .hanfu-reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(28px);
}

.hanfu-motion .hanfu-reveal {
    transition: opacity 750ms ease, transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hanfu-motion .hanfu-hero .hanfu-reveal {
    opacity: 1;
}

/* Tablet */
@media (max-width: 1120px) {
    body.hanfu-home {
        --hanfu-shell: min(100% - 56px, 1060px);
    }

    .hanfu-header::after { left: 28px; right: 28px; }
    .hanfu-brand__words { display: none; }
    .hanfu-nav { gap: 18px; }
    .hanfu-nav > a { font-size: 0.67rem; }
    .hanfu-language { padding-left: 18px; }
    .hanfu-foundation__grid { gap: 65px; }
    .hanfu-about__grid,
    .hanfu-discover__feature { gap: 65px; }
    .hanfu-featured-event { grid-template-columns: 155px 1fr 205px; }
    .hanfu-featured-event__body { padding-inline: 42px; }
}

@media (max-width: 900px) {
    body.admin-bar .hanfu-header { top: 46px; }
    .hanfu-menu-toggle { display: inline-flex; }

    .hanfu-nav {
        align-items: stretch;
        background: rgba(13, 12, 12, 0.98);
        display: flex;
        flex-direction: column;
        gap: 0;
        left: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding: 0 28px;
        pointer-events: none;
        position: absolute;
        right: 0;
        top: 100%;
        transition: max-height 350ms ease, opacity 220ms ease, padding 350ms ease;
    }

    .hanfu-header.is-open .hanfu-nav {
        max-height: calc(100vh - 80px);
        opacity: 1;
        overflow-y: auto;
        padding-block: 18px 30px;
        pointer-events: auto;
    }

    .hanfu-nav > a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        font-family: "Cormorant Garamond", Georgia, serif;
        font-size: 2rem;
        font-weight: 500;
        letter-spacing: -0.02em;
        padding: 15px 0;
        text-transform: none;
    }

    .hanfu-nav > a::after { display: none; }
    .hanfu-language { border: 0; margin: 22px 0 0; padding: 0; }

    .hanfu-foundation__grid,
    .hanfu-about__grid,
    .hanfu-discover__feature,
    .hanfu-section-heading {
        grid-template-columns: 1fr;
    }

    .hanfu-foundation__statement { max-width: 700px; }
    .hanfu-about__image { min-height: 560px; }
    .hanfu-about__image img { height: 560px; }
    .hanfu-discover__image img { height: 570px; }

    .hanfu-pillars article {
        min-height: 320px;
        padding-inline: 28px;
    }

    .hanfu-featured-event {
        grid-template-columns: 150px 1fr;
    }

    .hanfu-event-link {
        border-top: 1px solid rgba(243, 234, 219, 0.22);
        flex-direction: row;
        grid-column: 1 / -1;
        justify-content: space-between;
        min-height: 100px;
        padding: 22px 45px;
    }

    .hanfu-event-link i { height: 48px; width: 48px; }
    .hanfu-archive-grid { gap: 18px; }
    .hanfu-gallery__grid { grid-auto-rows: 220px; }
    .hanfu-footer__inner { grid-template-columns: 1.2fr 0.8fr; }
    .hanfu-footer__nav { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
}

/* Mobile */
@media (max-width: 680px) {
    body.hanfu-home {
        --hanfu-shell: calc(100% - 38px);
        font-size: 15px;
    }

    body.admin-bar .hanfu-header { top: 46px; }
    body.admin-bar .hanfu-header.is-scrolled { top: 0; }
    .hanfu-header__inner { min-height: 76px; }
    .hanfu-header::after { left: 19px; right: 19px; }
    .hanfu-brand__seal { font-size: 1.35rem; height: 40px; width: 40px; }
    .hanfu-brand__logo { height: 42px; width: 42px; }
    .hanfu-brand__seal--signet { flex-basis: 30px; font-size: 1.05rem; height: 30px; width: 30px; }

    .hanfu-hero { min-height: 760px; }
    .hanfu-hero__content { min-height: 760px; padding-block: 130px 100px; }
    .hanfu-hero__media img { object-position: 60% center; }
    .hanfu-hero__media::after {
        background: linear-gradient(90deg, rgba(13, 12, 12, 0.93) 0%, rgba(13, 12, 12, 0.72) 65%, rgba(13, 12, 12, 0.35) 100%);
    }
    .hanfu-hero h1 { font-size: clamp(4rem, 18vw, 5.4rem); }
    .hanfu-hero__intro { max-width: 92%; }
    .hanfu-hero__chinese { display: none; }
    .hanfu-scroll-cue { display: none; }
    .hanfu-actions { align-items: stretch; flex-direction: column; }
    .hanfu-button { width: 100%; }

    .hanfu-section-label { margin-bottom: 20px !important; }
    .hanfu-foundation,
    .hanfu-about,
    .hanfu-discover,
    .hanfu-events,
    .hanfu-gallery,
    .hanfu-cta { padding-block: 90px; }

    .hanfu-foundation__art { background-position: center, 70% center; background-size: cover; opacity: 0.46; }
    .hanfu-foundation__grid { gap: 60px; }
    .hanfu-foundation__mark { font-size: 7rem; }
    .hanfu-foundation h2 { font-size: 3.5rem; }
    .hanfu-zh-quote { font-size: 1.08rem; }

    .hanfu-about__grid { gap: 74px; }
    .hanfu-about__image { min-height: 430px; }
    .hanfu-about__image img { height: 430px; }
    .hanfu-about__image::before { inset: 18px -9px -18px 17px; }
    .hanfu-about__content h2 { font-size: 3.7rem; }
    .hanfu-mission-list li { line-height: 1.55; }

    .hanfu-section-heading { gap: 30px; margin-bottom: 55px; }
    .hanfu-section-heading h2,
    .hanfu-gallery__heading h2 { font-size: 4rem; }
    .hanfu-discover__feature { gap: 48px; }
    .hanfu-discover__image img { height: 470px; }
    .hanfu-note { grid-template-columns: 62px 1fr; }
    .hanfu-note > span { font-size: 1.6rem; }

    .hanfu-pillars {
        grid-template-columns: 1fr;
        margin-top: 75px;
    }

    .hanfu-pillars article {
        border-left: 0;
        border-top: 1px solid var(--hanfu-line);
        min-height: 0;
        padding: 28px 0 38px;
    }

    .hanfu-pillars article:last-child {
        border-bottom: 1px solid var(--hanfu-line);
        border-right: 0;
    }

    .hanfu-pillar-chinese {
        font-size: 4.2rem;
        margin: -4px 0 -16px auto !important;
        position: absolute;
        right: 5px;
        top: 27px;
    }

    .hanfu-featured-event {
        display: block;
    }

    .hanfu-featured-event__date {
        align-items: baseline;
        border-bottom: 1px solid rgba(243, 234, 219, 0.22);
        border-right: 0;
        flex-direction: row;
        gap: 17px;
        justify-content: flex-start;
        margin: 0 29px;
        padding: 38px 0 25px;
    }

    .hanfu-featured-event__date strong { font-size: 5.5rem; }
    .hanfu-featured-event__date span { margin: 0; text-align: left; }
    .hanfu-featured-event__body { padding: 31px 29px 42px; }
    .hanfu-featured-event h3 { font-size: 3rem; }
    .hanfu-featured-event dl { flex-direction: column; gap: 10px; }
    .hanfu-featured-event dl div { grid-template-columns: 58px 1fr; }
    .hanfu-event-link { padding-inline: 29px; }

    .hanfu-archive-heading {
        align-items: start;
        gap: 25px;
        grid-template-columns: 1fr;
        margin-top: 85px;
    }

    .hanfu-archive-grid {
        gap: 46px;
        grid-template-columns: 1fr;
    }

    .hanfu-gallery__heading { align-items: start; flex-direction: column; margin-bottom: 45px; }
    .hanfu-gallery__grid { display: flex; flex-direction: column; gap: 18px; }
    .hanfu-gallery__item,
    .hanfu-gallery__item--wide,
    .hanfu-gallery__item--portrait {
        aspect-ratio: 4 / 3;
        flex: none;
        min-height: 0;
    }
    .hanfu-gallery__item--portrait { aspect-ratio: 3 / 4; }

    .hanfu-cta__ring { height: 380px; opacity: 0.6; right: -230px; width: 380px; }
    .hanfu-cta__ring span { font-size: 9rem; }
    .hanfu-cta h2 { font-size: 4.6rem; }

    .hanfu-footer { padding-top: 65px; }
    .hanfu-footer__inner { gap: 42px; grid-template-columns: 1fr; }
    .hanfu-footer__nav { grid-column: auto; }
    .hanfu-footer__base { align-items: flex-start; flex-direction: column; gap: 10px; grid-column: auto; }
}

@media (max-width: 380px) {
    .hanfu-hero h1 { font-size: 3.7rem; }
    .hanfu-foundation h2,
    .hanfu-about__content h2,
    .hanfu-section-heading h2,
    .hanfu-gallery__heading h2 { font-size: 3.35rem; }
    .hanfu-featured-event h3 { font-size: 2.65rem; }
    .hanfu-cta h2 { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
    body.hanfu-home *,
    body.hanfu-home *::before,
    body.hanfu-home *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
