/*
| Tangaza staff portal - guest experience (landing, sign in, reset, unlock).
|
| Plain CSS served from /public, so it never depends on a Vite build. All
| classes are prefixed "tza-" so nothing collides with the portal's Tailwind
| utilities. The 3D globe is drawn by public/js/tz-auth.js at the screen's own
| pixel density (sharp on 4K); the campus photo is only a soft blended texture.
| Pointer position arrives as --mx / --my (-1..1) on <html> and drives the
| parallax layers. Every animation stops under prefers-reduced-motion.
*/

:root {
    --mx: 0;
    --my: 0;
    --tza-red: #C52127;
    --tza-red-hi: #D62A30;
    --tza-red-lo: #8A151A;
    --tza-gold: #D19C2C;
    --tza-gold-hi: #E8B94A;
    --tza-cream: #FFF1C9;
    --tza-ink: #1E1A1A;
    --tza-night: #0C0808;
    --tza-muted: #6E6363;
    --tza-line: #E3DBDA;
    --tza-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --tza-display: "Fraunces", Georgia, "Times New Roman", serif;
    --tza-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@property --tza-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* Big monitors (27"+ at 100% scaling): scale everything in proportion rather
   than leaving a small card in a sea of space. 4K at 200% reports ~1920px
   and is unaffected. */
@media (min-width: 2200px) { .tza-root { font-size: 19.5px; } }
@media (min-width: 2800px) { .tza-root { font-size: 23px; } }
@media (min-width: 3500px) { .tza-root { font-size: 28px; } }

/* ── Page ─────────────────────────────────────────────────────────────── */
.tza-body {
    min-height: 100vh;
    margin: 0;
    color: #fff;
    font-family: var(--tza-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background:
        radial-gradient(120% 90% at 0% 0%, #4a1014 0%, rgba(74, 16, 20, 0) 55%),
        radial-gradient(90% 70% at 100% 100%, #2a1a08 0%, rgba(42, 26, 8, 0) 60%),
        var(--tza-night);
    background-attachment: fixed;
}
.tza-body *, .tza-body *::before, .tza-body *::after { box-sizing: border-box; }

/* ── Backdrop ─────────────────────────────────────────────────────────── */
.tza-stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.tza-stage > * { position: absolute; inset: 0; }
.tza-stage__photo {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.22;
    mix-blend-mode: luminosity;
    filter: saturate(0.85) contrast(1.05);
    animation: tza-kenburns 48s ease-in-out infinite alternate;
}
.tza-aurora > span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    mix-blend-mode: screen;
    will-change: transform;
}
.tza-aurora > span:nth-child(1) {
    width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax;
    background: radial-gradient(circle, rgba(197, 33, 39, 0.75), transparent 70%);
    animation: tza-drift-a 22s ease-in-out infinite alternate;
}
.tza-aurora > span:nth-child(2) {
    width: 38vmax; height: 38vmax; right: -10vmax; bottom: -16vmax;
    background: radial-gradient(circle, rgba(209, 156, 44, 0.55), transparent 70%);
    animation: tza-drift-b 26s ease-in-out infinite alternate;
}
.tza-aurora > span:nth-child(3) {
    width: 30vmax; height: 30vmax; left: 30%; top: 40%;
    background: radial-gradient(circle, rgba(138, 21, 26, 0.6), transparent 70%);
    animation: tza-drift-c 30s ease-in-out infinite alternate;
}
.tza-scene-canvas { width: 100%; height: 100%; }
.tza-grain {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
    opacity: 0.07;
    mix-blend-mode: overlay;
}
.tza-vignette { background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 3, 3, 0.65) 100%); }

/* ── Crest with rotating halo ────────────────────────────────────────── */
.tza-crest { position: relative; isolation: isolate; border-radius: 50%; }
.tza-crest::before {
    content: "";
    position: absolute;
    inset: -10px;
    z-index: -1;
    border-radius: 50%;
    background: conic-gradient(from var(--tza-angle), transparent 0deg, #D19C2C 70deg, #fff3cf 110deg, transparent 180deg, #C52127 260deg, transparent 330deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
    animation: tza-spin 6s linear infinite;
}
.tza-crest::after {
    content: "";
    position: absolute;
    inset: -22px;
    z-index: -2;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(209, 156, 44, 0.38), transparent 70%);
    animation: tza-glow 4s ease-in-out infinite;
}
.tza-crest__disc {
    display: grid;
    place-items: center;
    width: 6rem;
    height: 6rem;
    padding: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 60px -10px rgba(197, 33, 39, 0.75), inset 0 -6px 14px rgba(0, 0, 0, 0.08);
}
.tza-crest__disc img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 1024px) {
    .tza-crest__disc { width: 9.5rem; height: 9.5rem; padding: 1.25rem; }
}

/* ── Sign-in layout ──────────────────────────────────────────────────── */
.tza-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
.tza-hero-pane {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
}
.tza-hero-pane__top { display: none; }
.tza-globe-anchor { display: flex; align-items: center; justify-content: center; }
.tza-hero-copy { position: relative; margin-top: 1.25rem; }
.tza-hero-copy > * { animation: tza-rise 0.9s var(--tza-ease) both; }
.tza-hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.tza-hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.tza-hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.tza-hero-copy__mobile { margin: 0; font-size: 1.25rem; font-weight: 700; }
.tza-hero-copy__tag {
    margin: 0.25rem 0 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--tza-gold);
}
.tza-display, .tza-hero-copy__lead { display: none; }
.tza-tiles { display: none; }

