:root {
    color-scheme: light dark;
    --page: #f2f5f3;
    --surface: #fbfcf8;
    --surface-raised: #e4eeee;
    --surface-strong: #cedfdf;
    --field: #f7faf7;
    --ink: #082b3b;
    --ink-strong: #061f2e;
    --muted: #4b626a;
    --soft: #6a7c81;
    --line: #bfd0d0;
    --line-strong: #7d9fa2;
    --sea: #0b6872;
    --sea-soft: #d9eeee;
    --accent: #ed8b22;
    --accent-hover: #d7730b;
    --accent-ink: #934000;
    --on-accent: #071f2c;
    --focus: rgba(237, 139, 34, 0.32);
    --danger: #a52f24;
    --danger-soft: #f8e5e0;
    --shadow: rgba(8, 43, 59, 0.14);
    --header: rgba(242, 245, 243, 0.9);
    --radius: 10px;
    --radius-small: 6px;
    --container: 1380px;
    --font-display: "Bahnschrift", "Aptos Display", "Arial Narrow", sans-serif;
    --font-body: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page: #071925;
        --surface: #0b2230;
        --surface-raised: #0f2b39;
        --surface-strong: #173a46;
        --field: #0c2633;
        --ink: #eef4f1;
        --ink-strong: #f5f7f2;
        --muted: #b0c0c1;
        --soft: #8da3a6;
        --line: #294953;
        --line-strong: #547881;
        --sea: #58cad2;
        --sea-soft: #123944;
        --accent: #f4a13a;
        --accent-hover: #ffb55c;
        --accent-ink: #ffc77d;
        --on-accent: #071925;
        --focus: rgba(244, 161, 58, 0.34);
        --danger: #ff9a8d;
        --danger-soft: #3e2727;
        --shadow: rgba(0, 8, 13, 0.38);
        --header: rgba(7, 25, 37, 0.9);
    }
}

:root[data-theme="light"] {
    color-scheme: light;
    --page: #f2f5f3;
    --surface: #fbfcf8;
    --surface-raised: #e4eeee;
    --surface-strong: #cedfdf;
    --field: #f7faf7;
    --ink: #082b3b;
    --ink-strong: #061f2e;
    --muted: #4b626a;
    --soft: #6a7c81;
    --line: #bfd0d0;
    --line-strong: #7d9fa2;
    --sea: #0b6872;
    --sea-soft: #d9eeee;
    --accent: #ed8b22;
    --accent-hover: #d7730b;
    --accent-ink: #934000;
    --on-accent: #071f2c;
    --focus: rgba(237, 139, 34, 0.32);
    --danger: #a52f24;
    --danger-soft: #f8e5e0;
    --shadow: rgba(8, 43, 59, 0.14);
    --header: rgba(242, 245, 243, 0.9);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --page: #071925;
    --surface: #0b2230;
    --surface-raised: #0f2b39;
    --surface-strong: #173a46;
    --field: #0c2633;
    --ink: #eef4f1;
    --ink-strong: #f5f7f2;
    --muted: #b0c0c1;
    --soft: #8da3a6;
    --line: #294953;
    --line-strong: #547881;
    --sea: #58cad2;
    --sea-soft: #123944;
    --accent: #f4a13a;
    --accent-hover: #ffb55c;
    --accent-ink: #ffc77d;
    --on-accent: #071925;
    --focus: rgba(244, 161, 58, 0.34);
    --danger: #ff9a8d;
    --danger-soft: #3e2727;
    --shadow: rgba(0, 8, 13, 0.38);
    --header: rgba(7, 25, 37, 0.9);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    background: var(--page);
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 78% 3%, rgba(14, 139, 153, 0.1), transparent 28rem),
        var(--page);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: 0.34;
    background:
        radial-gradient(circle at 12% 18%, rgba(237, 139, 34, 0.08), transparent 18rem),
        linear-gradient(118deg, transparent 0 73%, rgba(11, 104, 114, 0.035) 73% 74%, transparent 74% 100%);
}

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

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.24em;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select,
input[type="checkbox"] {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--ink-strong);
    font-family: var(--font-display);
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-small);
    background: var(--ink-strong);
    color: var(--page);
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 76px;
    border-bottom: 1px solid transparent;
    background: var(--header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: height 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 260ms ease, box-shadow 260ms ease;
}

