/* ==========================================================================
   blackot.xyz
   A type-led professional site: a width-warping name, a quiet monochrome ledger
   of links, and a platform brand colour on hover.
   ========================================================================== */

:root {
    --void: #0a0a0c;
    --void-rgb: 10, 10, 12;
    --ink: #f3f0f8;
    --dim: #a39fb3;
    --faint: #6e6a7c;
    --line: rgba(243, 240, 248, 0.14);
    --line-strong: rgba(243, 240, 248, 0.3);
    --glass: rgba(255, 255, 255, 0.04);
    --plasma-rgb: 150, 60, 225;
    --btn-bg: #f3f0f8;
    --btn-ink: #0a0a0c;

    --f-display: "Anybody", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --f-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --pad: clamp(20px, 5vw, 72px);
    --max: 1480px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

html[data-theme="light"] {
    --void: #e4e0ea;
    --void-rgb: 228, 224, 234;
    --ink: #0a0a0c;
    --dim: #463f56;
    --faint: #6f6880;
    --line: rgba(10, 10, 12, 0.18);
    --line-strong: rgba(10, 10, 12, 0.38);
    --glass: rgba(10, 10, 12, 0.05);
    --plasma-rgb: 98, 24, 164;
    --btn-bg: #0a0a0c;
    --btn-ink: #f3f0f8;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--void);
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
    -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
}
html[data-theme="light"] { color-scheme: light; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--void);
    color: var(--ink);
    font-family: var(--f-text);
    font-size: 1.0625rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }

::selection { background: rgba(var(--plasma-rgb), 0.45); color: var(--ink); }

:focus-visible {
    outline: 2px solid rgb(var(--plasma-rgb));
    outline-offset: 4px;
    border-radius: 6px;
}

.sr {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
    position: fixed; left: 12px; top: -64px; z-index: 200;
    padding: 0.7rem 1rem; border-radius: 10px;
    background: var(--ink); color: var(--void);
    font-weight: 600; text-decoration: none;
    transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- Atmosphere ---------- */
.glow {
    position: fixed; left: 0; top: 0; z-index: 1;
    width: 560px; height: 560px; margin: -280px 0 0 -280px;
    border-radius: 50%; pointer-events: none; opacity: 0;
    background: radial-gradient(circle, rgba(var(--plasma-rgb), 0.15), transparent 62%);
    transition: opacity 0.6s var(--ease);
    will-change: transform;
}
.glow.on { opacity: 1; }

.grain {
    position: fixed; inset: 0; z-index: 60; pointer-events: none;
    opacity: 0.09; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
html[data-theme="light"] .grain { mix-blend-mode: multiply; opacity: 0.06; }

/* ---------- Boot sequence ---------- */
.loader { display: none; }

.js .loader {
    display: block; position: fixed; inset: 0; z-index: 100;
    background: var(--void);
    transition: opacity 0.7s var(--ease);
    /* If scripts ever fail, the loader removes itself. */
    animation: loader-failsafe 0.01s linear 6s forwards;
}
.loader.is-leaving { opacity: 0; pointer-events: none; }
.loader.is-done { display: none; }

@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }

.loader__core {
    position: absolute; left: 50%; top: 50%;
    width: min(90vw, 980px); transform: translate(-50%, -50%);
    color: var(--ink); text-align: center;
}
.loader__name {
    font-family: var(--f-display); font-weight: 800; font-stretch: 100%;
    font-size: clamp(2.1rem, 7vw, 4.4rem); line-height: 1.02; letter-spacing: -0.025em;
    text-wrap: balance;
}
.wd { display: inline-block; white-space: nowrap; }
.loader .wm-l { display: inline-block; opacity: 0.14; transition: opacity 0.35s, text-shadow 0.35s; }
.loader .wm-l.on { opacity: 1; text-shadow: 0 0 22px rgba(var(--plasma-rgb), 0.85); }

.loader__count {
    position: absolute; left: var(--pad); bottom: clamp(20px, 5vh, 56px);
    display: flex; align-items: flex-start; gap: 0.05em;
    font-family: var(--f-display); font-weight: 800; font-stretch: 100%;
    font-size: clamp(3.5rem, 13vw, 10rem); line-height: 0.8; letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums; color: var(--ink);
}
.loader__pct { font-size: 0.28em; line-height: 1; font-weight: 600; margin-top: 0.1em; color: var(--dim); letter-spacing: 0; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 18px var(--pad);
    border-bottom: 1px solid transparent;
    transition: padding 0.4s var(--ease), background-color 0.4s, border-color 0.4s, opacity 0.8s 0.2s;
}
.nav.is-stuck {
    padding-block: 11px;
    background: rgba(var(--void-rgb), 0.62);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
            backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand__logo { width: 34px; height: 34px; border-radius: 22.4%; flex: none; box-shadow: 0 0 0 1px var(--line); }
.brand__name { font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; white-space: nowrap; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); margin-left: auto; margin-right: 1rem; }
.nav__links a {
    position: relative; text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--dim);
    padding-block: 6px; transition: color 0.3s;
}
.nav__links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: rgb(var(--plasma-rgb)); transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.theme {
    position: relative; width: 42px; height: 42px; flex: none;
    display: grid; place-items: center; padding: 0; cursor: pointer;
    color: var(--ink); background: var(--glass);
    border: 1px solid var(--line-strong); border-radius: 50%;
    transition: border-color 0.3s, background-color 0.3s, transform 0.5s var(--ease);
}
.theme:hover { border-color: rgb(var(--plasma-rgb)); background: rgba(var(--plasma-rgb), 0.14); transform: rotate(20deg); }
.theme svg { position: absolute; width: 17px; height: 17px; transition: transform 0.6s var(--ease), opacity 0.4s; }
/* The icon shows the theme you will switch to. */
html[data-theme="dark"]  .theme__moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }
html[data-theme="light"] .theme__sun  { opacity: 0; transform: rotate(90deg) scale(0.4); }

