:root {
  --paper: #f1f1ec;
  --ink: #0b0b0b;
  --accent: #00a8a8;
  --muted: #66665f;
  --line: #0b0b0b;
  --header-h: 64px;
  --pad: clamp(18px, 3vw, 48px);
  --display: Arial, Helvetica, "Microsoft YaHei", sans-serif;
  --mono: "Courier New", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html.lenis.lenis-stopped {
  overflow: hidden;
}

[data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

body.is-transitioning {
  overflow: hidden;
}

main {
  padding-top: var(--header-h);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 38vw 1fr;
  background: var(--ink);
  color: #fff;
  pointer-events: none;
}

.boot-screen::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 9px;
  background: var(--accent);
  content: "";
  animation: boot-progress 1.15s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

.boot-mark {
  display: grid;
  place-items: end start;
  padding: var(--pad);
  border-right: 1px solid #555;
  font-size: clamp(86px, 16vw, 260px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.72;
}

.boot-copy {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: var(--pad);
  font-family: var(--mono);
  font-size: 13px;
}

.boot-count {
  color: var(--accent);
  font-size: clamp(54px, 8vw, 124px);
  font-weight: 700;
  line-height: 0.8;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--pad);
  transform: translateY(101%);
  background: var(--accent);
  color: var(--ink);
  pointer-events: none;
}

.page-transition span {
  font: 700 12px var(--mono);
  letter-spacing: 0.08em;
}

.page-transition strong {
  max-width: 850px;
  font-size: clamp(54px, 10vw, 150px);
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  width: 100%;
  height: 4px;
  pointer-events: none;
}

.scroll-meter span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
}

.system-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 800;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  opacity: 0;
  translate: -50% -50%;
  scale: 0.2;
  border: 2px solid var(--ink);
  background: var(--accent);
  pointer-events: none;
}

.system-cursor span {
  font: 800 11px var(--mono);
}

.system-cursor.is-visible {
  opacity: 1;
}

.system-cursor.is-project {
  scale: 1;
}

.system-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 400;
  display: grid;
  height: var(--header-h);
  grid-template-columns: minmax(250px, 1.2fr) 1fr minmax(210px, 0.8fr);
  border-bottom: 2px solid var(--line);
  background: rgba(241, 241, 236, 0.96);
}

.system-brand,
.system-nav,
.availability {
  min-width: 0;
}

.system-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--pad);
  border-right: 2px solid var(--line);
}

.system-brand strong {
  font-size: 22px;
  letter-spacing: -0.06em;
}

.system-brand span,
.availability,
.system-nav a {
  font: 700 11px var(--mono);
  letter-spacing: 0.06em;
}

.system-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.system-nav a {
  display: grid;
  place-items: center;
  border-right: 2px solid var(--line);
  transition: background 180ms ease, color 180ms ease;
}

.system-nav a:hover,
.system-nav a.is-active {
  background: var(--ink);
  color: #fff;
}

.availability {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 var(--pad);
}

.availability i,
.profile-data dd i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(0, 168, 168, 0.16);
  animation: status-pulse 2s ease-in-out infinite;
}

.hero-system {
  position: relative;
  display: grid;
  min-height: calc(100dvh - var(--header-h));
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  border-bottom: 2px solid var(--line);
}

.hero-system::before,
.hero-system::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(11, 11, 11, 0.14);
  content: "";
  pointer-events: none;
}

.hero-system::before {
  left: 25%;
}

.hero-system::after {
  left: 75%;
}

.hero-code {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  font: 700 10px var(--mono);
  letter-spacing: 0.08em;
}

.hero-title-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  grid-column: 1 / 9;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: clamp(64px, 8vh, 104px) var(--pad) clamp(34px, 5vw, 72px);
  border-right: 2px solid var(--line);
}

.hero-role {
  margin: 0 0 20px;
  color: var(--accent);
  font: 800 clamp(11px, 1vw, 14px) var(--mono);
  letter-spacing: 0.1em;
}

.hero-title-wrap h1 {
  margin: 0;
  font-size: clamp(76px, 13vw, 210px);
  font-weight: 900;
  letter-spacing: -0.095em;
  line-height: 0.74;
}

.hero-title-wrap h1 span {
  display: block;
  width: max-content;
  max-width: 100%;
}

.hero-title-wrap h1 span:last-child {
  margin-left: 0.34em;
  color: transparent;
  -webkit-text-stroke: clamp(1.5px, 0.16vw, 3px) var(--ink);
}