.tza-form-pane {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 1rem 2.5rem;
}

@media (min-width: 1024px) {
    .tza-layout { flex-direction: row; }
    .tza-hero-pane {
        position: sticky;
        top: 0;
        width: 50%;
        height: 100vh;
        height: 100dvh;
        align-items: stretch;
        padding: 2.5rem 3rem 3rem;
        text-align: left;
    }
    .tza-hero-pane__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
    .tza-globe-anchor { flex: 1; }
    .tza-crest-parallax { transform: translate3d(calc(var(--mx) * 18px), calc(var(--my) * 14px), 0); }
    .tza-hero-copy { margin-top: 0; }
    .tza-hero-copy__mobile, .tza-hero-copy__tag { display: none; }
    .tza-display {
        display: block;
        margin: 0;
        font-family: var(--tza-display);
        font-optical-sizing: auto;
        font-size: 3rem;
        font-weight: 600;
        line-height: 1.05;
        letter-spacing: -0.02em;
    }
    .tza-display em { font-weight: 500; }
    .tza-hero-copy__lead {
        display: block;
        max-width: 28rem;
        margin: 1rem 0 0;
        font-size: 0.9375rem;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.7);
    }
    .tza-form-pane { align-items: center; padding: 3rem 2rem; }
}
@media (min-width: 1280px) {
    .tza-display { font-size: 3.75rem; }
    .tza-tiles { display: block; position: absolute; inset: 0; pointer-events: none; perspective: 1100px; }
}
/* Phones held sideways: crest and name side by side in a slim band. */
@media (max-width: 1023px) and (max-height: 500px) {
    .tza-hero-pane { flex-direction: row; justify-content: center; gap: 1rem; padding: 1rem; text-align: left; }
    .tza-hero-copy { margin-top: 0; }
    .tza-crest__disc { width: 3.5rem; height: 3.5rem; padding: 0.4rem; }
}