/* ---------- Hero ---------- */
main { position: relative; z-index: 3; }

.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 7rem var(--pad) clamp(28px, 6vh, 64px);
}
.hero__inner { width: 100%; max-width: var(--max); margin-inline: auto; }

.name {
    font-family: var(--f-display); font-weight: 800; font-stretch: 100%;
    font-size: var(--name-fs, clamp(3rem, 12.5vw, 9.5rem));
    line-height: 0.9; letter-spacing: -0.025em;
    margin-bottom: 0.32em; color: var(--ink);
}
.name .line { display: block; width: max-content; white-space: nowrap; }
.name .ch { display: inline-block; white-space: pre; font-stretch: 100%; }

.hero__sub { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem); letter-spacing: -0.01em; }
.hero__lede { margin: 0.25rem 0 1.7rem; max-width: 36ch; color: var(--dim); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
    --bx: 0px; --by: 0px;
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 0.7rem;
    height: 3.25rem; padding: 0 1.55rem; border-radius: 999px;
    font: 600 1rem/1 var(--f-text); text-decoration: none; cursor: pointer;
    transform: translate(var(--bx), var(--by));
    transition: transform 0.3s var(--ease), background-color 0.3s, border-color 0.3s, box-shadow 0.5s var(--ease), color 0.3s;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn span { position: relative; z-index: 1; }
.btn svg { position: relative; z-index: 1; }

.btn--solid { background: var(--btn-bg); color: var(--btn-ink); border: 1px solid transparent; }
.btn--solid::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(var(--plasma-rgb), 0.5) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.btn--solid:hover { box-shadow: 0 0 44px -6px rgba(var(--plasma-rgb), 0.8); }
.btn--solid:hover::after { transform: translateX(120%); }
.btn--solid svg { transition: transform 0.5s var(--ease); }
.btn--solid:hover svg { transform: translateX(4px); }

.btn--ghost {
    background: var(--glass); color: var(--ink); border: 1px solid var(--line-strong);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: rgb(var(--plasma-rgb)); background: rgba(var(--plasma-rgb), 0.14); }
.btn:active { transform: translate(var(--bx), var(--by)) scale(0.97); }

.cue {
    position: absolute; right: var(--pad); bottom: clamp(28px, 6vh, 64px);
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    color: var(--dim); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.04em;
}
.cue span { writing-mode: vertical-rl; }
.cue i { display: block; width: 1px; height: 64px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Hero entrance (one orchestrated moment, triggered once the page opens). */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); animation: rv-failsafe 0.01s linear 6.5s forwards; }
.js.is-ready .rv { opacity: 1; transform: none; }
.hero__sub { transition-delay: 0.3s; }
.hero__lede { transition-delay: 0.45s; }
.hero__actions { transition-delay: 0.6s; }
.cue { transition-delay: 0.9s; }
.js .nav { opacity: 0; animation: rv-failsafe 0.01s linear 6.5s forwards; }
.js.is-ready .nav { opacity: 1; }
@keyframes rv-failsafe { to { opacity: 1; transform: none; } }

