@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/barlow-500.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/barlow-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/barlow-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/barlow-800.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/barlow-900.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
    --accent: #ff7a2e;
    --accent-deep: #d9601c;

    --black: #0d0f0c;
    --dark-gray: #141712;
    --medium-gray: #22271f;
    --surface: #191d16;
    --border-subtle: #2d3329;

    --light-gray: #b7bfb0;
    --white: #f4f5ef;

    --accent-red: #ff6a7d;

    --font-display: 'Barlow', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-body: 'Barlow', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --radius: 2px;
    --nav-height: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: var(--nav-height); }

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    background: var(--black);
    color: var(--light-gray);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, .btn-primary, .btn-secondary {
    font-family: var(--font-display);
    color: var(--white);
    line-height: 1.05;
}

h1, h2, h3 { font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }

a { color: inherit; }
img { max-width: 100%; height: auto; }

::selection { background: var(--accent); color: var(--black); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--black);
}
.btn-primary:hover { background: var(--white); }

.btn-secondary {
    background: rgba(13, 15, 12, 0.4);
    color: var(--white);
    border-color: rgba(244, 245, 239, 0.55);
}
.btn-secondary:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--border-subtle);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-large { padding: 1rem 2.2rem; font-size: 1.1rem; }

.btn-danger {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius);
    border: 2px solid var(--accent-red);
    background: transparent;
    color: var(--accent-red);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-danger:hover { background: var(--accent-red); color: var(--black); }

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    background: var(--black);
    overflow: hidden;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: rgba(13, 15, 12, 0.66);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 72px;
}

.hero-content h1 {
    font-size: clamp(3.4rem, 11vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.005em;
    margin-bottom: 1.4rem;
}

.bumper {
    display: inline-flex;
    align-items: baseline;
    gap: 0.7rem;
    background: var(--accent);
    color: var(--black);
    padding: 0.35rem 1.1rem 0.3rem;
    border-radius: 2px;
    margin-bottom: 1.4rem;
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1;
}
.bumper-label { font-size: clamp(1rem, 2.4vw, 1.4rem); font-weight: 700; }
.bumper-number { font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: 0.04em; }

.hero-lede {
    max-width: 34rem;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--white);
    margin-bottom: 2rem;
}

.hero-buttons { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.about-section { padding: 104px 0 72px; }
.features-section { padding: 24px 0 96px; }
.cta-section { padding: 72px 0; }

.section-title {
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    text-align: left;
    margin-bottom: 2.5rem;
}

.about-content { max-width: 46rem; text-align: left; }

.lead-text {
    font-size: 1.35rem;
    color: var(--white);
    margin-bottom: 1.4rem;
    line-height: 1.6;
}

.highlight { color: var(--accent); font-weight: 700; }

.about-content p { color: var(--light-gray); }
.about-content .lead-text { color: var(--white); }
.about-content p + p { margin-top: 1rem; }

.about-split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 5rem;
    align-items: center;
}
.about-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 6 / 5;
    object-fit: cover;
    border-radius: var(--radius);
}

