/* harver.in. Reasons for each choice are in DESIGN.md. */
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #06061c;
  --panel: #120a30;
  --panel-line: #3d2f7a;
  --ink: #0b0716;
  --yellow: #ffe14d;
  --white: #ffffff;
  --text: #d9d4f5;
  --muted: #b3acd9;
  --red: #ff2d55;
  --cyan: #19e3ff;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", sans-serif;
  --gutter: 20px;
  --section: 76px;
  color-scheme: dark;
}
@media (min-width: 900px) { :root { --gutter: 28px; --section: 120px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--white); line-height: 1.1; }
h3 { font: 700 1.6rem/1.1 var(--cond); }
p { margin: 0 0 .9em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--white); font-weight: 600; }

a { color: var(--white); text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--yellow); text-decoration-thickness: 4px; }
a, button, summary, label[for] { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--yellow); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 8px; }
.ico { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* Caption box: the identity motif */
.cap { display: inline-block; margin: 0; font: 700 1.25rem/1.15 var(--cond); text-transform: uppercase; letter-spacing: .02em;
  color: var(--ink); border: 3px solid var(--ink); padding: .3em .7em .25em; }
.cap-y { background: var(--yellow); box-shadow: 5px 5px 0 var(--red); transform: rotate(-1.2deg); }
.cap-w { background: var(--white); box-shadow: 5px 5px 0 var(--cyan); transform: rotate(1deg); }
h2.cap { font-size: clamp(1.7rem, 6vw, 2.7rem); margin-bottom: 36px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: .35em 1.1em .3em; border: 3px solid var(--ink);
  background: var(--white); color: var(--ink); font: 700 1.15rem/1.1 var(--cond); text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; box-shadow: 4px 4px 0 var(--cyan); transition: box-shadow .15s, transform .15s; }
.btn-primary { background: var(--yellow); box-shadow: 4px 4px 0 var(--red); }
.btn:hover { text-decoration: none; box-shadow: 7px 7px 0 var(--cyan); transform: translate(-2px, -2px); }
.btn-primary:hover { box-shadow: 7px 7px 0 var(--red); }
.btn:active { box-shadow: 1px 1px 0 var(--cyan); transform: translate(3px, 3px); }
.btn-primary:active { box-shadow: 1px 1px 0 var(--red); }
.btn:disabled { opacity: .6; box-shadow: none; transform: none; }
.btn-small { min-height: 44px; font-size: 1rem; }
.linklike { background: none; border: 0; padding: 0; min-height: 44px; color: var(--white); font: inherit; text-decoration: underline;
  text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.linklike:hover { text-decoration-color: var(--yellow); text-decoration-thickness: 4px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px var(--gutter); background: rgba(6, 6, 28, .94); border-bottom: 2px solid var(--panel-line); }
.brand { display: inline-flex; align-items: center; min-height: 44px; font: 700 1.35rem/1 var(--cond); color: var(--white); text-decoration: none; text-transform: uppercase; letter-spacing: .02em; }
.brand:hover { color: var(--yellow); text-decoration: none; }
.menu-btn { min-height: 44px; padding: 0 16px; background: var(--white); color: var(--ink); border: 3px solid var(--ink);
  font: 700 1.05rem var(--cond); text-transform: uppercase; box-shadow: 3px 3px 0 var(--cyan); }
.menu-btn[aria-expanded="true"] { background: var(--yellow); box-shadow: 3px 3px 0 var(--red); }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font: 700 1.1rem/1 var(--cond); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
.site-nav a:hover { color: var(--yellow); text-decoration: underline; text-decoration-color: var(--yellow); }
@media (max-width: 759px) {
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 2px solid var(--panel-line); padding: 8px var(--gutter) 16px; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .menu-btn { display: none; }
}
@media (min-width: 760px) { .menu-btn { display: none; } }

/* Cover */
.cover { position: relative; padding-top: 40px; }
.cover-text { position: relative; z-index: 1; }
.glitch { font: 700 clamp(3.4rem, 16vw, 8rem)/.95 var(--cond); text-transform: uppercase; letter-spacing: .01em; margin: 18px 0 14px;
  text-shadow: -4px 0 var(--red), 4px 0 var(--cyan); }
.cover .cap { font-size: clamp(1.05rem, 3.6vw, 1.45rem); }
.lede { max-width: 38em; margin-top: 26px; font-size: 1.15rem; color: var(--text); }
.quest { max-width: 38em; padding: 12px 14px; border: 2px solid var(--panel-line); background: var(--panel); color: var(--white); }
.quest-tag { display: inline-block; margin-right: 8px; padding: 2px 8px; background: var(--yellow); color: var(--ink); font: 700 1rem/1.3 var(--cond); text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 18px; margin-top: 22px; }
.cover-art { width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: cover; margin-top: 8px; }
@media (max-width: 900px) { .cover-art { height: clamp(210px, 55vw, 320px); object-position: 49% 100%; } }

/* Sections */
.page { padding: var(--section) 0 0; }
.page:last-of-type { padding-bottom: var(--section); }
.panel { background: var(--panel); border: 2px solid var(--panel-line); padding: 22px; }
.meta { color: var(--muted); font-size: .95rem; }
.links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 14px 0 0; }
.links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }

/* Models: splash panel + uneven strip */
.splash { border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--red); }
.splash h3 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 8px; }
.splash-body { display: grid; gap: 26px; margin-top: 14px; }
@media (min-width: 900px) { .splash { padding: 32px; } .splash-body { grid-template-columns: 1.05fr 1fr; gap: 40px; } }
.bars { margin: 0; }
.bars figcaption { color: var(--white); font-weight: 600; margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; margin-bottom: 14px; }
.bar-label { grid-column: 1 / -1; font-size: .95rem; color: var(--text); }
.bar-track { height: 30px; background: #241a52; border: 2px solid var(--ink); }
.bar-fill { display: block; height: 100%; }
.bar-before { background: var(--muted); }
.bar-after { background: var(--yellow); }
.bar-num { font: 700 1.9rem/1 var(--cond); color: var(--white); min-width: 3.3em; text-align: right; }
.bar-note { color: var(--text); font-size: .98rem; }
.facts li { position: relative; padding-left: 22px; margin-bottom: 12px; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--yellow); box-shadow: 2px 2px 0 var(--red); }

.strip { display: grid; gap: var(--gutter); margin-top: calc(var(--gutter) + 8px); }
@media (min-width: 900px) { .strip { grid-template-columns: 1.15fr 1.15fr .8fr; align-items: start; } }
.strip h3 { margin-bottom: 6px; }
.big-num { font: 700 2.6rem/1 var(--cond); color: var(--white); margin: 14px 0 16px; }
.big-num span { display: block; margin-top: 6px; font: 400 .95rem/1.4 var(--body); color: var(--muted); }
.panel-plain { background: transparent; border-style: dashed; }
@media (min-width: 900px) { .panel-plain { margin-top: 56px; } }

/* Builds: filmstrip of screenshots */
.frames { display: grid; gap: calc(var(--gutter) + 8px); }
@media (min-width: 760px) { .frames { grid-template-columns: repeat(3, 1fr); } .frame-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; } }
.frame { background: var(--panel); border: 3px solid var(--ink); outline: 2px solid var(--panel-line); }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 3px solid var(--ink); }
@media (min-width: 760px) { .frame-wide img { height: 100%; border-bottom: 0; border-right: 3px solid var(--ink); } .frame-wide { box-shadow: 7px 7px 0 var(--cyan); } }
.frame-text { padding: 18px 20px 12px; }
.frame-text h3 { margin-bottom: 8px; }
.frame-wide .frame-text { padding: 26px; align-self: center; }
.frame-wide h3 { font-size: 2rem; }

.side-quests { margin-top: calc(var(--gutter) + 20px); }
.side-quests > h3 { font-size: 2rem; margin-bottom: 6px; }
.sq-list li { padding: 16px 0 6px; border-top: 2px dashed var(--panel-line); }
.sq-list li:first-child { border-top: 0; }
.sq-name { font: 700 1.4rem/1.2 var(--cond); color: var(--white); margin-bottom: 4px; }
.sq-kind { display: inline-block; margin-left: 8px; padding: 1px 8px; font: 600 .85rem/1.5 var(--body); color: var(--ink); background: var(--white); vertical-align: 3px; }
.sq-list .links { margin-top: 0; }
@media (min-width: 900px) { .sq-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; } .sq-list li:nth-child(2) { border-top: 0; } }

