:root {
    --ink: #11162A;
    --ink-soft: #1B2140;
    --paper: #FBFAF7;
    --paper-dim: #F1EFE9;
    --thistle: #6B3FA0;
    --loch: #2E5FA3;
    --fern: #2C7A4B;
    --fern-deep: #1F5B39;
    --line: rgba(17, 22, 42, 0.12);
    --line-soft: rgba(251, 250, 247, 0.16);
    --grad-bloom: linear-gradient(135deg, var(--thistle) 0%, var(--loch) 52%, var(--fern) 100%);
    --shadow: 0 20px 60px -25px rgba(17, 22, 42, 0.35);
    --radius: 14px;
    --display: "Fraunces", serif;
    --body: "Inter", -apple-system, sans-serif;
    --mono: "JetBrains Mono", monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

section {
    position: relative;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width:640px) {
    .wrap {
        padding: 0 20px;
    }
}

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fern-deep);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--grad-bloom);
    display: inline-block;
}

.on-dark .eyebrow {
    color: #B9E6C6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.08;
    color: var(--ink);
}

.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4 {
    color: var(--paper);
}

p {
    color: #3A4160;
}

.on-dark p {
    color: rgba(251, 250, 247, 0.72);
}

h2 {
    font-size: clamp(28px, 4vw, 44px);
}

h3 {
    font-size: clamp(20px, 2.4vw, 26px);
}

.c-purple {
    color: var(--thistle);
}

.c-green {
    color: var(--fern-deep);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--body);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 100px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--grad-bloom);
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(46, 95, 163, 0.55);
}

.btn-primary:hover {
    box-shadow: 0 18px 36px -12px rgba(46, 95, 163, 0.65);
}

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--paper-dim);
}

.on-dark .btn-ghost {
    border-color: var(--line-soft);
    color: var(--paper);
}

.on-dark .btn-ghost:hover {
    background: rgba(251, 250, 247, 0.08);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 13px;
}

/* NAV */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}

header.scrolled {
    background: rgba(251, 250, 247, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
    padding: 11px 0;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---- Hamburger menu styles ---- */

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px 4px;
    cursor: pointer;
    z-index: 110;
    position: relative;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center;
}

/* X animation when open */
.hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile overlay menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Hide mobile-only CTA on desktop, hide desktop CTA on mobile */
.nav-cta-mobile {
    display: none;
}

.nav-cta-desktop {
    display: flex;
}

/* -------- BREAKPOINT: 900px and below -------- */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .nav-cta-mobile {
        display: flex;
    }

    .nav-cta-desktop {
        display: none !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--paper);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        padding: 40px 24px;
        transform: translateY(-110%);
        transition: transform .4s cubic-bezier(.3, .1, .2, 1);
        z-index: 105;
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(17, 22, 42, 0.25);
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    /* Make nav links vertical and bigger */
    .nav-links {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        font-size: 20px;
    }

    .nav-links a {
        font-size: 20px;
        opacity: 1;
    }

    .nav-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .nav-cta .btn {
        font-size: 16px;
        padding: 14px 32px;
    }

    /* Extra padding for scrolled header */
    header.scrolled .nav-menu {
        padding-top: 80px;
    }
}

/* -------- DESKTOP (901px+) -------- */
@media (min-width: 901px) {
    .nav-cta-mobile {
        display: none !important;
    }

    .nav-cta-desktop {
        display: flex !important;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    object-fit: contain;
    mix-blend-mode: multiply;
    flex-shrink: 0;
}

.brand-text {
    font-family: var(--display);
    font-weight: 600;
    font-size: 16.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 14.5px;
    font-weight: 600;
}

.nav-links a {
    color: var(--ink);
    opacity: 0.75;
    transition: opacity .2s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

.nav-cta {
    display: flex;
    gap: 12px;
}

.nav-cta .btn {
    padding: 10px 20px;
    font-size: 13.5px;
}

@media (max-width:900px) {
    .nav-links {
        display: none;
    }
}

/* PAGE HERO (for gallery/news sub-pages) */
.page-hero {
    padding: 150px 0 60px;
    background: radial-gradient(720px 380px at 80% -10%, rgba(107, 63, 160, 0.09), transparent 60%), radial-gradient(620px 380px at 5% 10%, rgba(44, 122, 75, 0.09), transparent 60%), var(--paper);
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    margin-bottom: 16px;
}

.page-hero p {
    max-width: 560px;
    font-size: 16.5px;
}

/* HOME HERO */
.hero {
    padding: 150px 0 90px;
    background: radial-gradient(720px 420px at 78% -10%, rgba(107, 63, 160, 0.10), transparent 60%), radial-gradient(620px 420px at 10% 10%, rgba(44, 122, 75, 0.10), transparent 60%), var(--paper);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid>*:last-child {
        order: -1;
    }
}

.hero h1 {
    font-size: clamp(36px, 5.2vw, 58px);
}

.hero-sub {
    font-size: 18px;
    max-width: 480px;
    margin: 22px 0 34px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.hero-note {
    font-family: var(--mono);
    font-size: 12.5px;
    color: #6A7092;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-note svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.hero-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-lockup {
    width: 100%;
    max-width: 480px;
}

.logo-frame {
    position: relative;
    aspect-ratio: 668/373;
}

.logo-frame .glow {
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at 50% 45%, rgba(107, 63, 160, 0.10), transparent 60%);
    border-radius: 50%;
}

.logo-frame img.logo-static {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    z-index: 2;
}

.logo-frame svg.overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    overflow: visible;
}

.wordmark-lockup {
    text-align: center;
    margin-top: 10px;
}

.wordmark-lockup .line1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 26px;
    color: var(--thistle);
    line-height: 1.15;
}