/* ---------- Ticker ---------- */
.strip {
    position: relative; z-index: 2; overflow: hidden;
    padding-block: clamp(18px, 3.5vw, 48px);
    border-block: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.strip__track {
    display: flex; align-items: center; width: max-content; will-change: transform;
    font-family: var(--f-display); font-weight: 900; font-stretch: 112%;
    font-size: clamp(3.2rem, 10vw, 9rem); line-height: 1; letter-spacing: -0.02em; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 1.5px var(--line-strong);
}
.strip__track span { padding-inline: 0.12em; }
.strip__track b {
    flex: none; width: 0.3em; height: 0.3em; margin-inline: 0.3em; border-radius: 50%;
    background: var(--void);
    box-shadow: 0 0 0 2px rgba(var(--plasma-rgb), 0.95), 0 0 22px 3px rgba(var(--plasma-rgb), 0.55);
}

/* ---------- Content blocks ---------- */
.block {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: clamp(24px, 4vw, 72px);
    max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto;
    padding: clamp(64px, 10vw, 140px) var(--pad);
}
.channels .block { padding-block: clamp(40px, 6vw, 84px); }
.channels .block:first-child { padding-top: clamp(64px, 9vw, 120px); }

.block__head { position: sticky; top: 6.5rem; align-self: start; }
.block__head h2 {
    font-family: var(--f-display); font-weight: 700; font-stretch: 100%;
    font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); line-height: 1.1; letter-spacing: -0.01em;
}
.block__head p { margin-top: 0.4rem; color: var(--dim); font-size: 0.98rem; }

.statement {
    max-width: 24em; font-size: clamp(1.75rem, 1rem + 2.7vw, 3.5rem);
    font-weight: 500; line-height: 1.16; letter-spacing: -0.022em;
}
.statement .w { opacity: 0.18; transition: opacity 0.6s var(--ease); }
.statement .w.on { opacity: 1; }

/* ---------- Channel ledger ---------- */
.rows { border-bottom: 1px solid var(--line); }
.rows li { position: relative; }
.rows li::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: var(--line); transform-origin: left;
    transition: transform 1.1s var(--ease);
}
.js .rows li:not(.in)::before { transform: scaleX(0); }

.row {
    --mx: 50%; --my: 50%;
    position: relative; isolation: isolate;
    display: grid; align-items: center;
    grid-template-columns: clamp(30px, 4vw, 48px) minmax(0, 1fr) clamp(20px, 2.6vw, 30px);
    column-gap: clamp(14px, 2.4vw, 32px);
    padding: clamp(16px, 2.2vw, 28px) 0;
    color: var(--ink); text-decoration: none;
    transition: opacity 0.4s var(--ease);
}
.row::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
    background: radial-gradient(560px circle at var(--mx) var(--my), rgba(var(--brand), 0.17), transparent 62%);
    transition: opacity 0.4s var(--ease);
}
.row::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, rgb(var(--brand)), transparent 85%);
    transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease);
}

.row__icon { width: 100%; height: clamp(24px, 3vw, 34px); color: var(--faint); transition: color 0.35s, filter 0.35s, transform 0.6s var(--ease); }
.row__label {
    font-family: var(--f-display); font-weight: 700; font-stretch: 100%;
    font-size: clamp(2.1rem, 1rem + 4.7vw, 4.7rem); line-height: 1; letter-spacing: -0.025em;
    transition: font-stretch 0.6s var(--ease), letter-spacing 0.6s var(--ease), color 0.3s;
}
.row__arrow { width: 100%; height: clamp(16px, 2vw, 22px); color: var(--faint); transform: rotate(-45deg); transition: transform 0.6s var(--ease), color 0.3s; }