/* Story: timeline + achievement toast */
.story-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } .toast { position: sticky; top: 90px; } }
.timeline li { padding: 0 0 26px; }
.timeline h3 { font-size: 1.5rem; margin-bottom: 8px; }
.when { display: inline-block; margin-bottom: 8px; padding: 2px 10px; background: var(--white); color: var(--ink); font: 700 1.05rem/1.4 var(--cond); text-transform: uppercase; box-shadow: 3px 3px 0 var(--cyan); }
.timeline .links { margin-top: 0; }
.toast { background: #1a1a1a; border: 4px solid #555; outline: 3px solid #000; padding: 20px 22px; }
.toast h3 { color: var(--yellow); font-size: 1.7rem; margin-bottom: 12px; }
.toast li { margin-bottom: 14px; color: #e8e8e8; }
.toast .links a { color: #fff; }

/* Off the clock: odd-sized panels */
.off-grid { display: grid; gap: var(--gutter); }
@media (min-width: 760px) {
  .off-grid { grid-template-columns: repeat(6, 1fr); }
  .off-anime { grid-column: span 4; }
  .off-games { grid-column: span 2; grid-row: span 2; }
  .off-marvel { grid-column: span 2; }
  .off-jp { grid-column: span 2; }
  .off-type { grid-column: span 3; }
  .off-holes { grid-column: span 3; }
}
.off h3 { margin-bottom: 8px; }
.off-anime { border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--cyan); }
.off-marvel { background: #1b0b2e; }
.off-games { background: transparent; border-style: dashed; }
[lang="ja"] { font-family: "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; font-weight: 700; font-size: .8em; margin-left: 6px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: calc(var(--gutter) + 8px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.form-panel { border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--red); }
.form-panel h3, .reach h3 { margin-bottom: 8px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; color: var(--white); font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; background: #0b0620; color: var(--white); border: 2px solid #6b5db8; font: inherit; }
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #9a8de0; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-color: var(--yellow); }
.field [aria-invalid="true"] { border-color: #ff8095; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #ffb3c0; font-weight: 600; }
.form-done:focus { outline: none; }
.mission { display: inline-block; font: 700 clamp(2rem, 7vw, 2.8rem)/1 var(--cond); text-transform: uppercase; color: var(--yellow); text-shadow: -3px 0 var(--red), 3px 0 var(--cyan); margin-bottom: 14px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 14px 0 6px; }
.email-row .btn { text-transform: none; font: 600 1.05rem var(--body); }
.copy-status { flex-basis: 100%; margin: 0; min-height: 1.6em; color: var(--yellow); }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 8px 0 18px; }
.socials a { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; }
.avail { color: var(--text); margin: 0; }

/* Footer */
.footer { border-top: 2px solid var(--panel-line); padding: 18px 0 96px; color: var(--muted); font-size: .95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.footer p { margin: 0; }
.footer-links { display: flex; gap: 24px; align-items: center; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Consent bar */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; max-width: 560px; margin: 0 auto; padding: 16px 18px;
  background: var(--panel); border: 3px solid var(--ink); outline: 2px solid var(--panel-line); box-shadow: 6px 6px 0 var(--cyan); color: var(--white); }
.consent p { margin-bottom: 12px; }
.consent-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* 404 */
.lost { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding-top: 60px; padding-bottom: 60px; }
.lost .glitch { color: var(--white); }

/* Motion (MOTION 2): cover stamp, shadow shift (on .btn), panel print-in */
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp .35s ease-out both; }
  .stamp-2 { animation-delay: .18s; }
  .js .reveal { opacity: 0; transform: translate(6px, 6px); transition: opacity .45s ease-out, transform .45s ease-out; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes stamp { from { opacity: 0; transform: translateY(-14px) rotate(-4deg) scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
}
