*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Theme toggle button ── */
#theme-toggle {
    position: fixed;
    top: 1.1rem;
    right: 1.4rem;
    z-index: 100;
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
    line-height: 1;
    font-family: 'F25BankPrinter', monospace;
}

#theme-toggle:hover {
    border-color: #0a0a0a;
    color: #0a0a0a;
}

[data-theme="dark"] #theme-toggle {
    border-color: #444;
    color: #aaa;
}

[data-theme="dark"] #theme-toggle:hover {
    border-color: #f0f0f0;
    color: #f0f0f0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    font-family: 'F25BankPrinter', monospace;
}

/* ── Canvas ── */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #ffffff;
}

/* ── Hero ── */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
}

.hero-inner {
    text-align: center;
    animation: fadeUp 1s ease both;
}

.hero-logo {
    width: 100px;
    height: auto;
    margin-bottom: 1.4rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 1.2rem;
}

h1 {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.name {
    font-size: clamp(1.8rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: #0a0a0a;
    letter-spacing: -0.03em;
}

.role {
    font-size: clamp(0.75rem, 1.8vw, 1.3rem);
    font-weight: 300;
    color: #222;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

.divider {
    width: 48px;
    height: 3px;
    background: #0a0a0a;
    border-radius: 2px;
    margin: 2rem auto;
    animation: expandLine 0.9s 0.6s ease both;
    transform-origin: center;
}

.tagline {
    font-size: clamp(0.72rem, 1.2vw, 0.88rem);
    color: #666;
    letter-spacing: 0.02em;
    max-width: 640px;
    line-height: 1.7;
    margin: 0.8rem auto 0;
    text-align: center;
    animation: fadeUp 1s 0.4s ease both;
}

/* ── Page Transition Overlay ── */
.page-transition {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1);
    pointer-events: none;
}

.page-transition.active {
    transform: translateY(0);
}

.page-transition.exit {
    transform: translateY(-100%);
}

/* ── Click hint ── */
.click-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Macondo", cursive;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #aaa;
    z-index: 1;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes expandLine {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}

/* ── Dark mode ── */
[data-theme="dark"] html,
[data-theme="dark"] body {
    background: #0f0f0f;
}

[data-theme="dark"] #bg-canvas {
    background: #0f0f0f;
}

[data-theme="dark"] .name { color: #f0f0f0; }
[data-theme="dark"] .role { color: #ccc; }
[data-theme="dark"] .divider { background: #f0f0f0; }
[data-theme="dark"] .tagline { color: #999; }
[data-theme="dark"] .click-hint { color: #555; }
[data-theme="dark"] .label { color: #555; }