.wordmark-lockup .line2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 26px;
    color: var(--fern-deep);
    letter-spacing: 0.02em;
}

.net-edge {
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset .6s cubic-bezier(.3, .1, .2, 1);
}

.net-node {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0.4);
    transition: opacity .3s ease, transform .3s ease;
}

.net-node.show {
    opacity: 1;
    transform: scale(1);
}

.sec-head {
    max-width: 640px;
    margin-bottom: 52px;
}

.sec-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* AUDIENCE */
.audience {
    padding: 100px 0 40px;
}

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

@media (max-width:820px) {
    .audience-grid {
        grid-template-columns: 1fr;
    }
}

.a-card {
    border-radius: 20px;
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
}

.a-card.aspiring {
    background: linear-gradient(165deg, #F4EEFB 0%, var(--paper-dim) 70%);
}

.a-card.current {
    background: var(--ink);
}

.a-card.current * {
    color: var(--paper);
}

.a-card.current p {
    color: rgba(251, 250, 247, 0.72);
}

.a-tag {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 14px;
    display: block;
}

.a-card h3 {
    margin-bottom: 8px;
}

.a-card>p {
    margin-bottom: 26px;
    max-width: 380px;
}

.a-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.a-list li {
    display: flex;
    gap: 12px;
    font-size: 14.5px;
    color: #3A4160;
}

.a-card.current .a-list li {
    color: rgba(251, 250, 247, 0.85);
}

.a-list .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
    background: var(--thistle);
}

.a-card.current .a-list .dot {
    background: var(--fern);
}

.a-card .btn {
    font-size: 14px;
    padding: 12px 22px;
}

/* EVENTS (home teaser + gallery page) */
.events {
    padding: 100px 0;
    background: var(--paper-dim);
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width:900px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

.flier {
    background: var(--grad-bloom);
    border-radius: 22px;
    padding: 34px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.flier::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.18), transparent 55%);
}

.flier-tag {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.18);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
    position: relative;
}

.flier h3 {
    color: #fff;
    font-size: clamp(22px, 2.6vw, 28px);
    margin-bottom: 14px;
    position: relative;
}

.flier-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    position: relative;
}

.flier-meta div {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.flier-meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.flier p.desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14.5px;
    margin-bottom: 24px;
    position: relative;
    max-width: 400px;
}

.flier .btn {
    background: #fff;
    color: var(--ink);
    border: none;
    position: relative;
}

.last-event h3 {
    margin-bottom: 6px;
}

.last-event p.recap {
    font-size: 14.5px;
    margin-bottom: 22px;
    max-width: 420px;
}

.gallery-preview {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
}

.gallery-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-preview a:first-child {
    grid-row: 1 / 3;
}

.gallery-preview a {
    overflow: hidden;
    display: block;
}

.gallery-preview a:hover img {
    transform: scale(1.06);
}

/* AIMS */
.aims {
    padding: 110px 0;
}

.aims-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.aims p.lead {
    font-family: var(--display);
    font-size: clamp(22px, 2.8vw, 29px);
    line-height: 1.4;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 26px;
}

.aims p.body-text {
    font-size: 16px;
    max-width: 620px;
    margin: 0 auto 22px;
}

.aims .tagline {
    font-family: var(--display);
    font-style: italic;
    font-size: 18px;
    color: var(--fern-deep);
    margin-top: 20px;
}