.disciplines { border-top: 1px solid var(--border-subtle); }
.discipline {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 0.8rem 4rem;
    padding: 2rem 0 2.2rem;
    border-bottom: 1px solid var(--border-subtle);
}
.discipline h3 { font-size: 2rem; grid-row: span 2; }
.discipline p { max-width: 36rem; }
.discipline a {
    justify-self: start;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.discipline a:hover { border-bottom-color: var(--accent); }

.cta-section { border-top: 1px solid var(--border-subtle); }
.cta-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.cta-section h2 {
    font-size: clamp(2rem, 4.6vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.cta-section p { max-width: 36rem; margin: 0; color: var(--light-gray); }
.cta-section .cta-text { flex: 1 1 24rem; }
.cta-section .btn-primary,
.cta-section .btn-large { flex: 0 0 auto; }

.page-header {
    padding: calc(var(--nav-height) + 4rem) max(24px, calc((100vw - 1200px) / 2 + 24px)) 2.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}
.page-header h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
}
.page-header p {
    font-size: 1.2rem;
    color: var(--light-gray);
    max-width: 40rem;
}

footer {
    background: var(--dark-gray);
    border-top: 1px solid var(--border-subtle);
    padding: 3.5rem 0 1rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    padding: 0 24px;
}
.footer-brand { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.8rem; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.footer-section h3 { font-size: 1.5rem; }
.footer-section h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
}
.footer-section p { font-size: 0.95rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.45rem; }
.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}
.footer-section a:hover { color: var(--accent); }
.social-icon { width: 18px; height: 18px; }

.footer-bottom {
    width: calc(100% - 48px);
    max-width: 1152px;
    margin: 0 auto;
    padding: 1.4rem 0 0.4rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--light-gray);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .about-split { grid-template-columns: 1fr; gap: 2.5rem; }
    .discipline { grid-template-columns: 1fr; gap: 0.7rem; }
    .discipline h3 { grid-row: auto; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .about-section { padding: 72px 0 56px; }
    .features-section { padding: 16px 0 72px; }
    .cta-section { padding: 56px 0; }
    .hero-content { padding-bottom: 48px; }
    .hero-photo { object-position: 38% 20%; }
}

@media (max-width: 520px) {
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { width: 100%; text-align: center; }
    .cta-section .btn-primary { width: 100%; text-align: center; }
    .footer-content { grid-template-columns: 1fr; }
}

.team-login-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}
.team-login-modal.active { display: flex; }

.team-login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 7, 0.85);
}

.team-login-box {
    position: relative;
    width: min(380px, 90vw);
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem 1.8rem;
    text-align: left;
}
.team-login-box h2 { font-size: 1.9rem; margin-bottom: 0.4rem; }
.team-login-sub { color: var(--light-gray); font-size: 0.95rem; margin-bottom: 1.4rem; }

#teamLoginForm { display: flex; flex-direction: column; gap: 0.9rem; }

#teamLoginPassword {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--black);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
}
#teamLoginPassword:focus {
    outline: none;
    border-color: var(--accent);
    outline: 2px solid var(--accent);
}

.team-login-error { color: var(--accent-red); font-size: 0.9rem; margin-top: 1rem; }

.team-login-close {
    position: absolute;
    top: 0.7rem;
    right: 0.9rem;
    background: none;
    border: none;
    color: var(--light-gray);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.team-login-close:hover { color: var(--white); }

.shake { animation: shakeBox 0.4s ease; }
@keyframes shakeBox {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-field label { font-size: 0.95rem; font-weight: 500; color: var(--white); }

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--black);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    outline: 2px solid var(--accent);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.7rem;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--accent);
    color: var(--black);
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 700;
    z-index: 4000;
    animation: toastIn 0.3s ease;
}
.toast.toast-error { background: var(--accent-red); color: var(--black); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--light-gray);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius);
}
.empty-state h3 { color: var(--white); margin-bottom: 0.5rem; }

.gallery-section { padding: 72px 0 88px; }
.gallery-grid {
    columns: 3 280px;
    column-gap: 1rem;
    margin-top: 2.5rem;
}
.gallery-grid figure { margin: 0 0 1rem; break-inside: avoid; }
.gallery-grid img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.about-content p, .lead-text { max-width: 68ch; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Make the HTML 'hidden' attribute always win (buttons like Cancel were showing when they should be hidden) */
[hidden] { display: none !important; }

/* Page transitions: browsers with cross-document view transitions cross-fade between pages */
@view-transition { navigation: auto; }
.navbar { view-transition-name: site-nav; }
::view-transition-old(root) { animation: pageOut 0.18s ease both; }
::view-transition-new(root) { animation: pageIn 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes pageOut { to { opacity: 0; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }

/* Fallback for browsers without view transitions */
@supports not (view-transition-name: none) {
    body { animation: pageIn 0.35s ease both; }
}

/* Sections rise in once as they scroll into view */
.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal-ready.is-visible { opacity: 1; transform: none; }