.hero-side {
  display: grid;
  grid-column: 9 / -1;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  opacity: 1;
}

.hero-work {
  position: relative;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
  background: var(--ink);
}

.hero-work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.18);
  transition: filter 350ms ease, scale 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-work:hover img {
  filter: grayscale(0) contrast(1.04);
  scale: 1.035;
}

.hero-work figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #fff;
  background: var(--ink);
  color: #fff;
  font: 700 10px var(--mono);
}

.identity-panel {
  display: grid;
  grid-template-columns: 94px 1fr;
  min-height: 128px;
}

.identity-avatar {
  display: grid;
  place-items: center;
  border-right: 2px solid var(--line);
  background: var(--accent);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.identity-panel > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.identity-panel span {
  margin-bottom: 8px;
  color: var(--muted);
  font: 700 10px var(--mono);
}

.identity-panel strong {
  font-size: 24px;
}

.identity-panel p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-bottom {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 2fr auto 1fr;
  align-items: stretch;
  border-top: 2px solid var(--line);
}

.hero-bottom > p {
  align-self: center;
  max-width: 650px;
  margin: 0;
  padding: 18px var(--pad);
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.55;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  border-left: 2px solid var(--line);
}

.hero-actions a {
  display: grid;
  min-height: 78px;
  place-items: center;
  padding: 0 22px;
  font: 800 12px var(--mono);
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.hero-actions a + a {
  border-left: 2px solid var(--line);
}

.hero-actions a:hover {
  background: var(--accent);
}

.scroll-hint {
  display: grid;
  place-items: center;
  padding: 0 20px;
  border-left: 2px solid var(--line);
  font: 700 10px var(--mono);
}

.project-system {
  position: relative;
  scroll-margin-top: var(--header-h);
  padding: clamp(90px, 10vw, 160px) var(--pad);
}

.section-command {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: end;
  gap: 22px;
  margin-bottom: 54px;
}

.section-command > span,
.section-command > p,
.profile-manifesto > span,
.skill-directory-head > span,
.contact-head > span {
  margin: 0;
  font: 800 11px var(--mono);
  letter-spacing: 0.08em;
}

.section-command h2 {
  margin: 0;
  font-size: clamp(56px, 9vw, 144px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.78;
  white-space: nowrap;
}

.section-command > p {
  text-align: right;
}

.project-table-head,
.project-row {
  display: grid;
  grid-template-columns: 72px minmax(260px, 1.4fr) minmax(180px, 0.8fr) 110px 56px;
  align-items: center;
}

.project-table-head {
  min-height: 42px;
  padding: 0 18px;
  border: 2px solid var(--line);
  background: var(--ink);
  color: #fff;
  font: 700 10px var(--mono);
}

.project-list {
  border-right: 2px solid var(--line);
  border-left: 2px solid var(--line);
}

.project-row {
  position: relative;
  min-height: 132px;
  padding: 18px;
  border-bottom: 2px solid var(--line);
  transition: background 180ms ease, color 180ms ease;
}

.project-row::before {
  position: absolute;
  inset: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--accent);
  content: "";
  transition: transform 350ms cubic-bezier(0.76, 0, 0.24, 1);
}

.project-row:hover::before,
.project-row:focus-visible::before {
  transform: scaleX(1);
}

.project-row > *:not(.project-mobile-image) {
  position: relative;
  z-index: 1;
}

.project-no,
.project-type,
.project-year {
  font: 700 12px var(--mono);
}

.project-name h3 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 58px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.project-name p {
  margin: 8px 0 0;
  font-size: 13px;
}

.project-open {
  font-size: 34px;
  font-weight: 400;
  transition: rotate 260ms ease;
}

.project-row:hover .project-open {
  rotate: 45deg;
}

.project-mobile-image {
  display: none;
}

.project-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 350;
  width: min(36vw, 520px);
  opacity: 0;
  translate: -50% -50%;
  scale: 0.82;
  border: 2px solid var(--line);
  background: var(--paper);
  pointer-events: none;
  transition: opacity 180ms ease, scale 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.project-preview.is-visible {
  opacity: 1;
  scale: 1;
}

.preview-bar {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  border-bottom: 2px solid var(--line);
  font: 800 10px var(--mono);
}

.project-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-preview > strong {
  display: block;
  padding: 10px;
  border-top: 2px solid var(--line);
  font: 800 12px var(--mono);
}

.kinetic-strip {
  display: flex;
  overflow: hidden;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.kinetic-strip div {
  display: flex;
  flex: none;
  align-items: center;
  gap: 30px;
  min-width: max-content;
  padding: 18px 15px;
  animation: strip-run 24s linear infinite;
}

.kinetic-strip span {
  font-size: clamp(26px, 3.4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.kinetic-strip i {
  color: var(--accent);
  font-size: 32px;
  font-style: normal;
}

.profile-system {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(440px, 0.75fr);
  scroll-margin-top: var(--header-h);
  border-bottom: 2px solid var(--line);
}

.profile-manifesto {
  padding: clamp(90px, 10vw, 160px) var(--pad);
  border-right: 2px solid var(--line);
}

.profile-manifesto h2 {
  max-width: 920px;
  margin: 38px 0 32px;
  font-size: clamp(44px, 4.7vw, 78px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-wrap: balance;
}

.profile-manifesto p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.75;
}

.profile-data {
  display: grid;
  margin: 0;
  grid-template-rows: repeat(4, 1fr);
}

.profile-data div {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  min-height: 112px;
  padding: 22px var(--pad);
  border-bottom: 2px solid var(--line);
}

.profile-data div:last-child {
  border-bottom: 0;
}

.profile-data dt {
  font: 700 10px var(--mono);
}

.profile-data dd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 800;
}

.skill-system {
  display: grid;
  grid-template-columns: minmax(300px, 0.3fr) minmax(0, 0.7fr);
  min-height: 760px;
  scroll-margin-top: var(--header-h);
  border-bottom: 2px solid var(--line);
  background: var(--paper);
}

.skill-directory {
  display: grid;
  grid-template-rows: 1fr auto;
  border-right: 2px solid var(--line);
}

.skill-directory-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  padding: clamp(46px, 5vw, 76px) var(--pad) 34px;
}

.skill-directory-head h2 {
  margin: 42px 0 auto;
  font-size: clamp(64px, 6.5vw, 104px);
  letter-spacing: -0.035em;
  line-height: 0.78;
}

.skill-directory-head p {
  margin: 36px 0 0;
  color: var(--muted);
  font: 700 11px/1.55 var(--mono);
  letter-spacing: 0.04em;
}

.skill-groups {
  border-top: 2px solid var(--line);
}

.skill-group {
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  padding: 14px var(--pad);
  border: 0;
  border-bottom: 1px solid rgba(11, 11, 11, 0.32);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, padding-left 220ms ease;
}

.skill-group:last-child {
  border-bottom: 0;
}

.skill-group:hover,
.skill-group:focus-visible,
.skill-group.is-active {
  background: var(--accent);
  color: var(--ink);
  padding-left: calc(var(--pad) + 8px);
}

.skill-group:focus-visible,
.skill-node:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

.skill-group > span {
  grid-row: 1 / 3;
  font: 700 10px var(--mono);
}

.skill-group strong {
  font-size: clamp(17px, 1.4vw, 22px);
  letter-spacing: 0;
  line-height: 1.05;
}

.skill-group small {
  margin-top: 5px;
  color: var(--muted);
  font: 700 9px var(--mono);
}

.skill-graph {
  min-width: 0;
  background: #e7e7e1;
}

.skill-graph-head {
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 2px solid var(--line);
  background: var(--ink);
  color: #fff;
  font: 700 10px var(--mono);
}

.skill-canvas {
  position: relative;
  min-height: clamp(650px, 53vw, 800px);
  overflow: hidden;
  background-color: #e7e7e1;
  background-image: radial-gradient(rgba(11, 11, 11, 0.2) 0.7px, transparent 0.7px);
  background-size: 16px 16px;
}

.skill-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% - 54px);
  pointer-events: none;
}

.skill-links line {
  stroke: rgba(11, 11, 11, 0.24);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  transition: opacity 220ms ease, stroke 220ms ease, stroke-width 220ms ease;
}

.skill-links line.is-muted {
  opacity: 0.12;
}

.skill-links line.is-active {
  opacity: 1;
  stroke: var(--accent);
  stroke-width: 3;
}

.skill-core,
.skill-node {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.skill-core {
  top: 50%;
  left: 50%;
  display: grid;
  width: 154px;
  min-height: 108px;
  align-content: space-between;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 9px 9px 0 var(--accent);
}

.skill-core span {
  font: 700 10px var(--mono);
}

.skill-core strong {
  font-size: 19px;
  line-height: 0.92;
}

.skill-node {
  top: var(--y);
  left: var(--x);
  display: flex;
  min-width: 132px;
  min-height: 66px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 2px solid var(--ink);
  border-radius: 1px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: opacity 220ms ease, background 220ms ease, color 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms ease;
}

.skill-node-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  transition: filter 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-node > span {
  display: grid;
  min-width: 0;
  align-content: center;
}

.skill-node strong {
  font: 800 10px/1 var(--display);
  letter-spacing: 0;
  white-space: nowrap;
}

.skill-node small {
  margin-top: 6px;
  color: var(--muted);
  font: 700 7px/1 var(--mono);
  white-space: nowrap;
}

.skill-node.is-muted {
  opacity: 0.28;
}

.skill-node.is-active {
  background: var(--accent);
}

.skill-node:hover,
.skill-node:focus-visible,
.skill-node.is-hovered {
  z-index: 4;
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--ink);
  color: #fff;
  box-shadow: 7px 7px 0 var(--accent);
}

.skill-node:hover small,
.skill-node:focus-visible small,
.skill-node.is-hovered small {
  color: #d7d7cf;
}

.skill-node:hover .skill-node-icon,
.skill-node:focus-visible .skill-node-icon,
.skill-node.is-hovered .skill-node-icon {
  transform: scale(1.08);
}

.skill-node--mono:hover .skill-node-icon,
.skill-node--mono:focus-visible .skill-node-icon,
.skill-node--mono.is-hovered .skill-node-icon {
  filter: invert(1);
}

.skill-status {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: grid;
  min-height: 54px;
  grid-template-columns: 130px 220px minmax(0, 1fr);
  align-items: center;
  border-top: 2px solid var(--line);
  margin: 0;
  padding: 0 20px;
  background: var(--accent);
  color: var(--ink);
  font: 700 10px var(--mono);
}

.skill-status-title {
  font-family: var(--display);
  font-size: 14px;
}

.skill-status-detail {
  overflow: hidden;
  color: rgba(11, 11, 11, 0.7);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-system {
  scroll-margin-top: var(--header-h);
  background: var(--accent);
  color: var(--ink);
}

.contact-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad);
  border-bottom: 2px solid var(--line);
}

