:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #090909;
  --panel-2: #0d0d0d;
  --line: rgba(255,255,255,.11);
  --line-soft: rgba(255,255,255,.065);
  --text: #f2f2f0;
  --muted: #858585;
  --muted-2: #555;
  --max: 1460px;
  --header: 78px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(255,255,255,.045), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

::selection { background: #f1f1ed; color: #050505; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #262626; border: 3px solid #050505; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: .045;
  pointer-events: none;
  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='.9'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}
.cursor-glow {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.032), transparent 67%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.shell { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }
.eyebrow { margin: 0; color: var(--muted); font: 500 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .22em; }

/* Intro */
.intro {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px),
    #030303;
  background-size: 100% 96px, 96px 100%, auto;
  transition: opacity .9s var(--ease), visibility .9s;
}
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.055), transparent 42%);
  pointer-events: none;
}
.intro.leaving { opacity: 1; visibility: visible; }
.intro__header {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  border-bottom: 1px solid var(--line-soft);
}
.micro-brand, .brand {
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .25em;
}
.intro__links { display: flex; gap: 28px; }
.intro__links button {
  padding: 8px 0;
  background: none;
  color: #898989;
  font: 500 9px/1 ui-monospace, monospace;
  letter-spacing: .16em;
  cursor: pointer;
}
.intro__links button:hover { color: #fff; }
.intro__center {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 50px 20px 130px;
}
.procedural-eye-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}
 33%{clip-path: inset(26% 0 48% 0); transform: translate(calc(-50% - 8px),-50%)} 66%{clip-path: inset(58% 0 12% 0); transform: translate(calc(-50% + 9px),-50%)} 100%{clip-path: inset(0)} }
