@font-face {
  font-family: Plex;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Terminal;
  src: url("/fonts/vt323-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #101010;
  --panel: #151515;
  --ink: #f4f4f4;
  --muted: #aaa;
  --line: #444;
  --accent: #f5b9d3;
  --accent-soft: #ffe0ee;
  --font: Plex, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(#ffffff0c 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0c 1px, transparent 1px);
  background-size: 40px 40px;
  animation: grid-drift 20s linear infinite;
  will-change: transform;
}
body::after {
  content: "";
  position: fixed;
  inset: -4px 0;
  pointer-events: none;
  z-index: 5;
  background: repeating-linear-gradient(
    transparent 0,
    transparent 3px,
    #00000016 3px,
    #00000016 4px
  );
  animation: scanline-drift 1.2s linear infinite;
  will-change: transform;
}
@keyframes grid-drift {
  to {
    transform: translate(-40px, -40px);
  }
}
@keyframes scanline-drift {
  to {
    transform: translateY(-4px);
  }
}
html[data-effects="paused"] body::before,
html[data-effects="paused"] body::after {
  animation-play-state: paused;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
.site-shell {
  max-width: 1168px;
  padding: 0 40px;
  margin: 0 auto;
}
.header {
  min-height: 122px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: Terminal, monospace;
  font-size: 34px;
  line-height: 1;
}
.brand-mark span {
  font-size: 24px;
  margin-left: -2px;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  letter-spacing: 0.03em;
}
nav a {
  padding: 8px 0;
}
nav span {
  color: #999;
  font-size: 12px;
  margin-right: 7px;
}
nav a:hover {
  color: var(--accent);
}
.hero {
  border: 1px solid #777;
  background: var(--panel);
  position: relative;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--accent);
  z-index: 1;
  top: -4px;
}
.hero::before {
  left: -4px;
}
.hero::after {
  right: -4px;
}
.window-bar {
  min-height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 19px;
  background: #202020;
  border-bottom: 1px solid #555;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #ccc;
}
.tiny-square {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  background: var(--accent);
}
.window-glyphs {
  font-size: 14px;
  color: #bbb;
}
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding: 49px 52px 48px;
}
.hero-content:has(.hero-portrait:not([hidden])) {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.hero-copy {
  min-width: 0;
}
.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.11em;
}
.eyebrow span {
  font-size: 21px;
  vertical-align: -1px;
  margin-right: 10px;
}
h1 {
  font-family: Terminal, Consolas, monospace;
  font-weight: 400;
  font-size: clamp(76px, 9.3vw, 126px);
  line-height: 0.83;
  letter-spacing: -0.018em;
  margin: 0 0 26px;
}
h1 > span:not(.cursor) {
  color: var(--accent);
}
.cursor {
  color: var(--accent);
  opacity: 0.6;
  font-size: 0.75em;
  margin-left: 8px;
}
.hero-intro {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 30px;
  color: #ccc;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  border: 1px solid var(--accent);
  padding: 12px 17px;
  background: var(--accent);
  color: #202020;
  font-size: 13px;
  font-weight: 500;
  box-shadow:
    4px 4px 0 var(--bg),
    5px 5px 0 #aaa;
  transition: background 0.15s;
}
.button > span:last-child {
  margin-left: 22px;
  font-size: 18px;
  line-height: 1;
}
.button:hover {
  background: var(--accent-soft);
}
.selector {
  font-size: 19px;
  line-height: 1;
}
.hero-portrait {
  margin: 0;
  min-width: 0;
}
.portrait-frame {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #666;
  background: #101010;
  padding: 12px;
  box-shadow: 6px 6px 0 #242424;
}
.hero-portrait img,
.hero-portrait canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.hero-bottom {
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: #bbb;
  font-size: 12px;
  letter-spacing: 0.015em;
}
.asterisk {
  color: var(--accent);
  font-size: 20px;
  line-height: 0.5;
  margin-right: 8px;
  vertical-align: -3px;
}
.version {
  font-size: 11px;
  color: #aaa;
  white-space: nowrap;
}
.section {
  padding: 52px 0;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 27px;
}
.section-label > span:last-child {
  font-size: 17px;
  color: var(--accent);
}
.about {
  border-bottom: 1px solid var(--line);
}
.about-content,
.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about h2,
.section-title {
  font-family: Terminal, Consolas, monospace;
  font-size: 58px;
  line-height: 1;
  font-weight: 400;
  margin: 0 0 24px;
  letter-spacing: -0.025em;
}
.about h2 {
  font-size: 66px;
  margin: 0;
}
.about p,
.prose p,
.beta-panel p:not(.eyebrow) {
  color: #bbb;
  margin: 0 0 20px;
}
.text-note {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.text-note > span:first-child {
  margin-right: 10px;
}
.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.project-card {
  display: block;
  padding: 25px 26px 0;
  background: #181818;
  border: 1px solid #555;
  transition: border-color 0.15s;
}
.project-card:hover {
  border-color: var(--accent);
}
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.folder {
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}
.tag {
  font-size: 10px;
  padding: 2px 7px;
  border: 1px solid #886775;
  color: var(--accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.project-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.055em;
  font-weight: 500;
}
.project-card p {
  color: #bbb;
  font-size: 14px;
  margin: 0 0 30px;
}
.project-bottom {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.025em;
  color: var(--muted);
}
.project-bottom > span:last-child {
  color: var(--accent);
}
.project-bottom > span:last-child > span {
  margin-left: 7px;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.015em;
}
footer a:hover,
.effects-toggle:hover {
  color: var(--accent);
}
.effects-toggle {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  background: transparent;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg);
  z-index: 10;
}
.skip-link:focus {
  top: 16px;
}
.back-link {
  display: inline-block;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
}
.back-link:hover,
.text-link:hover {
  color: var(--accent-soft);
}
.back-link span {
  margin-right: 10px;
}
.project-hero h1 {
  font-size: clamp(76px, 10vw, 132px);
}
.detail-section {
  border-bottom: 1px solid var(--line);
}
.timeline {
  list-style: none;
  margin: 36px 0 28px;
  padding: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  padding: 0 0 32px 24px;
  border-left: 1px solid #555;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -4px;
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline time,
.timeline-date {
  color: var(--accent);
  font-size: 12px;
  padding-top: 3px;
}
.timeline h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 10px;
}
.timeline p {
  color: #bbb;
  margin: 0;
  max-width: 720px;
}
.text-link {
  color: var(--accent);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.beta-panel {
  margin: 48px 0;
  padding: 32px;
  border: 1px solid #666;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.beta-panel .eyebrow {
  margin-bottom: 16px;
}
.beta-panel p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
}
.beta-panel .text-note {
  flex-shrink: 0;
}
@media (min-width: 1500px) {
  .site-shell {
    padding-top: 30px;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .hero-content:has(.hero-portrait:not([hidden])) h1 {
    font-size: 88px;
  }
  .hero-content:has(.hero-portrait:not([hidden])) {
    gap: 24px;
    padding: 40px 32px;
  }
}
@media (max-width: 760px) {
  .site-shell {
    padding: 0 22px;
  }
  .header {
    min-height: 96px;
  }
  .brand {
    font-size: 13px;
    gap: 10px;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
    font-size: 29px;
  }
  nav {
    gap: 18px;
    font-size: 11px;
  }
  nav span {
    display: none;
  }
  .hero-content,
  .hero-content:has(.hero-portrait:not([hidden])) {
    padding: 40px 28px;
    grid-template-columns: minmax(0, 1fr);
  }
  h1 {
    font-size: 100px;
  }
  .hero-portrait {
    width: 100%;
    max-width: 360px;
  }
  .about-content,
  .detail-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .section {
    padding: 36px 0;
  }
  .about h2 {
    font-size: 60px;
  }
  .section-title {
    font-size: 52px;
  }
  .section-label {
    margin-bottom: 22px;
  }
  .hero-bottom {
    padding: 12px 16px;
    font-size: 11px;
  }
  .version {
    display: none;
  }
  .project-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-card {
    padding: 22px 23px 0;
  }
  footer {
    font-size: 10px;
  }
  .project-hero h1 {
    font-size: clamp(62px, 12vw, 92px);
  }
  .timeline li {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .beta-panel {
    margin: 36px 0;
    padding: 26px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}
@media (max-width: 400px) {
  .site-shell {
    padding: 0 16px;
  }
  .header {
    gap: 12px;
  }
  .brand {
    font-size: 12px;
  }
  nav {
    gap: 12px;
    font-size: 10px;
  }
  .hero-content,
  .hero-content:has(.hero-portrait:not([hidden])) {
    padding: 33px 21px;
  }
  h1 {
    font-size: clamp(68px, 21vw, 84px);
  }
  .project-hero h1 {
    font-size: clamp(52px, 16vw, 62px);
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.035em;
  }
  .hero-intro {
    font-size: 14px;
  }
  .button {
    font-size: 11px;
    gap: 10px;
  }
  .button > span:last-child {
    margin-left: 12px;
  }
  .hero-bottom {
    font-size: 10px;
  }
  .project-card h3 {
    font-size: 22px;
  }
  .about h2 {
    font-size: 54px;
  }
  .section-title {
    font-size: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .effects-toggle {
    display: none;
  }
}
