﻿/* =========================
   CSI â€” Stable Layout Build (SURGICAL CLEAN)
   ========================= */

:root {
    --bg: #050508;
    --bg2: #07070b;

    /* Chrome (same everywhere) */
    --silver-hi: rgba(238, 244, 251, .95);
    --silver-mid: rgba(185, 199, 216, .90);
    --silver-deep: rgba(48, 66, 82, .90);
    --silver-top2: rgba(238, 244, 251, .78);

    /* Purple */
    --accent: rgba(205, 183, 255, .75);
    --accent-soft: rgba(205, 183, 255, .25);

    --text: rgba(217, 221, 230, .86);
    --muted: rgba(217, 221, 230, .72);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: auto;
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(1100px 700px at 50% 18%, rgba(40, 20, 70, .22), rgba(0, 0, 0, 0) 60%),
        radial-gradient(900px 500px at 50% 65%, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 70%),
        linear-gradient(180deg, var(--bg), var(--bg2));
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    overflow-x: hidden;
}

/* Keep natural flow, no clipping */
.hero {
    min-height: 100svh;
    padding: 72px 18px 140px;
    display: block;
}

.stack {
    width: min(980px, 94vw);
    margin: 0 auto;
    text-align: center;
}

/* ===== Shared chrome treatment (apply per element, not container) ===== */
.chrome-text {
    background: linear-gradient(180deg,
            var(--silver-hi) 0%,
            var(--silver-mid) 26%,
            var(--silver-deep) 62%,
            var(--silver-top2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow:
        0 2px 0 rgba(0, 0, 0, .55),
        0 18px 45px rgba(0, 0, 0, .72),
        0 0 14px rgba(139, 199, 255, .10);
}

/* ===== Monogram (locked geometry) ===== */
.monogram {
    position: relative;
    width: clamp(240px, 30vw, 360px);
    aspect-ratio: 1 / 0.86;
    margin: 0 auto clamp(28px, 4vw, 56px);
    user-select: none;
}

/* allow letters to hang outside triangle */
.monogram {
    overflow: visible;
}

/* Purple triangle */
.monogram::before {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: linear-gradient(180deg, rgba(120, 70, 200, .40), rgba(70, 30, 120, .22));
    border: 1px solid rgba(185, 199, 216, 0.18);
    filter:
        drop-shadow(0 10px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 14px rgba(160, 120, 255, .18));
    pointer-events: none;
}

/* Grid places letters into corners reliably */
.mono-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    padding: 16px 26px 28px;
    /* more bottom padding to bias letters downward */
    place-items: center;
    z-index: 1;
}

.mono-letter {
    font-family: Cinzel, "Times New Roman", serif;
    font-weight: 600;
    font-size: clamp(72px, 8vw, 124px);
    letter-spacing: .06em;
    line-height: 1;

    background: linear-gradient(180deg,
            var(--silver-hi) 0%,
            var(--silver-mid) 26%,
            var(--silver-deep) 62%,
            var(--silver-top2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow:
        0 2px 0 rgba(0, 0, 0, .55),
        0 18px 45px rgba(0, 0, 0, .72),
        2px 2px 0 rgba(160, 120, 255, .14),
        4px 6px 18px rgba(160, 120, 255, .16);
}

/* C top-center, slightly â€œkissingâ€ the apex */
.mono-c {
    grid-column: 1 / 3;
    grid-row: 1;
    transform: translateY(-8px);
}

/* S bottom-left â€” pushed DOWN + OUT */
.mono-s {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    align-self: end;
    transform: translate(-20px, 36px);
}

/* I bottom-right â€” pushed DOWN + OUT */
.mono-i {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: end;
    transform: translate(20px, 36px);
}

/* ===== Title ===== */
.title {
    margin: 0 auto 8px;
    font-family: Cinzel, "Times New Roman", serif;
    font-weight: 600;
    text-transform: uppercase;
}

/* Container only controls layout; gradient is applied per-word */
.wordmark {
    display: block;
    text-align: center;
    font-size: clamp(42px, 5.2vw, 72px);
    letter-spacing: .12em;
    line-height: 1.05;
    margin: 0 auto;
}

.word {
    display: inline-block;
    margin: 0 .19em;
    /* small breathing room so wraps donâ€™t â€œjamâ€ */
    background: linear-gradient(180deg,
            var(--silver-hi) 0%,
            var(--silver-mid) 26%,
            var(--silver-deep) 62%,
            var(--silver-top2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow:
        0 2px 0 rgba(0, 0, 0, .55),
        0 18px 45px rgba(0, 0, 0, .72),
        0 0 14px rgba(139, 199, 255, .10);
}

.nowrap {
    white-space: nowrap;
}

/* keeps SEQUENCINGâ„¢ together */

.title-sub {
    display: block;
    margin-top: 12px;
    font-size: clamp(34px, 4.2vw, 58px);
    letter-spacing: .22em;

    background: linear-gradient(180deg,
            var(--silver-hi) 0%,
            var(--silver-mid) 26%,
            var(--silver-deep) 62%,
            var(--silver-top2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow:
        0 2px 0 rgba(0, 0, 0, .55),
        0 18px 45px rgba(0, 0, 0, .72);
}

/* â„¢ chrome + tight */
.tm {
    display: inline-block;
    font-size: .44em;
    letter-spacing: 0;
    margin-left: .12em;
    vertical-align: super;

    background: linear-gradient(180deg,
            var(--silver-hi) 0%,
            var(--silver-mid) 26%,
            var(--silver-deep) 62%,
            var(--silver-top2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow:
        0 1px 0 rgba(0, 0, 0, .55),
        0 10px 22px rgba(0, 0, 0, .60);
}

/* ===== Tagline + Copy ===== */
.tagline {
    margin: 20px auto 14px;
    font-size: 12px;
    letter-spacing: .28em;
    color: rgba(217, 221, 230, .75);
    text-transform: uppercase;
}

.subcopy {
    margin: 0 auto 26px;
    max-width: 820px;
    color: rgba(217, 221, 230, .78);
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.65;
}

/* ===== CTA Pills ===== */
.cta-row {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px auto 18px;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 26px;
    max-width: 92vw;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .25));
    box-shadow:
        0 14px 40px rgba(0, 0, 0, .55),
        inset 0 1px 0 rgba(255, 255, 255, .08);

    text-decoration: none;
    color: rgba(238, 244, 251, .86);
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    letter-spacing: .20em;
    text-transform: uppercase;
    white-space: nowrap;

    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.cta:hover {
    border-color: var(--accent);
    box-shadow:
        0 18px 55px rgba(0, 0, 0, .62),
        0 0 0 3px var(--accent-soft),
        0 0 18px rgba(160, 120, 255, .18),
        inset 0 1px 0 rgba(255, 255, 255, .10);
    transform: translateY(-1px);
}

.cta:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(205, 183, 255, .35),
        0 18px 55px rgba(0, 0, 0, .62);
}

/* ===== Footer ===== */
.footer {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(217, 221, 230, .55);
    padding-bottom: 10px;
}

/* ===== Small screens ===== */
@media (max-width: 520px) {
    .hero {
        padding: 54px 14px 120px;
    }

    /* THIS is what stops the â€œmissing last lettersâ€ problem */
    .wordmark {
        letter-spacing: .08em;
        /* reduce spacing to prevent overflow */
        font-size: clamp(34px, 7.6vw, 46px);
    }

    .title-sub {
        letter-spacing: .14em;
        /* reduce spacing to prevent overflow */
        font-size: clamp(26px, 6.2vw, 34px);
    }

    /* Make email fit on S22-class widths */
    .cta {
        font-size: 12.5px;
        letter-spacing: .08em;
        padding: 16px 18px;
    }

    .monogram {
        width: min(86vw, 360px);
    }
}