.tza-toplink {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.tza-toplink:hover { color: #fff; }
.tza-toplink span { margin: 0 0.5rem; color: var(--tza-gold); }
.tza-clock {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    font-variant-numeric: tabular-nums;
}
.tza-clock b { font-weight: 600; color: #fff; }
.tza-clock i { width: 6px; height: 6px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px #34D399; }

.tza-shimmer {
    background: linear-gradient(100deg, #D19C2C 20%, #fff1c9 40%, #E8B94A 55%, #D19C2C 75%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    animation: tza-shimmer 6s ease-in-out infinite;
}

/* ── Floating 3D tiles ───────────────────────────────────────────────── */
.tza-tiles__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(calc(14deg + var(--my) * -7deg)) rotateY(calc(-20deg + var(--mx) * 10deg));
    transition: transform 0.9s var(--tza-ease);
}
.tza-tile-slot { position: absolute; transform-style: preserve-3d; }
.tza-tile {
    padding: 1rem;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
            backdrop-filter: blur(14px) saturate(1.3);
    animation: tza-float 7s ease-in-out infinite;
}
.tza-tile__head { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 600; }
.tza-tile__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.5);
}
.tza-tile__icon svg { width: 1.25rem; height: 1.25rem; }
.tza-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.75rem; }
.tza-skel { display: block; height: 0.375rem; border-radius: 999px; background: rgba(255, 255, 255, 0.25); }
.tza-tag { padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tza-tag--green { color: #A7F3D0; background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(52, 211, 153, 0.35); }
.tza-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; margin-top: 0.75rem; }
.tza-cal span { height: 0.75rem; border-radius: 0.2rem; background: rgba(255, 255, 255, 0.14); }
.tza-cal span.on { background: rgba(197, 33, 39, 0.85); }
.tza-cal span.gold { background: var(--tza-gold); }
.tza-bars { display: flex; align-items: flex-end; gap: 0.375rem; height: 3rem; margin-top: 1rem; }
.tza-bars span { flex: 1; border-radius: 0.25rem 0.25rem 0 0; background: linear-gradient(to top, rgba(176, 129, 34, 0.6), var(--tza-gold)); }
.tza-checks { margin-top: 0.75rem; display: grid; gap: 0.5rem; }
.tza-checks div { display: flex; align-items: center; gap: 0.5rem; }
.tza-checks svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; color: var(--tza-gold); }
.tza-progress { height: 0.5rem; margin-top: 1rem; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.15); }
.tza-progress span { display: block; width: 66%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tza-gold), var(--tza-red)); }

.tza-ico-red { color: #fff; background: linear-gradient(140deg, var(--tza-red-hi), var(--tza-red-lo)); }
.tza-ico-gold { color: #fff; background: linear-gradient(140deg, var(--tza-gold-hi), #B08122); }
.tza-ico-green { color: #fff; background: linear-gradient(140deg, #34D399, #059669); }
.tza-ico-glass { color: #fff; background: rgba(255, 255, 255, 0.15); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.tza-ico-mix { color: #fff; background: linear-gradient(140deg, var(--tza-red), var(--tza-gold)); }

/* ── The card ────────────────────────────────────────────────────────── */
.tza-card-wrap { width: 100%; max-width: 28rem; }
.tza-card {
    --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
    position: relative;
    padding: 1.75rem 1.5rem;
    border-radius: 28px;
    color: var(--tza-ink);
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
            backdrop-filter: blur(28px) saturate(1.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 6px rgba(0, 0, 0, 0.12),
        0 50px 100px -30px rgba(0, 0, 0, 0.75),
        0 0 80px -20px rgba(197, 33, 39, 0.45);
    transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.5s var(--tza-ease);
}
.tza-card.is-tilting { transition: transform 0.1s linear; }
@media (min-width: 640px) { .tza-card { padding: 2.25rem; } }
/* Animated gradient rim, masked to a ring so it never tints the face. */
.tza-card::before {
    content: "";
    position: absolute;
    inset: -1.5px;
    padding: 1.5px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from var(--tza-angle), #C52127, #D19C2C, rgba(255, 255, 255, 0.5), #8A151A, #C52127);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: tza-spin 9s linear infinite;
}
.tza-card__glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(500px circle at var(--gx) var(--gy), rgba(209, 156, 44, 0.13), transparent 45%);
}
.tza-card__body { position: relative; z-index: 1; }
.tza-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.5rem; }
.tza-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--tza-red-lo);
    background: #FDF3F3;
}
.tza-pill__dot { position: relative; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--tza-gold); }
.tza-pill__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--tza-gold);
    animation: tza-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.tza-card__home { font-size: 0.75rem; font-weight: 600; color: var(--tza-muted); text-decoration: none; transition: color 0.2s; }
