:root {
    --night: #070914;
    --night-soft: #11152a;
    --paper: #f6f3ed;
    --ink: #171928;
    --muted: #666b7c;
    --line: rgba(24, 28, 48, .12);
    --violet: #7255d9;
    --cyan: #43bfd0;
    --coral: #f06f5f;
    --gold: #e2ad54;
    --radius: 24px;
    --shadow: 0 28px 75px -48px rgba(10, 14, 38, .68);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hero-header { position: relative; height: clamp(92px, 11vw, 132px); overflow: hidden; background: var(--night); color: white; isolation: isolate; }
.hero-animation { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: -3; }
.eyebrow { margin: 0 0 12px; font-size: .75rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #a8e2ea; }
.page-intro { padding-block: 34px 30px; }
.page-intro .eyebrow { color: var(--violet); margin-bottom: 8px; }
.page-intro h1 { margin: 0; max-width: 820px; font-family: Arial, Helvetica, sans-serif; font-weight: 650; font-size: clamp(1.65rem, 3.2vw, 2.7rem); line-height: 1.08; letter-spacing: -.035em; }
.page-intro > p:last-child { max-width: 680px; margin: 10px 0 0; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.fullscreen-button { position: absolute; top: 18px; right: 20px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; background: rgba(5,8,18,.5); color: white; cursor: pointer; backdrop-filter: blur(8px); }
.topbar { background: rgba(246,243,237,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px); }
.topbar-inner { min-height: 72px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.nav-links a { text-decoration: none; font-size: .9rem; font-weight: 700; }
.nav-links a:hover { color: var(--violet); }
.language-selector { display: flex; align-items: center; gap: 10px; }
.language-selector label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.language-selector select { max-width: 220px; border: 1px solid var(--line); border-radius: 999px; background: white; padding: 9px 34px 9px 13px; color: var(--ink); }
.section { padding-block: 54px; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, .7fr) minmax(280px, 1fr); gap: 40px; align-items: end; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font: 500 clamp(2rem, 4vw, 3.5rem)/1.03 Georgia, serif; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.7; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.7); box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 34px 85px -48px rgba(10,14,38,.82); }
.project-visual { height: 82px; display: grid; place-items: center; background: linear-gradient(135deg, #242846, #7255d9); color: white; }
.tone-cyan .project-visual { background: linear-gradient(135deg, #12353e, var(--cyan)); }
.tone-coral .project-visual { background: linear-gradient(135deg, #522d38, var(--coral)); }
.tone-gold .project-visual { background: linear-gradient(135deg, #463719, var(--gold)); }
.project-visual span { font: italic 500 2rem Georgia, serif; }
.project-body { padding: 15px; }
.card-kind { margin: 0 0 8px !important; font-size: .68rem !important; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; color: var(--violet) !important; }
.project-card h3 { margin: 0; font: 600 1.12rem/1.15 Arial, sans-serif; }
.project-card p { margin: 9px 0 14px; color: var(--muted); line-height: 1.45; font-size: .78rem; }
.text-link { font-size: .75rem; font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--violet); color: white; text-decoration: none; font-weight: 800; cursor: pointer; }
.button:hover { filter: brightness(1.08); }
.button-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.access-callout { padding: clamp(28px, 5vw, 58px); border-radius: 32px; background: var(--night-soft); color: white; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.access-callout h2 { margin: 0 0 12px; font: 500 clamp(1.8rem, 4vw, 3rem)/1.05 Georgia, serif; }
.access-callout p { margin: 0; max-width: 680px; color: rgba(255,255,255,.68); line-height: 1.65; }
.auth-layout { min-height: 58vh; display: grid; grid-template-columns: minmax(260px,.8fr) minmax(340px,1fr); gap: clamp(28px, 6vw, 90px); align-items: center; padding-block: 64px; }
.auth-copy h2 { margin: 0 0 16px; font: 500 clamp(2rem,5vw,4rem)/1 Georgia,serif; }
.auth-copy p { color: var(--muted); line-height: 1.7; }
.keypad-panel { width: min(100%, 430px); justify-self: end; padding: clamp(22px,5vw,38px); border: 1px solid var(--line); border-radius: 30px; background: white; box-shadow: var(--shadow); }
.pin-display { width: 100%; height: 68px; border: 1px solid var(--line); border-radius: 16px; background: #f2f0eb; text-align: center; font-size: 2rem; letter-spacing: .35em; padding-left: .35em; }
.keypad { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
.key { aspect-ratio: 1.45; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); font-weight: 850; font-size: 1.2rem; cursor: pointer; }
.key:hover, .key:focus-visible { background: #e8e2f7; border-color: var(--violet); }
.key-zero { grid-column: 2; }
.keypad-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.message { border-radius: 14px; padding: 12px 15px; margin-bottom: 14px; background: #fbe5e1; color: #8a2f24; font-weight: 700; font-size: .9rem; }
.session-strip { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 0; }
.session-strip p { margin: 0; color: var(--muted); }
.logout-form { margin: 0; }
.protected-main { min-height: 72vh; padding-block: 62px; }
.protected-panel { border: 1px solid var(--line); border-radius: 30px; padding: clamp(28px,5vw,58px); background: white; box-shadow: var(--shadow); }
.protected-panel h2 { margin: 0 0 14px; font: 500 clamp(2rem,5vw,4rem)/1 Georgia,serif; }
.protected-panel > p { color: var(--muted); line-height: 1.7; max-width: 760px; }
.status-pill { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: #dff2e9; color: #17633f; font-size: .78rem; font-weight: 850; }
.site-footer { padding-block: 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
@media (max-width: 820px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .section-heading, .auth-layout { grid-template-columns: 1fr; }
    .keypad-panel { justify-self: stretch; }
    .access-callout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .shell { width: min(100% - 24px, 1180px); }
    .hero-header { height: 88px; }
    .topbar-inner, .session-strip { align-items: stretch; flex-direction: column; padding-block: 14px; }
    .language-selector { justify-content: space-between; }
    .language-selector select { max-width: 185px; }
    .card-grid { grid-template-columns: 1fr; }
    .section { padding-block: 52px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
