:root {
    --bg: #08090B;
    --fg: #E6E4DE;
    --muted: #9C9A93;
    --accent: #5CF08A;
}

html, body {
    margin: 0;
    background: var(--bg);
}

a { color: var(--fg); }
a:hover { color: #FFFFFF; }

.tz {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    background: var(--bg);
    color: var(--fg);
    overflow: hidden;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    cursor: crosshair;
    /* Let touch drags reach the canvas instead of panning the page */
    touch-action: pinch-zoom;
}

.tz-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.tz-layer {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100svh;
    box-sizing: border-box;
    padding: 28px clamp(16px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    pointer-events: none;
}

.tz-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.tz-bar--bottom { align-items: flex-end; }

.tz-accent { color: var(--accent); }

.tz-hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: flex-start;
    background: rgba(8, 9, 11, 0.72);
    padding: 20px 24px 24px;
    margin-left: -24px;
}

.tz-prompt {
    font-size: 14px;
    color: var(--muted);
}

.tz-title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(72px, 14vw, 220px);
    line-height: 0.9;
    letter-spacing: -0.06em;
    color: var(--fg);
}

.tz-sub {
    margin: 0;
    max-width: 40ch;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

@keyframes tz-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
@keyframes tz-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
@keyframes tz-type {
    from { width: 0; }
    to { width: 15ch; }
}

.tz-in { animation: tz-fade 1.2s .9s cubic-bezier(.2, .7, .2, 1) both; }
.tz-in2 { animation: tz-fade 1.2s 1.3s cubic-bezier(.2, .7, .2, 1) both; }
.tz-type {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    animation: tz-type .9s steps(15) both;
}
.tz-cursor { animation: tz-blink 1s steps(1) infinite; }

@media (prefers-reduced-motion: reduce) {
    .tz-in, .tz-in2, .tz-type, .tz-cursor { animation: none; }
}
