/* ============================================================
   Numen Designs — Coming Soon page styles
   ============================================================ */

:root {
    --nd-ink: #0c110d;
    --nd-accent: #049a49;
    --nd-bg: #f6f4ee;
    --nd-muted: rgba(12, 17, 13, 0.6);
    --nd-line: rgba(12, 17, 13, 0.12);
    --nd-font-display: "helvetica-neue-lt-pro-cond", "Helvetica Neue", Arial, sans-serif;
    --nd-font-sans: "helvetica-neue-lt-pro", "Helvetica Neue", Arial, sans-serif;
}

html, body { height: 100%; }

body.home {
    background: var(--nd-bg);
    color: var(--nd-ink);
    overflow-x: hidden;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------
   Layout shell
------------------------------------------------------------ */
.nd-coming {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: clamp(20px, 3vw, 36px);
    max-width: 1400px;
    margin: 0 auto;
    isolation: isolate;
}

/* ------------------------------------------------------------
   Decorative orb
------------------------------------------------------------ */
.nd-orb {
    position: fixed;
    top: 50%; left: 50%;
    width: clamp(420px, 70vmin, 900px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
}

.nd-orb__core {
    position: absolute;
    inset: 35%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--nd-accent) 0%, rgba(4,154,73,0.35) 45%, transparent 70%);
    filter: blur(40px);
    animation: nd-pulse 6s ease-in-out infinite;
}

.nd-orb__ring {
    position: absolute;
    inset: 0;
    border: 1px solid var(--nd-accent);
    border-radius: 50%;
    opacity: 0.18;
}

.nd-orb__ring--1 { animation: nd-spin 40s linear infinite; }
.nd-orb__ring--2 { inset: 8%; border-color: var(--nd-ink); opacity: 0.08; animation: nd-spin 60s linear infinite reverse; }
.nd-orb__ring--3 { inset: 16%; border-style: dashed; opacity: 0.12; animation: nd-spin 90s linear infinite; }

@keyframes nd-spin {
    to { transform: rotate(360deg); }
}
@keyframes nd-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.08); opacity: 0.7; }
}

/* Film grain */
.nd-grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
    background-size: 200px 200px;
}

/* ------------------------------------------------------------
   Top bar
------------------------------------------------------------ */
.nd-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
}

.nd-logo img {
    height: clamp(44px, 4.4vw, 56px);
    width: auto;
    display: block;
}

.nd-status {
    font-family: var(--nd-font-sans);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--nd-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--nd-line);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.35);
}

.nd-status__dot {
    width: 8px; height: 8px;
    background: var(--nd-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(4, 154, 73, 0.6);
    animation: nd-ping 2s ease-out infinite;
}

@keyframes nd-ping {
    0%   { box-shadow: 0 0 0 0 rgba(4, 154, 73, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(4, 154, 73, 0); }
    100% { box-shadow: 0 0 0 0 rgba(4, 154, 73, 0); }
}

/* ------------------------------------------------------------
   Hero
------------------------------------------------------------ */
.nd-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: clamp(20px, 2.4vw, 32px);
    padding: clamp(20px, 4vw, 60px) 0;
}

.nd-eyebrow {
    font-family: var(--nd-font-sans);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--nd-muted);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nd-eyebrow__mark {
    width: 28px;
    height: 1px;
    background: var(--nd-accent);
    display: inline-block;
}

.nd-headline {
    font-family: var(--nd-font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(40px, 6.6vw, 70px);
    line-height: 0.95;
    letter-spacing: -0.005em;
    margin: 0;
    max-width: none;
    text-wrap: balance;
    color: var(--nd-ink);
}

.nd-headline span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: nd-rise 0.7s ease-out forwards;
}

.nd-headline span:nth-child(1) { animation-delay: 0.05s; }
.nd-headline span:nth-child(2) { animation-delay: 0.15s; }
.nd-headline span:nth-child(3) { animation-delay: 0.25s; }
.nd-headline span:nth-child(4) { animation-delay: 0.35s; }
.nd-headline span:nth-child(5) { animation-delay: 0.45s; }
.nd-headline span:nth-child(6) { animation-delay: 0.55s; }

.nd-headline__accent {
    font-family: var(--nd-font-sans);
    font-weight: 700;
    font-style: italic;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--nd-accent);
}