.tza-card__home:hover { color: var(--tza-red); }

.tza-card-in { animation: tza-card-in 1s var(--tza-ease) backwards; }

.tza-card__head { margin-bottom: 1.5rem; }
.tza-badge {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(140deg, var(--tza-red-hi), var(--tza-red-lo));
    box-shadow: 0 14px 30px -10px rgba(197, 33, 39, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.tza-badge svg { width: 1.4rem; height: 1.4rem; }
.tza-badge--gold { background: linear-gradient(140deg, var(--tza-gold-hi), var(--tza-gold)); box-shadow: 0 14px 30px -10px rgba(209, 156, 44, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.tza-eyebrow { margin: 0 0 0.375rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tza-red); }
.tza-title {
    margin: 0;
    font-family: var(--tza-display);
    font-optical-sizing: auto;
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--tza-ink);
}
.tza-title em { font-weight: 500; color: var(--tza-red); }
.tza-sub { margin: 0.5rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--tza-muted); }

/* Fields */
.tza-stack > * + * { margin-top: 1.25rem; }
.tza-label { display: block; margin-bottom: 0.4rem; font-size: 0.8125rem; font-weight: 600; color: var(--tza-ink); }
/* Label with a small action on the right (Password / Forgot password?) */
.tza-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.4rem; }
.tza-label-row .tza-label { margin-bottom: 0; }
.tza-forgot { font-size: 0.75rem; font-weight: 600; color: var(--tza-red); text-decoration: none; white-space: nowrap; border-radius: 4px; transition: color 0.2s; }
.tza-forgot:hover { color: var(--tza-red-lo); text-decoration: underline; text-underline-offset: 3px; }
.tza-forgot:focus-visible { outline: 3px solid rgba(209, 156, 44, 0.8); outline-offset: 2px; }
.tza-input { position: relative; }
.tza-input__icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: -0.5625rem;
    color: #A39696;
    pointer-events: none;
    transition: color 0.2s, transform 0.3s var(--tza-ease);
}
.tza-input:focus-within .tza-input__icon { color: var(--tza-red); transform: scale(1.12); }
.tza-card .tz-field {
    width: 100%;
    height: 3.125rem;
    padding: 0 0.875rem;
    font-size: 0.9375rem;
    color: var(--tza-ink);
    background: #FBF9F8;
    border: 1.5px solid var(--tza-line);
    border-radius: 0.875rem;
    box-shadow: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.25s, background-color 0.2s;
}
.tza-card .tza-input .tz-field { padding-left: 2.75rem; }
.tza-card .tza-input--action .tz-field { padding-right: 3rem; }
.tza-card .tz-field::placeholder { color: #B5AAAA; }
.tza-card .tz-field:hover:not(:disabled) { border-color: #D3C6C5; }
.tza-card .tz-field:focus {
    background: #fff;
    border-color: var(--tza-red);
    box-shadow: 0 0 0 4px rgba(197, 33, 39, 0.12), 0 8px 20px -10px rgba(197, 33, 39, 0.45);
}
.tza-card .tz-field:disabled { background: #F3EFEE; cursor: not-allowed; }
.tza-eye {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 3rem;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    color: #A39696;
    cursor: pointer;
    transition: color 0.2s;
}
.tza-eye:hover:not(:disabled) { color: var(--tza-red); }
.tza-eye:disabled { cursor: not-allowed; opacity: 0.5; }
.tza-eye svg { width: 1.25rem; height: 1.25rem; }
.tza-error { margin: 0.5rem 0 0; font-size: 0.8125rem; font-weight: 550; color: var(--tza-red-lo); animation: tza-shake 0.45s var(--tza-ease); }
.tza-hint { margin: 0.5rem 0 0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--tza-muted); }
.tza-hint__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tza-gold); animation: tza-blink 1s ease-in-out infinite; }

