@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/open-sans-400.woff2") format("woff2");
}

:root {
    --ieee-blue: #00629b;
    --ieee-dark: #002855;
    --accent: #00629b;
    --track-b: #002855;
    --track-c: #3e5c74;
    --ink: #1a1a1a;
    --muted: #4d4d4d;
    --line: #d5dbe0;
    --paper: #ffffff;
    --wash: #f4f6f8;
    --notice-bg: #f3f7fb;
    --notice-line: #d3e0ea;
    --max: 1100px;
    --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --ieee-meta-font: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] {
    --accent: #8ec3e6;
    --track-b: #b7c7d6;
    --track-c: #a9c0d2;
    --ink: #f2f4f6;
    --muted: #c5ced6;
    --line: #313a44;
    --paper: #1c242d;
    --wash: #141a20;
    --notice-bg: #172734;
    --notice-line: #2c4558;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.55;
}

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

a {
    color: var(--accent);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
}

h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(2.15rem, 4vw, 3.15rem);
}

h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.5rem, 2.4vw, 1.85rem);
}

h3 {
    margin-bottom: 0.35rem;
    font-size: 1.125rem;
}

p {
    color: var(--muted);
}

.container {
    width: min(var(--max), calc(100% - 2.5rem));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 40;
    padding: 0.45rem 0.7rem;
    background: var(--paper);
    color: var(--ink);
}

.skip-link:focus {
    top: 0.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.ieee-meta {
    background: #000;
    color: #fff;
    font-family: var(--ieee-meta-font);
    font-size: 13px;
    line-height: 1.3;
}

.ieee-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
    min-height: 40px;
    padding: 0.45rem 1.25rem;
}

.ieee-meta-links,
.ieee-meta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 801px) {
    .ieee-meta-links,
    .ieee-meta-actions {
        width: auto;
    }
}

.ieee-meta p {
    margin: 0;
    color: #fff;
}

.ieee-meta a,
.ieee-meta a:visited,
.ieee-meta a:active {
    color: #fff;
    font-weight: 400;
    text-decoration: none;
}

.ieee-meta a:hover,
.ieee-meta a:focus-visible {
    text-decoration: underline;
}

.ieee-meta em {
    font-style: italic;
}

.ieee-sep {
    padding: 0 0.4rem;
}

.ieee-meta sup {
    font-size: 0.65em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--ieee-blue);
}

