/* ==========================================================================
   SKELETON MEDIC: site styles
   Tokens → base → layout → components → pages. No frameworks.
   ========================================================================== */

@font-face {
  font-family: "Press Start 2P";
  src: url("../assets/fonts/press-start-2p-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brief palette (site chrome) */
  --c-bg: #121212;
  --c-panel: #1e1e1e;
  --c-accent: #44ff88;
  --c-highlight: #ffcc66;
  --c-alert: #ff6666;
  --c-text: #eaeaea;
  --c-muted: #b4b4b4;
  --c-line: #3a3a3a;

  /* 2003 Skeleton Medic palette (art + fiction windows) */
  --c-slate: #3a4d66;
  --c-slate-dark: #22304a;
  --c-slate-deep: #18223a;
  --c-slate-line: #9fb3d1;
  --c-bone: #f3ebdd;
  --c-red: #d23040;

  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --f-pixel: "Press Start 2P", ui-monospace, "Courier New", monospace;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: 16px;
  --radius: 6px;
  --maxw: 1180px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--c-bg);
  /* Scanlines over a faint tile of pixel ASCII marks (. : + / # ...). */
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    url("../assets/img/ui/ascii-texture.svg");
  background-size: auto, 192px 192px;
  color: var(--c-text);
  font: 400 1.0625rem/1.65 var(--f-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
img { image-rendering: pixelated; }
a { color: var(--c-accent); text-underline-offset: 3px; }
a:hover { color: var(--c-highlight); }
:focus-visible { outline: 3px solid var(--c-highlight); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-pixel); font-weight: 400; line-height: 1.5; letter-spacing: .02em; }
h1 { font-size: clamp(1.1rem, 3vw, 1.6rem); }
h2 { font-size: clamp(.9rem, 2.2vw, 1.15rem); }
h3 { font-size: .85rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--c-highlight); color: #000; padding: .6em 1em;
  font-family: var(--f-pixel); font-size: .7rem; text-decoration: none;
}
.skip-link:focus { top: var(--gutter); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- windows (JRPG message boxes) */
.win {
  position: relative;
  background: var(--c-panel);
  border: 3px double var(--c-line);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(255,255,255,.04);
  padding: 1rem 1.15rem;
}
.win {
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px);
}
.win--world {
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.2) 0 1px, transparent 1px 3px),
              linear-gradient(180deg, var(--c-slate-dark), var(--c-slate-deep));
  border-color: var(--c-slate-line);
}
.win--real { border-color: var(--c-highlight); }
.win__label {
  font-family: var(--f-pixel); font-size: .62rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-muted); margin: 0 0 .8rem;
}
.win--world .win__label { color: var(--c-slate-line); }
.win--real .win__label { color: var(--c-highlight); }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-pixel); font-size: .65rem; line-height: 1.4; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none;
  color: var(--c-text); background: #000; border: 2px solid var(--c-accent);
  padding: .75em 1em; border-radius: 3px; cursor: pointer;
}
.btn::before { content: "▶"; color: var(--c-accent); }
.btn:hover, .btn:focus-visible { background: var(--c-accent); color: #000; }
.btn:hover::before, .btn:focus-visible::before { color: #000; }
.btn--amber { border-color: var(--c-highlight); }
.btn--amber::before { color: var(--c-highlight); }
.btn--amber:hover, .btn--amber:focus-visible { background: var(--c-highlight); }

.badge {
  display: inline-block; font-family: var(--f-pixel); font-size: .55rem; line-height: 1;
  padding: .45em .6em; border: 1px solid currentColor; border-radius: 2px;
  color: var(--c-highlight); letter-spacing: .05em; white-space: nowrap;
}
.badge[data-badge="PLAYABLE"] { color: var(--c-accent); }
.badge[data-badge="ARCHIVED"] { color: var(--c-muted); }
.badge[data-badge="ART INSTALLATION"], .badge[data-badge="SERVICES"] { color: #9fd3ff; }
.badge[data-badge="ONGOING"] { color: #c9a8ff; }
.badge[data-badge="PROTOTYPE"], .badge[data-badge="LIFE"] { color: #ffb38a; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }

.divider {
  height: 20px; border: 0; margin: 2.5rem auto;
  background: url("../assets/img/ui/divider-signal.svg") center / auto 20px no-repeat;
  max-width: 480px; image-rendering: pixelated;
}

/* ---------------------------------------------------------------- header */
.site-header { border-bottom: 2px solid #000; background-color: #0d0d0d; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px); }
.site-header__top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  justify-content: space-between; padding-top: 1rem; padding-bottom: .9rem;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--c-text); }
.brand:hover { color: var(--c-text); }
/* Single-line lockup (emblem + SKELETON MEDIC); the tagline lives in the hero. */
.brand__logo { display: block; width: 290px; max-width: 100%; height: auto; }

.site-nav { border-top: 1px solid #222; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: .7rem 0; }
.site-nav a {
  position: relative; display: inline-block; padding: .35rem .2rem .35rem 1.3rem;
  font-family: var(--f-pixel); font-size: .68rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--c-text); text-decoration: none;
}
.site-nav a::before {
  content: "▶"; position: absolute; left: 0; top: .35rem; color: var(--c-accent);
  opacity: 0; transform: translateX(-4px); transition: opacity .12s, transform .12s;
}
.site-nav a:hover::before, .site-nav a:focus-visible::before, .site-nav a[aria-current="page"]::before {
  opacity: 1; transform: none;
}
.site-nav a[aria-current="page"] { color: var(--c-highlight); }

/* ---------------------------------------------------------------- search */
.search { position: relative; width: min(100%, 340px); }
.search label { display: block; font-family: var(--f-pixel); font-size: .55rem; color: var(--c-muted); margin-bottom: .35rem; letter-spacing: .08em; }
.search input {
  width: 100%; font: inherit; font-size: .95rem; color: var(--c-text);
  background: #000; border: 2px solid var(--c-line); border-radius: 3px; padding: .5rem .7rem;
}
.search input:focus { border-color: var(--c-accent); outline: none; box-shadow: 0 0 0 3px rgba(68,255,136,.25); }
.search__results {
  position: absolute; z-index: 50; top: calc(100% + 6px); right: 0; width: min(92vw, 440px);
  max-height: 60vh; overflow: auto; padding: .6rem;
}
.search__results[hidden] { display: none; }
.search__list { list-style: none; margin: 0; padding: 0; }
.search__item a {
  display: block; padding: .55rem .6rem .55rem 1.6rem; position: relative;
  color: var(--c-text); text-decoration: none; border-radius: 3px;
}
.search__item a::before { content: "▶"; position: absolute; left: .45rem; top: .6rem; color: var(--c-accent); opacity: 0; font-size: .75rem; }
.search__item[aria-selected="true"] a, .search__item a:hover { background: rgba(255,255,255,.06); }
.search__item[aria-selected="true"] a::before, .search__item a:hover::before { opacity: 1; }
.search__kind { display: block; font-family: var(--f-pixel); font-size: .5rem; color: var(--c-highlight); letter-spacing: .08em; margin-bottom: .2rem; }
.search__snip { display: block; font-size: .85rem; color: var(--c-muted); }
.search__empty { margin: .4rem; color: var(--c-muted); font-size: .9rem; }

/* ---------------------------------------------------------------- hero (neon title screen) */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(300px, 42vh, 440px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, #05070c 0%, #0f1726 55%, var(--c-slate-dark) 100%);
  border-bottom: 2px solid #000;
}
.hero[data-time="dawn"] { background: linear-gradient(180deg, #0b1020 0%, #3a3550 55%, #7a5a52 100%); }
.hero[data-time="day"]  { background: linear-gradient(180deg, #1a2a44 0%, #2e4566 60%, #4b6688 100%); }
.hero[data-time="dusk"] { background: linear-gradient(180deg, #0c0f1d 0%, #2c2443 55%, #6a3c3c 100%); }
.hero::after { /* subtle CRT scanlines */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
}
.hero__horizon {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; height: 52%;
  background: url("../assets/img/hero/horizon.svg") center bottom / auto 100% repeat-x;
  image-rendering: pixelated; opacity: .95;
}
.hero__inner {
  position: relative; z-index: 2; display: grid; gap: 1.1rem;
  padding-top: 1.6rem; padding-bottom: 1.2rem;
}
.hero__sign {
  display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.4rem); margin: 0;
  /* One tube thickness for emblem and wordmark: the wordmark's .55 viewBox units
     (viewBox width 174) converted to screen px at its rendered width. */
  --tube-w: clamp(.7px, .1454vw, 1.64px);
}
.hero__sign svg { display: block; height: auto; overflow: visible; }
/* Emblem is sized by height so it always stands ~1.4x taller than the wordmark
   (wordmark height = width x 0.31: 68px on phones, 161px at full width). */
.hero__sign .neon-emblem { height: clamp(96px, 18vw, 224px); width: auto; aspect-ratio: 106.71 / 153.4; flex: none; }
.hero__sign .neon-word { width: clamp(220px, 46vw, 520px); flex: 0 1 auto; }
/* Phones: emblem + wordmark span the full width, centred. Widths keep the
   emblem ~1.4x the wordmark's height (emblem = 0.3023 x wordmark width). */
@media (max-width: 640px) {
  .hero__sign { --sign-gap: 12px; justify-content: center; gap: var(--sign-gap); width: 100%;
    --tube-w: calc((100vw - 44px) * .002427); }
  .hero__sign .neon-emblem { height: auto; width: calc((100% - var(--sign-gap)) * .2321); }
  .hero__sign .neon-word { width: calc((100% - var(--sign-gap)) * .7679); flex: none; }
  .hero__text { text-align: center; margin: 0 auto; }
}
.tube { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.tube--bone { stroke: var(--c-bone); }
.tube--red { stroke: var(--c-red); }
.neon .tube { filter: url(#neon-glow); }
.hero__sign .tube { vector-effect: non-scaling-stroke; stroke-width: var(--tube-w); }
.hero__text { max-width: 60ch; }
.hero__tagline { font-size: clamp(1rem, 2vw, 1.15rem); margin: 0 0 .2rem; }
.hero__world { font-style: italic; color: var(--c-slate-line); margin: 0; }

.narration { display: flex; align-items: center; gap: .8rem; max-width: 760px; padding: .75rem 1rem; }
.narration__text { flex: 1; margin: 0; min-height: 1.65em; font-size: 1rem; }
.narration__controls { display: flex; gap: .35rem; flex: none; }
.icon-btn {
  font-family: var(--f-pixel); font-size: .6rem; color: var(--c-text);
  background: transparent; border: 1px solid var(--c-slate-line); border-radius: 3px;
  min-width: 34px; min-height: 34px; padding: 0 .4rem; cursor: pointer;
}
.icon-btn:hover, .icon-btn:focus-visible { background: var(--c-slate); }

/* neon flicker-on and rare buzz (disabled under reduced motion below) */
.js .neon .tube { opacity: .08; animation: tube-on 1.4s steps(1, end) forwards; animation-delay: var(--d, 0s); }
@keyframes tube-on {
  0% { opacity: .08; } 20% { opacity: 1; } 28% { opacity: .15; } 44% { opacity: 1; }
  52% { opacity: .3; } 64% { opacity: 1; } 100% { opacity: 1; }
}
.neon .tube.buzz { animation: tube-buzz .9s steps(1, end) 1 !important; opacity: 1; }
@keyframes tube-buzz { 0% { opacity: 1; } 30% { opacity: .35; } 45% { opacity: 1; } 70% { opacity: .55; } 80%, 100% { opacity: 1; } }

/* ---------------------------------------------------------------- page layout */
.page { padding: 2.2rem 0 3rem; }
.layout { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) {
  .layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1rem; margin: 0 0 1.2rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--c-muted); font-size: .92rem; }
.page-title { margin: 0 0 .6rem; }
.page-lede { color: var(--c-muted); max-width: 62ch; margin: 0 0 2rem; }
.notfound__links { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------------------------------------------------------------- feed (message windows) */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.msg { display: block; }
/* Portrait sits inside the window, always on the left. */
.msg__win { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 1rem; align-items: start; }
.msg__win--noportrait { grid-template-columns: minmax(0, 1fr); }
.msg__body { min-width: 0; }
.msg__portrait { width: 90px; height: 130px; display: block; border-radius: 4px; }
.msg__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-bottom: .5rem; }
.msg__who { font-family: var(--f-pixel); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.win--world .msg__who { color: var(--c-bone); }
.win--real .msg__who { color: var(--c-highlight); }
.msg__meta { display: flex; align-items: center; gap: .6rem; font-family: var(--f-mono); font-size: .8rem; color: var(--c-muted); }
.win--world .msg__meta { color: var(--c-slate-line); }
.msg__tag { font-family: var(--f-pixel); font-size: .5rem; padding: .35em .5em; border-radius: 2px; letter-spacing: .06em; cursor: help; }
.msg__tag--irl { color: #000; background: var(--c-highlight); }
.msg__tag--url { color: var(--c-slate-dark); background: var(--c-slate-line); }
.msg__title { font-family: var(--f-body); font-weight: 700; font-size: 1.05rem; margin: 0 0 .3rem; }
.msg__text { margin: 0; }
.msg__link { display: inline-block; margin-top: .6rem; font-family: var(--f-pixel); font-size: .6rem; letter-spacing: .04em; text-transform: uppercase; }
.msg__link::before { content: "▶ "; }
.msg__cursor { display: inline-block; margin-left: .2em; color: var(--c-accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typing .msg__text { cursor: pointer; }
.feed-more { margin-top: 1.4rem; display: flex; justify-content: center; }
.month { font-family: var(--f-pixel); font-size: .7rem; color: var(--c-muted); letter-spacing: .1em; margin: 2rem 0 1rem; display: flex; align-items: center; gap: 1rem; }
.month::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--c-line) 0 6px, transparent 6px 10px); }
.month:first-child { margin-top: 0; }

@media (max-width: 560px) {
  .msg__win { grid-template-columns: 44px minmax(0, 1fr); gap: .7rem; }
  .msg__portrait { width: 44px; height: 64px; }
  .msg .msg__head { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
}

/* ---------------------------------------------------------------- filters */
.filters { display: grid; gap: .8rem; margin: 0 0 1.6rem; }
.tabs, .chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.tab, .chip {
  font-family: var(--f-pixel); font-size: .58rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--c-text); background: #000; border: 2px solid var(--c-line); border-radius: 3px;
  padding: .6em .8em; cursor: pointer; min-height: 36px;
}
.chip { font-size: .52rem; border-width: 1px; }
.tab[aria-pressed="true"], .chip[aria-pressed="true"] { border-color: var(--c-accent); color: var(--c-accent); }
.tab[aria-pressed="true"]::before, .chip[aria-pressed="true"]::before { content: "▶ "; }
.tab:hover, .chip:hover { border-color: var(--c-highlight); }
.filter-status { font-size: .88rem; color: var(--c-muted); margin: 0; }

/* ---------------------------------------------------------------- featured spreads (home) */
.spreads { display: grid; gap: 2.4rem; }
.spread { display: grid; gap: 1.4rem; align-items: center; }
@media (min-width: 760px) {
  .spread { grid-template-columns: 1.1fr 1fr; }
  .spread:nth-child(even) .spread__art { order: 2; }
}
.spread__art { position: relative; margin: 0 0 1.5rem; padding-right: 1.5rem; }
.spread__scene { display: block; width: 100%; aspect-ratio: 16 / 9; border: 3px double var(--c-slate-line); border-radius: var(--radius); background: var(--c-slate-deep); }
.spread__scene--shot { object-fit: cover; object-position: top center; image-rendering: auto; }
.spread__cart { position: absolute; right: 0; bottom: -1.5rem; width: 26%; max-width: 110px; aspect-ratio: 180 / 260; filter: drop-shadow(4px 6px 0 rgba(0,0,0,.6)); }
.spread__title { margin: 0 0 .6rem; font-size: clamp(.95rem, 2.4vw, 1.25rem); }
.spread__badges { margin-bottom: .8rem; }
.spread__blurb { margin-bottom: .9rem; }
.facts { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; list-style: none; margin: 0 0 1.1rem; padding: 0; font-family: var(--f-mono); font-size: .8rem; color: var(--c-muted); }
.facts b { font-weight: 400; color: var(--c-slate-line); text-transform: uppercase; font-size: .7rem; letter-spacing: .06em; margin-right: .4em; }
.expansion { border-left: 3px solid var(--c-line); padding: .4rem 0 .4rem .9rem; margin: 0 0 1.1rem; }
.expansion__label { font-family: var(--f-pixel); font-size: .5rem; color: var(--c-highlight); letter-spacing: .08em; display: block; margin-bottom: .3rem; }
.expansion p { margin: 0 0 .6rem; font-size: .95rem; }
.see-all { margin-top: 2rem; }

/* ---------------------------------------------------------------- project list (Long Version) */
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.pitem { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: .9rem; align-items: start; }
.pitem__cart { width: 90px; height: 130px; }
.pitem h2 { font-size: .85rem; margin: 0 0 .6rem; }
/* Projects with a screenshot: image beside the text on wide screens, above it on narrow ones. */
.pitem__shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center;
  border: 3px double var(--c-slate-line); border-radius: var(--radius); background: var(--c-slate-deep); margin: 0 0 1rem; }
@media (min-width: 760px) {
  .pitem__win--shot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 38%); gap: 1.2rem; align-items: start; }
  .pitem__win--shot .pitem__shot { order: 2; margin: 0; }
}
.pitem__body { min-width: 0; }
.pitem .badges { margin-bottom: .7rem; }
@media (max-width: 480px) { .pitem { grid-template-columns: 56px minmax(0, 1fr); } .pitem__cart { width: 56px; height: 81px; } }

/* ---------------------------------------------------------------- sidebar */
.sidebar { display: grid; gap: 1.1rem; align-content: start; }
.sidebar .win { padding: .9rem 1rem; }
.sidebar h2 { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .8rem; }
.win--real h2 { color: var(--c-highlight); }
.win--world h2 { color: var(--c-slate-line); }
.np { display: grid; grid-template-columns: 64px 1fr; gap: .8rem; align-items: start; }
.np img { width: 64px; height: 92px; }
.np h3 { font-size: .7rem; margin: 0 0 .5rem; }
.np h3 a { color: var(--c-text); text-decoration: none; }
.np h3 a:hover { color: var(--c-highlight); }
.jj img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; display: block; margin-bottom: .7rem; background: #000; }
.jj h3 { font-family: var(--f-body); font-weight: 700; font-size: .98rem; line-height: 1.35; margin: 0 0 .35rem; }
.jj p, .overheard p { font-size: .9rem; color: var(--c-muted); }
.more-link { font-family: var(--f-pixel); font-size: .55rem; text-transform: uppercase; letter-spacing: .05em; }
.more-link::before { content: "▶ "; }
.overheard dl { margin: 0 0 .8rem; }
.overheard dt { font-family: var(--f-pixel); font-size: .55rem; color: var(--c-highlight); margin-top: .5rem; }
.overheard dd { margin: .2rem 0 0; font-size: .92rem; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
.recent li { display: flex; justify-content: space-between; gap: .8rem; border-bottom: 1px dashed #333; padding-bottom: .4rem; }
.recent time { font-family: var(--f-mono); font-size: .8rem; color: var(--c-muted); white-space: nowrap; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin: 0 0 .9rem; font-size: .9rem; }
.stats dt { font-family: var(--f-pixel); font-size: .5rem; color: var(--c-slate-line); letter-spacing: .08em; padding-top: .35em; }
.stats dd { margin: 0; }
.ws-line { font-style: italic; font-size: .92rem; margin: 0; border-top: 1px solid rgba(159,179,209,.3); padding-top: .7rem; }

/* ---------------------------------------------------------------- about */
.essay { max-width: 68ch; margin: 0 auto; }
.essay__intro { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; align-items: center; margin-bottom: 2.4rem; }
.essay__intro img { width: 110px; height: 159px; }
.essay__name { font-family: var(--f-pixel); font-size: clamp(.85rem, 2.4vw, 1.1rem); margin: 0 0 .5rem; }
.essay__handle { color: var(--c-muted); margin: 0; }
.essay__kana { font-size: .9rem; color: var(--c-slate-line); }
.essay h2 { margin: 2.2rem 0 1rem; color: var(--c-highlight); }
.essay p { font-size: 1.1rem; line-height: 1.75; }
.pullquote {
  margin: 2.2rem 0; padding: 1.4rem 1.2rem; text-align: center;
  font-family: var(--f-pixel); font-size: clamp(.8rem, 2.2vw, 1rem); line-height: 1.8; color: var(--c-bone);
}
.pullquote { position: relative; padding: 2.4rem 2.6rem; }
.pullquote::before, .pullquote::after {
  content: ""; position: absolute; width: 28px; height: 16px;
  background: center / contain no-repeat; image-rendering: pixelated;
}
.pullquote::before { top: .9rem; left: 1rem; background-image: url("../assets/img/ui/quote-open.svg"); }
.pullquote::after { bottom: .9rem; right: 1rem; background-image: url("../assets/img/ui/quote-close.svg"); }

/* ---------------------------------------------------------------- contact */
.contact { display: grid; gap: 2rem; }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 220px; align-items: start; } }
.contact__sections { display: grid; gap: 1.1rem; }
.contact__sections h2 { font-size: .8rem; margin: 0 0 .6rem; color: var(--c-highlight); }
.contact__art { width: 160px; height: 200px; margin: 0 auto; display: block; }
.contact__address { font-family: var(--f-mono); color: var(--c-muted); font-size: .92rem; }

/* ---------------------------------------------------------------- footer (save screen) */
.site-footer { background-color: #0b0b0b; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px); border-top: 2px solid #000; padding: 2.4rem 0 2rem; }
.save { display: grid; gap: 1rem; }
.save__file { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.save__portrait { width: 90px; height: 130px; }
.save__title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; font-family: var(--f-pixel); font-size: .68rem; letter-spacing: .06em; margin: 0 0 .9rem; color: var(--c-bone); }
.save .stats { grid-template-columns: auto 1fr; }
.status-dot { color: var(--c-accent); }
.save__quote { font-style: italic; margin: .4rem 0 0; color: var(--c-bone); }
.save__links { display: grid; gap: 1rem; }
@media (min-width: 760px) { .save__links { grid-template-columns: 1fr 1fr 1fr; } }
.save__links h2 { font-size: .55rem; color: var(--c-highlight); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .6rem; }
.save__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .92rem; }
.save__links a { color: var(--c-text); }
.save__links a:hover { color: var(--c-accent); }
.copyright { margin: 1rem 0 0; font-size: .85rem; color: var(--c-muted); display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: space-between; }
.kana { font-size: 1rem; color: var(--c-bone); letter-spacing: .15em; }
/* G4 seal: ギ四 (gi + yon) stamped like an artist's chop. */
.seal {
  display: inline-block; margin-left: .6em; padding: .05em .25em .1em;
  font: 700 .95em/1.2 "Noto Serif JP", "Noto Serif CJK JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0; color: var(--c-red); border: 2px solid var(--c-red); border-radius: 2px;
  vertical-align: .05em;
}
.copyright .seal { font-size: 1rem; }

.noscript-note { padding: 1rem; color: var(--c-muted); }

/* ---------------------------------------------------------------- motion preferences */
/* People who ask for more contrast get flat backgrounds. */
@media (prefers-contrast: more) {
  body, .site-header, .site-footer, .win, .hero::after { background-image: none !important; }
  .win--world { background: var(--c-slate-deep) !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .neon .tube { opacity: 1; }
}
