/* =========================================================================
   Creator Application — "Open Casting Call" visual identity
   Palette:  ink #0E0F12 / panel #17191D / line #2B2E33
             paper #F3F1EA / muted #9A9DA6
             amber #F5B133 (primary accent) / coral #FF5C5C (alert/live)
   Type:     Bebas Neue (display) / Inter (body) / IBM Plex Mono (utility)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --bg: #fdfcfa;         /* page background — warm white */
    --ink: #15171b;        /* primary text — near-black */
    --panel: #ffffff;      /* cards, form shell, slate */
    --panel-raised: #f5f3ee; /* recessed surfaces — inputs, prefixes */
    --line: #e4e1d8;       /* hairline borders */
    --paper: #ffffff;      /* literal white — used on dark scrims/overlays only */
    --muted: #6b6e76;
    --muted-2: #8a8d95;
    --amber: #b4790c;      /* deep ochre — text, icons, rules */
    --amber-bg: #efaf44;   /* bright gold — solid button/tag fills (pair with --ink text) */
    --amber-dim: #f2dfb8;
    --coral: #d93636;
    --coral-bg: #ffecec;
    --green: #157a57;

    --radius: 10px;
    --radius-sm: 6px;
    --container: 1180px;

    --shadow-lift: 0 20px 50px -24px rgba(20, 22, 26, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.mono {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
    letter-spacing: 0.04em;
}

.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

/* Background texture: faint sprocket/grid rhythm evoking a contact sheet */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
    opacity: 0.18;
}

/* -------------------------------------------------------------------------
   Top bar
   ------------------------------------------------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(253, 252, 250, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: var(--ink);
}
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(217, 54, 54, 0.15); }
.topbar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12.5px;
}
.topbar-status .pulse {
    width: 7px; height: 7px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 0 0 rgba(21, 122, 87, 0.5);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(21, 122, 87, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(21, 122, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(21, 122, 87, 0); }
}
.topbar-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: var(--amber-bg);
    padding: 9px 16px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}
.topbar-cta:hover { filter: brightness(1.08); }

/* -------------------------------------------------------------------------
   Hero — the slate
   ------------------------------------------------------------------------- */
.hero {
    position: relative;
    z-index: 1;
    padding: 88px 0 96px;
    border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--amber); }

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(48px, 6.4vw, 92px);
    line-height: 0.96;
    letter-spacing: 0.01em;
    margin: 0 0 26px;
    text-wrap: balance;
}
.hero h1 em {
    font-style: normal;
    color: var(--amber);
}

.hero p.lede {
    font-size: 18px;
    color: var(--muted);
    max-width: 46ch;
    margin: 0 0 36px;
}

.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--amber-bg);
    color: var(--ink);
    font-weight: 700;
    font-size: 15px;
    padding: 15px 26px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary svg { width: 16px; height: 16px; }

.hero-scroll-hint { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--muted-2); }

.hero-meta { display: flex; gap: 28px; margin-top: 46px; flex-wrap: wrap; }
.hero-meta div { border-left: 2px solid var(--line); padding-left: 14px; }
.hero-meta .num { font-family: 'Bebas Neue', sans-serif; font-size: 30px; color: var(--ink); line-height: 1; }
.hero-meta .lbl { font-size: 12.5px; color: var(--muted-2); margin-top: 4px; }

/* The slate board — signature visual element */
.slate {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
    transform: rotate(1.3deg);
}
.slate-stripes {
    display: flex;
    height: 34px;
}
.slate-stripes span {
    flex: 1;
    background: var(--paper);
}
.slate-stripes span:nth-child(odd) { background: #0e0f12; }
.slate-body { padding: 26px 26px 30px; }
.slate-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 13px 0;
    border-bottom: 1px dashed var(--line);
    font-family: 'IBM Plex Mono', monospace;
}
.slate-row:last-child { border-bottom: none; }
.slate-row .k { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.slate-row .v { font-size: 15px; color: var(--ink); font-weight: 500; text-align: right; }
.slate-row .v.amber { color: var(--amber); }
.slate-foot {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px;
    color: var(--muted-2);
    display: flex;
    justify-content: space-between;
}

/* -------------------------------------------------------------------------
   Section shell used across the page
   ------------------------------------------------------------------------- */
.section { position: relative; z-index: 1; padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(32px, 4vw, 46px);
    margin: 0 0 14px;
    line-height: 1.02;
}
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }

/* Brand-fit strip */
.brands-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.brands-strip .cell { background: var(--panel); padding: 26px 22px; }
.brands-strip .cell h3 { font-family: 'Bebas Neue', sans-serif; font-size: 22px; font-weight: 400; margin: 0 0 8px; letter-spacing: 0.02em; }
.brands-strip .cell p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* -------------------------------------------------------------------------
   Form — organized as numbered "scenes"
   ------------------------------------------------------------------------- */
.app-shell {
    max-width: 860px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
}

.app-progress {
    display: flex;
    border-bottom: 1px solid var(--line);
    padding: 22px 30px;
    gap: 10px;
    overflow-x: auto;
}
.app-progress .step {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--muted-2);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.app-progress .step .n {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10.5px;
}
.app-progress .step.active { color: var(--amber); }
.app-progress .step.active .n { border-color: var(--amber); color: var(--amber); }

form#application-form { padding: 8px 30px 36px; }

.scene {
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
}
.scene:last-of-type { border-bottom: none; }

.scene-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.scene-label .tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px;
    color: var(--ink);
    background: var(--amber-bg);
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: 0.06em;
}
.scene-label h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 24px;
    margin: 0;
    letter-spacing: 0.01em;
}
.scene-sub { color: var(--muted); font-size: 14px; margin: -12px 0 22px; }

.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}
.field .hint { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }
.field .error-msg { font-size: 12.5px; color: var(--coral); margin-top: 6px; display: none; }
.field.has-error .error-msg { display: block; }
.field.has-error input,
.field.has-error textarea { border-color: var(--coral); }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    width: 100%;
    background: var(--panel-raised);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, textarea:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(180, 121, 12, 0.16);
}
textarea { resize: vertical; min-height: 110px; }

.char-counter { text-align: right; font-size: 11.5px; color: var(--muted-2); margin-top: 6px; font-family: 'IBM Plex Mono', monospace; }

.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.toggle-pass {
    position: absolute;
    right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--muted); cursor: pointer;
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em;
    padding: 6px 8px;
}
.toggle-pass:hover { color: var(--amber); }

.pw-strength { display: flex; gap: 4px; margin-top: 8px; }
.pw-strength span { height: 3px; flex: 1; background: var(--line); border-radius: 2px; transition: background 0.2s ease; }
.pw-strength[data-level="1"] span:nth-child(1) { background: var(--coral); }
.pw-strength[data-level="2"] span:nth-child(-n+2) { background: var(--amber); }
.pw-strength[data-level="3"] span { background: var(--green); }