/* Buttons */
.tza-btn {
    position: relative;
    display: flex;
    width: 100%;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    overflow: hidden;
    border: 0;
    border-radius: 0.875rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--tza-red-hi) 0%, var(--tza-red) 45%, var(--tza-red-lo) 100%);
    box-shadow: 0 10px 24px -10px rgba(197, 33, 39, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.2s, box-shadow 0.25s, filter 0.2s;
}
.tza-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--tza-ease);
}
.tza-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(197, 33, 39, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.tza-btn:hover:not(:disabled)::after { transform: translateX(120%); }
.tza-btn:active:not(:disabled) { transform: translateY(0); filter: brightness(0.95); }
.tza-btn:disabled { cursor: not-allowed; opacity: 0.7; }
.tza-btn svg { width: 1.125rem; height: 1.125rem; }
.tza-btn__arrow { transition: transform 0.3s var(--tza-ease); }
.tza-btn:hover .tza-btn__arrow { transform: translateX(4px); }
.tza-btn:focus-visible, .tza-btn-ghost:focus-visible, .tza-service-btn:focus-visible { outline: 3px solid rgba(209, 156, 44, 0.8); outline-offset: 3px; }

.tza-btn-ghost {
    display: flex;
    width: 100%;
    height: 3.125rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: 0.875rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tza-ink);
    text-decoration: none;
    background: #fff;
    border: 1.5px solid var(--tza-line);
    cursor: pointer;
    transition: transform 0.25s var(--tza-ease), border-color 0.2s, box-shadow 0.25s, color 0.2s;
}
.tza-btn-ghost:hover:not(:disabled) { transform: translateY(-2px); border-color: #F6C7C9; color: var(--tza-red-lo); box-shadow: 0 12px 24px -16px rgba(30, 26, 26, 0.45); }
.tza-btn-ghost:disabled { opacity: 0.6; cursor: not-allowed; }
.tza-btn-ghost svg { width: 1.125rem; height: 1.125rem; }
.tza-btn-ghost__back { transition: transform 0.3s var(--tza-ease); }
.tza-btn-ghost:hover .tza-btn-ghost__back, .tza-btn:hover .tza-btn-ghost__back { transform: translateX(-4px); }
.tza-spin { width: 1.125rem; height: 1.125rem; animation: tza-rotate 0.8s linear infinite; }

.tza-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    font-size: 0.75rem;
    color: #A39696;
}
.tza-divider::before, .tza-divider::after { content: ""; flex: 1; height: 1px; background: var(--tza-line); }


