:root {
    --orange: #EDEDED;
    --ink: #1A0B4C;
    --panel: #26145c;
    --muted: #c9c3da;
}

.button {
    color: #100e0e;
}

.hero-tagline {
    margin: 0 0 8px;
    color: #EDEDED !important;
    font-size: 13px !important;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero .hero-title {
    white-space: nowrap;
}

@media (max-width: 650px) {
    .hero .hero-title {
        font-size: clamp(34px, 11vw, 44px);
    }
}

.button.ghost {
    color: #EDEDED;
}

.header {
    background: rgba(16, 14, 14, .82);
    position: fixed;
}

.brand {
    overflow: hidden;
}

.brand img {
    width: 58px;
    height: 58px;
    transform: scale(1.55);
    clip-path: inset(14% 8% 20% 8%);
}

.hero {
    background:
        linear-gradient(90deg, #1A0B4C 5%, rgba(26, 11, 76, .86) 43%, rgba(16, 14, 14, .26)),
        linear-gradient(0deg, #1A0B4C, transparent 55%),
        url('/images/hero-racing.png') center/cover;
}

.telemetry {
    background: rgba(16, 14, 14, .82);
}

.driver-image {
    background: linear-gradient(135deg, #352173, #1A0B4C);
}

.statement {
    background: linear-gradient(90deg, rgba(16, 14, 14, .95), rgba(16, 14, 14, .64)), url('/images/feature-racing.png') center/cover;
}

.news-card {
    background: radial-gradient(circle at top right, rgba(237, 237, 237, .12), transparent 48%), #100e0e;
}

.driver-card:nth-child(even) {
    background: #100e0e;
}

.page-hero {
    background: radial-gradient(circle at 80% 10%, rgba(237, 237, 237, .14), transparent 33%), #1A0B4C;
}

.profile-photo,
.gallery figure {
    background: #26145c;
}

footer {
    background: #100e0e;
}

@media (max-width: 650px) {
    .header nav {
        background: rgba(16, 14, 14, .98);
    }
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.instagram-card {
    display: grid;
    grid-template-rows: auto 86px;
    overflow: hidden;
    border: 1px solid rgba(237, 237, 237, .16);
    border-radius: 14px;
    background: #100e0e;
    color: #EDEDED;
    text-decoration: none;
    transition: border-color 200ms ease, transform 200ms ease;
}

.instagram-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.instagram-card:hover,
.instagram-card:focus-visible {
    border-color: rgba(237, 237, 237, .42);
    transform: translateY(-3px);
}

.instagram-card:focus-visible {
    outline: 2px solid #EDEDED;
    outline-offset: 3px;
}

.instagram-card span {
    display: grid;
    align-content: center;
    gap: 6px;
    min-width: 0;
    padding: 14px 18px 16px;
    border-top: 1px solid rgba(237, 237, 237, .12);
    background: #100e0e;
    font-size: 11px;
    line-height: 1.5;
}

.instagram-card b {
    font-size: 10px;
    letter-spacing: .08em;
}

.instagram-card small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.instagram-empty {
    grid-column: 1 / -1;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px;
    border: 1px solid rgba(237, 237, 237, .16);
    border-radius: 14px;
    background: radial-gradient(circle at top right, rgba(237, 237, 237, .12), transparent 45%), #26145c;
    color: #EDEDED;
    text-align: center;
    text-decoration: none;
}

.instagram-empty b {
    font-size: 24px;
}

.instagram-empty span {
    color: var(--muted);
}

.instagram-empty strong {
    font-size: 10px;
    letter-spacing: .12em;
}

@media (max-width: 950px) {
    .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.sim-grid,
.pathways {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.sim-card {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background-position: center;
    background-size: cover;
}

.sim-card.iracing { background-image: url('/images/gallery/race-2.jpg'); }
.sim-card.lmu { background-image: url('/images/le-mans-ultimate.png'); }

.sim-card::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(0deg, #1A0B4C 2%, rgba(26, 11, 76, .58) 55%, rgba(16, 14, 14, .12));
}

.sim-card::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    border: 1px solid rgba(237, 237, 237, .22);
    border-radius: inherit;
    content: '';
    pointer-events: none;
}

.sim-card > div {
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    padding: 32px 32px 28px;
}

.sim-card span {
    color: #EDEDED;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}

.sim-card h3 {
    margin: 10px 0;
    font-size: clamp(30px, 3.5vw, 52px);
    line-height: .95;
}

.sim-card p {
    max-width: 580px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.sim-card a {
    display: inline-flex;
    min-height: 44px;
    margin-top: 8px;
    align-items: center;
    padding: 0 16px;
    border: 1px solid rgba(237, 237, 237, .38);
    border-radius: 3px;
    background: rgba(16, 14, 14, .34);
    color: #EDEDED;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.sim-card a:hover,
.sim-card a:focus-visible {
    border-color: #EDEDED;
    background: #EDEDED;
    color: #100E0E;
    transform: translateY(-2px);
}

.sim-card a:focus-visible {
    outline: 2px solid #EDEDED;
    outline-offset: 3px;
}

.pathways {
    max-width: 1500px;
}

.path-card {
    padding: clamp(28px, 4vw, 58px);
    border: 1px solid rgba(237, 237, 237, .14);
    border-radius: 18px;
    background: radial-gradient(circle at top right, rgba(237, 237, 237, .1), transparent 42%), #100e0e;
}

.path-card h2 {
    margin: 15px 0;
    font-size: clamp(30px, 3.5vw, 50px);
    line-height: 1;
}

.path-card p,
.path-card li {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.path-card ul {
    margin: 24px 0 30px;
    padding-left: 19px;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.sponsor-card {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(237, 237, 237, .15);
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(237, 237, 237, .1), transparent 42%), var(--panel);
    color: #EDEDED;
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease;
}

.sponsor-card:hover {
    transform: translateY(-4px);
    border-color: rgba(237, 237, 237, .5);
}

.sponsor-logo {
    display: grid;
    min-height: 250px;
    place-items: center;
    padding: 34px;
    background: rgba(16, 14, 14, .5);
}

.sponsor-logo img {
    width: 100%;
    max-width: 250px;
    max-height: 150px;
    object-fit: contain;
}

.sponsor-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 34px;
}

.sponsor-copy > span,
.sponsor-copy > strong {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.sponsor-copy h3 {
    margin: 11px 0;
    font-size: clamp(23px, 2.3vw, 34px);
}

.sponsor-copy p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.discount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 17px 0 23px;
    padding: 13px 15px;
    border: 1px dashed rgba(237, 237, 237, .35);
    border-radius: 7px;
    background: rgba(237, 237, 237, .06);
}

.discount small {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
}

.discount b {
    font-size: 18px;
    letter-spacing: .08em;
}

.sponsor-disclosure {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.form-hero {
    padding: 190px max(5vw, 28px) 90px;
    background: radial-gradient(circle at 80% 10%, rgba(237, 237, 237, .14), transparent 33%), #1A0B4C;
}

.form-hero h1,
.thanks h1 {
    max-width: 1000px;
    margin: 18px 0;
    font-size: clamp(55px, 7vw, 100px);
    line-height: .9;
    letter-spacing: -.06em;
}

.form-hero h1 em,
.thanks h1 em {
    color: #EDEDED;
    font-style: normal;
}

.form-hero p {
    max-width: 650px;
    color: var(--muted);
    line-height: 1.8;
}

.form-shell {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
    gap: clamp(40px, 7vw, 100px);
    max-width: 1350px;
    margin: auto;
    padding: 90px max(5vw, 28px) 120px;
}

.form-intro {
    align-self: start;
    position: sticky;
    top: 40px;
}

.form-intro h2 {
    font-size: clamp(28px, 3vw, 43px);
}

.form-intro > p,
.form-note span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.form-note {
    display: grid;
    gap: 8px;
    margin-top: 28px;
    padding: 22px;
    border-left: 3px solid #EDEDED;
    background: rgba(237, 237, 237, .06);
}

.form-note b {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.enquiry-form {
    display: grid;
    gap: 22px;
}

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

.enquiry-form label,
.enquiry-form legend {
    display: grid;
    gap: 9px;
    color: #EDEDED;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.enquiry-form label small {
    color: var(--muted);
    font-weight: 600;
}

.enquiry-form input,
.enquiry-form textarea,
.enquiry-form select {
    width: 100%;
    border: 1px solid rgba(237, 237, 237, .2);
    border-radius: 8px;
    outline: none;
    background: rgba(16, 14, 14, .72);
    padding: 14px 15px;
    color: #EDEDED;
    font: 500 14px Montserrat, sans-serif;
    text-transform: none;
}

.enquiry-form select option { color: #100e0e; }
.enquiry-form textarea { resize: vertical; line-height: 1.6; }
.enquiry-form input:focus,
.enquiry-form textarea:focus,
.enquiry-form select:focus { border-color: #EDEDED; }

.enquiry-form fieldset {
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(237, 237, 237, .15);
    border-radius: 8px;
}

.enquiry-form .check {
    display: flex;
    align-items: center;
}

.enquiry-form .check input {
    width: auto;
    accent-color: #EDEDED;
}

.enquiry-form .button {
    justify-self: start;
    border: 0;
    cursor: pointer;
}

.form-trap {
    position: absolute !important;
    left: -9999px !important;
}

.form-errors {
    border: 1px solid #ff8c8c;
    border-radius: 8px;
    background: rgba(255, 70, 70, .1);
    padding: 18px;
    color: #ffd5d5;
    font-size: 12px;
    line-height: 1.7;
}

.form-errors ul { margin-bottom: 0; }

.thanks {
    display: flex;
    min-height: 760px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 150px max(8vw, 30px) 90px;
    background: radial-gradient(circle at 75% 25%, rgba(237, 237, 237, .14), transparent 33%), #1A0B4C;
}

.thanks p {
    max-width: 680px;
    margin-bottom: 30px;
    color: var(--muted);
    line-height: 1.8;
}

.success-mark {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 26px;
    place-items: center;
    border: 1px solid #EDEDED;
    border-radius: 50%;
    font-size: 24px;
}

@media (max-width: 850px) {
    .sim-grid,
    .pathways,
    .form-shell,
    .sponsor-grid { grid-template-columns: 1fr; }
    .form-intro { position: static; }
}

@media (max-width: 650px) {
    .sim-card { min-height: 390px; }
    .sim-card > div { padding: 24px; }
    .field-grid { grid-template-columns: 1fr; }
    .enquiry-form fieldset { flex-direction: column; }
    .form-hero { padding-top: 150px; }
    .sponsor-card { grid-template-columns: 1fr; }
    .sponsor-logo { min-height: 190px; }
}

/* Refined blue, white and black motorsport theme */
:root {
    --black: #100e0e;
    --line: rgba(237, 237, 237, .16);
}

body { background: var(--black); }
.section { max-width: 1380px; }

.header {
    border-bottom-color: rgba(237, 237, 237, .12);
}

.header nav a { transition: color .2s ease, opacity .2s ease; }
.header nav a:hover { color: #EDEDED; opacity: .72; }

.hero {
    min-height: min(880px, 100vh);
    background:
        linear-gradient(90deg, #1A0B4C 2%, rgba(26, 11, 76, .88) 40%, rgba(16, 14, 14, .18)),
        linear-gradient(0deg, #100e0e 0%, transparent 52%),
        url('/images/hero-racing.png') center/cover;
}

.hero-copy { max-width: 1050px; }
.hero .hero-title {
    margin-bottom: 12px;
    font-size: clamp(62px, 9vw, 132px);
    letter-spacing: -.075em;
}
.hero-copy > p:not(.hero-tagline) { max-width: 590px; }

.sims-section,
.sponsor-section {
    max-width: none;
    background: #1A0B4C;
}

.sims-section > *,
.sponsor-section > * {
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
}

.instagram-section,
.pathways { background: var(--black); }

.section-head h2,
.statement h2,
.path-card h2 { letter-spacing: -.045em; }

.section-head p {
    max-width: 560px;
    line-height: 1.7;
}

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

.kicker::before {
    width: 28px;
    height: 2px;
    background: #EDEDED;
    content: '';
}

.news-card,
.driver-card,
.path-card,
.sponsor-card,
.sim-card { box-shadow: 0 24px 65px rgba(0, 0, 0, .18); }

.statement {
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.statement h2 { max-width: 980px; }

.sim-card,
.path-card,
.sponsor-card { border-radius: 8px; }

.sim-card::after,
.sim-card > div { transition: .35s ease; }
.sim-card:hover::after {
    background: linear-gradient(0deg, #1A0B4C 2%, rgba(26, 11, 76, .42) 58%, transparent);
}
.sim-card:hover > div { transform: translateY(-6px); }

.discount {
    background: #EDEDED;
    color: #100e0e;
}

.button {
    border: 1px solid #EDEDED;
    border-radius: 3px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.button:hover {
    transform: translateY(-2px);
    background: transparent;
    color: #EDEDED;
}
.button.ghost:hover {
    background: #EDEDED;
    color: #100e0e;
}

footer { border-top: 3px solid #EDEDED; }

.results-hero .button {
    margin-top: 22px;
}

.results-section {
    max-width: 1380px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.result-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1A0B4C;
    box-shadow: 0 24px 65px rgba(0, 0, 0, .2);
}

.result-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.result-copy {
    padding: clamp(24px, 3vw, 38px);
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.result-meta span {
    padding: 7px 9px;
    border: 1px solid rgba(237, 237, 237, .22);
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.result-copy h3 {
    margin: 20px 0 26px;
    font-size: clamp(25px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.result-positions {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px 0;
    border-block: 1px solid var(--line);
}

.result-positions div {
    display: grid;
    gap: 5px;
}

.result-positions small,
.result-team small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .14em;
}

.result-positions b {
    font-size: 32px;
}

.result-positions > span {
    color: var(--muted);
}

.result-team {
    padding-top: 20px;
}

.result-team p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.result-delete-form {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.result-delete-form button {
    padding: 9px 0;
    border: 0;
    background: transparent;
    color: #ff9999;
    cursor: pointer;
    font: 800 9px Montserrat, sans-serif;
    letter-spacing: .11em;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-transform: uppercase;
}

.result-delete-form button:hover,
.result-delete-form button:focus-visible {
    color: #fff;
}

.gallery-hero .gallery-admin-login {
    margin-top: 20px;
}

.gallery-admin-status {
    margin: 20px 0 0;
    color: #c8f5d8 !important;
    font-size: 12px;
    font-weight: 700;
}

.gallery-logout {
    margin-top: 8px;
}

.gallery-alert {
    margin: 24px max(5vw, 28px) 0;
}

.gallery-upload-panel {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(320px, 1.3fr);
    gap: 36px;
    margin: 36px max(5vw, 28px) 10px;
    padding: 28px;
    border: 1px solid rgba(88, 101, 242, .65);
    background: rgba(88, 101, 242, .1);
}

.gallery-upload-panel h2 {
    margin: 8px 0;
}

.gallery-upload-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.gallery-upload-form {
    display: flex;
    align-items: end;
    gap: 16px;
}

.gallery-upload-form label {
    display: grid;
    flex: 1;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gallery-upload-form input {
    min-height: 46px;
    padding: 10px;
    border: 1px solid var(--line);
    background: #100e0e;
    color: #ededed;
}

@media (max-width: 750px) {
    .gallery-upload-panel {
        grid-template-columns: 1fr;
    }

    .gallery-upload-form {
        align-items: stretch;
        flex-direction: column;
    }
}

.gallery figure {
    position: relative;
}

.gallery-delete-form {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    margin: 0;
}

.gallery-delete-form button {
    padding: 10px 13px;
    border: 1px solid rgba(255, 153, 153, .65);
    background: rgba(16, 14, 14, .9);
    color: #ffb0b0;
    cursor: pointer;
    font: 800 9px Montserrat, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gallery-delete-form button:hover,
.gallery-delete-form button:focus-visible {
    border-color: #fff;
    color: #fff;
}

.gallery-empty {
    grid-column: 1 / -1;
    color: var(--muted);
}

.result-alert {
    margin-bottom: 22px;
    padding: 14px 18px;
    border: 1px solid rgba(98, 216, 143, .5);
    background: rgba(98, 216, 143, .1);
    color: #c8f5d8;
    font-size: 11px;
    font-weight: 700;
}

.results-empty {
    grid-column: 1 / -1;
    padding: 55px;
    border: 1px solid var(--line);
    background: #1A0B4C;
    text-align: center;
}

.results-empty b {
    font-size: 22px;
}

.results-empty p {
    color: var(--muted);
}

.result-form-shell {
    max-width: none;
    scroll-margin-top: 82px;
    background: #1A0B4C;
}

.result-form-shell > * {
    width: 100%;
    max-width: 650px;
}

.result-form-shell .form-intro {
    justify-self: end;
}

.enquiry-form input[type="file"] {
    cursor: pointer;
}

.result-submit-panel {
    display: grid;
    gap: 22px;
}

.discord-auth-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border: 1px solid rgba(88, 101, 242, .75);
    background: rgba(88, 101, 242, .16);
}

.discord-auth-bar div {
    display: grid;
    gap: 5px;
}

.discord-auth-bar small,
.discord-auth-bar span {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .08em;
}

.discord-auth-bar b {
    font-size: 16px;
}

.discord-login-card {
    align-self: start;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid rgba(88, 101, 242, .7);
    background: radial-gradient(circle at top right, rgba(88, 101, 242, .28), transparent 48%), #100e0e;
}

.discord-login-card h3 {
    margin: 15px 0;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1;
}

.discord-login-card p {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.discord-mark {
    color: #aeb4ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}

.discord-button {
    border-color: #5865f2;
    background: #5865f2;
    color: #fff;
}

.discord-logout {
    margin: 0;
}

.discord-logout button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 6px;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: 700 9px Montserrat, sans-serif;
    letter-spacing: .1em;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-transform: uppercase;
    transition: color .2s ease;
}

.discord-logout button:hover,
.discord-logout button:focus-visible {
    color: #EDEDED;
}

.result-form-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.result-submit-button {
    min-height: 48px;
    padding: 0 22px;
}

@media (max-width: 650px) {
    .hero {
        min-height: 760px;
        background-position: 62% center;
    }
    .hero .hero-title {
        white-space: normal;
        font-size: clamp(48px, 16vw, 72px);
    }
    .statement { min-height: 540px; }
    .result-grid { grid-template-columns: 1fr; }
    .result-copy { padding: 24px; }
}
