/* ==========================================================================
   JB / 见界 — editorial digital studio
   Hand-built CSS. No frameworks, no external assets, no emoji.
   ========================================================================== */

:root {
    --bg: #0a0b0d;
    --bg-soft: #101216;
    --surface: #14171c;
    --surface-2: #1a1e24;
    --text: #f1eee6;
    --muted: #8d939d;
    --dim: #5f6670;
    --line: rgba(241, 238, 230, .14);
    --line-strong: rgba(241, 238, 230, .28);
    --paper: #f1eee6;
    --ink: #0a0b0d;
    --acid: #d8ff3e;
    --acid-ink: #111507;
    --cobalt: #6d7cff;
    --clay: #df6b4f;
    --rose: #ff7a9e;
    --teal: #77e0c0;
    --font-sans: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
    --font-display: "Bodoni 72", "Didot", "Times New Roman", "Songti SC", "STSong", serif;
    --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
    --ease: cubic-bezier(.2, .75, .2, 1);
    --nav-h: 78px;
    --pad: clamp(22px, 4.2vw, 72px);
    --max: 1560px;
    --radius: 2px;
}

[data-theme="light"] {
    --bg: #f1eee6;
    --bg-soft: #e9e4d9;
    --surface: #e5dfd2;
    --surface-2: #dcd5c6;
    --text: #111310;
    --muted: #5f625a;
    --dim: #8b8d84;
    --line: rgba(17, 19, 16, .14);
    --line-strong: rgba(17, 19, 16, .3);
    --paper: #111310;
    --ink: #f1eee6;
    --acid: #b9e51f;
    --acid-ink: #0d1005;
    --cobalt: #4d5cff;
    --clay: #c85b3f;
    --rose: #d84d76;
    --teal: #148b72;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
::selection { background: var(--acid); color: var(--acid-ink); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
code, pre { font-family: var(--font-mono); font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 42px 0; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 10001; background: var(--acid); color: var(--acid-ink); padding: 10px 16px; }
.skip-link:focus { top: 16px; }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -.15em; }
.muted { color: var(--muted); }
.danger { color: var(--clay) !important; }

/* grain + cursor + preloader ------------------------------------------------ */
.grain {
    position: fixed; inset: -50%; z-index: 9998; pointer-events: none; opacity: .055;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    animation: grain 8s steps(10) infinite;
}
@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-3%, 2%); }
    40% { transform: translate(2%, -4%); }
    60% { transform: translate(-2%, -2%); }
    80% { transform: translate(3%, 3%); }
}
.cursor { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cursor-dot, .cursor-ring { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 5px; height: 5px; background: var(--acid); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid var(--acid); transition: width .2s, height .2s, background .2s; }
.cursor.is-hover .cursor-ring { width: 54px; height: 54px; background: rgba(216, 255, 62, .1); }
.cursor.is-down .cursor-ring { width: 22px; height: 22px; }
@media (pointer: fine) { body:not(.is-loading) .cursor { opacity: 1; } }
.preloader {
    position: fixed; inset: 0; z-index: 10005; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg); transition: opacity .7s var(--ease), visibility .7s;
}
body.is-loaded .preloader { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-mark { font-family: var(--font-display); font-size: clamp(38px, 6vw, 72px); letter-spacing: -.04em; }
.preloader-mark span { color: var(--acid); }
.preloader-line { width: min(280px, 50vw); height: 1px; background: var(--line); margin: 22px 0 14px; overflow: hidden; }
.preloader-line i { display: block; width: 100%; height: 100%; background: var(--acid); transform: translateX(-100%); animation: load 1.2s var(--ease) forwards; }
@keyframes load { to { transform: translateX(0); } }
.preloader-meta { font-family: var(--font-mono); font-size: 9px; letter-spacing: .32em; color: var(--muted); }

/* common ------------------------------------------------------------------- */
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.section-index { font-family: var(--font-mono); font-size: 9px; color: var(--acid); margin-right: 18px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); display: inline-block; margin-right: 10px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .02em; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.text-link:hover { color: var(--acid); border-color: var(--acid); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 0 22px;
    border: 1px solid transparent; border-radius: var(--radius); font-size: 12px; letter-spacing: .06em; transition: .25s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translate(3px, -3px); }
.btn-acid { background: var(--acid); color: var(--acid-ink); border-color: var(--acid); }
.btn-acid:hover { background: transparent; color: var(--acid); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); }
.btn-dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-dark:hover { background: transparent; color: var(--text); }
.btn-full { width: 100%; }
.btn-danger { background: var(--clay); color: #fff; border-color: var(--clay); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 50%; transition: .2s; }
.icon-btn:hover { border-color: var(--acid); color: var(--acid); }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--avatar, var(--acid)); color: #10130a; font-family: var(--font-mono); font-weight: 700; letter-spacing: -.04em; flex: 0 0 auto; }
.avatar-xs { width: 26px; height: 26px; font-size: 9px; }
.avatar-sm { width: 34px; height: 34px; font-size: 11px; }
.avatar-xl { width: 92px; height: 92px; font-size: 26px; }
.badge { display: inline-flex; align-items: center; padding: 2px 7px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.badge-active, .badge-approved, .badge-admin { color: var(--acid); border-color: color-mix(in srgb, var(--acid) 40%, transparent); }
.badge-blocked, .badge-draft, .badge-pending { color: var(--clay); border-color: color-mix(in srgb, var(--clay) 40%, transparent); }
.badge-new, .badge-member { color: var(--cobalt); border-color: color-mix(in srgb, var(--cobalt) 40%, transparent); }
.flash-stack { position: fixed; right: 22px; top: 94px; z-index: 10002; display: grid; gap: 8px; width: min(360px, calc(100vw - 44px)); }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 12px; line-height: 1.5; }
.flash .icon { margin-top: 2px; }
.flash-success .icon { color: var(--acid); }
.flash-error .icon { color: var(--clay); }
.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 10002; display: grid; gap: 8px; }
.toast { padding: 10px 14px; background: var(--text); color: var(--bg); font-size: 11px; animation: toast-in .25s var(--ease); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
.empty-note { color: var(--muted); font-size: 12px; padding: 26px 0; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* nav ---------------------------------------------------------------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h); transition: background .3s, border-color .3s, height .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); border-color: var(--line); height: 64px; }
.nav-inner { max-width: var(--max); margin: 0 auto; height: 100%; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-size: 24px; letter-spacing: -.03em; }
.brand-slash { color: var(--acid); font-size: .7em; margin: 0 2px; }
.brand-cn { font-family: var(--font-sans); font-size: 11px; letter-spacing: .18em; margin-left: 5px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 11px; letter-spacing: .05em; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.nav-link sup { font-family: var(--font-mono); font-size: 7px; color: var(--dim); margin-left: 4px; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--acid); transition: right .25s var(--ease); }
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-login { font-size: 11px; color: var(--muted); padding: 0 8px; }
.nav-login:hover { color: var(--text); }
.nav-user { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.nav-user:hover { color: var(--text); }
.nav-user-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 15px; background: var(--acid); color: var(--acid-ink); font-size: 10px; letter-spacing: .06em; margin-left: 8px; transition: .2s; }
.nav-cta:hover { background: var(--text); }
.theme-btn { position: relative; overflow: hidden; }
.theme-sun, .theme-moon { display: flex; transition: transform .35s var(--ease), opacity .2s; }
.theme-moon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: rotate(45deg); }
[data-theme="light"] .theme-sun { opacity: 0; transform: rotate(-45deg); }
[data-theme="light"] .theme-moon { opacity: 1; transform: rotate(0); }
.menu-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-toggle span { display: block; width: 14px; height: 1px; background: var(--text); transition: .2s; }

