/* home.css - the intro at "/" (index.php), v9 Obsidian redesign (Oct 2026).
 * The org's logo animation on black (blue, or red on the Ember theme), the
 * name, and Enter with the 5 second count on to Home. The menu rail is
 * hidden here; Enter and Home are one step away.
 * Plain words, no em dashes (site rule).
 */

html.has-rail body.home-page {
    padding: 0 !important;
}

body.home-page .site-nav .os-rail,
body.home-page .site-nav .rail-scrim {
    display: none;
}

body.home-page {
    min-height: 100dvh;
    background: #000;
}

body.home-page main.boot {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: clamp(1rem, 4vw, 3rem);
    box-sizing: border-box;
}

.boot-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(640px, 100%);
    text-align: center;
}

.boot-video {
    width: min(420px, 70vw);
    aspect-ratio: 1 / 1;
}

.boot-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.boot-title {
    margin: 0.5rem 0 0;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    text-align: center;
    color: #fff;
}

.boot-sub {
    margin: 0.6rem 0 0;
    color: var(--ink-3);
    font-size: 1rem;
}

.enter-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: clamp(1.6rem, 5vh, 2.6rem);
}

.join-button {
    position: relative;
    display: inline-flex;
    min-width: 180px;
    justify-content: center;
    /* 31 Oct 2026 (Theme Review): the words sit in the middle of the button
       from top to bottom too (the maker themes make it taller). */
    align-items: center;
    padding: 0.75rem 2rem;
    background: var(--accent);
    border-radius: 0;
    color: var(--on-accent);
    text-decoration: none;
    overflow: hidden;
    transition: background 0.15s ease;
}

.join-button p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.join-button:hover {
    background: var(--accent-hi);
}

.enter-bar {
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.15);
}

.enter-bar i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--on-accent);
    opacity: 0.6;
}

p.enter-auto {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-3);
}

p.enter-auto[hidden] {
    display: none;
}

.enter-auto button {
    margin-left: 0.5rem;
    padding: 0.2rem 0.75rem;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 0;
    color: var(--ink-2);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.enter-auto button:hover,
.enter-auto button:focus-visible {
    color: var(--ink);
    border-color: var(--ink-3);
}

/* v10 Brutalist (Oct 2026): the intro on concrete, the name huge. */
body.home-page {
    background: var(--paper);
}

.boot-video {
    width: min(300px, 50vw);
    background: #0A0A0A;
    border: 1px solid var(--rule);
    box-shadow: 0 0 22px -8px var(--glow-colour);
}

.boot-title {
    margin-top: 1.6rem;
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 11vw, 9rem);
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink);
}

.boot-sub {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--ink-2);
}

.boot-sub::before {
    content: "// ";
    color: var(--accent);
}

.join-button {
    border: 1px solid var(--rule);
    border-radius: 0;
    box-shadow: 0 0 22px -8px var(--glow-colour);
}

.join-button p {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    text-transform: uppercase;
}

.join-button:hover {
    background: var(--ink);
    color: var(--paper);
}

.enter-bar i {
    background: #fff;
}

.enter-auto,
.enter-auto button {
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.enter-auto button {
    border: 1px solid var(--rule);
    border-radius: 0;
    color: var(--ink);
}

/* v11 Deep Space (Oct 2026): the logo video on space, the name glowing. */
body.home-page {
    background: transparent;
}

.boot-video {
    width: min(360px, 60vw);
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 50%;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%);
    mask-image: radial-gradient(circle, #000 55%, transparent 72%);
}

.boot-video video {
    mix-blend-mode: screen;
}

.boot-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    color: #fff;
    text-shadow: 0 0 30px var(--glow-colour);
}

.boot-sub {
    letter-spacing: 0.16em;
    color: var(--ink-2);
}

.boot-sub::before {
    content: "> ";
}

.join-button {
    border: 1px solid var(--accent);
    box-shadow: 0 0 30px -6px var(--glow-colour);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.join-button p {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.2em;
}

.join-button:hover {
    background: var(--accent-hi);
    color: var(--on-accent);
}

.enter-bar i {
    background: var(--on-accent);
}

.enter-auto button {
    border: 1px solid var(--rule);
    color: var(--ink-2);
}

/* v12 refine (18 Oct 2026, Matt): "make the intro logo the full screen
   again ... keep the text where it is ... the logo video could be
   transparent slightly because I like the stars in the background - the main
   obsidian squad text may need a backing". The video covers the whole
   screen behind everything (screen blend, so its black is see-through and
   the starfield shows), the space it used to take stays as a gap so the name
   and Enter keep their place, and the name sits on a glass plate. */
.boot-video {
    position: fixed;
    top: -24vh;          /* the logo sits a little above the middle, so it */
    left: 0;             /* shows above the name rather than behind it */
    z-index: -1;
    width: 100%;
    height: 124vh;
    aspect-ratio: auto;
    border-radius: 0;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 55%, transparent 100%);
    mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 55%, transparent 100%);
}

.boot-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    mix-blend-mode: screen;
}

.boot-unit {
    padding-top: min(360px, 60vw);   /* where the small logo used to sit */
}

.boot-plate {
    position: relative;
    padding: clamp(1rem, 2.4vw, 1.6rem) clamp(1.2rem, 4vw, 2.8rem);
    background: rgba(3, 8, 18, 0.42);
    border: 1px solid var(--rule);
    box-shadow: 0 0 50px -14px var(--glow-colour), inset 0 0 40px -20px var(--glow-colour);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

body.theme-alt .boot-plate {
    background: rgba(18, 4, 8, 0.42);
}

.boot-plate .boot-title {
    margin-top: 0;
}

.boot-plate .boot-sub {
    margin-bottom: 0;
}

body.theme-contrast .boot-plate {
    background: #000;
    border-color: #fff;
    box-shadow: none;
    clip-path: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.theme-contrast .boot-video video {
    opacity: 0.5;
}

/* 31 Oct 2026 (Luke's full test): the Enter bar fills without easing when motion is reduced */
@media (prefers-reduced-motion: reduce) { .enter-bar i { transition: none !important; } }