.tza-notice { display: flex; gap: 0.75rem; padding: 0.875rem 1rem; border-radius: 0.875rem; font-size: 0.875rem; font-weight: 550; line-height: 1.55; animation: tza-rise 0.6s var(--tza-ease) both; }
.tza-notice svg { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: 1px; }
.tza-notice--gold { background: #FDF8EE; border: 1px solid rgba(209, 156, 44, 0.45); color: #6B4E12; }
.tza-notice--green { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }

.tza-success { text-align: center; padding: 0.25rem 0; }
.tza-success__ring {
    display: grid; place-items: center;
    width: 5.25rem; height: 5.25rem;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: radial-gradient(circle, #ECFDF5 0%, #D1FAE5 100%);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.08), 0 20px 40px -18px rgba(5, 150, 105, 0.7);
    animation: tza-pop 0.7s var(--tza-ease) both;
}
.tza-success__ring svg { width: 2.5rem; height: 2.5rem; color: #059669; }
.tza-success__ring path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tza-draw 0.6s 0.35s var(--tza-ease) forwards; }

.tza-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 0.75rem; }
.tza-meter span { height: 6px; border-radius: 99px; background: #EFE8E7; transition: background-color 0.35s, transform 0.35s var(--tza-ease); }
.tza-meter span.on { transform: scaleY(1.25); }
.tza-meter__label { margin: 0.5rem 0 0; font-size: 0.75rem; font-weight: 650; }
.tza-rules { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.tza-rules li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--tza-muted); transition: color 0.25s; }
.tza-rules li.ok { color: #047857; font-weight: 600; }
.tza-rules svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.tza-sep { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--tza-line); }
.tza-sep p { margin: 0 0 0.6rem; font-size: 0.85rem; color: var(--tza-muted); }

.tza-services-block { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--tza-line); }
.tza-services-block__label { margin: 0; text-align: center; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tza-muted); }
.tza-services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.75rem; }
.tza-service-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tza-ink);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--tza-line);
    transition: transform 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.tza-service-btn:hover { transform: translateY(-2px); border-color: #F6C7C9; color: var(--tza-red); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.3); }
.tza-service-btn svg { width: 1rem; height: 1rem; color: var(--tza-red); transition: transform 0.2s; }
.tza-service-btn:hover svg { transform: scale(1.1); }
.tza-copy { margin: 1.5rem 0 0; text-align: center; font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }

/* ── Landing page ────────────────────────────────────────────────────── */
.tza-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; transition: background-color 0.35s, box-shadow 0.35s; }
.tza-nav.is-scrolled {
    background: rgba(12, 8, 8, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
            backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tza-nav__inner { max-width: 1280px; margin: 0 auto; padding: 0.875rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tza-logo { display: flex; align-items: center; gap: 0.75rem; color: #fff; text-decoration: none; }
.tza-logo img { width: 2.5rem; height: 2.5rem; padding: 0.2rem; border-radius: 50%; background: #fff; object-fit: contain; }
.tza-logo__name { display: block; font-size: 0.95rem; font-weight: 700; }
.tza-logo__tag { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--tza-gold); }
.tza-nav__links { display: none; gap: 1.75rem; }
.tza-nav__links a { font-size: 0.875rem; font-weight: 500; color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.2s; }
.tza-nav__links a:hover { color: #fff; }
@media (min-width: 900px) { .tza-nav__links { display: flex; } .tza-nav__inner { padding: 1.1rem 2.5rem; } }

.tza-pill-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.625rem;
    padding: 0 1.25rem;
    overflow: hidden;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--tza-red-hi), var(--tza-red-lo));
    box-shadow: 0 10px 24px -10px rgba(197, 33, 39, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.25s var(--tza-ease), box-shadow 0.25s, background-color 0.2s;
}
.tza-pill-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(197, 33, 39, 1); }
.tza-pill-btn svg { width: 1rem; height: 1rem; transition: transform 0.3s var(--tza-ease); }
.tza-pill-btn:hover svg { transform: translateX(3px); }
.tza-pill-btn--lg { height: 3.5rem; padding: 0 1.9rem; font-size: 1rem; }
.tza-pill-btn--glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}
.tza-pill-btn--glass:hover { background: rgba(255, 255, 255, 0.15); box-shadow: none; }

.tza-main { position: relative; z-index: 1; }
.tza-hero {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 6.5rem 1rem 4rem;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
}
@media (min-width: 1024px) { .tza-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 7rem 2.5rem 5rem; } }
.tza-hero__kicker {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.4rem 0.9rem 0.4rem 0.45rem;
    border-radius: 999px;
    font-size: 0.8rem; font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}
.tza-hero__kicker b {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--tza-night);
    background: linear-gradient(135deg, var(--tza-gold-hi), var(--tza-gold));
}
.tza-hero__title {
    margin: 1.4rem 0 0;
    font-family: var(--tza-display);
    font-optical-sizing: auto;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.025em;
}
.tza-hero__title em { font-weight: 500; }
.tza-hero__lead { max-width: 34rem; margin: 1.4rem 0 0; font-size: clamp(1rem, 1.5vw, 1.1rem); line-height: 1.7; color: rgba(255, 255, 255, 0.72); }
.tza-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.1rem; }
.tza-hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 2.1rem; font-size: 0.84rem; color: rgba(255, 255, 255, 0.6); }
.tza-hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.tza-hero__meta svg { width: 1rem; height: 1rem; color: var(--tza-gold-hi); }