.row:focus-visible { outline-offset: -2px; border-radius: 0; }
.row:focus-visible::before, .row:focus-visible::after { opacity: 1; transform: none; }

@media (hover: hover) {
    .rows:hover .row:not(:hover) { opacity: 0.32; }
    .row:hover::before { opacity: 1; }
    .row:hover::after { transform: scaleX(1); }
    .row:hover .row__icon { color: rgb(var(--brand)); filter: drop-shadow(0 0 14px rgba(var(--brand), 0.65)); transform: scale(1.12); }
    .row:hover .row__label { font-stretch: 134%; letter-spacing: -0.035em; }
    .row:hover .row__arrow { color: rgb(var(--brand)); transform: rotate(-45deg) translateX(6px); }
}
.row:active .row__label { color: rgb(var(--brand)); }

html[data-theme="light"] .row:hover .row__icon { filter: none; }

/* ---------- Thin text rows (Websites / Projects) ---------- */
.row.row--text { grid-template-columns: minmax(0, 1fr) clamp(20px, 2.6vw, 30px); container-type: inline-size; }
/* Same size as every other button; only shrinks a little on narrow screens so the long name stays on one line */
.row--text .row__label { font-size: min(clamp(2.1rem, 1rem + 4.7vw, 4.7rem), calc((100cqw - 4rem) / var(--fit, 10))); overflow-wrap: anywhere; }
@media (hover: hover) { .row.row--text:hover .row__label { font-stretch: 106%; } }

/* Same vertical gap between every section: sections that follow the channels get no extra top padding */
.channels--follow .block:first-child { padding-top: clamp(40px, 6vw, 84px); }

