:root {
    --navy: #001C54;
    --navy-2: #002D7A;
    --gold: #FFCA05;
    --gold-text: #8A6800;
    --ink: #231F20;
    --ink-soft: #5B5F63;
    --paper: #FBFAF7;
    --line: #E4E1D8;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: 'Fraunces', serif;
    margin: 0;
    line-height: 1.1;
    font-weight: 600;
}

a {
    color: inherit;
}

.wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-text);
}

/* NAV */
header {
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
}

nav.wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--ink);
}

.brand img {
    height: 64px;
    width: auto;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.next-fair-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--ink);
    padding: 8px 14px 8px 12px;
    border: 1px solid var(--line);
    border-radius: 100px;
    transition: border-color .15s ease, background .15s ease;
}

.next-fair-chip:hover {
    border-color: var(--navy);
    background: var(--white);
}

.next-fair-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(255, 202, 5, .55);
    animation: pulse-dot 2.2s ease-out infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 202, 5, .5);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 202, 5, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 202, 5, 0);
    }
}

.next-fair-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.next-fair-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.next-fair-value {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
}

nav .links {
    display: flex;
    gap: 28px;
}

nav .links a {
    font-size: 14px;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color .15s ease;
}

nav .links a:hover {
    color: var(--ink);
}

nav .links a.active {
    color: var(--navy);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    display: block;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-links {
    display: none;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.mobile-links.open {
    display: flex;
}

.mobile-links a {
    padding: 14px 24px;
    font-size: 14.5px;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.mobile-links a.active {
    color: var(--navy);
    font-weight: 600;
}

.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 18px;
    border-radius: 7px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
}

.btn-navy:hover {
    background: var(--navy-2);
}

/* HERO */
.hero {
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--line);
}

.hero .wrap {
    max-width: 1180px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: stretch;
}

.hero h1 {
    font-size: clamp(32px, 4.6vw, 50px);
    max-width: 560px;
    margin: 16px 0 18px;
}

.hero h1 em {
    font-style: italic;
    color: var(--navy);
}

.hero-copy p {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 460px;
    margin: 0 0 30px;
}

.hero .ctas {
    display: flex;
    gap: 12px;
}

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

.btn-line:hover {
    border-color: var(--navy);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    position: relative;
}

.hero-copy>*:not(.hero-deco) {
    position: relative;
    z-index: 1;
}

.hero-deco {
    display: none;
    position: absolute;
    top: -6px;
    right: 0;
    width: 90px;
    height: calc(100% + 12px);
    pointer-events: none;
    z-index: 0;
}

.hero-stats {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 36px;
}

.hero-stat-num {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
}

.hero-stat-num--sm {
    font-size: 17px;
    padding-top: 4px;
}

.hero-stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 8px;
    line-height: 1.5;
}

.hero-register {
    display: block;
}

.hero-register .form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px -24px rgba(0, 28, 84, .35);
}

.hero-register .form-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
}

.form-card-title {
    font-size: 19px;
    margin-bottom: 4px;
}

.form-card-sub {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0 0 14px;
}

/* SECTION */
section {
    padding: 60px 0;
    border-bottom: 1px solid var(--line);
}

section:last-of-type {
    border-bottom: none;
}

.sec-head {
    margin-bottom: 36px;
}

.sec-head::before {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 14px;
}

.sec-head h2 {
    font-size: 26px;
}

.sec-head p {
    color: var(--ink-soft);
    font-size: 14.5px;
    margin-top: 8px;
    max-width: 460px;
    line-height: 1.6;
}

/* ABOUT / POINTS */
.points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.point {
    position: relative;
}

.point:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 12px;
    right: -24px;
    font-size: 16px;
    color: var(--gold-text);
}

.point-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.point-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--navy);
    background: radial-gradient(circle at 32% 28%, #FFF6D9, #FFEBA8 70%);
    box-shadow: 0 4px 14px -6px rgba(255, 202, 5, .55), inset 0 0 0 1px rgba(0, 28, 84, .05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.point h3 {
    font-size: 16.5px;
    margin: 14px 0 6px;
    font-weight: 600;
}

.point p {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0;
}

/* EVENTS */
.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    max-width: 720px;
}

.filter-pill {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 7px 13px;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: var(--white);
    cursor: pointer;
    color: var(--ink-soft);
}

.filter-pill.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.event-list {
    display: flex;
    flex-direction: column;
    max-width: 720px;
}

.month-heading {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin: 28px 0 2px;
}

.month-heading:first-child {
    margin-top: 0;
}

.event-row {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 18px 14px;
    margin: 0 -14px;
    border-top: 1px solid var(--line);
    border-radius: 10px;
    transition: background .15s ease;
}

.event-row:hover {
    background: var(--white);
}

.event-row:last-child {
    border-bottom: 1px solid var(--line);
}

.event-row .date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--ink-soft);
}