@keyframes nd-rise {
    to { opacity: 1; transform: translateY(0); }
}

.nd-sub {
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.6;
    color: var(--nd-muted);
    max-width: 56ch;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   Countdown — minimalist
------------------------------------------------------------ */
.nd-countdown {
    display: inline-flex;
    align-items: flex-end;
    gap: clamp(18px, 3vw, 36px);
    margin-top: 4px;
}

.nd-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 64px;
}

.nd-count__num {
    font-family: var(--nd-font-display);
    font-weight: 700;
    font-size: clamp(44px, 6.4vw, 80px);
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--nd-ink);
    opacity: 0.55;
    font-variant-numeric: tabular-nums;
    display: inline-block;
}

.nd-count__label {
    font-family: var(--nd-font-sans);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--nd-muted);
}

.nd-count__divider {
    align-self: stretch;
    width: 1px;
    margin: 4px 0 18px;
    background: var(--nd-line);
}

/* Per-digit tick animation */
.nd-count.is-tick .nd-count__num {
    animation: nd-tick 0.4s ease-out;
}

@keyframes nd-tick {
    0%   { transform: translateY(0)    scale(1);    opacity: 1;   }
    40%  { transform: translateY(-4px) scale(1.02); opacity: 0.5; }
    100% { transform: translateY(0)    scale(1);    opacity: 1;   }
}

/* ------------------------------------------------------------
   Notify form
------------------------------------------------------------ */
.nd-notify {
    margin-top: 16px;
    width: min(540px, 100%);
}

.nd-notify__heading {
    font-size: 14px;
    color: var(--nd-muted);
    margin: 0 0 12px;
}

.nd-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--nd-line);
    box-shadow: 0 20px 40px -20px rgba(12,17,13,0.2);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nd-form:focus-within {
    box-shadow: 0 30px 50px -20px rgba(4,154,73,0.35);
    transform: translateY(-2px);
}

.nd-form__field {
    flex: 1;
    display: flex;
}

.nd-form__field input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--nd-ink);
    font-family: var(--nd-font-sans);
    font-weight: 400;
    outline: none;
}

.nd-form__field input::placeholder {
    color: rgba(12,17,13,0.4);
}

.nd-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    background: var(--nd-ink);
    color: #fff;
    font-family: var(--nd-font-sans);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nd-btn:hover { background: var(--nd-accent); transform: translateX(2px); }
.nd-btn svg { transition: transform 0.2s ease; }
.nd-btn:hover svg { transform: translateX(2px); }

.nd-form__msg {
    position: absolute;
    top: calc(100% + 10px);
    left: 18px;
    right: 18px;
    margin: 0;
    font-size: 13px;
    color: var(--nd-accent);
    text-align: left;
    pointer-events: none;
}

.nd-form__msg:empty { display: none; }
.nd-form__msg.is-error { color: #c0392b; }

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */
.nd-foot {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--nd-line);
    margin-top: 24px;
}

.nd-foot__left,
.nd-foot__note { font-family: var(--nd-font-sans); font-weight: 400; font-size: 12px; letter-spacing: 0.06em; color: var(--nd-muted); }
.nd-foot__note { text-align: right; margin: 0; }

.nd-foot__contact {
    color: var(--nd-ink);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.nd-foot__contact:hover { color: var(--nd-accent); border-color: var(--nd-accent); }

.nd-social {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    justify-content: center;
}
.nd-social a {
    font-family: var(--nd-font-sans);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nd-ink);
    position: relative;
    padding-bottom: 2px;
}
.nd-social a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--nd-accent);
    transition: width 0.25s ease;
}
.nd-social a:hover { color: var(--nd-accent); }
.nd-social a:hover::after { width: 100%; }