.site-header.is-condensed {
    height: 66px;
    border-color: var(--line);
    box-shadow: 0 12px 32px -24px var(--shadow);
}

.header-inner {
    width: min(calc(100% - 40px), var(--container));
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    color: var(--ink-strong);
    text-decoration: none;
}

.brand-emblem {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: #272929;
}

.brand-emblem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.48) translateY(-2%);
}

.brand-name {
    display: grid;
    gap: 0;
    font-family: var(--font-display);
    line-height: 0.92;
    text-transform: uppercase;
}

.brand-name strong {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.brand-name small {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    white-space: nowrap;
}

.nav-link,
.theme-toggle,
.nav-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.68rem 0.9rem;
    border-radius: var(--radius-small);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.theme-toggle:hover {
    background: var(--surface-raised);
}

.theme-toggle {
    border: 0;
    background: transparent;
    color: var(--ink);
}

.nav-cta {
    margin-left: 0.25rem;
    background: var(--accent);
    color: var(--on-accent);
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.hero {
    position: relative;
    overflow: clip;
}

.hero::after {
    position: absolute;
    top: 3rem;
    right: -8rem;
    width: 28rem;
    height: 28rem;
    border: 1px solid rgba(11, 104, 114, 0.14);
    border-radius: 50%;
    box-shadow: inset 0 0 0 4rem rgba(11, 104, 114, 0.025), inset 0 0 0 8rem rgba(237, 139, 34, 0.025);
    content: "";
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 40px), var(--container));
    min-height: calc(100dvh - 76px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 7rem);
    padding-block: clamp(3.5rem, 8vh, 6rem);
}

.hero-copy {
    padding-bottom: clamp(1rem, 5vh, 4rem);
}

.eyebrow {
    margin-bottom: 1.25rem;
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 11ch;
    margin-bottom: 1.5rem;
    font-size: clamp(3.4rem, 6.9vw, 7.2rem);
    font-weight: 760;
    letter-spacing: -0.065em;
}

.hero h1 span {
    display: block;
}

.hero h1 span:last-child {
    color: var(--sea);
}

.hero-lead {
    max-width: 38rem;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: clamp(1.04rem, 1.5vw, 1.25rem);
    line-height: 1.58;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.primary-button,
.submit-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 15px 30px -20px rgba(7, 31, 44, 0.5);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms ease, box-shadow 180ms ease;
}

.primary-button {
    padding: 0.9rem 1.25rem;
}

.primary-button:hover,
.submit-button:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -18px rgba(7, 31, 44, 0.56);
}

.hero-media {
    position: relative;
    min-height: min(68vh, 690px);
}

.media-primary {
    position: absolute;
    inset: 0 0 0 12%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-raised);
    box-shadow: 0 28px 70px -36px var(--shadow);
}

.media-primary::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent 56%, rgba(4, 24, 35, 0.38));
}

.media-primary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 46%;
    transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-media:hover .media-primary img {
    transform: scale(1.025);
}

.media-brand {
    position: absolute;
    left: 0;
    bottom: -2.4rem;
    width: clamp(190px, 34%, 280px);
    aspect-ratio: 1;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(238, 244, 241, 0.18);
    border-radius: var(--radius);
    background: #272929;
    box-shadow: 0 28px 64px -30px rgba(0, 11, 18, 0.72);
}

.media-brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.identity,
.programs,
.work-cycle,
.registration {
    scroll-margin-top: 88px;
}

.identity {
    padding-block: clamp(6.5rem, 11vw, 11rem);
}