.tza-scene { position: relative; height: 26rem; perspective: 1100px; }
@media (min-width: 640px) { .tza-scene { height: 32rem; } }
.tza-scene__world {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    transform-style: preserve-3d;
    transform: rotateX(calc(var(--my) * -8deg)) rotateY(calc(var(--mx) * 12deg));
    transition: transform 0.9s var(--tza-ease);
}
.tza-float {
    position: absolute;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    border-radius: 1rem;
    color: #fff;
    white-space: nowrap;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)), rgba(24, 12, 13, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
            backdrop-filter: blur(14px) saturate(1.3);
    animation: tza-float 7s ease-in-out infinite;
}
.tza-float__icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.7rem; flex-shrink: 0; }
.tza-float__icon svg { width: 1.1rem; height: 1.1rem; }
.tza-float strong { display: block; font-size: 0.82rem; font-weight: 600; }
.tza-float small { display: block; margin-top: 2px; font-size: 0.72rem; color: rgba(255, 255, 255, 0.65); }
.tza-float-slot { position: absolute; transform-style: preserve-3d; }
.tza-float-slot--1 { top: 4%; left: 2%; transform: translateZ(90px); }
.tza-float-slot--2 { top: 42%; right: 0; transform: translateZ(140px); }
.tza-float-slot--3 { bottom: 4%; left: 10%; transform: translateZ(60px); }
.tza-float-slot--2 .tza-float { animation-delay: -2.4s; }
.tza-float-slot--3 .tza-float { animation-delay: -4.6s; }
@media (max-width: 480px) {
    .tza-float { padding: 0.55rem 0.75rem 0.55rem 0.55rem; }
    .tza-float__icon { width: 1.9rem; height: 1.9rem; }
    .tza-float small { display: none; }
}

.tza-scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 14px; }
.tza-scroll-cue::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: tza-scroll 1.8s var(--tza-ease) infinite; }
@media (max-height: 700px) { .tza-scroll-cue { display: none; } }