/* ------------------------------------------------------------
   Responsive — tablet & below
------------------------------------------------------------ */
@media (max-width: 900px) {
    .nd-orb { width: clamp(360px, 90vmin, 700px); opacity: 0.4; }
}

@media (max-width: 720px) {
    .nd-coming { padding: 16px; }

    /* Top bar */
    .nd-topbar {
        padding-bottom: 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    .nd-logo img { height: 40px; }
    .nd-status {
        font-size: 10px;
        padding: 6px 10px;
        letter-spacing: 0.16em;
    }

    /* Hero spacing */
    .nd-hero {
        padding: 12px 0;
        gap: 18px;
    }

    /* Headline — scale down so each line fits the viewport */
    .nd-headline {
        font-size: clamp(30px, 7.2vw, 42px);
        line-height: 1;
    }

    /* Eyebrow */
    .nd-eyebrow {
        font-size: 10px;
        letter-spacing: 0.2em;
    }
    .nd-eyebrow__mark { width: 18px; }

    /* Sub paragraph */
    .nd-sub { font-size: 14px; line-height: 1.55; }

    /* Countdown */
    .nd-countdown { gap: clamp(12px, 4vw, 24px); }
    .nd-count { min-width: 48px; gap: 4px; }
    .nd-count__num { font-size: clamp(36px, 9vw, 56px); }
    .nd-count__label { font-size: 9px; letter-spacing: 0.18em; }
    .nd-count__divider { margin: 4px 0 14px; }

    /* Notify form — stack vertically */
    .nd-notify { margin-top: 8px; }
    .nd-notify__heading { font-size: 13px; }

    .nd-form {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
        padding: 8px;
        gap: 6px;
    }
    .nd-form__field input {
        padding: 14px 18px;
        text-align: center;
        font-size: 15px;
    }
    .nd-btn {
        justify-content: center;
        padding: 14px 20px;
        border-radius: 999px;
        width: 100%;
        min-height: 48px;
    }

    /* Notify message: flow inline below the form instead of absolute */
    .nd-form__msg {
        position: static;
        left: auto;
        right: auto;
        margin-top: 12px;
        text-align: center;
        padding: 0 8px;
    }

    /* Footer */
    .nd-foot {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 14px;
        padding-top: 20px;
        margin-top: 20px;
    }
    .nd-foot__left, .nd-foot__note { text-align: center; }
    .nd-social {
        flex-wrap: wrap;
        gap: 14px;
        justify-content: center;
    }
}

/* ------------------------------------------------------------
   Narrow phones — switch ring grid to 2x2 for legibility
------------------------------------------------------------ */
@media (max-width: 480px) {
    .nd-orb { width: clamp(280px, 100vmin, 520px); opacity: 0.35; }

    .nd-countdown { gap: 14px; }
    .nd-count { min-width: 42px; }
    .nd-count__num { font-size: clamp(30px, 10vw, 44px); }
    .nd-count__label { font-size: 9px; letter-spacing: 0.16em; }
    .nd-count__divider { display: none; }

    .nd-headline {
        font-size: clamp(26px, 8.4vw, 34px);
        letter-spacing: 0;
    }

    .nd-status { padding: 6px 10px; }
}

/* ------------------------------------------------------------
   Tiny phones (≤360px)
------------------------------------------------------------ */
@media (max-width: 360px) {
    .nd-coming { padding: 14px; }
    .nd-logo img { height: 36px; }
    .nd-eyebrow { font-size: 9px; letter-spacing: 0.16em; }
    .nd-eyebrow__mark { width: 14px; }
    .nd-headline { font-size: 24px; }
    .nd-countdown { gap: 10px; }
    .nd-count__num { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .nd-orb__ring, .nd-orb__core, .nd-status__dot, .nd-headline span, .nd-count.is-tick .nd-count__num {
        animation: none !important;
    }
    .nd-ring__fill, .nd-progress__bar::after { transition: none !important; }
    .nd-headline span { opacity: 1; transform: none; }
}
