:root {
    --bg: #0b0c10;
    --surface: #12141a;
    --surface-2: #171922;
    --line: rgba(255,255,255,.10);
    --text: #f5f2eb;
    --muted: #9b9aa3;
    --accent: #e9ff61;
    --accent-2: #a9b7ff;
    --danger: #ff8a9b;
    --max: 1180px;
    --radius: 28px;
    --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 15% 10%, rgba(233,255,97,.07), transparent 28%),
        radial-gradient(circle at 85% 45%, rgba(169,183,255,.08), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: "DM Sans", system-ui, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .20;
    background-image: radial-gradient(rgba(255,255,255,.25) .7px, transparent .7px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: #111; }

/* Loading */
.loader {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-content: center; gap: 18px;
    background: var(--bg);
    transition: opacity .6s ease, visibility .6s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader p { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.loader-mark { display: flex; justify-content: center; gap: 7px; }
.loader-mark span {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
    animation: pulse 1s infinite ease-in-out;
}
.loader-mark span:nth-child(2) { animation-delay: .12s; }
.loader-mark span:nth-child(3) { animation-delay: .24s; }
@keyframes pulse { 50% { transform: translateY(-9px); opacity: .35; } }

/* Welcome */
.welcome {
    position: fixed; inset: 0; z-index: 90;
    display: grid; place-items: center; overflow: hidden;
    background: #0b0c10;
    transition: opacity .8s var(--ease), transform .9s var(--ease), visibility .8s;
}
.welcome.leave { opacity: 0; transform: scale(1.04); visibility: hidden; pointer-events: none; }
.welcome::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(233,255,97,.08), transparent 34%);
}
.welcome-card {
    position: relative; width: min(680px, calc(100% - 36px));
    text-align: center; padding: 46px 36px;
    border: 1px solid var(--line);
    border-radius: 38px;
    background: rgba(18,20,26,.72);
    backdrop-filter: blur(22px);
    box-shadow: 0 30px 100px rgba(0,0,0,.45);
    animation: cardIn 1s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(25px) scale(.97); } }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .22em; font-weight: 700; }