.intro__identity { position:absolute; top:82%; bottom:auto; left:50%; transform:translate(-50%,-50%); text-align:center; width:100%; padding-inline:18px; pointer-events:none; }
.intro__identity h1 { margin:0; color:#e8e8e5; font:400 clamp(20px,1.8vw,30px)/1.1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.24em; text-indent:.24em; white-space:nowrap; text-shadow:0 0 18px rgba(255,255,255,.08); }
.tagline { margin:0; color:#666; font:500 10px/1.2 ui-monospace,monospace; letter-spacing:.25em; }
.enter-button {
  position: absolute;
  z-index: 4;
  bottom: 10px; left: 50%;
  display: grid; justify-items: center; gap: 10px;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: transparent;
  color: #969696;
  cursor: pointer;
  font: 500 9px/1 ui-monospace, monospace;
  letter-spacing: .22em;
}
.enter-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.2; animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0%,100%{transform:translateY(0);opacity:.4} 50%{transform:translateY(5px);opacity:1} }
.intro__status { position: absolute; left: 32px; bottom: 28px; color: #4d4d4d; font: 500 8px/1 ui-monospace, monospace; letter-spacing: .16em; }
.intro__status span { display:inline-block; width:5px; height:5px; border-radius:50%; background:#bbb; box-shadow:0 0 8px #fff; margin-right:8px; animation:pulse 2s infinite; }
@keyframes pulse { 50%{opacity:.25} }

/* Continuous one-page archive */
.app { opacity: 1; visibility: visible; min-height: 100vh; }
.app.visible { opacity: 1; visibility: visible; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header);
  background: rgba(5,5,5,.82);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}
.site-header__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { justify-self: start; padding: 12px 0; background: none; cursor: pointer; }
.main-nav { display: flex; height: 100%; align-items: center; gap: 38px; }
.nav-link { position: relative; height: 100%; padding: 0; background: none; color: #686868; font: 500 9px/1 ui-monospace, monospace; letter-spacing: .16em; cursor: pointer; }
.nav-link::after { content:""; position:absolute; left:0; right:0; bottom:20px; height:1px; background:#e8e8e5; transform:scaleX(0); transition:transform .3s var(--ease); }
.nav-link:hover, .nav-link.active { color: #eee; }
.nav-link.active::after { transform: scaleX(1); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 17px; }
.icon-button { display:grid; place-items:center; width:34px; height:34px; padding:0; background:none; color:#777; cursor:pointer; }
.icon-button svg { width:17px; fill:none; stroke:currentColor; stroke-width:1.3; }
.profile-button { width:31px; height:31px; padding:0; border-radius:50%; overflow:hidden; background:#111; border:1px solid var(--line); cursor:pointer; transition:transform .25s; }
.profile-button:hover { transform: scale(1.08); }
.profile-button img { width:100%; height:100%; object-fit:cover; }
.view { min-height: auto; scroll-margin-top: calc(var(--header) + 12px); border-bottom: 1px solid var(--line-soft); animation: reveal .55s var(--ease); }
@keyframes reveal { from{opacity:0; transform:translateY(14px)} }
.feed-intro { display:flex; justify-content:space-between; align-items:end; padding: 72px 0 34px; }
.feed-intro h2, .page-heading h2, .profile-card h2, .studio-head h2 { margin: 12px 0 0; font-size: clamp(28px, 3vw, 52px); font-weight: 300; letter-spacing: -.04em; }
.feed-meta { display:flex; gap:28px; color:#666; font:500 9px/1 ui-monospace,monospace; letter-spacing:.15em; }
.post-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; padding-bottom: 100px; }
.post-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #080808;
  cursor: pointer;
  transition: border-color .35s, transform .35s var(--ease), background .35s;
}
.post-card:hover { z-index:2; transform:translateY(-4px); border-color:rgba(255,255,255,.25); background:#0b0b0b; }
.post-card__image { position:relative; aspect-ratio:1.08/1; overflow:hidden; background:#0c0c0c; }
.post-card__image::after { content:""; position:absolute; inset:0; box-shadow:inset 0 0 70px rgba(0,0,0,.36); }
.post-card__image img { width:100%; height:100%; object-fit:cover; filter:grayscale(1) contrast(1.08) brightness(.8); transition:transform .8s var(--ease), filter .5s; }
.post-card:hover .post-card__image img { transform:scale(1.035); filter:grayscale(1) contrast(1.1) brightness(.93); }
.post-card__body { padding:20px 20px 17px; }
.post-card__title-row { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.post-card h3 { margin:0; font-size:14px; font-weight:500; text-transform:lowercase; }
.kebab { color:#565656; letter-spacing:.1em; }
.post-card__caption { min-height:42px; margin:12px 0 22px; color:#888; font-size:12px; line-height:1.75; }
.post-card__meta { display:flex; align-items:center; justify-content:space-between; color:#696969; font:500 10px/1 ui-monospace,monospace; }
.metric { display:inline-flex; align-items:center; gap:7px; }
.metric svg { width:15px; fill:none; stroke:currentColor; stroke-width:1.4; }
.post-index { position:absolute; top:12px; left:12px; z-index:2; padding:6px 8px; background:rgba(0,0,0,.66); border:1px solid rgba(255,255,255,.09); color:#8e8e8e; font:500 8px/1 ui-monospace,monospace; letter-spacing:.12em; backdrop-filter:blur(8px); }

/* Archive */
.page-heading { padding: 90px 0 70px; border-bottom:1px solid var(--line-soft); }
.page-heading p:last-child { max-width:460px; color:#777; line-height:1.8; }
.archive-layout { display:grid; grid-template-columns:220px 1fr; gap:70px; padding:70px 0 120px; }
.archive-years { position:sticky; top:120px; align-self:start; display:grid; gap:12px; }
.year-button { padding:8px 0; text-align:left; background:none; color:#4f4f4f; font:500 10px/1 ui-monospace,monospace; letter-spacing:.18em; cursor:pointer; }
.year-button.active { color:#fff; }
.archive-list { border-top:1px solid var(--line); }
.archive-row { display:grid; grid-template-columns:110px 80px minmax(0,1fr) 120px; align-items:center; gap:24px; padding:22px 0; border-bottom:1px solid var(--line-soft); cursor:pointer; transition:padding .25s var(--ease), color .25s; }
.archive-row:hover { padding-left:12px; }
.archive-row img { width:76px; height:54px; object-fit:cover; filter:grayscale(1) brightness(.8); }
.archive-date, .archive-views { color:#636363; font:500 9px/1.4 ui-monospace,monospace; letter-spacing:.1em; }
.archive-title { font-size:15px; }
.archive-views { justify-self:end; }

/* About */
.profile-layout { display:grid; grid-template-columns:330px minmax(0,1fr); min-height:calc(100vh - var(--header)); }
.profile-card { position:sticky; top:var(--header); align-self:start; min-height:calc(100vh - var(--header)); padding:78px 50px 36px 0; border-right:1px solid var(--line-soft); display:flex; flex-direction:column; align-items:flex-start; }
.profile-card__avatar { width:150px; height:150px; object-fit:cover; border-radius:50%; border:1px solid var(--line); margin-bottom:38px; }
.profile-card h2 { font-size:26px; }
.profile-card__bio { color:#777; font-size:13px; line-height:1.8; }
.outline-button, .solid-button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 18px; border:1px solid var(--line); background:transparent; color:#aaa; font:500 9px/1 ui-monospace,monospace; letter-spacing:.12em; cursor:pointer; transition:.25s; }
.outline-button:hover { border-color:#ddd; color:#fff; }
.solid-button { background:#eee; color:#080808; border-color:#eee; }
.solid-button:hover { background:white; }
.profile-card .outline-button { margin-top:25px; }
.profile-card__foot { margin-top:auto; width:100%; display:flex; justify-content:space-between; color:#484848; font:500 8px/1 ui-monospace,monospace; letter-spacing:.15em; }
.profile-dashboard { padding:78px 0 100px 62px; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); border-bottom:1px solid var(--line-soft); padding-bottom:35px; }
.stat { text-align:center; border-right:1px solid var(--line-soft); }
.stat:last-child { border-right:0; }
.stat strong { display:block; font:400 27px/1.1 ui-monospace,monospace; }
.stat span { display:block; margin-top:10px; color:#666; font-size:10px; }
.chart-card { margin-top:52px; }
.section-head { display:flex; justify-content:space-between; color:#666; font:500 9px/1 ui-monospace,monospace; letter-spacing:.14em; }
.activity-chart { width:100%; height:260px; overflow:visible; margin-top:28px; }
.chart-grid { fill:none; stroke:rgba(255,255,255,.06); stroke-width:1; vector-effect:non-scaling-stroke; }
.chart-area { fill:url(#areaFade); }
.chart-line { fill:none; stroke:#aaa; stroke-width:1.15; vector-effect:non-scaling-stroke; }
.chart-axis { display:flex; justify-content:space-between; color:#4f4f4f; font:500 8px/1 ui-monospace,monospace; }
.dashboard-bottom { display:grid; grid-template-columns:1fr 1.12fr; gap:56px; margin-top:70px; }
.top-posts, .activity-list { margin-top:20px; border-top:1px solid var(--line-soft); }
.top-post-row { display:grid; grid-template-columns:52px 1fr auto; align-items:center; gap:14px; padding:13px 0; border-bottom:1px solid var(--line-soft); cursor:pointer; }
.top-post-row img { width:52px; height:42px; object-fit:cover; filter:grayscale(1); }
.top-post-row strong { display:block; font-size:11px; font-weight:500; }
.top-post-row span { color:#5d5d5d; font:500 8px/1 ui-monospace,monospace; }
.activity-row { display:flex; justify-content:space-between; gap:20px; padding:19px 0; border-bottom:1px solid var(--line-soft); color:#737373; font-size:11px; }
.activity-row time { color:#4f4f4f; font:500 8px/1 ui-monospace,monospace; }

/* Overlays */
.search-overlay, .modal { position:fixed; inset:0; z-index:500; visibility:hidden; opacity:0; background:rgba(2,2,2,.94); backdrop-filter:blur(18px); transition:opacity .35s, visibility .35s; overflow:auto; }
.search-overlay.open, .modal.open { visibility:visible; opacity:1; }
.overlay-close { position:fixed; z-index:3; top:24px; right:28px; width:48px; height:48px; background:transparent; color:#888; font-size:31px; font-weight:200; cursor:pointer; }
.search-panel { width:min(860px,calc(100% - 48px)); margin:15vh auto 80px; }
.search-panel label { display:block; margin:24px 0 20px; font-size:clamp(30px,5vw,64px); font-weight:300; letter-spacing:-.045em; }
.search-panel input { width:100%; padding:20px 0; border:0; border-bottom:1px solid #444; outline:0; background:transparent; font-size:24px; font-weight:300; }
.search-results { margin-top:30px; }
.search-result { display:grid; grid-template-columns:70px 1fr auto; align-items:center; gap:18px; padding:13px 0; border-bottom:1px solid var(--line-soft); cursor:pointer; }
.search-result img { width:70px; height:50px; object-fit:cover; filter:grayscale(1); }
.search-result span { color:#5e5e5e; font:500 9px/1 ui-monospace,monospace; }
.post-detail { width:min(1420px,calc(100% - 80px)); min-height:100vh; margin:auto; display:grid; grid-template-columns:minmax(0,1.5fr) minmax(380px,.8fr); gap:10px; padding:70px 0; }
.post-detail__media { min-height:calc(100vh - 140px); border:1px solid var(--line-soft); background:#080808; }
.post-detail__media img { width:100%; height:100%; object-fit:cover; filter:grayscale(1) contrast(1.06) brightness(.83); }
.post-detail__side { border:1px solid var(--line-soft); background:#080808; padding:40px; display:flex; flex-direction:column; }
.post-detail__side h2 { margin:10px 0 5px; font-size:28px; font-weight:400; text-transform:lowercase; }
.post-detail__time { color:#555; font:500 9px/1 ui-monospace,monospace; }
.post-detail__caption { margin:28px 0; color:#aaa; font-size:14px; line-height:1.8; }
.post-actions { display:flex; gap:20px; padding:18px 0; border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.post-actions button { display:flex; align-items:center; gap:8px; padding:0; background:none; color:#777; cursor:pointer; font-size:11px; }
.post-actions button.liked { color:#eee; }
.post-actions svg { width:17px; fill:none; stroke:currentColor; stroke-width:1.4; }
.comments { margin-top:26px; }
.comments h3 { font:500 9px/1 ui-monospace,monospace; letter-spacing:.14em; color:#666; }
.comment-list { max-height:260px; overflow:auto; }
.comment { padding:14px 0; border-bottom:1px solid var(--line-soft); }
.comment strong { display:block; margin-bottom:5px; font-size:11px; font-weight:500; }
.comment p { margin:0; color:#777; font-size:11px; line-height:1.55; }
.comment-form { display:flex; gap:12px; margin-top:auto; padding-top:24px; }
.comment-form input { min-width:0; flex:1; padding:13px 0; border:0; border-bottom:1px solid #333; outline:0; background:transparent; font-size:12px; }
.comment-form button { width:42px; background:none; color:#777; cursor:pointer; font-size:20px; }

/* Studio */
.studio-panel { width:min(1200px,calc(100% - 64px)); margin:80px auto; padding:50px; border:1px solid var(--line); background:#080808; }
.studio-head { display:flex; justify-content:space-between; align-items:end; padding-bottom:34px; border-bottom:1px solid var(--line-soft); }
.studio-head h2 { font-size:40px; }
.local-badge { padding:9px 12px; border:1px solid var(--line); color:#666; font:500 8px/1 ui-monospace,monospace; letter-spacing:.14em; }
.studio-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:60px; padding-top:44px; }
.editor-form { display:grid; gap:22px; }
.editor-form label { display:grid; gap:10px; color:#777; font:500 9px/1 ui-monospace,monospace; letter-spacing:.12em; }
.editor-form input, .editor-form textarea { width:100%; padding:13px 0; border:0; border-bottom:1px solid #303030; outline:0; resize:vertical; background:transparent; color:#ddd; font:400 13px/1.6 Inter,sans-serif; letter-spacing:0; }
.editor-form input[type=file] { color:#666; font:500 10px/1.4 ui-monospace,monospace; }
.form-note { color:#555; font-size:10px; line-height:1.6; }
.custom-post-list { margin-top:18px; border-top:1px solid var(--line-soft); min-height:180px; }
.custom-post-row { display:grid; grid-template-columns:62px 1fr auto; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid var(--line-soft); }
.custom-post-row img { width:62px; height:48px; object-fit:cover; filter:grayscale(1); }
.custom-post-row strong { display:block; font-size:11px; font-weight:500; }
.custom-post-row span { color:#555; font:500 8px/1 ui-monospace,monospace; }
.delete-button { padding:8px; background:none; color:#5e5e5e; cursor:pointer; }
.delete-button:hover { color:#fff; }
.studio-tools { display:flex; gap:10px; margin-top:30px; }
.file-button { position:relative; cursor:pointer; }
.file-button input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.toast { position:fixed; z-index:1000; left:50%; bottom:30px; transform:translate(-50%,20px); padding:12px 16px; background:#e9e9e5; color:#080808; opacity:0; visibility:hidden; font:600 9px/1 ui-monospace,monospace; letter-spacing:.11em; transition:.3s; }
.toast.show { opacity:1; visibility:visible; transform:translate(-50%,0); }
.site-footer { border-top:1px solid var(--line-soft); }
.site-footer .shell { min-height:80px; display:flex; align-items:center; justify-content:space-between; color:#494949; font:500 8px/1 ui-monospace,monospace; letter-spacing:.13em; }

@media (max-width: 1100px) {
  .post-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .profile-layout { grid-template-columns:270px minmax(0,1fr); }
  .profile-card { padding-right:34px; }
  .profile-dashboard { padding-left:38px; }
  .dashboard-bottom { grid-template-columns:1fr; }
  .post-detail { grid-template-columns:1fr; }
  .post-detail__media { min-height:62vh; }
}
@media (max-width: 760px) {
  :root { --header:66px; }
  .shell { width:min(calc(100% - 28px),var(--max)); }
  .intro__header { height:66px; }
  .intro__links { gap:18px; }
  .intro__identity { top:72%; bottom:auto; }
  .intro__identity h1 { font-size:17px; letter-spacing:.15em; text-indent:.15em; }
  .intro__status { display:none; }
  .intro { min-height: 100svh; }
  .enter-button { bottom: max(8px, env(safe-area-inset-bottom)); }
  .site-header__inner { grid-template-columns:1fr auto; }
  .main-nav { position:fixed; left:0; right:0; bottom:0; z-index:120; height:calc(58px + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); justify-content:space-around; gap:0; border-top:1px solid var(--line); background:rgba(5,5,5,.95); backdrop-filter:blur(15px); }
  .nav-link { width:33.333%; }
  .nav-link::after { bottom:8px; left:36%; right:36%; }
  .header-actions { grid-column:2; }
  .feed-intro { padding:42px 0 24px; align-items:start; }
  .feed-intro h2 { font-size:32px; }
  .feed-meta { flex-direction:column; gap:8px; text-align:right; }
  .post-grid { grid-template-columns:1fr; gap:12px; padding-bottom:90px; }
  .post-card__image { aspect-ratio:1.22/1; }
  .page-heading { padding:52px 0 38px; }
  .archive-layout { grid-template-columns:1fr; gap:26px; padding:24px 0 92px; }
  .archive-years { position:static; grid-auto-flow:column; justify-content:start; }
  .archive-row { grid-template-columns:58px 70px minmax(0,1fr); gap:12px; }
  .archive-date { display:none; }
  .archive-views { display:none; }
  .profile-layout { grid-template-columns:1fr; padding-bottom:92px; }
  .profile-card { position:relative; top:auto; min-height:auto; padding:54px 0 46px; border-right:0; border-bottom:1px solid var(--line-soft); align-items:center; text-align:center; }
  .profile-card__foot { margin-top:42px; }
  .profile-dashboard { padding:46px 0 40px; }
  .stats { grid-template-columns:repeat(2,1fr); gap:28px 0; }
  .stat:nth-child(2) { border-right:0; }
  .activity-chart { height:200px; }
  .dashboard-bottom { gap:44px; margin-top:55px; }
  .post-detail { width:100%; padding:62px 12px 80px; gap:8px; }
  .post-detail__media { min-height:52vh; }
  .post-detail__side { padding:27px 22px; min-height:520px; }
  .studio-panel { width:calc(100% - 20px); margin:62px auto 80px; padding:24px 18px; }
  .studio-head { align-items:start; gap:24px; }
  .studio-head h2 { font-size:30px; }
  .local-badge { display:none; }
  .studio-grid { grid-template-columns:1fr; gap:50px; }
  .search-panel { margin-top:12vh; }
  .search-panel label { font-size:36px; }
  .site-footer { padding-bottom:58px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.001ms !important; }
}

/* One-page flow */
.view[hidden] { display: block !important; }
.view--feed { padding-bottom: 22px; }
.view--archive { padding-top: 18px; }
.view--about { padding-top: 18px; }
#feedView, #archiveView, #aboutView { scroll-margin-top: calc(var(--header) + 10px); }
.intro + .app { position: relative; z-index: 5; }

@media (max-width: 760px) and (orientation: portrait) {
  .procedural-eye-canvas { transform: translateY(-4vh) scale(1.02); transform-origin: center; }
  .intro__identity { top:70%; bottom:auto; }
  .intro__identity h1 { font-size:16px; letter-spacing:.13em; text-indent:.13em; }
}

@media (max-height: 680px) and (min-width: 761px) {
  .intro__identity { top: 84%; }
  .intro__identity h1 { font-size: 19px; }
}

/* Final intro title placement. The title is a direct child of .intro,
   so viewport-relative placement is no longer affected by .intro__center. */
.intro__identity {
  position: absolute !important;
  z-index: 4;
  top: 69svh !important;
  bottom: auto !important;
  left: 50%;
  width: auto;
  max-width: calc(100% - 32px);
  padding: 0;
  transform: translate(-50%, 0) !important;
  text-align: center;
  pointer-events: none;
}
.intro__identity h1 {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent !important;
  color: #e8e8e5;
  font-size: clamp(18px, 1.55vw, 27px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .22em;
  text-indent: .22em;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(255,255,255,.08);
}

/* Admin access and editor */
[hidden] { display: none !important; }
.admin-lock { min-height: 440px; display:grid; place-items:center; padding:52px 0 18px; }
.admin-lock__inner { width:min(430px,100%); padding:36px; border:1px solid var(--line); background:#060606; }
.admin-lock__inner h3 { margin:10px 0 12px; font-size:24px; font-weight:400; }
.admin-lock__inner > p:not(.eyebrow) { margin:0 0 28px; color:#707070; font-size:11px; line-height:1.7; }
.admin-pin-form { display:grid; gap:20px; }
.admin-pin-form label { display:grid; gap:10px; color:#777; font:500 9px/1 ui-monospace,monospace; letter-spacing:.12em; }
.admin-pin-form input { width:100%; padding:14px 0; border:0; border-bottom:1px solid #303030; outline:0; background:transparent; color:#eee; font:500 16px/1 ui-monospace,monospace; letter-spacing:.2em; }
.admin-toolbar { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 0; border-bottom:1px solid var(--line-soft); }
.admin-toolbar > div:first-child { display:grid; grid-template-columns:auto auto; align-items:center; gap:5px 9px; }
.admin-toolbar strong { font:500 9px/1 ui-monospace,monospace; letter-spacing:.12em; color:#a0a0a0; }
.admin-toolbar small { grid-column:2; color:#525252; font-size:9px; line-height:1.5; }
.admin-toolbar__actions { display:flex; gap:10px; }
.admin-status-dot { width:6px; height:6px; border-radius:50%; background:#72ca90; box-shadow:0 0 10px rgba(114,202,144,.35); }
.admin-status-dot--muted { background:#646464; box-shadow:none; display:inline-block; margin-right:8px; }
.editor-form__heading { display:flex; align-items:end; justify-content:space-between; gap:20px; }
.editor-form__heading h3 { margin:8px 0 0; font-size:22px; font-weight:400; }
.text-button { padding:0 0 3px; background:none; color:#777; font:500 8px/1 ui-monospace,monospace; letter-spacing:.12em; cursor:pointer; }
.text-button:hover { color:#fff; }
.editor-form select { width:100%; padding:13px 0; border:0; border-bottom:1px solid #303030; outline:0; background:#080808; color:#ddd; font:500 10px/1 ui-monospace,monospace; letter-spacing:.1em; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.custom-post-row { grid-template-columns:62px minmax(0,1fr) auto auto; }
.custom-post-row__actions { display:flex; align-items:center; gap:2px; }
.edit-button { padding:8px; background:none; color:#5e5e5e; cursor:pointer; font:500 8px/1 ui-monospace,monospace; letter-spacing:.1em; }
.edit-button:hover { color:#fff; }
.status-chip { display:inline-flex !important; width:max-content; margin-top:7px; padding:4px 6px; border:1px solid #292929; color:#6e6e6e !important; font-size:7px !important; letter-spacing:.1em; }
.status-chip--draft { color:#a2855e !important; border-color:#3a3025; }
.supabase-card { margin-top:26px; padding:20px; border:1px solid var(--line-soft); background:#060606; }
.supabase-card > div { display:flex; align-items:center; }
.supabase-card strong { color:#858585; font:500 8px/1 ui-monospace,monospace; letter-spacing:.13em; }
.supabase-card p { margin:14px 0; color:#555; font-size:10px; line-height:1.65; }
.supabase-card code { color:#898989; font:500 9px/1 ui-monospace,monospace; }

@media (max-width: 760px) {
  .procedural-eye-canvas { transform: translateY(-7svh) scale(.96); transform-origin:center; }
  .intro__identity { top: 65svh !important; bottom: auto !important; }
  .intro__identity h1 { font-size:15px !important; letter-spacing:.12em !important; text-indent:.12em !important; }
  .studio-panel { padding-top:28px; }
  .admin-lock { min-height:360px; padding-top:32px; }
  .admin-lock__inner { padding:24px 18px; }
  .admin-toolbar { align-items:flex-start; flex-direction:column; }
  .admin-toolbar__actions { width:100%; }
  .admin-toolbar__actions .outline-button { flex:1; padding-inline:8px; }
  .form-row { grid-template-columns:1fr; }
  .custom-post-row { grid-template-columns:54px minmax(0,1fr) auto; }
  .custom-post-row img { width:54px; height:46px; }
  .status-chip { grid-column:2; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .intro__identity { top: 68svh !important; bottom: auto !important; }
}

/* Final title position: lock the archive title directly under the eye. */
.intro__identity {
  top: 56svh !important;
}
@media (max-width: 760px) {
  .intro__identity {
    top: 46svh !important;
  }
}
@media (min-width: 761px) and (max-width: 1200px) {
  .intro__identity {
    top: 58svh !important;
  }
}
@media (max-height: 760px) and (min-width: 761px) {
  .intro__identity {
    top: 60svh !important;
  }
}
@media (max-height: 700px) and (min-width: 761px) {
  .intro__identity { top: 77svh !important; }
}

/* Supabase owner authentication and analytics */
.admin-auth-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.admin-auth-actions .outline-button { min-height:44px; }
.admin-config-warning { margin-top:18px !important; padding:13px; border:1px solid rgba(255,100,100,.22); background:rgba(255,30,30,.035); color:#a77777 !important; }
.admin-config-warning code { color:#d0a0a0; }
.admin-analytics { padding:30px 0 34px; border-bottom:1px solid var(--line-soft); }
.admin-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--line-soft); margin-top:16px; }
.admin-stat-card { min-height:105px; display:flex; flex-direction:column; justify-content:space-between; padding:18px; border-right:1px solid var(--line-soft); background:#070707; }
.admin-stat-card:last-child { border-right:0; }
.admin-stat-card strong { font:300 28px/1 ui-monospace,monospace; letter-spacing:-.04em; }
.admin-stat-card span { color:#606060; font:500 8px/1 ui-monospace,monospace; letter-spacing:.14em; }
.analytics-note { margin:15px 0 18px; color:#5d5d5d; font-size:9px; line-height:1.65; }
.admin-events { border-top:1px solid var(--line-soft); }
.admin-event-row { display:grid; grid-template-columns:86px minmax(120px,1fr) 105px 94px 120px; gap:12px; align-items:center; min-height:52px; border-bottom:1px solid var(--line-soft); color:#777; font:500 8px/1.35 ui-monospace,monospace; letter-spacing:.06em; }
.admin-event-row strong { color:#c9c9c6; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.admin-event-type { color:#ff6666; }
.admin-event-empty { padding:28px 0; color:#555; font-size:10px; }
.admin-event-device { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.loading-state { padding:30px 0; color:#666; font:500 9px/1.6 ui-monospace,monospace; letter-spacing:.1em; }
.error-state { color:#b36d6d; }
.like-count { margin-left:3px; }
.post-actions button:disabled { opacity:.55; cursor:wait; }

@media (max-width: 760px) {
  .admin-auth-actions { grid-template-columns:1fr; }
  .admin-stat-grid { grid-template-columns:1fr 1fr; }
  .admin-stat-card:nth-child(2) { border-right:0; }
  .admin-stat-card:nth-child(-n+2) { border-bottom:1px solid var(--line-soft); }
  .admin-event-row { grid-template-columns:72px minmax(0,1fr) 88px; padding:12px 0; }
  .admin-event-row > :nth-child(4), .admin-event-row > :nth-child(5) { display:none; }
}

/* SOCIALRARITY live / final overrides */
.procedural-eye-canvas {
  inset: 0 0 auto 0 !important;
  height: 70svh !important;
  transform: none !important;
}
.intro__identity {
  top: auto !important;
  bottom: 13svh !important;
  transform: translateX(-50%) !important;
}
.intro__identity h1 {
  font-size: clamp(18px, 1.55vw, 27px) !important;
  letter-spacing: .22em !important;
  text-indent: .22em !important;
  background: transparent !important;
}
.header-actions { min-width:42px; justify-content:flex-end; }
.site-footer a { color:inherit; text-decoration:none; }
.site-footer a:hover { color:#fff; }
.post-card__meta { flex-wrap:wrap; }
.post-card__meta .metric { display:inline-flex; align-items:center; gap:5px; }
.post-card__meta .metric svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.5; }
.empty-archive { grid-column:1/-1; min-height:240px; display:grid; place-items:center; align-content:center; gap:14px; border:1px solid var(--line-soft); color:#555; }
.empty-archive span { font:300 42px/1 ui-monospace,monospace; color:#252525; }
.empty-archive p { margin:0; font:500 9px/1.7 ui-monospace,monospace; letter-spacing:.1em; text-transform:uppercase; }
.activity-empty { padding:24px 0; color:#555; font:500 9px/1.5 ui-monospace,monospace; letter-spacing:.08em; }
.activity-row { display:grid; grid-template-columns:10px 1fr auto; gap:10px; align-items:center; padding:16px 0; border-bottom:1px solid var(--line-soft); }
.activity-row strong { font:500 9px/1 ui-monospace,monospace; letter-spacing:.1em; }
.activity-row em { color:#555; font:500 8px/1 ui-monospace,monospace; font-style:normal; }
.live-dot { width:5px; height:5px; border-radius:50%; background:#70d092; box-shadow:0 0 10px rgba(112,208,146,.45); }

.comments-section { margin-top:34px; padding-top:26px; border-top:1px solid var(--line-soft); }
.comment-list { display:grid; margin-top:10px; }
.comment { padding:16px 0; border-bottom:1px solid var(--line-soft); }
.comment > div { display:flex; justify-content:space-between; gap:16px; }
.comment strong { color:#cfcfcb; font:600 9px/1 ui-monospace,monospace; letter-spacing:.12em; }
.comment time { color:#4f4f4f; font:500 8px/1 ui-monospace,monospace; }
.comment p { margin:10px 0 0; color:#8b8b88; font-size:12px; line-height:1.65; white-space:pre-wrap; }
.comment-empty { padding:22px 0; color:#4f4f4f; font:500 8px/1.5 ui-monospace,monospace; letter-spacing:.1em; }
.comment-form { display:grid; grid-template-columns:160px 1fr auto; gap:12px; align-items:end; margin-top:22px; }
.comment-form input, .comment-form textarea { width:100%; border:1px solid var(--line-soft); background:#070707; color:#ddd; padding:13px; outline:0; font:500 10px/1.5 ui-monospace,monospace; resize:vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color:#444; }
.comment-form .solid-button { min-height:44px; }
.post-actions > span { display:inline-flex; align-items:center; gap:7px; }
.post-actions > span svg { width:18px; fill:none; stroke:currentColor; stroke-width:1.4; }

.privacy-banner { position:fixed; z-index:60; left:50%; bottom:max(18px,env(safe-area-inset-bottom)); width:min(720px,calc(100% - 28px)); transform:translateX(-50%); display:flex; align-items:center; justify-content:space-between; gap:24px; padding:16px 18px; border:1px solid #292929; background:rgba(5,5,5,.96); box-shadow:0 16px 60px rgba(0,0,0,.55); }
.privacy-banner p { margin:0; color:#777; font-size:10px; line-height:1.55; }
.privacy-banner a { color:#aaa; }
.privacy-banner > div { display:flex; gap:8px; flex:none; }

/* Login */
.auth-page { min-height:100svh; display:grid; place-items:center; background:radial-gradient(circle at 50% 30%,#111 0,#050505 42%,#020202 100%); }
.auth-shell { width:min(520px,calc(100% - 32px)); }
.auth-brand { display:block; margin-bottom:22px; color:#ddd; text-decoration:none; font:600 10px/1 ui-monospace,monospace; letter-spacing:.25em; }
.auth-card { padding:42px; border:1px solid var(--line); background:#060606; box-shadow:0 30px 100px rgba(0,0,0,.5); }
.auth-card h1 { margin:12px 0 10px; font-weight:300; font-size:34px; }
.auth-copy { margin:0 0 30px; color:#666; font-size:11px; line-height:1.6; }
.auth-form { display:grid; gap:22px; }
.auth-form label, .admin-editor label { display:grid; gap:9px; color:#6c6c6c; font:500 8px/1 ui-monospace,monospace; letter-spacing:.13em; }
.auth-form input, .admin-editor input, .admin-editor textarea, .admin-editor select { width:100%; border:0; border-bottom:1px solid #303030; background:transparent; color:#e4e4e1; padding:13px 0; outline:0; font:500 13px/1.5 ui-monospace,monospace; }
.auth-form input:focus, .admin-editor input:focus, .admin-editor textarea:focus, .admin-editor select:focus { border-color:#777; }
.auth-setup { margin-top:18px; padding:0; border:0; background:none; color:#555; cursor:pointer; font:500 8px/1 ui-monospace,monospace; letter-spacing:.12em; }
.auth-setup:hover { color:#aaa; }
.auth-message { min-height:18px; margin:18px 0 0; color:#819b88; font:500 9px/1.5 ui-monospace,monospace; }
.auth-message.error { color:#b96d6d; }

/* Dedicated admin */
.admin-page { min-height:100svh; background:#050505; }
.admin-page-header { position:sticky; z-index:20; top:0; min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 max(24px,calc((100vw - var(--max))/2)); border-bottom:1px solid var(--line-soft); background:rgba(5,5,5,.93); backdrop-filter:blur(16px); }
.admin-page-header a { color:#eee; text-decoration:none; }
.admin-page-header > div { display:flex; align-items:center; gap:14px; color:#666; font:500 8px/1 ui-monospace,monospace; letter-spacing:.1em; }
.admin-page-main { width:min(calc(100% - 48px),var(--max)); margin:0 auto; padding:58px 0 120px; }
.admin-loading { min-height:calc(100svh - 72px); display:grid; place-items:center; color:#555; font:500 9px/1 ui-monospace,monospace; letter-spacing:.14em; }
.admin-hero { display:flex; align-items:end; justify-content:space-between; gap:24px; padding-bottom:34px; }
.admin-hero h1 { margin:10px 0 0; font-size:42px; font-weight:300; }
.admin-dashboard-section, .admin-data-section, .admin-ip-exclusions-section { padding:30px 0; border-top:1px solid var(--line-soft); }
.admin-live-stats { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); margin-top:18px; border:1px solid var(--line-soft); }
.admin-live-stat { min-height:112px; display:flex; flex-direction:column; justify-content:space-between; padding:18px; border-right:1px solid var(--line-soft); background:#070707; }
.admin-live-stat:last-child { border-right:0; }
.admin-live-stat strong { font:300 28px/1 ui-monospace,monospace; }
.admin-live-stat span { color:#5d5d5d; font:500 7px/1.4 ui-monospace,monospace; letter-spacing:.12em; }
.admin-chart-card { margin-top:22px; padding:18px; border:1px solid var(--line-soft); background:#070707; }
.admin-chart-area { fill:url(#adminAreaFade); }
.admin-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(420px,.9fr); gap:70px; padding:48px 0; border-top:1px solid var(--line-soft); }
.admin-editor { display:grid; gap:22px; }
.admin-editor textarea { resize:vertical; }
.admin-library-panel { min-width:0; }
.admin-post-list { border-top:1px solid var(--line-soft); }
.admin-post-row { display:grid; grid-template-columns:76px minmax(0,1fr) auto auto; gap:14px; align-items:center; padding:14px 0; border-bottom:1px solid var(--line-soft); }
.admin-post-row img { width:76px; height:58px; object-fit:cover; filter:grayscale(1) brightness(.8); }
.admin-post-row div { min-width:0; }
.admin-post-row strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.admin-post-row span { display:block; margin-top:7px; color:#555; font:500 7px/1 ui-monospace,monospace; letter-spacing:.08em; }
.text-button.danger, .outline-button.danger { color:#a45f5f; }
.admin-empty { padding:34px 0; color:#4d4d4d; font:500 8px/1.5 ui-monospace,monospace; letter-spacing:.1em; }
.analytics-note { color:#606060; font-size:9px; line-height:1.6; }
.admin-events-table { margin-top:18px; overflow-x:auto; border-top:1px solid var(--line-soft); }
.admin-event-head, .admin-event-line { min-width:1050px; display:grid; grid-template-columns:90px minmax(160px,1.4fr) 135px 150px 135px 90px 170px; gap:12px; align-items:center; }
.admin-event-head { min-height:40px; color:#4f4f4f; font:500 7px/1 ui-monospace,monospace; letter-spacing:.12em; }
.admin-event-line { min-height:50px; border-top:1px solid var(--line-soft); color:#727272; font:500 8px/1.35 ui-monospace,monospace; }
.admin-event-line strong { color:#c4c4c0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-event-line code { color:#858585; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.event-kind { color:#ff6a6a; }
.admin-comments-list { margin-top:18px; border-top:1px solid var(--line-soft); }
.admin-comment-row { display:grid; grid-template-columns:190px minmax(240px,1fr) 230px auto; gap:20px; align-items:center; padding:18px 0; border-bottom:1px solid var(--line-soft); }
.admin-comment-row strong { display:block; font-size:11px; }
.admin-comment-row span { display:block; margin-top:6px; color:#555; font-size:8px; }
.admin-comment-row p { margin:0; color:#888; font-size:11px; line-height:1.55; }
.admin-comment-row code { color:#666; font-size:8px; }
.admin-comment-row > div:last-child { display:flex; gap:8px; }
.form-note { margin:0; color:#555; font-size:9px; line-height:1.6; }

/* Privacy page */
.privacy-page { min-height:100svh; padding:70px 24px; background:#050505; }
.privacy-document { width:min(760px,100%); margin:auto; }
.privacy-document a { color:#ddd; }
.privacy-document h1 { margin:35px 0 20px; font-size:42px; font-weight:300; }
.privacy-document h2 { margin:34px 0 10px; font-size:18px; font-weight:400; }
.privacy-document p, .privacy-document li { color:#848484; font-size:12px; line-height:1.8; }

@media (max-width: 900px) {
  .procedural-eye-canvas { height:68svh !important; }
  .intro__identity { bottom:15svh !important; }
  .intro__identity h1 { font-size:15px !important; letter-spacing:.13em !important; text-indent:.13em !important; }
  .comment-form { grid-template-columns:1fr; }
  .privacy-banner { align-items:stretch; flex-direction:column; gap:12px; }
  .privacy-banner > div { display:grid; grid-template-columns:1fr 1fr; }
  .admin-live-stats { grid-template-columns:repeat(2,1fr); }
  .admin-live-stat { border-bottom:1px solid var(--line-soft); }
  .admin-columns { grid-template-columns:1fr; gap:46px; }
  .admin-comment-row { grid-template-columns:1fr; gap:10px; }
}

@media (max-width: 600px) {
  .shell { width:min(calc(100% - 28px),var(--max)); }
  .procedural-eye-canvas { height:64svh !important; top:2svh !important; }
  .intro__identity { bottom:18svh !important; max-width:calc(100% - 26px); }
  .intro__identity h1 { font-size:13px !important; letter-spacing:.09em !important; text-indent:.09em !important; }
  .intro__links { gap:14px; }
  .main-nav { gap:12px; }
  .auth-card { padding:28px 20px; }
  .admin-page-header { padding:0 14px; }
  .admin-page-header #adminEmail { display:none; }
  .admin-page-main { width:calc(100% - 28px); padding-top:34px; }
  .admin-hero { align-items:flex-start; flex-direction:column; }
  .admin-hero h1 { font-size:32px; }
  .admin-live-stats { grid-template-columns:1fr 1fr; }
  .admin-post-row { grid-template-columns:58px minmax(0,1fr) auto; }
  .admin-post-row img { width:58px; height:48px; }
  .admin-post-row [data-delete] { grid-column:3; }
}


/* ==========================================================================\n   Cohesive responsive hero: header + fading procedural eye + grouped CTA\n   ========================================================================== */
#intro.intro {
  --intro-header-h: 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}

#intro .intro__header {
  position: relative;
  z-index: 10;
  flex: 0 0 var(--intro-header-h);
  height: var(--intro-header-h);
}

#intro .intro__hero {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

#intro .intro__eye-stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: #000;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, .98) 68%,
    rgba(0, 0, 0, .72) 82%,
    rgba(0, 0, 0, .24) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, .98) 68%,
    rgba(0, 0, 0, .72) 82%,
    rgba(0, 0, 0, .24) 94%,
    transparent 100%
  );
}

#intro .procedural-eye-canvas {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  transform: none !important;
  pointer-events: none;
  background: #000;
}

#intro .intro__hero-copy {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  width: 100%;
  min-height: clamp(132px, 18svh, 190px);
  margin-top: clamp(-54px, -5.5svh, -34px);
  padding: 12px 20px clamp(20px, 3svh, 34px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(20px, 2.8svh, 30px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, .80) 34%,
    #030303 72%,
    #030303 100%
  );
}

#intro .intro__identity {
  position: static !important;
  width: auto !important;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 0 !important;
  transform: none !important;
  text-align: center;
  pointer-events: none;
}

#intro .intro__identity h1 {
  margin: 0;
  color: #ecece8;
  background: transparent !important;
  font-size: clamp(16px, 1.65vw, 26px);
  line-height: 1.2;
  letter-spacing: .20em;
  text-indent: .20em;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 255, 255, .08);
}

#intro .enter-button {
  position: static !important;
  display: grid;
  justify-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 22px;
  transform: none !important;
}

/* The archive begins directly after the exact one-viewport hero. */
#intro + .app {
  margin-top: 0 !important;
}

@media (max-width: 760px) {
  #intro.intro {
    --intro-header-h: 66px;
    height: 100svh;
    min-height: 0 !important;
  }

  #intro .intro__eye-stage {
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 54%,
      rgba(0, 0, 0, .96) 66%,
      rgba(0, 0, 0, .66) 80%,
      rgba(0, 0, 0, .20) 94%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 54%,
      rgba(0, 0, 0, .96) 66%,
      rgba(0, 0, 0, .66) 80%,
      rgba(0, 0, 0, .20) 94%,
      transparent 100%
    );
  }

  #intro .intro__hero-copy {
    min-height: clamp(126px, 19svh, 166px);
    margin-top: clamp(-48px, -5.5svh, -30px);
    padding: 10px 16px max(18px, env(safe-area-inset-bottom));
    gap: 20px;
  }

  #intro .intro__identity h1 {
    font-size: clamp(13px, 3.5vw, 16px) !important;
    letter-spacing: .11em !important;
    text-indent: .11em !important;
  }

  #intro .enter-button {
    font-size: 8px;
    letter-spacing: .18em;
  }

  /* Mobile tabs live in normal document flow directly after the hero. */
  .site-header {
    position: sticky;
    top: 0;
    height: 62px;
  }

  .site-header__inner {
    width: 100%;
    height: 100%;
    grid-template-columns: 1fr;
  }

  .site-header .brand,
  .site-header .header-actions {
    display: none;
  }

  .main-nav {
    position: static !important;
    inset: auto !important;
    width: 100%;
    height: 100%;
    padding: 0 !important;
    display: flex;
    justify-content: stretch;
    gap: 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 5, .96);
    backdrop-filter: blur(15px);
  }

  .nav-link {
    flex: 1 1 33.333%;
    width: auto;
  }

  .nav-link::after {
    bottom: 9px;
    left: 34%;
    right: 34%;
  }

  .site-footer {
    padding-bottom: 0;
  }
}

@media (max-width: 390px) {
  #intro .intro__links {
    gap: 14px;
  }

  #intro .intro__identity h1 {
    font-size: 12px !important;
    letter-spacing: .085em !important;
    text-indent: .085em !important;
  }

  #intro .intro__hero-copy {
    gap: 16px;
  }
}


/* Cipher decode title: visual-only enhancement, layout remains unchanged. */
#intro .intro__identity .archive-cipher {
  position: relative;
  display: inline-block;
  margin: 0;
  color: #ededeb;
  font-family:
    "SFMono-Regular",
    "Cascadia Mono",
    "Roboto Mono",
    "Courier New",
    monospace;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.18),
    0 0 20px rgba(255, 255, 255, 0.06);
  will-change: transform, text-shadow, opacity;
  cursor: crosshair;
  outline: none;
}

#intro .intro__identity .archive-cipher.is-decoding {
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.26),
    0 0 24px rgba(255, 255, 255, 0.09);
}

#intro .intro__identity .archive-cipher.is-glitching {
  animation: archiveCipherGlitch 180ms steps(2, end);
}

@keyframes archiveCipherGlitch {
  0% {
    transform: translateX(0);
    text-shadow:
      0 0 7px rgba(255, 255, 255, 0.18),
      -1px 0 rgba(255, 24, 40, 0.65),
      1px 0 rgba(0, 210, 255, 0.42);
  }
  22% {
    transform: translateX(-1px);
    text-shadow:
      2px 0 rgba(255, 24, 40, 0.72),
      -2px 0 rgba(0, 210, 255, 0.48);
  }
  48% {
    transform: translateX(1px);
    opacity: 0.92;
    text-shadow:
      -2px 0 rgba(255, 24, 40, 0.58),
      2px 0 rgba(0, 210, 255, 0.50);
  }
  72% {
    transform: translateX(-0.5px);
    text-shadow:
      1px 0 rgba(255, 24, 40, 0.42),
      -1px 0 rgba(0, 210, 255, 0.35);
  }
  100% {
    transform: translateX(0);
    opacity: 1;
    text-shadow:
      0 0 7px rgba(255, 255, 255, 0.18),
      0 0 20px rgba(255, 255, 255, 0.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  #intro .intro__identity .archive-cipher,
  #intro .intro__identity .archive-cipher.is-glitching {
    animation: none !important;
  }
}


#intro .intro__identity .archive-cipher:focus-visible {
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.26),
    -1px 0 rgba(255, 24, 40, 0.36),
    1px 0 rgba(0, 210, 255, 0.28);
}


/* Terminal audio HUD */
.audio-hud {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 55;
  width: min(430px, calc(100vw - 36px));
  padding: 12px 13px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  background:
    linear-gradient(90deg, rgba(255, 32, 44, .04), transparent 20%),
    rgba(3, 3, 3, .92);
  box-shadow:
    0 14px 50px rgba(0, 0, 0, .55),
    inset 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity .32s var(--ease),
    transform .32s var(--ease),
    visibility .32s;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Courier New", monospace;
}

.audio-hud::before {
  content: "AUDIO_LINK // 03";
  position: absolute;
  top: -7px;
  right: 10px;
  padding: 0 5px;
  background: #050505;
  color: #4c4c4c;
  font-size: 7px;
  line-height: 1;
  letter-spacing: .15em;
}

.audio-hud.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.audio-hud__status {
  min-width: 0;
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.audio-hud__signal {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #555;
  box-shadow: none;
}

.audio-hud__signal.is-active {
  background: #dc2634;
  box-shadow: 0 0 9px rgba(255, 30, 47, .75);
  animation: audioSignalPulse 1.4s steps(2, end) infinite;
}

.audio-hud__track {
  min-width: 0;
  overflow: hidden;
  color: #a4a4a1;
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: .09em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-hud.is-playing .audio-hud__track {
  color: #d5d5d1;
  text-shadow: 0 0 10px rgba(255, 255, 255, .08);
}

.audio-hud__controls {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 10px;
}

.audio-hud__button {
  flex: 0 0 auto;
  min-height: 25px;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: #717171;
  font: 500 8px/1 ui-monospace, "SFMono-Regular", "Cascadia Mono", monospace;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .18s, text-shadow .18s, transform .18s;
}

.audio-hud__button:hover,
.audio-hud__button:focus-visible {
  color: #ff3544;
  text-shadow:
    -1px 0 rgba(255, 34, 48, .45),
    1px 0 rgba(0, 205, 255, .22),
    0 0 9px rgba(255, 31, 46, .3);
  outline: none;
}

.audio-hud__button:active {
  transform: translateY(1px);
}

.audio-hud__button--primary {
  min-width: 52px;
  color: #b7b7b3;
}

.audio-hud__volume {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: auto minmax(42px, 1fr) 18px;
  align-items: center;
  gap: 7px;
  margin-left: 4px;
  color: #5f5f5f;
  font-size: 7px;
  letter-spacing: .12em;
}

.audio-hud__volume output {
  text-align: right;
  color: #727272;
  font-size: 7px;
  font-variant-numeric: tabular-nums;
}

.audio-hud__volume input {
  width: 100%;
  height: 24px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: pan-y;
}

.audio-hud__volume input::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(
    to right,
    #a7a7a4 0,
    #a7a7a4 var(--audio-volume, 12%),
    #3a3a3a var(--audio-volume, 12%),
    #3a3a3a 100%
  );
}

.audio-hud__volume input::-webkit-slider-thumb {
  width: 10px;
  height: 18px;
  margin-top: -8px;
  border: 0;
  border-radius: 1px;
  appearance: none;
  -webkit-appearance: none;
  background: #aaa;
  box-shadow: 0 0 7px rgba(255, 255, 255, .12);
}

.audio-hud__volume input:hover::-webkit-slider-thumb,
.audio-hud__volume input:focus-visible::-webkit-slider-thumb {
  background: #f03745;
  box-shadow: 0 0 8px rgba(255, 35, 50, .48);
}

.audio-hud__volume input::-moz-range-track {
  height: 2px;
  border: 0;
  background: #3a3a3a;
}

.audio-hud__volume input::-moz-range-progress {
  height: 2px;
  background: #a7a7a4;
}

.audio-hud__volume input::-moz-range-thumb {
  width: 10px;
  height: 18px;
  border: 0;
  border-radius: 1px;
  background: #aaa;
}

@keyframes audioSignalPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .28; }
}

@media (max-width: 760px) {
  .audio-hud {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    padding: 11px 10px 9px;
  }

  .audio-hud__controls {
    gap: 2px;
  }

  .audio-hud__button {
    padding-inline: 4px;
  }

  .audio-hud__volume {
    gap: 5px;
    margin-left: 1px;
  }

  .audio-hud__volume input {
    min-width: 70px;
    height: 30px;
  }

  .audio-hud__volume input::-webkit-slider-thumb {
    width: 14px;
    height: 22px;
    margin-top: -10px;
  }

  .audio-hud__volume input::-moz-range-thumb {
    width: 14px;
    height: 22px;
  }
}

@media (max-width: 390px) {
  .audio-hud__track {
    font-size: 7px;
  }

  .audio-hud__button {
    font-size: 7px;
  }

  .audio-hud__button--primary {
    min-width: 46px;
  }

  .audio-hud__volume {
    grid-template-columns: auto minmax(32px, 1fr) 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audio-hud,
  .audio-hud__signal.is-active {
    animation: none !important;
    transition: none !important;
  }
}


/* Premium click-to-enter glass overlay */
body.splash-active {
  overflow: hidden;
}

.boot-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 2s cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear 2s;
}

.boot-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-splash__initialize {
  position: relative;
  appearance: none;
  min-width: 210px;
  padding: 15px 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.08);
  color: rgba(240, 240, 236, 0.88);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", "Courier New", monospace;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 4px;
  text-indent: 4px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 0 22px rgba(255, 255, 255, 0.025);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
  transition:
    color .3s ease,
    border-color .3s ease,
    background-color .3s ease,
    box-shadow .3s ease,
    text-shadow .3s ease,
    transform .3s cubic-bezier(.22, 1, .36, 1);
}

.boot-splash__initialize::before,
.boot-splash__initialize::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-50%);
  transition: width .3s ease, background-color .3s ease, box-shadow .3s ease;
}

.boot-splash__initialize::before {
  right: calc(100% + 13px);
}

.boot-splash__initialize::after {
  left: calc(100% + 13px);
}

.boot-splash__initialize:hover,
.boot-splash__initialize:focus-visible {
  color: rgba(255, 244, 244, 0.98);
  border-color: rgba(255, 40, 40, 0.8);
  background: rgba(255, 20, 30, 0.025);
  outline: none;
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 18px rgba(255, 32, 44, 0.035),
    0 0 15px rgba(255, 40, 40, 0.4),
    0 0 42px rgba(255, 30, 42, 0.09);
  text-shadow:
    0 0 9px rgba(255, 255, 255, 0.22),
    0 0 16px rgba(255, 38, 48, 0.24);
}

.boot-splash__initialize:hover::before,
.boot-splash__initialize:hover::after,
.boot-splash__initialize:focus-visible::before,
.boot-splash__initialize:focus-visible::after {
  width: 28px;
  background: rgba(255, 40, 40, 0.66);
  box-shadow: 0 0 9px rgba(255, 40, 40, 0.45);
}

.boot-splash__initialize:active {
  transform: translateY(0) scale(0.985);
}

.boot-splash__initialize:disabled {
  cursor: default;
  opacity: 0.4;
  transform: none;
}

@media (max-width: 600px) {
  .boot-splash {
    padding: 20px;
  }

  .boot-splash__initialize {
    min-width: 190px;
    padding: 15px 30px;
    font-size: 9px;
    letter-spacing: 3.2px;
    text-indent: 3.2px;
  }

  .boot-splash__initialize::before,
  .boot-splash__initialize::after {
    width: 12px;
  }

  .boot-splash__initialize::before {
    right: calc(100% + 9px);
  }

  .boot-splash__initialize::after {
    left: calc(100% + 9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-splash,
  .boot-splash__initialize,
  .boot-splash__initialize::before,
  .boot-splash__initialize::after {
    transition-duration: .01ms !important;
  }
}

/* PROFILE CONTROLS / CLEAN ABOUT */
.dashboard-bottom {
  grid-template-columns: minmax(0, 760px) !important;
}
.profile-card {
  justify-content: flex-start;
}
.profile-card__avatar {
  background: #080808;
}

.admin-profile-section {
  padding: 34px 0 42px;
  border-top: 1px solid var(--line-soft);
}
.admin-profile-editor {
  display: grid;
  grid-template-columns: 112px minmax(220px, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  background: #070707;
}
.admin-profile-editor label {
  display: grid;
  gap: 9px;
  color: #6c6c6c;
  font: 500 8px/1 ui-monospace, monospace;
  letter-spacing: .13em;
}
.admin-profile-editor input[type="file"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #303030;
  background: transparent;
  color: #9a9a9a;
  padding: 13px 0;
  font: 500 10px/1.4 ui-monospace, monospace;
}
.admin-profile-editor input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 8px 12px;
  border: 1px solid #333;
  background: transparent;
  color: #aaa;
  font: 500 8px/1 ui-monospace, monospace;
  letter-spacing: .1em;
  cursor: pointer;
}
.admin-profile-avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #323232;
  background: #050505;
}

@media (max-width: 760px) {
  .admin-profile-editor {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }
  .admin-profile-avatar {
    width: 82px;
    height: 82px;
  }
  .admin-profile-editor .solid-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Embedded procedural eye: rendered directly in the page (no iframe). */
#intro .procedural-eye-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  pointer-events: none;
}


/* Mobile stability: reduce full-screen compositing and canvas pressure. */
#intro .intro__eye-stage {
  contain: layout paint size;
}

@media (max-width: 820px), (pointer: coarse) {
  .noise,
  .cursor-glow {
    display: none !important;
  }

  .boot-splash {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  #intro .procedural-eye-canvas {
    image-rendering: auto;
  }
}


/* Admin analytics IP exclusions */
.admin-ip-exclusion-form {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(240px, 1.4fr) auto;
  gap: 22px;
  align-items: end;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  background: #070707;
}
.admin-ip-exclusion-form label {
  display: grid;
  gap: 9px;
  color: #6c6c6c;
  font: 500 8px/1 ui-monospace, monospace;
  letter-spacing: .13em;
}
.admin-ip-exclusion-form input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #303030;
  background: transparent;
  color: #e4e4e1;
  padding: 13px 0;
  outline: 0;
  font: 500 13px/1.5 ui-monospace, monospace;
}
.admin-ip-exclusion-form input:focus { border-color: #777; }
.admin-ip-exclusion-list { margin-top: 18px; border-top: 1px solid var(--line-soft); }
.admin-ip-exclusion-row {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(180px, 1fr) 190px auto;
  gap: 18px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line-soft);
  color: #707070;
  font: 500 9px/1.4 ui-monospace, monospace;
}
.admin-ip-exclusion-row code { color: #d0d0cc; }
.admin-ip-exclusion-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-ip-exclusion-row time { color: #555; }
@media (max-width: 800px) {
  .admin-ip-exclusion-form { grid-template-columns: 1fr; }
  .admin-ip-exclusion-form .solid-button { width: 100%; }
  .admin-ip-exclusion-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px 14px; padding: 14px 0; }
  .admin-ip-exclusion-row span, .admin-ip-exclusion-row time { grid-column: 1 / -1; }
}


/* Mobile GPU stability: preserve the same fade visually without applying a
   live CSS mask to every animated canvas frame. */
@media (max-width: 820px), (pointer: coarse) {
  #intro .intro__eye-stage {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  #intro .intro__eye-stage::after {
    content: "";
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48%;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, .04) 22%,
      rgba(0, 0, 0, .34) 56%,
      rgba(0, 0, 0, .82) 82%,
      #030303 100%
    );
  }
}

/* Native range slider with a large mobile hit area. The audible level is
   controlled by a Web Audio GainNode in app.js. */
.audio-hud__volume-slider {
  --audio-volume: 12%;
  min-width: 70px;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

/* Avoid expensive live backdrop sampling over the animated eye on phones.
   The same dark-glass appearance is retained with a near-opaque surface. */
@media (max-width: 820px), (pointer: coarse) {
  .audio-hud,
  .main-nav,
  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .audio-hud {
    background:
      linear-gradient(90deg, rgba(255,32,44,.04), transparent 20%),
      rgba(3,3,3,.985);
  }
  .main-nav,
  .site-header {
    background: rgba(5,5,5,.985);
  }
}