/* menu + search overlays --------------------------------------------------- */
.menu-overlay { position: fixed; inset: 0; z-index: 10003; background: var(--bg); padding: 26px var(--pad) 40px; display: flex; flex-direction: column; transform: translateY(-100%); visibility: hidden; transition: transform .65s var(--ease), visibility .65s; }
.menu-overlay.is-open { transform: translateY(0); visibility: visible; }
.menu-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.menu-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .25em; color: var(--muted); }
.menu-body { flex: 1; display: grid; grid-template-columns: 1.6fr 1fr; gap: 8vw; align-items: center; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a { display: flex; align-items: baseline; gap: 22px; font-family: var(--font-display); font-size: clamp(42px, 8vw, 104px); line-height: 1.02; letter-spacing: -.05em; border-bottom: 1px solid var(--line); padding: 8px 0; transition: color .2s, padding-left .3s; }
.menu-links a span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--dim); }
.menu-links a:hover { color: var(--acid); padding-left: 12px; }
.menu-aside { max-width: 330px; }
.menu-note { font-family: var(--font-display); font-size: 24px; line-height: 1.25; letter-spacing: -.02em; }
.menu-meta { display: grid; gap: 7px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin: 28px 0; }
.menu-meta a:hover { color: var(--acid); }
.search-overlay { position: fixed; inset: 0; z-index: 10003; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(20px); padding: 30px var(--pad); display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transition: .35s; }
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-top { position: absolute; top: 28px; left: var(--pad); right: var(--pad); display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 9px; letter-spacing: .2em; color: var(--muted); }
.search-form { display: flex; align-items: center; border-bottom: 1px solid var(--line-strong); max-width: 1100px; width: 100%; margin: 0 auto; }
.search-form input { flex: 1; background: transparent; border: 0; outline: 0; font-family: var(--font-display); font-size: clamp(36px, 6vw, 82px); letter-spacing: -.04em; padding: 12px 0; color: var(--text); }
.search-form input::placeholder { color: var(--dim); }
.search-form button { background: transparent; border: 0; color: var(--acid); }
.search-form button .icon { width: 40px; height: 40px; }
.search-hints { max-width: 1100px; margin: 26px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.search-hints span { border: 1px solid var(--line); padding: 5px 9px; font-size: 10px; color: var(--muted); }

/* hero --------------------------------------------------------------------- */
.site-main { position: relative; z-index: 1; }
.hero { min-height: 100svh; position: relative; overflow: hidden; padding: calc(var(--nav-h) + 6vh) var(--pad) 0; display: flex; flex-direction: column; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 35%, transparent 0 20%, var(--bg) 72%); pointer-events: none; }
.hero-grid { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr 280px; grid-template-rows: auto 1fr auto; gap: 28px; flex: 1; }
.hero-kicker { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 9px; letter-spacing: .22em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-kicker .slash { color: var(--dim); margin: 0 4px; }
.hero-title { grid-column: 1 / 2; align-self: center; font-family: var(--font-display); font-size: clamp(78px, 13.5vw, 214px); line-height: .78; letter-spacing: -.075em; font-weight: 400; margin-left: -.03em; }
.hero-line { display: block; }
.hero-line-italic { font-style: italic; color: var(--acid); padding-left: .12em; }
.hero-bottom { grid-column: 1 / 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 7vh; }
.hero-copy { max-width: 390px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-side { grid-column: 2 / 3; grid-row: 2 / 4; align-self: end; padding-bottom: 7vh; border-left: 1px solid var(--line); padding-left: 22px; display: grid; gap: 26px; }
.hero-side-item { display: grid; gap: 4px; font-family: var(--font-mono); font-size: 10px; color: var(--text); }
.hero-side-item .eyebrow { font-size: 8px; }
.status-line { display: inline-flex; align-items: center; gap: 7px; }
.status-line i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); animation: pulse 2s infinite; }
.hero-scroll { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 8px; letter-spacing: .22em; color: var(--dim); padding: 18px 0 22px; }
.hero-scroll i { width: 40px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--acid); transform: translateX(-100%); animation: scroll-line 2.2s infinite; }
@keyframes scroll-line { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* marquee ------------------------------------------------------------------ */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; align-items: center; gap: 30px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .22em; color: var(--muted); white-space: nowrap; }
.marquee-track i { width: 5px; height: 5px; background: var(--acid); border-radius: 50%; flex: 0 0 auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections ----------------------------------------------------------------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 11vw, 150px) var(--pad); }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; margin-bottom: clamp(38px, 6vw, 76px); }
.section-head > div:first-child { grid-column: 1 / -1; display: flex; align-items: center; }
.section-title { font-family: var(--font-display); font-size: clamp(42px, 6.5vw, 92px); line-height: .92; letter-spacing: -.05em; }
.section-title em { color: var(--acid); font-style: italic; }
.section-head .text-link { justify-self: end; margin-bottom: 6px; }