/* HOW IT WORKS */
.how {
    padding: 100px 0;
    background: var(--paper-dim);
}

.how-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 10px;
}

@media (max-width:820px) {
    .how-row {
        grid-template-columns: 1fr;
    }
}

.how-num {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--fern-deep);
    margin-bottom: 16px;
    display: block;
}

.how-card h4 {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.how-card p {
    font-size: 14.5px;
}

/* ACTIVITIES */
.activities {
    padding: 110px 0;
    background: var(--ink);
}

.act-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    overflow: hidden;
    margin-top: 10px;
}

@media (max-width:820px) {
    .act-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:560px) {
    .act-grid {
        grid-template-columns: 1fr;
    }
}

.act-cell {
    background: var(--ink);
    padding: 34px 28px;
}

.act-cell .icon {
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    color: var(--fern);
}

.act-cell h4 {
    font-family: var(--body);
    font-weight: 700;
    font-size: 15.5px;
    margin-bottom: 8px;
    color: var(--paper);
}

.act-cell p {
    font-size: 13.5px;
    color: rgba(251, 250, 247, 0.62);
}

/* JOIN */
.join {
    padding: 110px 0;
}

.join-panel {
    background: var(--grad-bloom);
    border-radius: 26px;
    padding: 60px 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
    color: #fff;
    box-shadow: var(--shadow);
}

@media (max-width:840px) {
    .join-panel {
        grid-template-columns: 1fr;
        padding: 42px 28px;
    }
}

.join-panel h2 {
    color: #fff;
    font-size: clamp(26px, 3.2vw, 36px);
    margin-bottom: 14px;
}

.join-panel p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 420px;
}

.join-panel .btn {
    margin-top: 24px;
    background: #fff;
    color: var(--ink);
    border: none;
}

.join-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.join-step {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.join-step .num {
    font-family: var(--mono);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.2);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.join-step-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.join-step-sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
}

/* FORM */
.register {
    padding: 110px 0;
}

.register-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
}

@media (max-width:840px) {
    .register-grid {
        grid-template-columns: 1fr;
    }
}

.form-card {
    background: var(--paper-dim);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow);
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 7px;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #3A4160;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-family: var(--body);
    font-size: 14.5px;
    background: var(--paper);
    color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid var(--loch);
    outline-offset: 1px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width:480px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

.check-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 22px;
    font-size: 13.5px;
    color: #3A4160;
}

.check-row input {
    margin-top: 3px;
}

.form-submit {
    width: 100%;
    justify-content: center;
    border: none;
    font-size: 15px;
}

.confirm-msg {
    display: none;
    text-align: center;
    padding: 40px 10px;
}

.confirm-msg svg {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    color: var(--fern);
}

.confirm-msg.show {
    display: block;
}

.form-card.hidden-form {
    display: none;
}

/* ABOUT / FAQ */
.about {
    padding: 100px 0;
    background: var(--paper-dim);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
}

@media (max-width:840px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.faq {
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--display);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
}

.faq-q svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform .3s ease;
    color: var(--fern-deep);
}

.faq-item.open .faq-q svg {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.faq-a p {
    padding: 0 0 22px;
    font-size: 14.5px;
    max-width: 600px;
}

.faq-item.open .faq-a {
    max-height: 200px;
}

/* CONTACT */
.contact {
    padding: 110px 0;
    background: var(--ink);
    text-align: center;
}

.contact-inner {
    max-width: 520px;
    margin: 0 auto;
}

.contact-email {
    display: inline-block;
    font-family: var(--display);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    color: var(--paper);
    margin: 18px 0 30px;
    border-bottom: 2px solid var(--fern);
    padding-bottom: 4px;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
}

@media (max-width:470px) {
    .contact-socials {
        flex-direction: column;
        padding: 1rem 20%;
    }
}

.contact-social {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 100px;
    border: 1px solid var(--line-soft);
    color: var(--paper);
    font-size: 14px;
    font-weight: 600;
}

.contact-social:hover {
    background: rgba(251, 250, 247, 0.08);
}

.contact-social svg {
    width: 17px;
    height: 17px;
}

/* GALLERY PAGE */
.gallery-page {
    padding: 20px 0 110px;
}

.gallery-event {
    margin-bottom: 70px;
}

.gallery-event-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.gallery-event-head h3 {
    font-size: 22px;
}

.gallery-event-head span {
    font-family: var(--mono);
    font-size: 12.5px;
    color: #6A7092;
}

.masonry {
    column-count: 3;
    column-gap: 14px;
}

@media (max-width:820px) {
    .masonry {
        column-count: 2;
    }
}

@media (max-width:520px) {
    .masonry {
        column-count: 1;
    }
}

.masonry img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 14px;
    break-inside: avoid;
    transition: transform .4s ease, box-shadow .4s ease;
    cursor: pointer;
}