.tza-section { max-width: 1280px; margin: 0 auto; padding: 5rem 1rem; }
@media (min-width: 900px) { .tza-section { padding: 7rem 2.5rem; } }
.tza-section__head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.tza-section__eyebrow { margin: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--tza-gold); }
.tza-section__title { margin: 0.9rem 0 0; font-family: var(--tza-display); font-optical-sizing: auto; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.tza-section__title em { font-weight: 500; }
.tza-section__lead { margin: 1rem 0 0; font-size: 1rem; line-height: 1.7; color: rgba(255, 255, 255, 0.68); }

.tza-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 640px) { .tza-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tza-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.tza-feature {
    --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
    position: relative;
    overflow: hidden;
    padding: 1.6rem 1.4rem;
    border-radius: 1.4rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.5s var(--tza-ease), border-color 0.3s;
}
.tza-feature.is-tilting { transition: transform 0.1s linear, border-color 0.3s; border-color: rgba(232, 185, 74, 0.45); }
.tza-feature::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    background: radial-gradient(300px circle at var(--gx) var(--gy), rgba(209, 156, 44, 0.2), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.tza-feature.is-tilting::after { opacity: 1; }
.tza-feature__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.9rem; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.tza-feature__icon svg { width: 1.4rem; height: 1.4rem; }
.tza-feature h3 { margin: 1.1rem 0 0; font-size: 1.05rem; font-weight: 650; }
.tza-feature p { margin: 0.5rem 0 0; font-size: 0.875rem; line-height: 1.6; color: rgba(255, 255, 255, 0.64); }

.tza-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; counter-reset: step; }
@media (min-width: 900px) { .tza-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.tza-step { position: relative; padding: 1.75rem 1.5rem; border-radius: 1.4rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tza-step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    font-family: var(--tza-display);
    font-size: 2.75rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1;
    background: linear-gradient(135deg, var(--tza-cream), var(--tza-gold), var(--tza-red-hi));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.tza-step h3 { margin: 1rem 0 0; font-size: 1.05rem; font-weight: 650; }
.tza-step p { margin: 0.5rem 0 0; font-size: 0.9rem; line-height: 1.6; color: rgba(255, 255, 255, 0.64); }

.tza-cta {
    position: relative;
    overflow: hidden;
    padding: 3rem 1.5rem;
    border-radius: 2rem;
    text-align: center;
    background:
        radial-gradient(80% 120% at 0% 0%, rgba(214, 42, 48, 0.5), transparent 60%),
        radial-gradient(80% 120% at 100% 100%, rgba(209, 156, 44, 0.4), transparent 60%),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
@media (min-width: 900px) { .tza-cta { padding: 4.5rem 3rem; } }
.tza-cta .tza-hero__cta { justify-content: center; }
.tza-services { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.tza-service {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.84rem; font-weight: 600;
    color: #fff; text-decoration: none;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.3s var(--tza-ease), background-color 0.2s, border-color 0.2s;
}
.tza-service:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.14); border-color: rgba(232, 185, 74, 0.6); }
.tza-service svg { width: 1rem; height: 1rem; color: var(--tza-gold-hi); }
.tza-below__label { margin: 2.25rem 0 0; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }

.tza-footer {
    position: relative; z-index: 1;
    max-width: 1280px; margin: 0 auto;
    padding: 2rem 1rem 2.5rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem; color: rgba(255, 255, 255, 0.5);
}
@media (min-width: 900px) { .tza-footer { padding: 2rem 2.5rem 2.75rem; } }

/* ── Entrance + scroll reveal ────────────────────────────────────────── */
.tza-in { animation: tza-rise 0.9s var(--tza-ease) both; animation-delay: var(--d, 0s); }
.tza-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--tza-ease), transform 0.9s var(--tza-ease); transition-delay: var(--d, 0s); }
.tza-js [data-reveal].is-visible { opacity: 1; transform: none; }
.tza-js .tza-feature[data-reveal].is-visible { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }

/* ── Keyframes ───────────────────────────────────────────────────────── */
@keyframes tza-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* "backwards", not "both": a filled animation would pin transform. */
@keyframes tza-card-in {
    from { opacity: 0; transform: perspective(1400px) translate3d(0, 40px, -80px) rotateX(14deg); }
    to   { opacity: 1; transform: none; }
}
@keyframes tza-kenburns { from { transform: scale(1.06); } to { transform: scale(1.2) translate3d(-2%, -1.5%, 0); } }
@keyframes tza-drift-a { to { transform: translate3d(12vmax, 8vmax, 0) scale(1.15); } }
@keyframes tza-drift-b { to { transform: translate3d(-10vmax, -12vmax, 0) scale(1.1); } }
@keyframes tza-drift-c { to { transform: translate3d(-14vmax, -6vmax, 0) scale(0.85); } }
@keyframes tza-spin { to { --tza-angle: 360deg; } }
@keyframes tza-glow { 50% { opacity: 0.45; transform: scale(1.08); } }
@keyframes tza-shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
@keyframes tza-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -14px, 0); } }
@keyframes tza-ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes tza-shake { 0% { opacity: 0; transform: translateX(-6px); } 40% { transform: translateX(4px); } 70% { transform: translateX(-2px); } 100% { opacity: 1; transform: none; } }
@keyframes tza-blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes tza-rotate { to { transform: rotate(360deg); } }
@keyframes tza-pop { 0% { opacity: 0; transform: scale(0.4); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes tza-draw { to { stroke-dashoffset: 0; } }
@keyframes tza-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

[x-cloak] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .tza-body *, .tza-body *::before, .tza-body *::after { animation: none !important; transition: none !important; }
    .tza-js [data-reveal] { opacity: 1; transform: none; }
    .tza-success__ring path { stroke-dashoffset: 0; }
}