.brand-symbol {
    width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
    color: #0d0e12; background: var(--accent);
}
.brand-symbol.small { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .19em; }
.welcome .eyebrow { margin-top: 42px; }
.welcome h1 {
    font: 700 clamp(44px, 8vw, 78px)/.98 "Playfair Display", serif;
    letter-spacing: -.045em; margin: 16px 0 18px;
}
h1 em, h2 em { color: var(--accent); font-style: normal; }
.welcome-copy { max-width: 520px; margin: auto; color: var(--muted); line-height: 1.75; }
.enter-btn {
    margin-top: 32px; padding: 15px 22px 15px 25px; border: 0; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 18px; background: var(--accent); color: #10120c;
    font-weight: 800; transition: transform .3s var(--ease), box-shadow .3s;
}
.enter-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(233,255,97,.18); }
.enter-btn i { font-size: 18px; }
.micro-copy { margin: 16px 0 0; color: #73727b; font-size: 12px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.welcome-orbit { position: absolute; border: 1px solid rgba(233,255,97,.12); border-radius: 50%; animation: spin 20s linear infinite; }
.orbit-a { width: 500px; height: 500px; }
.orbit-b { width: 800px; height: 800px; animation-direction: reverse; animation-duration: 32s; border-color: rgba(169,183,255,.09); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Main */
.site-shell { max-width: var(--max); margin: auto; padding: 0 26px 60px; opacity: 0; transform: translateY(25px); transition: opacity 1s .2s var(--ease), transform 1s .2s var(--ease); }
.site-shell.is-visible { opacity: 1; transform: none; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-brand-group, .header-actions { display: flex; align-items: center; gap: 16px; }
.college-logo-wrap {
    display: inline-flex; align-items: center; gap: 8px; color: #85838b; text-decoration: none;
    font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
}
.college-logo-wrap img {
    width: 34px; height: 34px; border-radius: 50%; object-fit: contain; background: #fff;
    border: 1px solid rgba(255,255,255,.12); padding: 4px;
}
.college-logo-wrap.logo-missing { display: none; }
.instagram-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12); color: #d8d5cd; text-decoration: none; font-size: 11px;
    transition: .25s ease;
}
.instagram-btn i { color: #ff7ab8; }
.instagram-btn:hover { border-color: rgba(255,122,184,.55); transform: translateY(-2px); }
.brand { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .18em; font-size: 12px; }
.status-pill { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); font-size: 10px; letter-spacing: .14em; display: flex; gap: 7px; align-items: center; }
.status-pill span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* Hero */
.hero { min-height: 650px; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 50px; }
.hero-copy { max-width: 640px; }
.hero h2 { font: 700 clamp(50px, 7vw, 88px)/.96 "Playfair Display", serif; letter-spacing: -.055em; margin: 18px 0 25px; }
.hero-copy > p:not(.eyebrow) { color: var(--muted); max-width: 560px; line-height: 1.8; font-size: 16px; }
.hero-notes { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 18px; color: #c9c7ce; font-size: 12px; }
.hero-notes span { display: flex; gap: 7px; align-items: center; }
.hero-notes i { color: var(--accent); }
.hero-art { position: relative; height: 510px; transition: transform .25s ease-out; }
.hero-ring {
    position: absolute; width: 370px; height: 370px; border-radius: 50%; border: 1px solid rgba(233,255,97,.4);
    left: 50%; top: 50%; transform: translate(-50%,-50%);
    box-shadow: inset 0 0 90px rgba(233,255,97,.04), 0 0 80px rgba(233,255,97,.04);
}
.hero-ring::after { content:""; position:absolute; inset: 35px; border: 1px dashed rgba(169,183,255,.3); border-radius:50%; animation: spin 18s linear infinite; }
.hero-core {
    position: absolute; left:50%; top:50%; transform:translate(-50%,-50%);
    width: 115px; height:115px; display:grid; place-items:center; border-radius:50%;
    background: var(--accent); color:#10120c; font-size:38px; box-shadow:0 0 70px rgba(233,255,97,.18);
}
.paper-note {
    position:absolute; padding:14px 18px; background:#eee9db; color:#1b1a18; font:600 13px "DM Sans"; box-shadow:0 15px 30px rgba(0,0,0,.25);
}
.note-one { top: 80px; right: 15px; transform: rotate(5deg); }
.note-two { bottom: 105px; left: 5px; transform: rotate(-6deg); }
.scribble { position:absolute; width:100px; height:50px; border-top:2px solid var(--accent); border-radius:50%; }
.s1 { left:40px; top:140px; transform:rotate(-18deg); }
.s2 { right:30px; bottom:70px; transform:rotate(160deg); border-color:var(--accent-2); }

/* Form */
.confession-section, .how-section { padding-top: 70px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.section-heading h3 { margin:10px 0 0; font:700 clamp(34px,5vw,56px)/1 "Playfair Display",serif; letter-spacing:-.04em; }
.step { color:#77757e; font-size:10px; letter-spacing:.14em; }
.confession-card {
    padding: 30px; border:1px solid var(--line); border-radius:var(--radius);
    background:linear-gradient(145deg, rgba(24,26,34,.95), rgba(16,17,22,.92));
    box-shadow:0 25px 70px rgba(0,0,0,.25);
}
.field { margin-bottom:22px; }
.field-top, .field label { display:flex; align-items:center; gap:8px; }
.field label { color:#e5e1d9; font-size:13px; font-weight:700; margin-bottom:10px; }
.field label i, .field-top i { color:var(--accent); }
.field label span { margin-left:auto; color:#73727a; font-weight:500; }
.field-top { justify-content:space-between; margin-bottom:10px; }
.field-top label { margin:0; }
.field-top > span { color:#6f6e77; font-size:11px; }
textarea, input, select {
    width:100%; border:1px solid rgba(255,255,255,.10); background:#101116; color:var(--text);
    border-radius:18px; outline:none; transition:border-color .25s, box-shadow .25s, background .25s;
}
textarea { min-height:250px; resize:vertical; padding:20px; line-height:1.7; }
input, select { height:56px; padding:0 17px; }
textarea::placeholder, input::placeholder { color:#5e5d65; }
textarea:focus, input:focus, select:focus { border-color:rgba(233,255,97,.6); box-shadow:0 0 0 4px rgba(233,255,97,.07); background:#12141a; }
.field-bottom { display:flex; justify-content:space-between; margin-top:8px; color:#6d6b74; font-size:11px; }
.field-bottom i { color:#777; }
#charCount.near-limit { color:var(--danger); }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.select-wrap { position:relative; }
select { appearance:none; color:#aaa8b0; }
select:valid { color:var(--text); }
.select-wrap i { position:absolute; right:17px; top:50%; transform:translateY(-50%); pointer-events:none; color:#777; }
.optional-tools {
    display:flex; justify-content:space-between; align-items:center; gap:20px; padding:18px;
    border:1px dashed rgba(255,255,255,.13); border-radius:20px; margin-top:8px;
}
.tool-copy { display:flex; align-items:center; gap:12px; }
.tool-icon { width:38px; height:38px; border-radius:12px; background:#20222b; display:grid; place-items:center; color:var(--accent); }
.tool-copy strong { display:block; font-size:13px; }
.tool-copy small { display:block; margin-top:4px; color:#6f6d76; font-size:11px; }
.upload-btn {
    flex:none; padding:11px 15px; border:1px solid rgba(255,255,255,.12); border-radius:999px; color:#d6d3cc;
    cursor:pointer; font-size:12px; transition:.25s;
}
.upload-btn:hover { border-color:var(--accent); color:var(--accent); }
.upload-btn input { display:none; }
.file-name { margin:8px 3px 0; color:#8d8b93; font-size:11px; }
.file-name.error { color:var(--danger); }
.form-footer { display:grid; grid-template-columns:1fr auto; align-items:center; gap:24px; margin-top:24px; }
.privacy-note { display:flex; gap:10px; color:#77757e; font-size:11px; line-height:1.5; max-width:500px; }
.privacy-note i { color:var(--accent); font-size:17px; flex:none; }
.privacy-note strong { color:#bcb9c0; }
.submit-btn {
    min-width:205px; height:54px; padding:0 20px; border:0; border-radius:999px; background:var(--accent); color:#11130e;
    font-weight:800; display:flex; justify-content:center; align-items:center; gap:16px; transition:.3s var(--ease);
}
.submit-btn:hover:not(:disabled) { transform:translateY(-3px); box-shadow:0 16px 40px rgba(233,255,97,.15); }
.submit-btn:disabled { opacity:.65; cursor:wait; }
.submit-btn.loading i { animation:spin .8s linear infinite; }
.form-message { min-height:0; opacity:0; margin-top:0; font-size:12px; transition:.3s; }
.form-message.show { opacity:1; margin-top:18px; padding:12px 15px; border-radius:13px; }
.form-message.success { color:#dff59a; background:rgba(233,255,97,.07); border:1px solid rgba(233,255,97,.12); }
.form-message.error { color:#ffadb8; background:rgba(255,138,155,.06); border:1px solid rgba(255,138,155,.12); }
.hp { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; opacity:0!important; }

/* Steps */
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; }
.step-card { padding:28px; min-height:220px; border:1px solid var(--line); border-radius:22px; background:rgba(18,20,26,.72); position:relative; overflow:hidden; }
.step-card > span { color:#595861; font-size:11px; letter-spacing:.1em; }
.step-card i { display:block; margin:28px 0 22px; color:var(--accent); font-size:24px; }
.step-card h4 { margin:0 0 7px; font-size:18px; }
.step-card p { margin:0; color:var(--muted); font-size:13px; line-height:1.65; }
.step-card::after { content:""; position:absolute; width:90px; height:90px; border:1px solid rgba(233,255,97,.08); border-radius:50%; right:-30px; bottom:-35px; }

/* Footer */
.footer { margin-top:100px; padding-top:28px; border-top:1px solid var(--line); display:flex; align-items:center; gap:22px; color:#77757e; font-size:11px; }
.footer p { margin:0; flex:1; }
.footer-instagram {
    display:flex; align-items:center; gap:7px; color:#ff7ab8; text-decoration:none; font-size:11px;
    transition:.2s ease;
}
.footer-instagram:hover { transform:translateY(-2px); }
.footer-lock { display:flex; align-items:center; gap:6px; }

/* Reveals */
.reveal { opacity:0; transform:translateY(24px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity:1; transform:none; }
.delay-1 { transition-delay:.12s; }
.delay-2 { transition-delay:.22s; }

@media (max-width: 800px) {
    .site-shell { padding:0 18px 45px; }
    .topbar { height:78px; }
    .status-pill { display:none; }
    .instagram-btn span { display:none; }
    .college-logo-wrap span { display:none; }
    .hero { min-height:auto; padding:70px 0 35px; grid-template-columns:1fr; }
    .hero-art { height:310px; order:-1; }
    .hero-ring { width:260px; height:260px; }
    .hero-core { width:86px; height:86px; font-size:28px; }
    .note-one { top:30px; right:5%; }
    .note-two { bottom:40px; left:4%; }
    .hero h2 { font-size:clamp(45px,13vw,70px); }
    .two-col, .steps, .form-footer { grid-template-columns:1fr; }
    .form-footer { align-items:stretch; }
    .submit-btn { width:100%; }
    .section-heading { align-items:flex-start; flex-direction:column; }
    .footer { flex-wrap:wrap; }
}
@media (max-width: 520px) {
    .welcome-card { padding:38px 22px; border-radius:28px; }
    .welcome h1 { font-size:48px; }
    .welcome .eyebrow { margin-top:34px; }
    .confession-card { padding:18px; border-radius:22px; }
    textarea { min-height:220px; }
    .optional-tools { align-items:flex-start; flex-direction:column; }
    .upload-btn { width:100%; text-align:center; }
    .hero-art { height:260px; }
    .hero-ring { width:220px; height:220px; }
    .paper-note { font-size:11px; padding:10px 13px; }
    .footer p { flex-basis:100%; order:3; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; }
}