.masonry img:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* NEWS FEED PAGE */
.feed {
    padding: 20px 0 110px;
}

.feed-inner {
    max-width: 640px;
    margin: 0 auto;
}

.post {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 8px 26px -20px rgba(17, 22, 42, 0.25);
}

.post-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px 14px;
}

.post-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--grad-bloom);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    mix-blend-mode: screen;
}

.post-author {
    font-weight: 700;
    font-size: 14.5px;
}

.post-time {
    font-family: var(--mono);
    font-size: 12px;
    color: #6A7092;
}

.post-pin {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fern-deep);
    background: #EAF4EC;
    padding: 4px 10px;
    border-radius: 100px;
}

.post-body {
    padding: 0 22px 16px;
    font-size: 15px;
    color: var(--ink);
    line-height: 1.6;
}

.post-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-top: 1px solid var(--line);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #3A4160;
    cursor: pointer;
    user-select: none;
    flex: 1;
    justify-content: center;
    transition: background .15s ease;
}

.post-action:hover {
    background: var(--paper-dim);
}

.post-action svg {
    width: 18px;
    height: 18px;
}

.post-action.liked {
    color: var(--thistle);
}

.post-action.liked svg {
    fill: var(--thistle);
    stroke: var(--thistle);
}

.post-comments {
    border-top: 1px solid var(--line);
    padding: 14px 22px 18px;
    display: none;
}

.post-comments.open {
    display: block;
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--paper-dim);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--fern-deep);
}

.comment-bubble {
    background: var(--paper-dim);
    border-radius: 12px;
    padding: 9px 13px;
    font-size: 13.5px;
}

.comment-bubble b {
    font-size: 12.5px;
    display: block;
    margin-bottom: 2px;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.comment-form input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 100px;
    border: 1px solid var(--line);
    font-size: 13.5px;
    font-family: var(--body);
    background: var(--paper);
}

.comment-form input:focus {
    outline: 2px solid var(--loch);
    outline-offset: 1px;
}

.comment-form button {
    border: none;
    background: var(--grad-bloom);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-form button svg {
    width: 16px;
    height: 16px;
}

/* NEWSLETTER + FOOTER */
footer {
    background: var(--ink);
    border-top: 1px solid var(--line-soft);
    padding: 0;
}

@media (max-width:1210px) {
    footer {
        padding: 0 5%;
    }
}

.newsletter {
    padding: 64px 0;
    border-bottom: 1px solid var(--line-soft);
}

.nl-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nl-grid h3 {
    color: var(--paper);
    font-size: 22px;
}

.nl-grid p {
    font-size: 13.5px;
    margin-top: 6px;
}

.nl-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nl-form input {
    padding: 13px 16px;
    border-radius: 100px;
    border: 1px solid var(--line-soft);
    background: rgba(251, 250, 247, 0.06);
    color: var(--paper);
    font-size: 14px;
    min-width: 240px;
}

.nl-form input::placeholder {
    color: rgba(251, 250, 247, 0.4);
}

.nl-form .btn-primary {
    padding: 13px 24px;
    font-size: 14px;
    border: none;
}

.foot-main {
    padding: 56px 0 30px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 30px;
}

@media (max-width:760px) {
    .foot-main {
        grid-template-columns: 1fr 1fr;
    }
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.foot-brand .brand-mark {
    width: 30px;
    height: 30px;
    background: var(--paper);
    border-radius: 8px;
    padding: 3px;
}

.foot-brand .brand-text {
    color: var(--paper);
}

.foot-col p.foot-desc {
    max-width: 260px;
    font-size: 13.5px;
    margin-bottom: 18px;
}

.foot-col h5 {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(251, 250, 247, 0.45);
    margin-bottom: 16px;
}

.foot-col ul {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.foot-col a {
    font-size: 13.5px;
    color: rgba(251, 250, 247, 0.75);
}

.foot-col a:hover {
    color: var(--paper);
}

.foot-social {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.foot-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.foot-social svg {
    width: 15px;
    height: 15px;
    color: var(--paper);
}

.foot-bottom {
    padding: 22px 0 30px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    color: rgba(251, 250, 247, 0.45);
    font-family: var(--mono);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}