/* work --------------------------------------------------------------------- */
.work-list { border-top: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: 54px minmax(220px, 36%) 1fr 34px; gap: clamp(16px, 2.5vw, 40px); align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .35s var(--ease), background .35s; }
.work-row:hover { padding-left: 10px; padding-right: 10px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.work-index { font-family: var(--font-mono); font-size: 9px; color: var(--dim); align-self: start; padding-top: 6px; }
.work-art-wrap { overflow: hidden; }
.work-row .art { transition: transform .6s var(--ease); }
.work-row:hover .art { transform: scale(1.035); }
.work-copy h3, .work-copy h2 { font-family: var(--font-display); font-size: clamp(26px, 3.1vw, 46px); letter-spacing: -.035em; line-height: 1; margin: 6px 0 10px; }
.work-copy p { max-width: 430px; font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0 0 12px; }
.work-meta { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.work-client { font-family: var(--font-mono); font-size: 9px; color: var(--muted); }
.work-arrow { justify-self: end; color: var(--muted); transition: .3s; }
.work-row:hover .work-arrow { color: var(--acid); transform: translate(4px, -4px); }
.work-row-large .work-copy h2 { font-size: clamp(32px, 4.4vw, 64px); }

/* art ---------------------------------------------------------------------- */
.art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #111; isolation: isolate; }
.art-large { aspect-ratio: 16 / 9; }
.art-auth { aspect-ratio: auto; height: 100%; min-height: 420px; }
.art-grid { position: absolute; inset: -10%; opacity: .45; background-size: 34px 34px; transform: perspective(500px) rotateX(55deg) scale(1.4); }
.art-orb { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; right: 8%; top: 14%; filter: blur(.4px); }
.art-orb-b { width: 24%; left: 10%; bottom: 12%; right: auto; top: auto; opacity: .65; }
.art-line { position: absolute; left: 8%; right: 8%; top: 50%; height: 1px; background: currentColor; opacity: .35; transform: rotate(-18deg); }
.art-line-b { transform: rotate(24deg); opacity: .2; }
.art-type { position: absolute; left: 14px; bottom: 12px; font-family: var(--font-mono); font-size: 8px; letter-spacing: .18em; color: rgba(255, 255, 255, .7); text-transform: uppercase; }
.art-lantu { background: radial-gradient(circle at 70% 30%, #2f4bff 0, #101a44 34%, #080b18 72%); color: #7fe7ff; }
.art-lantu .art-grid { background-image: linear-gradient(rgba(127, 231, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 231, 255, .22) 1px, transparent 1px); }
.art-lantu .art-orb { background: radial-gradient(circle at 30% 30%, #b8f6ff, #2d8dff 40%, #14225e 70%); box-shadow: 0 0 80px rgba(80, 180, 255, .5); }
.art-lantu .art-orb-b { background: #d8ff3e; box-shadow: 0 0 50px rgba(216, 255, 62, .4); }
.art-noise { background: #d8c9b5; color: #2a211b; }
.art-noise .art-grid { background-image: repeating-radial-gradient(circle at 30% 40%, rgba(42, 33, 27, .18) 0 1px, transparent 1px 24px); }
.art-noise .art-orb { background: #c55b42; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.art-noise .art-orb-b { background: transparent; border: 1px solid #2a211b; }
.art-noise .art-type { color: rgba(42, 33, 27, .7); }
.art-fold { background: #e8e4dc; color: #111; }
.art-fold .art-grid { background-image: linear-gradient(90deg, rgba(0, 0, 0, .18) 1px, transparent 1px), linear-gradient(rgba(0, 0, 0, .12) 1px, transparent 1px); background-size: 42px 42px; }
.art-fold .art-orb { background: transparent; border: 1px solid #111; box-shadow: 18px 18px 0 rgba(0, 0, 0, .08); }
.art-fold .art-orb-b { background: #111; width: 16%; }
.art-fold .art-type { color: rgba(0, 0, 0, .7); }
.art-deepwell { background: radial-gradient(circle at 50% 60%, #3b1c5c 0, #160e24 48%, #08060d 80%); color: #c184ff; }
.art-deepwell .art-grid { background-image: repeating-linear-gradient(90deg, rgba(193, 132, 255, .16) 0 1px, transparent 1px 10px); }
.art-deepwell .art-orb { background: radial-gradient(circle at 50% 50%, #ff7ad9, #7b2cff 35%, transparent 70%); filter: blur(12px); }
.art-deepwell .art-orb-b { background: transparent; border: 1px solid rgba(255, 122, 217, .5); filter: none; }
.art-quiet { background: #ded8ca; color: #33362e; }
.art-quiet .art-grid { background-image: linear-gradient(rgba(51, 54, 46, .12) 1px, transparent 1px); background-size: 100% 22px; }
.art-quiet .art-orb { background: #6f7b54; opacity: .8; }
.art-quiet .art-orb-b { background: transparent; border: 1px solid #33362e; }
.art-quiet .art-type { color: rgba(51, 54, 46, .7); }
.art-system { background: #0e2a2a; color: #77e0c0; }
.art-system .art-grid { background-image: linear-gradient(rgba(119, 224, 192, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(119, 224, 192, .2) 1px, transparent 1px); }
.art-system .art-orb { background: radial-gradient(circle, #77e0c0, #126c63 60%, transparent 72%); }
.art-system .art-orb-b { background: #d8ff3e; }
.art-white { background: #f5f2ec; color: #111; }
.art-white .art-grid { background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 16px); }
.art-white .art-orb { background: #111; }
.art-white .art-orb-b { background: transparent; border: 1px solid #111; }
.art-white .art-type { color: rgba(0, 0, 0, .65); }
.art-paper { background: #e4dccb; color: #3a3329; }
.art-paper .art-grid { background-image: repeating-linear-gradient(0deg, rgba(58, 51, 41, .16) 0 1px, transparent 1px 18px); }
.art-paper .art-orb { background: #b23f2c; opacity: .75; }
.art-paper .art-orb-b { background: transparent; border: 1px dashed #3a3329; }
.art-paper .art-type { color: rgba(58, 51, 41, .7); }

/* capabilities ------------------------------------------------------------- */
.capabilities { border-top: 1px solid var(--line); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.cap-card { padding: 28px clamp(18px, 2.4vw, 38px) 34px; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 420px; transition: background .3s; }
.cap-card:last-child { border-right: 0; }
.cap-card:hover { background: var(--surface); }
.cap-num { font-family: var(--font-mono); font-size: 9px; color: var(--acid); }
.cap-card h3 { font-family: var(--font-display); font-size: clamp(32px, 3.8vw, 56px); line-height: .92; letter-spacing: -.04em; margin: 46px 0 22px; }
.cap-card p { font-size: 12px; line-height: 1.8; color: var(--muted); max-width: 300px; }
.cap-card ul { list-style: none; margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.cap-card li { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); }

/* process ------------------------------------------------------------------ */
.process-list { border-top: 1px solid var(--line); }
.process-row { display: grid; grid-template-columns: 54px 1fr 1.2fr auto; gap: 22px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: background .3s, padding .3s; }
.process-row:hover { background: var(--surface); padding-left: 10px; padding-right: 10px; }
.process-num { font-family: var(--font-mono); font-size: 9px; color: var(--acid); }
.process-row h3 { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.04em; }
.process-row p { font-size: 12px; line-height: 1.75; color: var(--muted); max-width: 430px; margin: 0; }
.process-tag { font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em; color: var(--dim); }

/* manifesto ---------------------------------------------------------------- */
.manifesto { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.manifesto-inner { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 11vw, 150px) var(--pad); }
.manifesto-text { font-family: var(--font-display); font-size: clamp(34px, 5.8vw, 82px); line-height: 1.08; letter-spacing: -.04em; margin: 30px 0 50px; }
.manifesto-foot { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 18px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: var(--dim); }

/* journal ------------------------------------------------------------------ */
.journal-home { border-top: 1px solid var(--line); }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.post-card .art { aspect-ratio: 4 / 3; }
.post-card-body { padding: 20px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.post-card h3 { font-family: var(--font-display); font-size: clamp(24px, 2.3vw, 34px); line-height: 1.05; letter-spacing: -.03em; margin: 14px 0 10px; }
.post-card p { font-size: 11px; line-height: 1.7; color: var(--muted); }
.post-read { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em; color: var(--muted); }

/* cta ---------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta-inner { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 11vw, 150px) var(--pad); position: relative; z-index: 2; }
.cta h2 { font-family: var(--font-display); font-size: clamp(44px, 7.5vw, 110px); line-height: .9; letter-spacing: -.055em; margin: 26px 0 34px; }
.cta h2 em { color: var(--acid); font-style: italic; }
.cta-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-mail { font-family: var(--font-mono); font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; }
.cta-mail:hover { color: var(--acid); }
.cta-orbit { position: absolute; right: -8%; top: 50%; width: 46vw; aspect-ratio: 1; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 50%; opacity: .55; }
.cta-orbit i { position: absolute; inset: 12%; border: 1px solid var(--line); border-radius: 50%; }
.cta-orbit i:nth-child(2) { inset: 28%; }
.cta-orbit i:nth-child(3) { inset: 44%; background: var(--acid); border: 0; opacity: .16; }
.cta-small .cta-inner { padding-top: clamp(50px, 7vw, 90px); padding-bottom: clamp(50px, 7vw, 90px); }

/* footer ------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); position: relative; z-index: 2; }
.footer-top { max-width: var(--max); margin: 0 auto; padding: 54px var(--pad) 40px; display: grid; grid-template-columns: 1.2fr 1.1fr 1.6fr; gap: 7vw; }
.footer-mark { font-family: var(--font-display); font-size: 30px; letter-spacing: -.03em; }
.footer-mark span { color: var(--acid); }
.footer-brand p { color: var(--muted); font-size: 11px; margin-top: 14px; max-width: 250px; }
.footer-news { border-left: 1px solid var(--line); padding-left: 26px; }
.subscribe-form { display: flex; border-bottom: 1px solid var(--line-strong); margin: 14px 0 8px; }
.subscribe-form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 10px 0; font-size: 12px; }
.subscribe-form button { background: transparent; border: 0; color: var(--acid); display: flex; align-items: center; gap: 6px; font-size: 10px; }
.form-note { font-size: 9px; color: var(--dim); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.footer-links > div { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 10px; color: var(--muted); }
.footer-links a:hover { color: var(--acid); }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 16px var(--pad); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; color: var(--dim); }
.footer-top-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; }
.footer-top-btn:hover { color: var(--acid); }

/* page heroes -------------------------------------------------------------- */
.page-hero { max-width: var(--max); margin: 0 auto; padding: calc(var(--nav-h) + 10vh) var(--pad) 7vh; border-bottom: 1px solid var(--line); }
.page-hero-top { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 7vh; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(64px, 12vw, 180px); line-height: .82; letter-spacing: -.07em; }
.page-hero h1 em { color: var(--acid); font-style: italic; }
.page-hero-copy { max-width: 420px; color: var(--muted); font-size: 13px; line-height: 1.8; margin: 30px 0 0 auto; }
.page-hero-search h1 { font-size: clamp(48px, 9vw, 130px); }
.filter-bar { max-width: var(--max); margin: 0 auto; padding: 18px var(--pad); display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); }
.filter { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 6px 11px; font-size: 9px; letter-spacing: .06em; }
.filter:hover, .filter.is-active { border-color: var(--acid); color: var(--acid); }
.work-index { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(60px, 8vw, 110px); }
.work-index .work-row { grid-template-columns: 54px minmax(260px, 44%) 1fr 34px; padding: 26px 0; }
.work-row.is-hidden { display: none; }

/* project / post ----------------------------------------------------------- */
.project, .post { max-width: var(--max); margin: 0 auto; padding: calc(var(--nav-h) + 6vh) var(--pad) 0; }
.project-head, .post-head { max-width: 1200px; margin: 0 auto; }
.project-kicker { display: flex; justify-content: space-between; gap: 20px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: var(--muted); margin-bottom: 5vh; }
.project-kicker a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.project-kicker a:hover { color: var(--acid); }
.project-head h1, .post-head h1 { font-family: var(--font-display); font-size: clamp(56px, 9vw, 140px); line-height: .84; letter-spacing: -.065em; }
.project-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; border-top: 1px solid var(--line); margin-top: 5vh; padding-top: 18px; }
.project-meta div { display: grid; gap: 5px; }
.project-meta strong { font-size: 12px; font-weight: 400; }
.project-meta-action { justify-self: end; }
.favorite-btn { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 1px solid var(--line); padding: 7px 11px; color: var(--muted); font-size: 9px; }
.favorite-btn:hover, .favorite-btn.is-fav { border-color: var(--acid); color: var(--acid); }
.project-art { max-width: 1400px; margin: 6vh auto 0; }
.project-art .art { aspect-ratio: 16 / 9; }
.project-body, .post-body { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 240px 1fr; gap: 7vw; padding: 9vh 0; }
.project-aside, .post-aside { border-top: 1px solid var(--line); padding-top: 16px; align-self: start; position: sticky; top: 100px; }
.project-aside p, .post-aside p { font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 14px; }
.post-aside-meta { display: block; margin-top: 26px; font-family: var(--font-mono); font-size: 9px; line-height: 1.8; color: var(--dim); }
.prose { max-width: 720px; font-size: 15px; line-height: 1.9; color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.prose h2 { font-family: var(--font-display); font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -.035em; margin: 1.6em 0 .5em; color: var(--text); }
.prose h3 { font-size: 18px; margin: 1.4em 0 .4em; color: var(--text); }
.prose p { margin: 0 0 1.3em; }
.prose a { color: var(--acid); border-bottom: 1px solid color-mix(in srgb, var(--acid) 40%, transparent); }
.prose blockquote { margin: 2em 0; padding: 0 0 0 24px; border-left: 2px solid var(--acid); font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); line-height: 1.2; letter-spacing: -.02em; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1.3em 1.2em; }
.prose li { margin-bottom: .4em; }
.prose hr { margin: 2.4em 0; }
.prose code { background: var(--surface); padding: 2px 5px; }
.prose pre { background: var(--surface); padding: 18px; overflow: auto; border: 1px solid var(--line); }
.post-dek { max-width: 680px; font-size: clamp(16px, 1.8vw, 22px); line-height: 1.55; color: var(--muted); margin: 30px 0 0; }
.post-byline { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 4vh; padding-top: 16px; font-family: var(--font-mono); font-size: 9px; color: var(--muted); }
.post-byline form { margin-left: auto; }
.post-art { max-width: 1400px; margin: 6vh auto 0; }
.post-art .art { aspect-ratio: 16 / 9; }
.project-nav { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--line); padding: 28px 0 9vh; }
.project-nav a { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; font-family: var(--font-display); font-size: clamp(28px, 4vw, 54px); letter-spacing: -.04em; }
.project-nav a:hover { color: var(--acid); }
.comments { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--line); padding: 7vh 0 9vh; }
.comments-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.comments-head h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.03em; }
.comment-list { display: grid; gap: 0; }
.comment { border-top: 1px solid var(--line); padding: 18px 0; }
.comment-head { display: flex; align-items: center; gap: 10px; font-size: 11px; margin-bottom: 8px; }
.comment-head span:last-child { margin-left: auto; font-family: var(--font-mono); font-size: 8px; color: var(--dim); }
.comment p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0 0 0 44px; }
.comment-form { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; display: grid; gap: 10px; }
.comment-form label { font-family: var(--font-mono); font-size: 9px; color: var(--muted); }
.comment-form textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); padding: 12px; resize: vertical; outline: 0; }
.comment-form textarea:focus { border-color: var(--acid); }

/* about -------------------------------------------------------------------- */
.about-grid { max-width: var(--max); margin: 0 auto; padding: 9vh var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; border-bottom: 1px solid var(--line); }
.about-note { border-top: 1px solid var(--line); padding-top: 18px; }
.about-note p { font-size: 13px; line-height: 1.9; color: var(--muted); margin-top: 20px; }
.principles { max-width: var(--max); margin: 0 auto; padding: 9vh var(--pad); }
.principle-list { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 54px .9fr 1.3fr; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.principle > span { font-family: var(--font-mono); font-size: 9px; color: var(--acid); }
.principle h3 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 42px); letter-spacing: -.03em; }
.principle p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0; }
.studio-stats { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 9vh; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.studio-stats div { padding: 28px 20px 0 0; border-right: 1px solid var(--line); }
.studio-stats div:last-child { border-right: 0; }
.studio-stats strong { display: block; font-family: var(--font-display); font-size: clamp(54px, 7vw, 100px); line-height: 1; letter-spacing: -.05em; }
.studio-stats span { font-family: var(--font-mono); font-size: 8px; letter-spacing: .16em; color: var(--dim); }

/* contact ------------------------------------------------------------------ */
.contact { max-width: var(--max); margin: 0 auto; padding: calc(var(--nav-h) + 8vh) var(--pad) 9vh; display: grid; grid-template-columns: 1fr 1.1fr; gap: 8vw; }
.contact-intro h1 { font-family: var(--font-display); font-size: clamp(64px, 9vw, 132px); line-height: .84; letter-spacing: -.06em; margin: 30px 0; }
.contact-intro h1 em { color: var(--acid); font-style: italic; }
.contact-intro > p { max-width: 380px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.contact-meta { display: grid; gap: 18px; margin-top: 6vh; border-top: 1px solid var(--line); padding-top: 22px; }
.contact-meta div { display: grid; gap: 4px; }
.contact-meta a, .contact-meta span:last-child { font-size: 12px; }
.contact-form-wrap { padding-top: 10vh; }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: 10px 0; outline: 0; border-radius: 0; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--acid); }
.field textarea { resize: vertical; min-height: 120px; }
.field input[type="color"] { height: 42px; padding: 0; border: 1px solid var(--line); }
.field-hint { font-size: 9px; color: var(--dim); }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 6px; }

/* auth --------------------------------------------------------------------- */
.page-auth .site-main { min-height: 100svh; }
.auth { min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-art { position: relative; overflow: hidden; border-right: 1px solid var(--line); min-height: 100svh; }
.auth-art .art { position: absolute; inset: 0; aspect-ratio: auto; }
.auth-art-copy { position: absolute; left: var(--pad); bottom: 8vh; z-index: 2; max-width: 380px; }
.auth-art-copy p { font-family: var(--font-display); font-size: clamp(24px, 3vw, 42px); line-height: 1.15; letter-spacing: -.03em; margin-top: 14px; }
.auth-panel { padding: calc(var(--nav-h) + 5vh) clamp(24px, 5vw, 80px) 6vh; display: flex; flex-direction: column; max-width: 620px; width: 100%; margin: 0 auto; }
.auth-brand { font-family: var(--font-display); font-size: 22px; margin-bottom: 9vh; }
.auth-brand span { color: var(--acid); }
.auth-head h1 { font-family: var(--font-display); font-size: clamp(46px, 6vw, 78px); letter-spacing: -.05em; line-height: .9; margin: 16px 0 14px; }
.auth-head p { color: var(--muted); font-size: 12px; }
.auth-form { display: grid; gap: 18px; margin-top: 32px; }
.auth-switch { margin-top: 22px; font-size: 11px; color: var(--muted); }
.auth-switch a { color: var(--acid); }
.auth-foot { margin-top: auto; padding-top: 40px; display: flex; justify-content: space-between; gap: 20px; font-family: var(--font-mono); font-size: 8px; color: var(--dim); }
.auth-foot a:hover { color: var(--acid); }

/* search results ----------------------------------------------------------- */
.search-results { max-width: var(--max); margin: 0 auto; padding: 7vh var(--pad) 10vh; display: grid; gap: 6vh; }
.result-group { border-top: 1px solid var(--line); padding-top: 16px; }
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 36px); letter-spacing: -.03em; }
.result-row span:nth-child(2) { font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; color: var(--dim); margin-left: auto; }
.result-row:hover { color: var(--acid); }

/* legal -------------------------------------------------------------------- */
.legal { max-width: 820px; margin: 0 auto; padding: calc(var(--nav-h) + 10vh) var(--pad) 10vh; }
.legal h1 { font-family: var(--font-display); font-size: clamp(48px, 7vw, 88px); letter-spacing: -.05em; margin: 24px 0 5vh; }
.legal .prose { max-width: none; }

/* app shell ---------------------------------------------------------------- */
.app-page { background: var(--bg-soft); }
.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100svh; }
.app-side { border-right: 1px solid var(--line); padding: 26px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100svh; background: var(--bg); }
.app-brand { font-family: var(--font-display); font-size: 24px; letter-spacing: -.03em; padding: 0 10px; }
.app-brand span { color: var(--acid); }
.app-area { font-family: var(--font-mono); font-size: 8px; letter-spacing: .2em; color: var(--dim); padding: 32px 10px 14px; }
.app-nav { display: grid; gap: 2px; }
.app-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; color: var(--muted); font-size: 11px; border-left: 2px solid transparent; transition: .2s; }
.app-nav a:hover { color: var(--text); background: var(--surface); }
.app-nav a.is-active { color: var(--acid); border-left-color: var(--acid); background: color-mix(in srgb, var(--acid) 6%, transparent); }
.app-nav .icon { width: 15px; height: 15px; }
.app-side-foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.side-back { display: flex; align-items: center; gap: 9px; padding: 7px 10px; background: transparent; border: 0; color: var(--dim); font-size: 10px; text-align: left; }
.side-back:hover { color: var(--acid); }
.app-main { min-width: 0; }
.app-topbar { height: 64px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 3vw, 42px); position: sticky; top: 0; background: color-mix(in srgb, var(--bg-soft) 88%, transparent); backdrop-filter: blur(14px); z-index: 20; }
.app-topbar-left, .app-topbar-right { display: flex; align-items: center; gap: 12px; }
.app-breadcrumb { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.app-view-site { font-family: var(--font-mono); font-size: 8px; color: var(--dim); display: inline-flex; align-items: center; gap: 6px; }
.app-view-site:hover { color: var(--acid); }
.app-user { font-size: 10px; color: var(--muted); }
.app-menu-btn { display: none; }
.app-content { padding: clamp(22px, 3vw, 42px); max-width: 1400px; }
.app-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.app-title-row h1 { font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 60px); line-height: .95; letter-spacing: -.04em; margin: 12px 0 6px; }
.app-title-row p { color: var(--muted); font-size: 11px; }
.app-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card { border: 1px solid var(--line); background: var(--bg); padding: 18px; min-height: 132px; display: flex; flex-direction: column; }
.stat-card span { font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.stat-card strong { font-family: var(--font-display); font-size: clamp(38px, 4vw, 56px); line-height: 1; letter-spacing: -.04em; margin: 16px 0 8px; }
.stat-card small { margin-top: auto; font-family: var(--font-mono); font-size: 7px; color: var(--dim); }
.dash-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-bottom: 12px; }
.panel { border: 1px solid var(--line); background: var(--bg); padding: 20px; margin-bottom: 12px; min-width: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: -.03em; }
.panel-meta { font-family: var(--font-mono); font-size: 8px; color: var(--dim); }
.list-stack { display: grid; }
.list-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 11px; }
.list-row:first-child { border-top: 0; }
.list-row .dot { margin-top: 6px; flex: 0 0 auto; }
.list-row div { min-width: 0; flex: 1; }
.list-row strong { font-weight: 400; display: block; margin-bottom: 2px; }
.list-row p { color: var(--muted); font-size: 10px; margin: 0; }
.list-row .icon { color: var(--dim); align-self: center; }
.list-row:hover .icon { color: var(--acid); }
.list-time { font-family: var(--font-mono); font-size: 8px; color: var(--dim); white-space: nowrap; }
.list-tag { font-family: var(--font-mono); font-size: 7px; letter-spacing: .08em; color: var(--acid); border: 1px solid color-mix(in srgb, var(--acid) 35%, transparent); padding: 2px 5px; margin-top: 2px; }
.list-row.is-unread { background: color-mix(in srgb, var(--acid) 4%, transparent); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { text-align: left; font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; color: var(--dim); font-weight: 400; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td small { display: block; font-family: var(--font-mono); font-size: 8px; color: var(--dim); }
tr:last-child td { border-bottom: 0; }
td a:hover { color: var(--acid); }
.row-actions { display: flex; gap: 4px; align-items: center; }
.row-actions .icon-btn { width: 28px; height: 28px; }
.row-actions form { display: inline-flex; }
.inline-form { display: inline-flex; }
.inline-form select { background: transparent; border: 1px solid var(--line); font-size: 9px; padding: 4px 6px; outline: 0; }
.inline-search { display: flex; align-items: center; border-bottom: 1px solid var(--line-strong); }
.inline-search input { background: transparent; border: 0; outline: 0; padding: 8px 0; font-size: 11px; width: 200px; }
.inline-search button { background: transparent; border: 0; color: var(--muted); }
.pagination { display: flex; gap: 4px; margin-top: 16px; }
.pagination a { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: 9px; color: var(--muted); }
.pagination a.is-active, .pagination a:hover { border-color: var(--acid); color: var(--acid); }
.chart { height: 180px; display: flex; align-items: flex-end; gap: 5px; border-bottom: 1px solid var(--line); padding-top: 10px; }
.chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.chart-col i { width: 100%; max-width: 24px; background: var(--acid); opacity: .75; min-height: 4px; transition: opacity .2s; }
.chart-col:hover i { opacity: 1; }
.chart-col span { font-family: var(--font-mono); font-size: 6px; color: var(--dim); writing-mode: vertical-rl; transform: rotate(180deg); }
.fav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fav-card { border: 1px solid var(--line); display: grid; grid-template-columns: 130px 1fr; transition: border-color .2s; }
.fav-card:hover { border-color: var(--line-strong); }
.fav-card .art { aspect-ratio: 1; }
.fav-card > div:last-child { padding: 14px; }
.fav-card h3 { font-family: var(--font-display); font-size: 20px; line-height: 1.05; margin: 6px 0; }
.fav-card p { font-size: 10px; color: var(--muted); line-height: 1.6; }
.stack-form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.editor { max-width: 1100px; }
.editor .field { margin-bottom: 16px; }
.editor textarea.code { font-family: var(--font-mono); font-size: 11px; line-height: 1.6; background: var(--surface); border: 1px solid var(--line); padding: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 8px; }
.check input { width: auto; }
.profile-preview { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; min-height: 340px; }
.profile-preview h3 { font-family: var(--font-display); font-size: 28px; margin: 16px 0 4px; }
.profile-preview p { font-size: 11px; color: var(--muted); }
.security-list { display: grid; gap: 12px; margin-top: 16px; }
.security-list div { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 11px; }
.security-list span { color: var(--muted); }
.message-list { display: grid; gap: 0; }
.message-item { border-top: 1px solid var(--line); padding: 18px 0; }
.message-item:first-child { border-top: 0; }
.message-item.is-new { background: color-mix(in srgb, var(--acid) 4%, transparent); padding-left: 10px; padding-right: 10px; }
.message-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 6px; }
.message-head > div { display: flex; align-items: center; gap: 10px; }
.message-head strong { font-weight: 400; font-size: 13px; }
.message-head > span { font-family: var(--font-mono); font-size: 8px; color: var(--dim); }
.message-meta { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 8px; color: var(--muted); margin-bottom: 8px; }
.message-meta a { color: var(--acid); }
.message-item p { font-size: 11px; line-height: 1.8; color: var(--muted); max-width: 820px; }
.message-actions { display: flex; gap: 18px; margin-top: 10px; }
.message-actions .text-link { background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 3px; font-size: 9px; }
.maintenance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.maintenance-card { border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.maintenance-card:hover { border-color: var(--acid); }
.maintenance-card strong { font-family: var(--font-display); font-size: 22px; }
.maintenance-card p { font-size: 10px; color: var(--muted); margin: 0; }
.maintenance-card .icon { margin-top: auto; color: var(--acid); }
.error-page { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 8vh) var(--pad); }
.error-page h1 { font-family: var(--font-display); font-size: clamp(100px, 22vw, 320px); line-height: .8; letter-spacing: -.08em; color: var(--acid); }
.error-page p { color: var(--muted); max-width: 400px; margin: 24px 0 30px; }

/* responsive --------------------------------------------------------------- */
@media (max-width: 1180px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-side { display: none; }
    .hero-title { font-size: clamp(72px, 15vw, 170px); }
    .hero-bottom { grid-column: 1 / -1; }
    .work-row, .work-index .work-row { grid-template-columns: 42px 38% 1fr 28px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-links { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; }
    .contact { grid-template-columns: 1fr; gap: 4vh; }
    .contact-form-wrap { padding-top: 0; }
    .auth { grid-template-columns: 1fr; }
    .auth-art { min-height: 34svh; border-right: 0; border-bottom: 1px solid var(--line); }
    .auth-art-copy { bottom: 28px; }
    .auth-panel { padding-top: 5vh; }
    .auth-brand { margin-bottom: 4vh; }
    .app-shell { grid-template-columns: 210px 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
    .cap-grid { grid-template-columns: 1fr; }
    .cap-card { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .cap-card:last-child { border-bottom: 0; }
    .about-grid { grid-template-columns: 1fr; gap: 22px; }
    .studio-stats { grid-template-columns: repeat(2, 1fr); }
    .studio-stats div:nth-child(2) { border-right: 0; }
    .journal-grid { grid-template-columns: 1fr 1fr; }
    .project-body, .post-body { grid-template-columns: 1fr; gap: 30px; }
    .project-aside, .post-aside { position: static; }
}
@media (max-width: 860px) {
    :root { --nav-h: 64px; }
    .nav-links, .nav-login, .nav-user-name, .nav-cta { display: none; }
    .menu-toggle { display: flex; }
    .menu-body { grid-template-columns: 1fr; gap: 5vh; align-content: center; }
    .menu-aside { max-width: 100%; }
    .hero { min-height: 92svh; padding-top: calc(var(--nav-h) + 4vh); }
    .hero-title { font-size: clamp(58px, 17vw, 120px); }
    .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 4vh; }
    .hero-copy { max-width: 100%; }
    .section-head { grid-template-columns: 1fr; }
    .section-head .text-link { justify-self: start; }
    .work-row, .work-index .work-row { grid-template-columns: 30px 1fr 24px; gap: 12px; padding: 18px 0; }
    .work-art-wrap { grid-column: 2 / 4; grid-row: 1; }
    .work-copy { grid-column: 2 / 4; }
    .work-index { display: none; }
    .work-arrow { grid-column: 3; grid-row: 2; align-self: start; }
    .work-row:hover { padding-left: 0; padding-right: 0; }
    .work-copy h3, .work-copy h2 { font-size: clamp(28px, 6vw, 44px); }
    .process-row { grid-template-columns: 34px 1fr; gap: 10px; }
    .process-row p, .process-tag { grid-column: 2; }
    .process-row h3 { grid-column: 2; }
    .principle { grid-template-columns: 34px 1fr; }
    .principle p { grid-column: 2; }
    .journal-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .footer-news { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .page-hero { padding-top: calc(var(--nav-h) + 6vh); }
    .page-hero h1 { font-size: clamp(54px, 14vw, 100px); }
    .page-hero-copy { margin-left: 0; }
    .project-meta { grid-template-columns: 1fr 1fr; }
    .project-meta-action { grid-column: 1 / -1; justify-self: start; }
    .project-head h1, .post-head h1 { font-size: clamp(48px, 12vw, 90px); }
    .project-body, .post-body { padding: 5vh 0; }
    .prose { font-size: 14px; }
    .field-row { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .fav-grid { grid-template-columns: 1fr; }
    .fav-card { grid-template-columns: 100px 1fr; }
    .app-shell { grid-template-columns: 1fr; }
    .app-side { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 50; transform: translateX(-100%); transition: transform .3s var(--ease); }
    .app-side.is-open { transform: translateX(0); }
    .app-menu-btn { display: inline-flex; }
    .app-content { padding: 18px; }
    .app-title-row { flex-direction: column; align-items: flex-start; }
    .app-user { display: none; }
    .app-view-site { display: none; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { min-height: 110px; padding: 14px; }
    .stat-card strong { font-size: 34px; }
    .maintenance-grid { grid-template-columns: 1fr; }
    .studio-stats strong { font-size: 54px; }
    .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .hero-title { font-size: 17vw; }
    .hero-kicker { font-size: 7px; letter-spacing: .12em; }
    .btn { min-height: 44px; padding: 0 16px; font-size: 10px; }
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1; }
    .marquee-track span { font-size: 8px; }
    .section { padding-top: 56px; padding-bottom: 56px; }
    .section-title { font-size: 40px; }
    .work-copy p { font-size: 11px; }
    .post-card h3 { font-size: 24px; }
    .footer-bottom { font-size: 7px; }
    .auth-panel { padding-left: 18px; padding-right: 18px; }
    .auth-head h1 { font-size: 44px; }
    .stat-grid { grid-template-columns: 1fr; }
    .studio-stats { grid-template-columns: 1fr; }
    .studio-stats div { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
    .contact-intro h1 { font-size: 15vw; }
}

/* reduced motion ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    #hero-canvas { display: none; }
    .cursor { display: none; }
}