.contact-head p {
  margin: 0;
  font: 800 11px var(--mono);
}

.contact-email {
  display: flex;
  min-height: min(52vw, 620px);
  flex-direction: column;
  justify-content: center;
  padding: 48px var(--pad);
  border-bottom: 2px solid var(--line);
  font-size: clamp(62px, 13vw, 208px);
  font-weight: 900;
  letter-spacing: -0.095em;
  line-height: 0.72;
}

.contact-email span:last-child {
  align-self: flex-end;
  color: transparent;
  -webkit-text-stroke: clamp(1.5px, 0.16vw, 3px) var(--ink);
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.contact-meta > * {
  display: grid;
  min-height: 74px;
  place-items: center start;
  padding: 0 20px;
  border-right: 2px solid var(--line);
  font: 700 10px var(--mono);
}

.contact-meta > *:last-child {
  border-right: 0;
}

.contact-meta a:hover {
  background: var(--ink);
  color: #fff;
}

@keyframes boot-progress {
  to { width: 100%; }
}

@keyframes status-pulse {
  50% { opacity: 0.35; }
}

@keyframes strip-run {
  to { translate: -100% 0; }
}

@media (max-width: 1080px) {
  .system-header {
    grid-template-columns: 240px 1fr;
  }

  .availability {
    display: none;
  }

  .hero-title-wrap {
    grid-column: 1 / 8;
  }

  .hero-side {
    grid-column: 8 / -1;
  }

  .hero-title-wrap h1 {
    font-size: clamp(72px, 12vw, 128px);
  }

  .section-command {
    grid-template-columns: 80px 1fr;
  }

  .section-command > p {
    display: none;
  }

  .project-table-head,
  .project-row {
    grid-template-columns: 60px minmax(220px, 1fr) minmax(160px, 0.7fr) 90px 44px;
  }

  .profile-system {
    grid-template-columns: 1fr;
  }

  .profile-manifesto {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 56px;
    --pad: 18px;
  }

  html {
    scroll-behavior: auto;
  }

  .system-cursor,
  .project-preview {
    display: none;
  }

  .boot-screen {
    grid-template-columns: 1fr;
  }

  .boot-mark {
    border-right: 0;
  }

  .boot-copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .system-header {
    grid-template-columns: 1fr auto;
  }

  .system-brand {
    padding: 0 var(--pad);
  }

  .system-brand span {
    display: none;
  }

  .system-nav {
    width: 168px;
    grid-template-columns: repeat(2, 1fr);
  }

  .system-nav a:last-child {
    display: none;
  }

  .hero-system {
    display: block;
    min-height: auto;
  }

  .hero-code {
    padding: 11px var(--pad);
  }

  .hero-code span:last-child {
    display: none;
  }

  .hero-title-wrap {
    padding: 58px var(--pad) 48px;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .hero-title-wrap h1 {
    font-size: clamp(68px, 24vw, 108px);
    line-height: 0.76;
  }

  .hero-title-wrap h1 span:last-child {
    margin-left: 0;
  }

  .hero-side {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-work {
    min-height: 360px;
  }

  .identity-panel {
    min-height: 112px;
  }

  .hero-bottom {
    display: block;
  }

  .hero-bottom > p {
    padding: 22px var(--pad);
    border-bottom: 2px solid var(--line);
  }

  .hero-actions {
    border-left: 0;
  }

  .hero-actions a {
    min-height: 62px;
  }

  .scroll-hint {
    display: none;
  }

  .project-system {
    padding: 86px var(--pad);
  }

  .section-command {
    display: block;
    margin-bottom: 34px;
  }

  .section-command h2 {
    margin-top: 18px;
    font-size: clamp(52px, 17vw, 82px);
    line-height: 0.84;
    white-space: normal;
  }

  .project-table-head {
    display: none;
  }

  .project-list {
    border-top: 2px solid var(--line);
  }

  .project-row {
    display: grid;
    min-height: 0;
    grid-template-columns: 38px 1fr 36px;
    gap: 0;
    padding: 18px;
  }

  .project-name {
    min-width: 0;
  }

  .project-name h3 {
    font-size: clamp(30px, 10vw, 46px);
    overflow-wrap: anywhere;
  }

  .project-type,
  .project-year {
    display: none;
  }

  .project-mobile-image {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 18px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--line);
    filter: none;
  }

  .profile-manifesto {
    padding: 86px var(--pad);
  }

  .profile-manifesto h2 {
    margin-top: 30px;
    font-size: clamp(42px, 13vw, 64px);
  }

  .profile-data div {
    grid-template-columns: 90px 1fr;
    min-height: 94px;
  }

  .skill-system {
    grid-template-columns: 1fr;
  }

  .skill-directory {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .skill-directory-head {
    min-height: 300px;
    padding: 58px var(--pad) 28px;
  }

  .skill-directory-head h2 {
    margin-top: 34px;
    font-size: clamp(66px, 22vw, 96px);
  }

  .skill-group {
    min-height: 70px;
  }

  .skill-graph-head {
    padding: 0 var(--pad);
  }

  .skill-canvas {
    display: grid;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 18px 0;
    background-size: 14px 14px;
  }

  .skill-links {
    display: none;
  }

  .skill-core,
  .skill-node {
    position: static;
    transform: none;
  }

  .skill-core {
    width: 100%;
    min-height: 94px;
    grid-column: 1 / -1;
    box-shadow: 7px 7px 0 var(--accent);
  }

  .skill-node {
    width: 100%;
    min-width: 0;
    min-height: 88px;
    gap: 12px;
    padding: 12px;
  }

  .skill-node-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .skill-node strong {
    font-size: 11px;
  }

  .skill-node:hover,
  .skill-node:focus-visible,
  .skill-node.is-hovered {
    transform: scale(1.02);
  }

  .skill-status {
    position: static;
    min-height: 96px;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 5px;
    margin: 8px -18px 0;
    padding: 15px 18px;
  }

  .skill-status-detail {
    white-space: normal;
  }

  .contact-head {
    display: block;
  }

  .contact-head p {
    margin-top: 10px;
  }

  .contact-email {
    min-height: 420px;
    font-size: clamp(58px, 20vw, 92px);
    line-height: 0.78;
  }

  .contact-email span:last-child {
    align-self: flex-start;
  }

  .contact-meta {
    grid-template-columns: 1fr;
  }

  .contact-meta > * {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-meta > *:last-child {
    border-bottom: 0;
  }
}

@media (pointer: fine) {
  .system-cursor,
  .project-preview {
    will-change: transform, opacity;
  }

  .hero-work img {
    will-change: scale, filter;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