/* Sponsor category chips */
.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip .chip-face {
    display: block;
    border: 1px solid var(--line);
    background: var(--panel-raised);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13.5px;
    color: var(--muted);
    transition: all 0.15s ease;
}
.chip input:checked + .chip-face {
    border-color: var(--amber);
    color: var(--amber);
    background: rgba(180, 121, 12, 0.08);
}
.chip input:focus-visible + .chip-face { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Social handle inputs with platform prefix */
.handle-field { display: flex; align-items: stretch; }
.handle-prefix {
    display: flex; align-items: center;
    padding: 0 12px;
    background: var(--line);
    border: 1px solid var(--line);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 13px; color: var(--muted); white-space: nowrap;
    font-family: 'IBM Plex Mono', monospace;
}
.handle-field input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Upload zone — "contact sheet" motif */
.dropzone {
    border: 1.5px dashed var(--line);
    border-radius: var(--radius);
    padding: 34px 24px;
    text-align: center;
    cursor: pointer;
    background:
        repeating-linear-gradient(90deg, transparent 0 22px, rgba(20,22,26,0.025) 22px 24px);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone.dragover { border-color: var(--amber); background: rgba(180, 121, 12, 0.06); }
.dropzone svg { width: 34px; height: 34px; color: var(--amber); margin: 0 auto 14px; }
.dropzone .dz-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.dropzone .dz-sub { font-size: 13px; color: var(--muted-2); }
.dropzone input[type="file"] { display: none; }

.file-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 18px; }
.file-thumb {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--panel-raised);
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
}
.file-thumb img, .file-thumb video { width: 100%; height: 100%; object-fit: cover; }
.file-thumb .file-icon { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted); text-align: center; padding: 8px; }
.file-thumb .remove {
    position: absolute; top: 6px; right: 6px;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(20,22,26,0.85); color: var(--paper);
    border: 1px solid var(--line);
    font-size: 13px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.file-thumb .remove:hover { background: var(--coral); border-color: var(--coral); }
.file-thumb .name-tag {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: var(--paper); font-size: 10px; padding: 12px 6px 5px;
    text-align: center; word-break: break-all;
    font-family: 'IBM Plex Mono', monospace;
}

/* Consent + submit */
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 26px 0; }
.consent input { margin-top: 3px; }
.consent label { font-size: 13px; color: var(--muted); }
.consent a { color: var(--amber); text-decoration: underline; }

.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-submit {
    background: var(--amber-bg);
    color: var(--ink);
    border: none;
    font-weight: 700;
    font-size: 15.5px;
    padding: 16px 30px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px;
    transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}
.btn-submit:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.spinner {
    width: 15px; height: 15px; border-radius: 50%;
    border: 2px solid rgba(20,22,26,0.25); border-top-color: var(--ink);
    animation: spin 0.7s linear infinite; display: none;
}
.btn-submit.loading .spinner { display: inline-block; }
.btn-submit.loading .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-banner {
    display: none;
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: 'IBM Plex Mono', monospace;
}
.form-banner.show { display: block; }
.form-banner.error { background: var(--coral-bg); border: 1px solid rgba(217, 54, 54, 0.35); color: #a92c2c; }

/* Success state */
.success-screen {
    display: none;
    padding: 70px 30px;
    text-align: center;
}
.success-screen.show { display: block; }
.success-screen .stamp {
    width: 82px; height: 82px; margin: 0 auto 26px;
    border: 3px solid var(--green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--green);
    transform: rotate(-8deg);
}
.success-screen .stamp svg { width: 38px; height: 38px; }
.success-screen h3 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 32px; margin: 0 0 12px; }
.success-screen p { color: var(--muted); max-width: 46ch; margin: 0 auto; }
.success-screen .ref { margin-top: 22px; font-family: 'IBM Plex Mono', monospace; color: var(--amber); font-size: 13px; }

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 4px;
    font-weight: 600;
    font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-family: 'IBM Plex Mono', monospace;
    color: var(--amber);
    font-size: 20px;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 4px 22px; color: var(--muted); font-size: 14.5px; max-width: 68ch; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; position: relative; z-index: 1; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
footer .foot-brand { font-family: 'Bebas Neue', sans-serif; font-size: 20px; }
footer .foot-meta { color: var(--muted-2); font-size: 12.5px; font-family: 'IBM Plex Mono', monospace; }

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .slate { transform: none; max-width: 460px; }
    .brands-strip { grid-template-columns: repeat(2, 1fr); }
    .chip-grid { grid-template-columns: repeat(2, 1fr); }
    .row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 18px; }
    .hero { padding: 60px 0 64px; }
    .section { padding: 60px 0; }
    form#application-form { padding: 8px 18px 28px; }
    .app-progress { padding: 18px; }
    .brands-strip { grid-template-columns: 1fr; }
    .chip-grid { grid-template-columns: 1fr; }
    .topbar-status { display: none; }
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
}