.event-row .date b {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 20px;
    color: var(--ink);
    font-weight: 600;
}

.event-row .info .city {
    font-weight: 600;
    font-size: 15.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.event-row .info .venue {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 2px;
}

.event-row .info .time {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 4px;
}

.next-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--navy);
    padding: 3px 8px;
    border-radius: 100px;
    font-weight: 600;
}

.event-row button {
    background: transparent;
    border: 1px solid var(--navy);
    color: var(--navy);
    padding: 9px 16px;
    border-radius: 7px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.event-row button:hover {
    background: var(--navy);
    color: var(--white);
}

/* REGISTER */
.form-card {
    max-width: 560px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 11px;
}

label {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--ink-soft);
    display: block;
    margin-bottom: 6px;
}

input,
select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    background: var(--white);
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

input:hover,
select:hover {
    border-color: #C9C4B4;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0, 28, 84, .1);
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23001C54' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 34px;
    cursor: pointer;
}

.form-full {
    margin-bottom: 11px;
}

.submit-btn {
    width: 100%;
    background: var(--navy);
    border: none;
    padding: 14px 22px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    color: var(--white);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 10px 22px -12px rgba(0, 28, 84, .55);
}

.submit-btn:hover {
    background: var(--navy-2);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -12px rgba(0, 28, 84, .6);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-msg {
    margin-top: 14px;
    font-size: 13px;
    padding: 11px 13px;
    border-radius: 7px;
    display: none;
}

.form-msg.ok {
    display: block;
    background: #e7f3ea;
    color: #1f6b3a;
}

.form-msg.err {
    display: block;
    background: #fbe8e6;
    color: #a3311f;
}

.req {
    color: #a3311f;
}

.req-note {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: .65;
    margin-top: 12px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* More for footer */
/* FOOTER — extended for multi-column layout, matches existing token/naming conventions */
footer {
    padding: 0;
    margin: 0;
    background: var(--navy);
    color: var(--white);
    font-weight: 500;
    width: 100%;
}

.scalable-svg {
    height: 32px;
    margin-bottom: 12px;
    width: auto;
    display: block;

}

.footer-main {
    /* margin: 0 auto; */
    padding: 48px 0 32px;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Allow the bottom footer container to expand wider than 920px */
.footer-bottom .container {
    max-width: 1200px;
    /* Adjust this to match your desired wider boundary */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Adds the subtle top line seen in the image */
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Flexbox layout to separate left and right content */
.foot-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* Typography and link styling for bottom bar */
.foot-row .fine {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.foot-row .fine a {
    color: var(--white);
    text-decoration: none;
}

.foot-row .fine a:hover {
    color: var(--gold);
}

/* Styling the right-side links array */
.foot-row .links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.foot-row .links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.foot-row .links a:hover {
    color: var(--gold);
}

.footer-grid {
    display: grid;
    max-width: 920px;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 1.1fr 2fr;
        gap: 44px;
    }
}

.footer-col-title {
    color: var(--gold);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 14px;
}

.footer-brand-title {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
}

.footer-address {
    font-style: normal;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 16px;
}

.footer-contact {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    display: block;
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-intl-title {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 10px;
}

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

.center-icon {
    display: flex;
    gap: 12px;
}

@media (max-width: 680px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
}

.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-link-list li {
    margin-bottom: 9px;
}

.footer-link-list a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.footer-link-list a:hover {
    color: var(--gold);
}

.footer-link-list a.icon-ext {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-link-list a.icon-ext svg {
    width: 11px;
    height: 11px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--navy);
}

.footer-social svg {
    width: 15px;
    height: 15px;
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--navy-2);
}

.foot-row {
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.fine {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.fine a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.fine a:hover {
    color: var(--gold);
}

.links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.links a:hover {
    color: var(--gold);
}

@media (max-width: 680px) {
    .foot-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr 440px;
        gap: 44px;
    }
}

@media (min-width:1240px) {
    .hero-deco {
        display: block;
    }
}

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

    .nav-right .next-fair-chip {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .points {
        grid-template-columns: 1fr;
    }

    .point::after {
        display: none;
    }

    .event-row {
        grid-template-columns: 60px 1fr;
    }

    .event-row button {
        grid-column: 1/3;
        margin-top: 6px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}