/* ---------- Gecko hint ---------- */
.block__head { z-index: 3; }
.block--raise { z-index: 6; }
.block__head .sub { position: relative; margin-top: 0.4rem; color: var(--dim); font-size: 0.98rem; }
.hint__btn {
    display: inline-grid; place-items: center; vertical-align: middle;
    width: 1.35rem; height: 1.35rem; margin-left: 0.3rem; padding: 0; border-radius: 50%;
    border: 1px solid var(--line-strong); background: var(--glass); color: var(--dim);
    font: 600 0.78rem/1 var(--f-text); cursor: help;
    transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
.hint__btn:hover, .hint.is-open .hint__btn { border-color: rgb(var(--plasma-rgb)); background: rgba(var(--plasma-rgb), 0.14); color: var(--ink); }
.hint__pop {
    position: absolute; left: 0; top: 100%; z-index: 20; display: block;
    width: min(320px, 100%); min-width: min(280px, 100%); padding-top: 10px;
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s 0.25s;
}
.hint:hover .hint__pop, .hint:focus-within .hint__pop, .hint.is-open .hint__pop {
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.hint__card {
    display: block; padding: 1rem 1.1rem; border-radius: 14px;
    background: rgba(var(--void-rgb), 0.985); color: var(--ink);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--line-strong); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.55);
    font-size: 0.92rem; line-height: 1.55; font-weight: 400;
}
.hint__more {
    display: block; margin-top: 0.7rem; padding: 0; background: none; border: 0; cursor: pointer;
    font: 600 0.92rem/1.4 var(--f-text); color: #b87cf0; text-align: left;
    text-decoration: underline; text-underline-offset: 3px;
}
.hint__more:hover { color: #d2a6ff; }
html[data-theme="light"] .hint__more { color: #5b1a9c; }
html[data-theme="light"] .hint__more:hover { color: #3d0f70; }
.hint__list { margin-top: 0.6rem; padding-left: 1.1rem; list-style: disc; color: var(--dim); }
.hint__list li { padding-block: 0.1rem; }
.row[data-pending] { cursor: default; }

/* ---------- Footer ---------- */
.foot {
    position: relative; z-index: 2;
    max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto;
    padding: clamp(72px, 11vw, 150px) var(--pad) 28px;
}
.foot__name {
    font-family: var(--f-display); font-weight: 800; font-stretch: 100%;
    font-size: clamp(2.4rem, 9vw, 8rem); line-height: 0.95; letter-spacing: -0.03em;
    color: var(--ink); text-wrap: balance;
}
.foot__name .wm-l { display: inline-block; transition: opacity 0.8s var(--ease); }
.js .foot__name .wm-l { opacity: 0.08; }
.js .foot__name.in .wm-l { opacity: 1; animation: ignite 1.4s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes ignite {
    0%   { opacity: 0.08; text-shadow: none; }
    30%  { opacity: 1; text-shadow: 0 0 14px rgba(var(--plasma-rgb), 1), 0 0 44px rgba(var(--plasma-rgb), 0.7); }
    100% { opacity: 1; text-shadow: 0 0 0 rgba(var(--plasma-rgb), 0); }
}

.foot__bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
    margin-top: clamp(28px, 4vw, 56px); padding-top: 1.4rem; border-top: 1px solid var(--line);
    font-size: 0.92rem; color: var(--dim);
}
.foot__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.foot__links a { text-decoration: none; transition: color 0.3s; }
.foot__links a:hover { color: var(--ink); }

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90;
    transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
    padding: 0.8rem 1.3rem; border-radius: 999px;
    background: var(--ink); color: var(--void); font-weight: 600; font-size: 0.95rem;
    box-shadow: 0 10px 40px -8px rgba(var(--plasma-rgb), 0.8);
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Theme switch (circular reveal) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .row { grid-template-columns: clamp(30px, 6vw, 44px) minmax(0, 1fr) clamp(20px, 3vw, 28px); }
}
@media (max-width: 860px) {
    .block { grid-template-columns: 1fr; gap: 1.4rem; }
    .block__head { position: static; }
    .cue { display: none; }
}
@media (max-width: 520px) {
    .nav__links { display: none; }
    .brand__logo { width: 34px; height: 34px; border-radius: 22.4%; flex: none; box-shadow: 0 0 0 1px var(--line); }
.brand__name { font-size: 0.95rem; }
    .hero { padding-top: 6rem; }
    .btn { height: 3.1rem; padding: 0 1.25rem; }
}

/* ---------- 404 ---------- */
.nf { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 6rem var(--pad); max-width: var(--max); margin-inline: auto; }
.nf h1 { font-family: var(--f-display); font-weight: 900; font-stretch: 120%; font-size: clamp(5rem, 28vw, 22rem); line-height: 0.82; letter-spacing: -0.04em; }
.nf p { margin: 1.2rem 0 1.8rem; color: var(--dim); max-width: 34ch; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important; transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
    .glow, .cue i { display: none; }
}

/* ---------- BLACKOT additions ---------- */
.loader__logo { display: block; width: clamp(64px, 9vw, 96px); height: auto; aspect-ratio: 1; margin: 0 auto 1.6rem; border-radius: 22.4%; box-shadow: 0 0 60px -8px rgba(var(--plasma-rgb), 0.7); }
.row__meta { display: block; margin-top: 0.7rem; font: 400 1rem/1.4 var(--f-text); letter-spacing: 0; color: var(--dim); }
.row--text .row__label { line-height: 1.05; }
.row--text:hover .row__meta { color: var(--ink); }
.foot__logo { width: 56px; height: 56px; border-radius: 22.4%; margin-bottom: 1.6rem; box-shadow: 0 0 0 1px var(--line); }

/* ---------- Projects sub-sections (Gecko / Blink) ---------- */
.block--raise-top { z-index: 7; }
.channels .block.block--sub { padding-top: 0; }
.row--text .row__label { white-space: nowrap; }
.row.row--note { padding-bottom: 0; }
.row__note { margin: 0.7rem 0 0; padding-bottom: clamp(16px, 2.2vw, 28px); font: 400 1rem/1.5 var(--f-text); color: var(--dim); }
.row__plink { color: #4da3ff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.row__plink:hover { color: #8cc4ff; }
html[data-theme="light"] .row__plink { color: #1456c4; }
html[data-theme="light"] .row__plink:hover { color: #0b3a8c; }