.identity-grid {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: clamp(1.5rem, 3vw, 3.5rem);
}

.identity-copy {
    grid-column: 1 / span 7;
    padding-top: clamp(1rem, 6vw, 6rem);
}

.section-intro {
    margin-bottom: 1rem;
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
}

.identity-copy h2,
.section-heading-large h2,
.cycle-copy h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2.6rem, 5.3vw, 5.6rem);
    letter-spacing: -0.055em;
}

.identity-copy > p:last-of-type {
    max-width: 46rem;
    margin-bottom: 2.5rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.identity-facts {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    margin-bottom: 0;
    border-top: 1px solid var(--line-strong);
}

.identity-facts > div {
    min-height: 122px;
    padding: 1.2rem 1.1rem 1.2rem 0;
}

.identity-facts > div + div {
    padding-left: 1.4rem;
    border-left: 1px solid var(--line);
}

.identity-facts dt {
    margin-bottom: 0.45rem;
    color: var(--soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.identity-facts dd {
    color: var(--ink-strong);
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
}

.poster-frame {
    grid-column: 9 / -1;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-raised);
    box-shadow: 0 28px 70px -42px var(--shadow);
}

.poster-frame img {
    width: 100%;
    height: auto;
}

.identity-statement {
    grid-column: 3 / span 7;
    margin: clamp(-4rem, -4vw, -2.5rem) 0 0;
    padding: clamp(1.6rem, 4vw, 3rem);
    border-left: 7px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--surface);
    box-shadow: 0 22px 46px -38px var(--shadow);
}

.identity-statement p {
    margin: 0;
    color: var(--sea);
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 2.45rem);
    font-weight: 720;
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.programs {
    padding-block: clamp(6rem, 10vw, 10rem);
    background: var(--surface-raised);
}

.programs-inner {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section-heading-large {
    max-width: 62rem;
    margin-bottom: clamp(3.5rem, 7vw, 7rem);
}

.section-heading-large > p {
    max-width: 44rem;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.15rem;
}

.program-groups {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: start;
    gap: clamp(3rem, 7vw, 8rem);
}

.program-group {
    border-top: 4px solid var(--sea);
}

.program-group-offset {
    margin-top: clamp(2rem, 8vw, 8rem);
    border-top-color: var(--accent);
}

.program-group > h3 {
    margin: 0;
    padding: 1.25rem 0 1rem;
    color: var(--soft);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.program-list article {
    display: grid;
    grid-template-columns: minmax(180px, 0.66fr) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.7rem 0;
    border-bottom: 1px solid var(--line);
}

.program-list h4 {
    margin: 0;
    color: var(--sea);
    font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.program-group-offset .program-list h4 {
    color: var(--accent-ink);
}

.program-list p {
    margin: 0;
    color: var(--muted);
}

.work-cycle {
    width: min(calc(100% - 40px), var(--container));
    margin: clamp(6rem, 11vw, 11rem) auto;
    padding: clamp(2rem, 5vw, 5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 30px 80px -56px var(--shadow);
}

.cycle-copy {
    max-width: 66rem;
    margin-bottom: clamp(3rem, 6vw, 6rem);
}

.cycle-copy h2 {
    max-width: 14ch;
}

.cycle-copy p {
    max-width: 49rem;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.cycle-steps {
    display: grid;
    grid-template-columns: 0.92fr 1.02fr 1.32fr 1.04fr;
    align-items: end;
    gap: 0;
}

.cycle-steps span {
    min-height: 110px;
    display: flex;
    align-items: flex-end;
    padding: 1.2rem 0.9rem;
    border-top: 3px solid var(--sea);
    color: var(--ink-strong);
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 2.5rem);
    font-weight: 760;
    letter-spacing: -0.04em;
}

.cycle-steps span:nth-child(even) {
    min-height: 148px;
    border-top-color: var(--accent);
    background: var(--surface-raised);
}

.registration {
    padding: clamp(5rem, 9vw, 9rem) 0 clamp(7rem, 12vw, 12rem);
}

.registration-shell {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 7rem);
}

.story-sticky {
    position: sticky;
    top: 104px;
}

.registration-story h2 {
    max-width: 9ch;
    margin-bottom: 1.35rem;
    font-size: clamp(2.8rem, 5vw, 5.3rem);
}

.story-intro {
    max-width: 35rem;
    margin-bottom: 2.6rem;
    color: var(--muted);
    font-size: 1.08rem;
}

.story-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 2.5rem;
    border-top: 1px solid var(--line-strong);
}

.story-notes article {
    min-height: 146px;
    padding: 1.25rem 1rem 1.25rem 0;
    border-bottom: 1px solid var(--line);
}

.story-notes article:nth-child(even) {
    padding-left: 1.2rem;
    border-left: 1px solid var(--line);
}

.story-notes article:last-child {
    grid-column: 1 / -1;
    padding-right: 22%;
}

.story-notes h3 {
    margin-bottom: 0.5rem;
    color: var(--sea);
    font-size: 1.08rem;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.story-notes p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.story-image {
    width: min(78%, 430px);
    margin: 0 0 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-raised);
}

.story-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.form-panel {
    padding: clamp(1.45rem, 4vw, 3.6rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 30px 80px -54px var(--shadow);
}

.form-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-context {
    margin-bottom: 0.4rem;
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.form-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.completion {
    flex: 0 0 auto;
    margin: 0;
    text-align: right;
}

.completion strong,
.completion span {
    display: block;
}

.completion strong {
    color: var(--sea);
    font-family: var(--font-display);
    font-size: 1.55rem;
    line-height: 1;
}

.completion span {
    margin-top: 0.3rem;
    color: var(--soft);
    font-size: 0.76rem;
}

.draft-note,
.noscript-note,
.form-summary {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-small);
    font-size: 0.9rem;
}

.draft-note {
    margin-bottom: 0;
    border-left: 3px solid var(--sea);
    background: var(--sea-soft);
    color: var(--muted);
}

.noscript-note,
.form-summary {
    margin-top: 1rem;
    margin-bottom: 0;
    border-left: 3px solid var(--danger);
    background: var(--danger-soft);
    color: var(--danger);
}

.form-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
    border-bottom: 0;
}

.section-heading {
    margin-bottom: 1.6rem;
}

.section-heading h3 {
    margin-bottom: 0.35rem;
    font-size: 1.45rem;
}

.section-heading p {
    margin: 0;
    color: var(--soft);
    font-size: 0.91rem;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1rem;
}

.field-wide {
    grid-column: 1 / -1;
}

.field label,
.field-label {
    display: inline-block;
    margin-bottom: 0.48rem;
    color: var(--ink-strong);
    font-size: 0.91rem;
    font-weight: 730;
}

.field label span,
.field-label span {
    color: var(--accent-ink);
}

.field input,
.field select,
.field textarea,
.input-prefix {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-small);
    background: var(--field);
    color: var(--ink);
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field input,
.field select,
.field textarea {
    padding: 0.88rem 0.92rem;
}

.field input,
.field select {
    min-height: 50px;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--soft);
    opacity: 0.88;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.input-prefix:hover {
    border-color: var(--sea);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.input-prefix:focus-within {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 4px var(--focus);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.input-prefix:has(input[aria-invalid="true"]) {
    border-color: var(--danger);
}

.input-prefix {
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.input-prefix > span {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    border-right: 1px solid var(--line);
    background: var(--surface-raised);
    color: var(--muted);
    font-weight: 800;
}

.input-prefix input {
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.input-prefix input:focus {
    box-shadow: none;
}

.field-help,
.field-error,
.character-count {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.field-help {
    margin-top: 0.45rem;
    color: var(--soft);
}

.field-error {
    min-height: 1.25rem;
    margin-top: 0.28rem;
    color: var(--danger);
    font-weight: 650;
}

.field-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.character-count {
    margin-top: 0.45rem;
    color: var(--soft);
    font-variant-numeric: tabular-nums;
}

.photo-drop {
    position: relative;
    min-height: 230px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 1.5rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-small);
    background: var(--field);
    text-align: center;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.photo-drop:hover,
.photo-drop.is-dragging {
    border-color: var(--accent);
    background: var(--sea-soft);
}

.photo-drop.is-dragging {
    transform: scale(0.992);
}

.photo-prompt {
    display: grid;
    gap: 0.35rem;
}

.photo-prompt strong {
    color: var(--sea);
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.photo-prompt span {
    color: var(--soft);
    font-size: 0.86rem;
}

.photo-control.has-photo .photo-prompt {
    display: none;
}

#photoPreview {
    width: 100%;
    height: 290px;
    object-fit: cover;
    border-radius: calc(var(--radius-small) - 2px);
}

.photo-meta {
    margin-top: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.photo-meta > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-button {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-ink);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.22em;
}

.consent-field {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.75rem;
    padding-top: 2.2rem;
}

.consent-field input {
    width: 20px;
    height: 20px;
    margin: 0.14rem 0 0;
    accent-color: var(--accent);
}

.consent-field label {
    color: var(--muted);
    font-size: 0.9rem;
}

.consent-error {
    margin-left: 2.75rem;
}

.submit-row {
    margin-top: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.submit-button {
    min-width: 190px;
    padding: 0.9rem 1.25rem;
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.submit-row > p {
    margin: 0;
    color: var(--soft);
    font-size: 0.8rem;
    text-align: right;
}

.submit-loading {
    display: none;
}

.submit-button.is-loading .submit-label {
    display: none;
}

.submit-button.is-loading .submit-loading {
    display: inline;
}

.site-footer {
    padding: clamp(3.5rem, 7vw, 6rem) 0 2rem;
    border-top: 1px solid var(--line);
    background: var(--surface-raised);
}

.footer-inner {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 3rem;
}

.footer-brand strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--ink-strong);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: -0.04em;
}

.footer-brand p {
    margin: 0;
    color: var(--muted);
}

.contact-links {
    display: grid;
    align-content: start;
}

.contact-links a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--sea);
    font-weight: 760;
    text-decoration: none;
}

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

.footer-legal {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.footer-legal p {
    margin: 0;
    color: var(--soft);
    font-size: 0.82rem;
}

.success-dialog {
    width: min(calc(100% - 32px), 780px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow: auto;
    border: 1px solid color-mix(in srgb, var(--sea) 38%, var(--line));
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 32px 100px rgba(0, 10, 16, 0.46);
}

.success-dialog::backdrop {
    background: rgba(3, 17, 25, 0.8);
    backdrop-filter: blur(7px);
}

.success-stage {
    display: grid;
    grid-template-columns: minmax(210px, 0.78fr) minmax(0, 1.35fr);
}

.success-visual {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-right: 1px solid rgba(71, 214, 223, 0.2);
    background:
        linear-gradient(145deg, transparent 58%, rgba(244, 161, 58, 0.18)),
        radial-gradient(circle at 50% 48%, rgba(71, 214, 223, 0.22), transparent 34%),
        linear-gradient(160deg, #0d3547, #061b29 68%);
}

.success-visual::before,
.success-visual::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.success-visual::before {
    inset: 0;
    opacity: 0.28;
    background:
        repeating-linear-gradient(45deg, transparent 0 23px, rgba(71, 214, 223, 0.15) 23px 24px),
        repeating-linear-gradient(-45deg, transparent 0 23px, rgba(71, 214, 223, 0.08) 23px 24px);
    clip-path: polygon(0 0, 100% 0, 100% 34%, 0 78%);
}

.success-visual::after {
    right: -58px;
    bottom: -88px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(244, 161, 58, 0.34);
    border-radius: 50%;
    box-shadow:
        0 0 0 22px rgba(244, 161, 58, 0.04),
        0 0 0 48px rgba(71, 214, 223, 0.04);
}

.success-mark {
    position: relative;
    z-index: 3;
    width: 148px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 0.75rem;
    border: 1px solid rgba(247, 242, 223, 0.25);
    border-radius: 24px;
    background: rgba(4, 24, 36, 0.78);
    box-shadow:
        0 22px 54px rgba(0, 4, 8, 0.42),
        0 0 42px rgba(71, 214, 223, 0.2);
    backdrop-filter: blur(6px);
}

.success-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.success-orbit {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(71, 214, 223, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-one {
    width: 194px;
    height: 194px;
}

.orbit-two {
    width: 244px;
    height: 244px;
    border-color: rgba(244, 161, 58, 0.38);
}

.orbit-three {
    width: 304px;
    height: 304px;
    border-style: dashed;
    opacity: 0.48;
}

.success-particles {
    position: absolute;
    z-index: 4;
    inset: 0;
    pointer-events: none;
}

.success-particle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--size);
    height: calc(var(--size) * 2.2);
    opacity: 0;
    border-radius: 999px;
    background: var(--particle-color);
    transform: translate(-50%, -50%);
}

.success-panel {
    align-self: center;
    padding: clamp(2rem, 5vw, 3.5rem);
}

.success-label {
    margin: 0 0 0.8rem;
    color: var(--accent-ink);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.success-panel h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3.35rem);
    line-height: 0.98;
}

.success-panel > p:not(.success-label):not(.success-note) {
    margin: 0;
    color: var(--muted);
}

.success-id-card {
    margin: 1.6rem 0;
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--sea);
    background: var(--sea-soft);
}

.success-id-card dt {
    color: var(--soft);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.success-id-card dd {
    margin: 0.12rem 0 0;
    color: var(--sea);
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 3vw, 1.35rem);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.success-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.success-actions form {
    margin: 0;
}

.copy-id-button,
.dialog-button {
    width: 100%;
    min-height: 50px;
    border-radius: var(--radius-small);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.copy-id-button {
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--sea);
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.copy-id-button:hover {
    border-color: var(--sea);
    background: var(--sea-soft);
    transform: translateY(-1px);
}

.copy-id-button.is-copied {
    border-color: var(--sea);
    background: var(--sea);
    color: var(--surface);
}

.dialog-button {
    border: 0;
}

.success-note {
    margin: 0.8rem 0 0;
    color: var(--soft);
    font-size: 0.8rem;
}

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

.js [data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 680ms cubic-bezier(0.16, 1, 0.3, 1), transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .success-dialog[open] {
        animation: success-shell-in 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .success-dialog[open]::backdrop {
        animation: success-backdrop-in 320ms ease both;
    }

    .success-dialog[open] .success-mark {
        animation: success-mark-in 760ms 90ms cubic-bezier(0.16, 1.25, 0.3, 1) both;
    }

    .success-dialog[open] .orbit-one {
        animation: success-orbit-in 820ms 170ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .success-dialog[open] .orbit-two {
        animation: success-orbit-in 900ms 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .success-dialog[open] .orbit-three {
        animation: success-orbit-in 980ms 310ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .success-dialog[open] .success-particle {
        animation: success-particle-burst 950ms var(--delay) cubic-bezier(0.16, 0.7, 0.28, 1) both;
    }

    .success-dialog[open] .success-panel > * {
        animation: success-copy-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .success-dialog[open] .success-panel > :nth-child(1) {
        animation-delay: 160ms;
    }

    .success-dialog[open] .success-panel > :nth-child(2) {
        animation-delay: 220ms;
    }

    .success-dialog[open] .success-panel > :nth-child(3) {
        animation-delay: 280ms;
    }

    .success-dialog[open] .success-panel > :nth-child(4) {
        animation-delay: 340ms;
    }

    .success-dialog[open] .success-panel > :nth-child(5) {
        animation-delay: 400ms;
    }

    .success-dialog[open] .success-panel > :nth-child(6) {
        animation-delay: 460ms;
    }

    .load-in {
        opacity: 0;
        animation: load-in 720ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .load-delay-1 {
        animation-delay: 90ms;
    }

    .load-delay-2 {
        animation-delay: 180ms;
    }

    .load-delay-3 {
        animation-delay: 270ms;
    }

    @keyframes load-in {
        from {
            opacity: 0;
            transform: translateY(24px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes success-shell-in {
        from {
            opacity: 0;
            transform: translateY(24px) scale(0.96);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes success-backdrop-in {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes success-mark-in {
        from {
            opacity: 0;
            transform: scale(0.58) rotate(-8deg);
        }

        to {
            opacity: 1;
            transform: scale(1) rotate(0);
        }
    }

    @keyframes success-orbit-in {
        from {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.52);
        }

        to {
            transform: translate(-50%, -50%) scale(1);
        }
    }

    @keyframes success-particle-burst {
        0% {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.5);
        }

        18% {
            opacity: 1;
        }

        100% {
            opacity: 0;
            transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--rotate)) scale(0.85);
        }
    }

    @keyframes success-copy-in {
        from {
            opacity: 0;
            transform: translateY(14px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 1120px) {
    .hero-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 2.75rem;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 7vw, 5.5rem);
    }

    .identity-copy {
        grid-column: 1 / span 7;
    }

    .poster-frame {
        grid-column: 8 / -1;
    }

    .identity-statement {
        grid-column: 2 / span 7;
    }

    .program-list article {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .registration-shell {
        grid-template-columns: minmax(270px, 0.7fr) minmax(0, 1.3fr);
        gap: 2.8rem;
    }

    .story-notes {
        grid-template-columns: 1fr;
    }

    .story-notes article:nth-child(even) {
        padding-left: 0;
        border-left: 0;
    }

    .story-notes article:last-child {
        grid-column: auto;
        padding-right: 1rem;
    }
}

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

    .hero-grid {
        min-height: auto;
        padding-top: 4.5rem;
        padding-bottom: 7rem;
    }

    .hero-copy {
        max-width: 760px;
        padding-bottom: 0;
    }

    .hero h1 {
        max-width: 12ch;
        font-size: clamp(3.4rem, 10.8vw, 6.2rem);
    }

    .hero-media {
        min-height: min(72vw, 680px);
    }

    .media-primary {
        inset: 0 0 0 9%;
    }

    .identity-grid {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 0.58fr);
    }

    .identity-copy {
        grid-column: 1;
        padding-top: 1rem;
    }

    .poster-frame {
        grid-column: 2;
    }

    .identity-statement {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }

    .program-groups {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .program-group-offset {
        margin-top: 4rem;
    }

    .cycle-steps {
        grid-template-columns: 1fr 1fr;
    }

    .cycle-steps span:nth-child(even) {
        min-height: 110px;
    }

    .story-sticky {
        position: static;
    }

    .registration-story {
        display: grid;
        grid-template-columns: 1fr minmax(230px, 0.52fr);
        gap: 2rem;
    }

    .story-image {
        width: 100%;
    }

    .form-panel {
        padding: clamp(1.5rem, 6vw, 3rem);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .header-inner,
    .hero-grid,
    .identity-grid,
    .programs-inner,
    .work-cycle,
    .registration-shell,
    .footer-inner {
        width: min(calc(100% - 28px), var(--container));
    }

    .site-header,
    .site-header.is-condensed {
        height: 68px;
    }

    .brand-emblem {
        width: 42px;
        height: 42px;
    }

    .brand-name strong {
        font-size: 0.9rem;
    }

    .brand-name small {
        font-size: 0.57rem;
    }

    .nav-link {
        display: none;
    }

    .nav-link,
    .theme-toggle,
    .nav-cta {
        min-height: 40px;
        padding: 0.6rem 0.72rem;
        font-size: 0.82rem;
    }

    .hero-grid {
        padding-top: 3.8rem;
        padding-bottom: 6rem;
    }

    .hero h1 {
        max-width: 10.5ch;
        font-size: clamp(3rem, 14.5vw, 5rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-media {
        min-height: 112vw;
    }

    .media-primary {
        inset: 0 0 0 6%;
    }

    .media-brand {
        bottom: -1.8rem;
        width: 42%;
        min-width: 150px;
    }

    .identity,
    .programs,
    .registration {
        padding-block: 5.5rem;
    }

    .identity-grid,
    .program-groups,
    .registration-story,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .identity-copy,
    .poster-frame,
    .identity-statement {
        grid-column: 1;
    }

    .identity-copy h2,
    .section-heading-large h2,
    .cycle-copy h2 {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
    }

    .identity-facts {
        grid-template-columns: 1fr;
    }

    .identity-facts > div {
        min-height: 0;
    }

    .identity-facts > div + div {
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .poster-frame {
        width: min(86%, 460px);
        margin-left: auto;
    }

    .identity-statement {
        margin-top: -2rem;
    }

    .program-group-offset {
        margin-top: 1rem;
    }

    .program-list article {
        padding: 1.45rem 0;
    }

    .work-cycle {
        margin-block: 5.5rem;
        padding: 1.5rem;
    }

    .cycle-steps {
        grid-template-columns: 1fr;
    }

    .cycle-steps span,
    .cycle-steps span:nth-child(even) {
        min-height: 84px;
    }

    .story-image {
        width: min(72%, 360px);
    }

    .registration-story h2 {
        max-width: 11ch;
    }

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

    .field-wide {
        grid-column: auto;
    }

    .form-heading,
    .submit-row,
    .footer-legal {
        align-items: flex-start;
        flex-direction: column;
    }

    .completion {
        text-align: left;
    }

    .submit-button {
        width: 100%;
    }

    .submit-row > p {
        text-align: left;
    }

    .contact-links {
        word-break: break-word;
    }

    .footer-legal {
        display: grid;
        gap: 0.6rem;
    }

    .success-stage {
        grid-template-columns: 1fr;
    }

    .success-visual {
        min-height: 168px;
        border-right: 0;
        border-bottom: 1px solid rgba(71, 214, 223, 0.2);
    }

    .success-mark {
        width: 100px;
        padding: 0.5rem;
        border-radius: 18px;
    }

    .orbit-one {
        width: 132px;
        height: 132px;
    }

    .orbit-two {
        width: 166px;
        height: 166px;
    }

    .orbit-three {
        width: 206px;
        height: 206px;
    }

    .success-panel {
        padding: clamp(1.4rem, 6vw, 2rem);
    }

    .success-panel h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }
}

@media (max-width: 430px) {
    .brand-name {
        display: none;
    }

    .site-nav {
        gap: 0.2rem;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 14vw, 4rem);
    }

    .form-panel {
        padding-inline: 1rem;
    }

    .form-section {
        padding-block: 2.4rem;
    }

    .photo-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .success-dialog {
        width: min(calc(100% - 20px), 780px);
        max-height: calc(100dvh - 20px);
    }

    .success-actions {
        grid-template-columns: 1fr;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .success-particle,
    .success-orbit {
        display: none;
    }

    .success-dialog[open],
    .success-dialog[open] .success-mark,
    .success-dialog[open] .success-panel > * {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .site-header {
        background: var(--page);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .success-dialog::backdrop {
        backdrop-filter: none;
    }
}

@media (forced-colors: active) {
    .primary-button,
    .submit-button,
    .nav-cta,
    .photo-drop,
    .form-panel,
    .poster-frame,
    .media-primary,
    .media-brand {
        border: 1px solid ButtonText;
    }
}