.header-end {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.master-brand {
    display: block;
    flex: none;
    margin-left: 0.4rem;
    line-height: 0;
}

.master-brand img {
    width: auto;
    height: 32px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0.9rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.theme-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.theme-icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-icon-moon {
    display: none;
}

html[data-theme="dark"] .theme-icon-sun {
    display: block;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.25rem;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.brand-logo,
.footer-logo {
    height: 38px;
    width: auto;
}

.footer-logo {
    height: 34px;
    margin-bottom: 0.75rem;
}

.brand-event {
    padding-left: 0.9rem;
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a {
    padding: 0.35rem 0.7rem;
    border-bottom: 2px solid transparent;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    border-bottom-color: #fff;
    color: #fff;
    background: transparent;
}

.nav-toggle {
    display: none;
    flex: none;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 2px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.nav-toggle-bars {
    display: grid;
    gap: 5px;
    width: 1.1rem;
    margin: 0 auto;
}

.nav-toggle-bars span {
    display: block;
    height: 2px;
    background: #fff;
}

.story {
    width: min(44rem, calc(100% - 2.5rem));
    margin: 2.75rem auto 4.5rem;
}

.story-header .kicker {
    margin-bottom: 0.65rem;
}

.story h1 {
    margin-bottom: 0.85rem;
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.dateline {
    margin-bottom: 1rem;
    color: #5c5c5c;
    font-size: 0.95rem;
}

.story .dek {
    margin-bottom: 1.5rem;
    color: var(--ink);
    font-size: 1.2rem;
    line-height: 1.45;
}

.story figure {
    margin: 0 0 0.35rem;
}

.story img {
    width: 100%;
    height: auto;
}

.story figcaption {
    margin-top: 0.45rem;
    color: #5c5c5c;
    font-size: 0.9rem;
    line-height: 1.4;
}

.story-note {
    margin: 1.5rem 0 1.75rem;
    padding: 0.15rem 0 0.15rem 0.9rem;
    border-left: 3px solid var(--ieee-blue);
    color: var(--ink);
}

.story p,
.story li {
    color: #2b2b2b;
    font-size: 1.125rem;
    line-height: 1.7;
}

.story h2 {
    margin: 2.35rem 0 0.75rem;
    font-size: 1.6rem;
}

.story h3 {
    margin: 1.6rem 0 0.4rem;
    font-size: 1.2rem;
}

.story ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.story li + li {
    margin-top: 0.35rem;
}

.story .details {
    list-style: disc;
}

.planning-banner {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    background: var(--wash);
}

.planning-banner p {
    margin: 0;
    color: var(--ink);
    font-size: 0.98rem;
}

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 28rem;
    padding: 4.5rem 0 3.25rem;
    overflow: hidden;
    color: #fff;
}

.hero-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(0, 40, 85, 0.9) 0%, rgba(0, 40, 85, 0.62) 46%, rgba(0, 30, 55, 0.28) 100%);
}

.hero-copy {
    position: relative;
}

.hero h1,
.hero p {
    color: #fff;
}

.kicker,
.eyebrow {
    margin-bottom: 0.55rem;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
}

.hero .kicker {
    color: #d6e6f2;
}

.hero-tagline {
    max-width: 36rem;
    margin-bottom: 0.35rem;
    font-size: 1.2rem;
}

.hero-meta {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.hero-note {
    margin-bottom: 1.4rem;
    color: #d6e6f2;
}

.hero .btn-primary {
    border-color: #fff;
    background: #fff;
    color: var(--ieee-blue);
}

.hero .btn-primary:hover {
    border-color: #e8eef3;
    background: #e8eef3;
    color: var(--ieee-dark);
}

.hero .btn-secondary {
    border-color: #fff;
    background: transparent;
    color: #fff;
}

.hero .btn-secondary:hover {
    background: #fff;
    color: var(--ieee-blue);
}

.hero-credit {
    position: absolute;
    right: 1rem;
    bottom: 0.45rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-keynote {
    margin: 1.75rem 0 0;
    padding-top: 1.15rem;
    border-top: 1px solid var(--line);
    color: var(--ink);
}

.hero-keynote span {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--ieee-blue);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.45rem 1.05rem;
    border: 2px solid transparent;
    border-radius: 2px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary {
    border-color: var(--ieee-blue);
    background: var(--ieee-blue);
    color: #fff;
}

.btn-primary:hover {
    border-color: var(--ieee-dark);
    background: var(--ieee-dark);
    color: #fff;
}

.btn-secondary,
.btn-line {
    border-color: var(--accent);
    background: transparent;
    color: var(--accent);
}

.btn-secondary:hover,
.btn-line:hover {
    background: var(--ieee-blue);
    color: #fff;
}

.stats {
    border-block: 1px solid var(--line);
    background: var(--wash);
}

.stats-grid,
.track-grid,
.award-grid,
.point-grid,
.footer-grid {
    display: grid;
    gap: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stats-grid article {
    padding: 1.35rem 1.25rem;
    border-left: 1px solid var(--line);
}

.stats-grid article:first-child {
    padding-left: 0;
    border-left: 0;
}

.stat-value {
    margin-bottom: 0.15rem;
    color: var(--accent);
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.1;
}

.stat-label {
    margin-bottom: 0.1rem;
    color: var(--ink);
    font-weight: 600;
}

.stat-note {
    margin: 0;
    font-size: 0.92rem;
}

.section {
    padding: 3.75rem 0;
}

.section[id] {
    scroll-margin-top: 5.5rem;
}

.section-mist {
    background: var(--wash);
}

.lede {
    max-width: 42rem;
    font-size: 1.08rem;
}

.split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
}

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

.feature-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.feature-list li:first-child {
    padding-top: 0;
}

.feature-list p,
.track-card li,
.award-card li,
.schedule-row p {
    margin-bottom: 0;
}

.track-grid,
.award-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1.5rem;
}

.track-card,
.award-card,
.point-grid article {
    padding: 1.15rem 1.2rem 1.25rem;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    background: var(--paper);
}

.track-card ul,
.award-card ol {
    margin: 0.75rem 0 0;
    padding-left: 1.15rem;
}

.track-card li + li,
.award-card li + li {
    margin-top: 0.35rem;
}

.track-code {
    margin-bottom: 0.3rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
}

.track-b {
    border-top-color: var(--track-b);
}

.track-b .track-code {
    color: var(--track-b);
}

.track-c {
    border-top-color: var(--track-c);
}

.track-c .track-code {
    color: var(--track-c);
}

.competition-intro {
    margin-bottom: 2.25rem;
}

.competition-intro h3 {
    padding-top: 0.75rem;
    border-top: 3px solid var(--accent);
}

.hackathon-block {
    margin-bottom: 2.25rem;
}

.point-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 1.25rem;
}

.awards-heading {
    margin-top: 0.25rem;
}

.notice {
    margin-bottom: 1.25rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--notice-line);
    border-left: 4px solid var(--accent);
    background: var(--notice-bg);
}

.notice h3 {
    margin-bottom: 0.35rem;
}

.notice p:last-child {
    margin-bottom: 0;
}

.text-link {
    font-weight: 600;
}

.site-footer {
    padding: 2.4rem 0 1.1rem;
    border-top: 4px solid var(--ieee-blue);
    background: #1b1f23;
    color: #d5dbe0;
}

.footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-kicker {
    margin-bottom: 0.3rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.footer-title {
    margin-bottom: 0.35rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
}

.footer-meta,
.site-footer p {
    color: #c5ced6;
}

.site-footer nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.site-footer a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-legal {
    margin-top: 1.6rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-legal p {
    margin: 0;
    font-size: 0.88rem;
}

.ieee-legal {
    padding: 0.95rem 1.25rem 1.15rem;
    border-top: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--ieee-meta-font);
    font-size: 13px;
    line-height: 1.45;
}

.ieee-legal p {
    max-width: 1100px;
    margin: 0 auto 0.4rem;
    color: var(--ink);
}

.ieee-legal p:last-child {
    margin-bottom: 0;
}

.ieee-legal a,
.ieee-legal a:visited,
.ieee-legal a:active {
    color: var(--ink);
    font-weight: 400;
    text-decoration: none;
}

.ieee-legal .ieee-sep {
    padding: 0 0.35rem;
}

.ieee-legal a:hover,
.ieee-legal a:focus-visible {
    text-decoration: underline;
}

:focus-visible {
    outline: 2px solid var(--ieee-blue);
    outline-offset: 2px;
}

.site-header :focus-visible,
.ieee-meta :focus-visible {
    outline-color: #fff;
}

@media (max-width: 900px) {
    .split,
    .stats-grid,
    .track-grid,
    .award-grid,
    .point-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid article,
    .stats-grid article:first-child {
        padding: 1rem 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .stats-grid article:first-child {
        border-top: 0;
    }
}

@media (max-width: 800px) {
    .ieee-meta-bar {
        align-items: stretch;
        flex-direction: column;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        display: none;
        position: absolute;
        right: 0;
        left: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0.4rem 1.25rem 0.8rem;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
    }

    body.nav-open .site-nav {
        display: flex;
    }

    .site-nav a,
    .site-nav a:hover,
    .site-nav a:focus-visible {
        border-bottom: 0;
        color: var(--ink);
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        color: var(--ieee-blue);
    }

    .brand-event {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
