:root {
  color-scheme: dark;
  --intro-opacity: 1;
  --intro-blur: 0px;
  --intro-scale: 1;
  --portfolio-opacity: 0.2;
  --font-ui: "Eurostile", "Bank Gothic", "Agency FB", "DIN Condensed", "Bahnschrift SemiCondensed", "Nimbus Sans Narrow", "Liberation Sans Narrow", "Arial Narrow", sans-serif;
  --font-copy: "Noto Sans Display", "Ubuntu Sans", "Noto Sans", sans-serif;
  --font-data: "Noto Sans Mono CJK JP", "DejaVu Sans Mono", "Courier New", monospace;
  --bg: #081016;
  --panel: rgba(63, 86, 105, 0.42);
  --panel-strong: rgba(124, 151, 166, 0.54);
  --line: rgba(200, 227, 235, 0.68);
  --line-soft: rgba(170, 209, 220, 0.24);
  --text: #dcebf0;
  --muted: #98adb8;
  --blue: #55a6ff;
  --red: #ff315d;
  --green: #9ce6d9;
  --dark: #101c25;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 69% 26%, rgba(93, 122, 134, 0.3), transparent 28rem),
    radial-gradient(circle at 28% 42%, rgba(60, 83, 96, 0.42), transparent 34rem),
    linear-gradient(180deg, #061017 0%, #0c1a22 55%, #070b0f 100%);
  color: var(--text);
  font-family: var(--font-copy);
  font-weight: 400;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(64, 110, 130, 0.08), transparent 18%, transparent 82%, rgba(64, 110, 130, 0.08));
  mix-blend-mode: screen;
  opacity: 0.72;
  z-index: 10;
}

body.intro-complete .title-screen {
  pointer-events: none;
}

body.intro-skipped .shell {
  margin-top: 0;
  opacity: 1;
}

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

#profile,
#work,
#systems,
#contact {
  scroll-margin-top: 8rem;
}

.title-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 44% 28%, rgba(121, 139, 142, 0.24), transparent 18rem),
    radial-gradient(circle at 66% 52%, rgba(42, 50, 54, 0.62), transparent 30rem),
    #020404;
  opacity: var(--intro-opacity);
  filter: blur(var(--intro-blur));
  transform: scale(var(--intro-scale));
  transition: opacity 180ms linear, filter 180ms linear, transform 180ms linear;
}

.title-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92), transparent 30%, transparent 68%, rgba(0,0,0,0.9)),
    linear-gradient(180deg, rgba(0,0,0,0.68), transparent 34%, rgba(0,0,0,0.82)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.title-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0 24%, rgba(0,0,0,0.42) 58%, rgba(0,0,0,0.92) 100%),
    linear-gradient(120deg, transparent 0 42%, rgba(190, 213, 214, 0.07) 42% 43%, transparent 43% 100%);
}

.title-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.52;
  filter: contrast(1.16) brightness(0.68);
}

.plate {
  position: absolute;
  display: block;
  background: linear-gradient(135deg, rgba(125, 139, 138, 0.48), rgba(18, 22, 23, 0.84) 58%, rgba(54, 61, 64, 0.7));
  border: 1px solid rgba(210, 228, 226, 0.08);
  clip-path: polygon(13% 0, 92% 10%, 100% 44%, 78% 100%, 7% 88%, 0 28%);
  box-shadow: inset -1.8rem -1.8rem 2.8rem rgba(0,0,0,0.55);
}

.plate-a {
  left: 18%;
  top: -2%;
  width: 22rem;
  height: 31rem;
  transform: rotate(22deg);
}

.plate-b {
  right: 14%;
  top: 6%;
  width: 27rem;
  height: 34rem;
  transform: rotate(-18deg);
}

.plate-c {
  left: 42%;
  bottom: 4%;
  width: 26rem;
  height: 20rem;
  transform: rotate(8deg);
}

.plate-d {
  right: -6%;
  bottom: 18%;
  width: 24rem;
  height: 18rem;
  transform: rotate(31deg);
}

.title-mark {
  position: relative;
  z-index: 1;
  width: min(78rem, 88vw);
  text-align: center;
  transform: translateY(-1.8vh);
}

.title-mark p {
  margin: 0 0 1.2rem;
  color: #f3f6f3;
  font-family: var(--font-ui);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
}

.title-mark h1 {
  margin: 0;
  color: #f8fbf8;
  font-family: var(--font-ui);
  font-size: 8.8rem;
  font-weight: 300;
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow: 0 0 1.6rem rgba(255,255,255,0.14);
}

.press-start {
  display: inline-flex;
  justify-content: center;
  width: min(18rem, 74vw);
  margin-top: 3.2rem;
  padding: 0.26rem 1rem 0.32rem;
  color: rgba(236, 244, 242, 0.82);
  background: linear-gradient(90deg, transparent, rgba(218, 232, 228, 0.22), transparent);
  border-top: 1px solid rgba(224, 238, 234, 0.16);
  border-bottom: 1px solid rgba(224, 238, 234, 0.16);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.title-footer {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 1;
  transform: translateX(-50%);
  color: rgba(217, 226, 224, 0.42);
  font-family: var(--font-data);
  font-size: 0.62rem;
  white-space: nowrap;
}

.shell {
  position: relative;
  min-height: 100vh;
  margin-top: 72vh;
  padding: 2.25rem 4.7vw 4.75rem;
  isolation: isolate;
  opacity: var(--portfolio-opacity);
  transition: opacity 180ms linear;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 0 48%, rgba(192, 229, 238, 0.05) 49% 51%, transparent 52%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 9px);
  opacity: 0.48;
}

.side-code {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 4.6vw;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1rem 0.4rem;
  color: rgba(164, 197, 207, 0.18);
  font: 0.52rem/1.2 var(--font-data);
  overflow: hidden;
  z-index: -1;
}

.screen-title,
.tab,
.access-counter,
.panel-label,
.profile-card h1,
.briefing,
.mini-row,
.project-row h3,
.detail-panel h3,
.command-strip {
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.side-code-left {
  left: 0;
}

.side-code-right {
  right: 0;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) minmax(30rem, 1fr) minmax(14rem, 22rem);
  align-items: start;
  gap: clamp(1.1rem, 2vw, 2rem);
  margin-bottom: 3rem;
}

.topbar > *,
.hero-grid > *,
.work-section > *,
.panel {
  min-width: 0;
}

.screen-title,
.access-counter {
  height: 3rem;
  border: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(150, 177, 186, 0.42), rgba(92, 118, 130, 0.16));
  box-shadow: inset 0 0 1.2rem rgba(216, 241, 246, 0.08), 0 0 1.4rem rgba(108, 170, 197, 0.08);
  display: flex;
  align-items: center;
}

.screen-title {
  justify-content: flex-start;
  padding: 0.26rem 1.8rem 0;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 300;
  white-space: nowrap;
}

.tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab {
  flex: 1 1 8.5rem;
  min-width: 7rem;
  padding: 1rem 1.25rem 0.86rem;
  color: var(--muted);
  font-weight: 400;
  text-align: center;
  border: 1px solid transparent;
  border-bottom: 0;
  background: rgba(23, 39, 49, 0.42);
}

.tab.active,
.tab:hover {
  color: var(--text);
  background: rgba(119, 148, 163, 0.38);
  border-color: var(--line-soft);
}

.access-counter {
  justify-content: space-between;
  padding: 0 1.2rem;
  justify-self: end;
  width: min(100%, 23rem);
  font-size: 1.35rem;
  font-weight: 600;
}

.access-label {
  min-width: 5.6rem;
  height: 1.55rem;
  border: 1px solid var(--line);
  display: inline-flex;
  place-items: center;
  align-items: center;
  justify-content: center;
  padding: 0 0.65rem;
  color: rgba(224, 239, 244, 0.78);
  background: rgba(8, 18, 26, 0.22);
  font-size: 0.82rem;
  font-weight: 400;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 23rem) minmax(32rem, 1fr) minmax(17rem, 23rem);
  gap: clamp(1.2rem, 1.8vw, 1.8rem);
  align-items: stretch;
}

.panel {
  position: relative;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(112, 141, 158, 0.28), rgba(28, 48, 62, 0.46)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.024) 0 1px, transparent 1px 5px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 0 2rem rgba(0,0,0,0.16);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
}

.panel::before {
  left: -0.72rem;
  top: -0.72rem;
  width: calc(100% + 0.9rem);
  height: calc(100% + 0.9rem);
  background: transparent;
  box-shadow: none;
  border: 0 solid transparent;
  pointer-events: none;
}

.panel::after {
  inset: -0.55rem;
  pointer-events: none;
  background:
    linear-gradient(var(--line), var(--line)) left top / 0.28rem 0.28rem no-repeat,
    linear-gradient(var(--line), var(--line)) right top / 0.28rem 0.28rem no-repeat,
    linear-gradient(var(--line), var(--line)) left bottom / 0.28rem 0.28rem no-repeat,
    linear-gradient(var(--line), var(--line)) right bottom / 0.28rem 0.28rem no-repeat;
}

.panel-label {
  padding: 0.82rem 1.15rem;
  color: var(--muted);
  font-size: 0.83rem;
  text-transform: uppercase;
}

.panel-label::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.45rem;
  background: var(--line);
  vertical-align: 0.05rem;
}

.roster-panel {
  min-height: 34rem;
  padding: 0 1rem 1rem;
}

.profile-card {
  display: grid;
  gap: 1.1rem;
  padding: 1rem;
  background: rgba(102, 130, 148, 0.2);
  border: 1px solid rgba(210, 232, 238, 0.18);
}

.profile-card.selected {
  background: rgba(155, 178, 188, 0.44);
  color: #f3fbfd;
}

.profile-card p + p {
  margin-top: 0.75rem;
}

.thumb {
  min-height: 10.5rem;
  background: rgba(8, 20, 28, 0.36);
  border: 1px solid rgba(218, 238, 242, 0.14);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.image-slot {
  position: relative;
  background:
    linear-gradient(135deg, rgba(211, 231, 235, 0.18), transparent 38%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 5px),
    linear-gradient(120deg, rgba(18, 35, 47, 0.94), rgba(95, 120, 133, 0.5));
  border: 1px solid rgba(218, 238, 242, 0.18);
  overflow: hidden;
}

.image-slot::before {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(222, 243, 247, 0.16);
  background:
    linear-gradient(90deg, rgba(221, 245, 248, 0.13) 1px, transparent 1px) 0 0 / 2.25rem 2.25rem,
    linear-gradient(0deg, rgba(221, 245, 248, 0.1) 1px, transparent 1px) 0 0 / 2.25rem 2.25rem;
}

.image-slot::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  height: 0.32rem;
  background: linear-gradient(90deg, var(--red) 0 18%, rgba(220, 243, 247, 0.45) 18% 72%, transparent 72%);
}

.image-slot span,
.image-slot figcaption {
  position: relative;
  z-index: 1;
}

.image-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(0.72) contrast(1.08);
}

.image-slot span {
  color: rgba(239, 250, 252, 0.84);
  font-family: var(--font-data);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.profile-image {
  aspect-ratio: 16 / 9;
  min-height: 0;
  align-content: end;
  justify-items: start;
  padding: 1.25rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 0.98;
  font-weight: 300;
  text-transform: uppercase;
}

p {
  color: #cad9de;
  font-family: var(--font-copy);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mini-list {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.mini-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr 4.2rem;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: 1px solid rgba(213, 235, 240, 0.12);
  background: rgba(20, 34, 43, 0.5);
  color: var(--text);
  padding: 0.82rem;
  font: inherit;
  text-align: left;
}

.mini-row.active,
.mini-row:hover {
  background: rgba(149, 174, 184, 0.42);
}

.mini-row span,
.mini-row em,
.project-id {
  color: var(--muted);
  font-style: normal;
  font-family: var(--font-data);
  font-size: 0.8rem;
}

.main-stage {
  min-height: 32rem;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.25rem;
  align-items: stretch;
  justify-items: center;
  padding: 1.6rem 1.4rem 1.1rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  --stage-center: 50%;
}

.main-stage::before {
  content: "";
  position: absolute;
  inset: 8% 5% 0;
  background:
    linear-gradient(90deg, transparent 0 24%, rgba(164, 210, 220, 0.08) 24% 25%, transparent 25% 75%, rgba(164, 210, 220, 0.08) 75% 76%, transparent 76%),
    radial-gradient(ellipse at center, rgba(121, 151, 165, 0.18), transparent 46%);
  filter: blur(0.1rem);
}

.briefing {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  display: grid;
  justify-items: center;
  margin: 0;
  text-align: center;
}

.briefing p {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  text-transform: none;
}

.kicker {
  display: block;
  color: #d9ffff;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 300;
}

.briefing h2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 0.12rem 0 0.9rem;
  color: #eaffff;
  font-size: clamp(1rem, 1.9vw, 1.55rem);
  font-weight: 300;
  text-transform: uppercase;
}

.briefing h2::before,
.briefing h2::after {
  content: "";
  width: 100%;
  height: 1px;
  background: var(--line);
}

.media-console {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(10rem, 1fr) minmax(8.5rem, 0.85fr);
  gap: 0.8rem;
  width: min(32rem, 100%);
  min-width: 0;
}

.feature-media {
  margin: 0;
  display: grid;
  align-content: end;
  padding: 1.2rem;
  min-height: 10rem;
}

.feature-media span {
  font-size: 0.86rem;
}

.feature-media span,
.feature-media figcaption,
.mini-media span {
  justify-self: start;
  width: fit-content;
  max-width: min(30ch, 100%);
  padding: 0.16rem 0.38rem 0.22rem;
  background: rgba(34, 43, 48, 0.68);
  box-shadow: 0 0 0 1px rgba(226, 242, 246, 0.12);
  backdrop-filter: blur(0.18rem);
}

.feature-media figcaption {
  max-width: 30ch;
  margin-top: 0.45rem;
  color: #e6f3f6;
  font-size: 0.98rem;
  line-height: 1.16;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.media-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.mini-media {
  margin: 0;
  display: grid;
  align-items: end;
  min-height: 8.5rem;
  padding: 0.9rem;
}

.paper {
  background:
    linear-gradient(135deg, rgba(235, 241, 236, 0.14), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 0.55rem),
    linear-gradient(160deg, rgba(34, 44, 48, 0.96), rgba(87, 112, 112, 0.54));
}

.prototype {
  background:
    radial-gradient(circle at 72% 28%, rgba(85, 166, 255, 0.28), transparent 18%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, rgba(18, 35, 47, 0.96), rgba(74, 93, 110, 0.62));
}

.specs-panel {
  padding-bottom: 0.75rem;
}

.focus-block {
  margin-top: 1.1rem;
  border-top: 1px solid rgba(218, 238, 242, 0.12);
}

.personal-lists {
  display: grid;
  gap: 0.7rem;
  padding: 0 1rem 1rem;
}

.personal-lists > div {
  padding: 0.72rem 0.75rem;
  border: 1px solid rgba(218, 238, 242, 0.1);
  background: rgba(10, 22, 30, 0.34);
}

.personal-lists h3 {
  margin: 0 0 0.45rem;
  color: #effbfe;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
}

.personal-lists ul {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.personal-lists li {
  color: #cad9de;
  font-family: var(--font-data);
  font-size: 0.78rem;
}

.personal-lists li::before {
  content: "■";
  margin-right: 0.45rem;
  color: var(--blue);
  font-size: 0.52rem;
}

.stat-list {
  margin: 0;
  padding: 0 1rem 1rem;
}

.stat-list div {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 1.2fr;
  gap: 1rem;
  align-items: center;
  padding: 0.42rem 0.65rem;
}

.stat-list div:nth-child(even) {
  background: rgba(191, 211, 220, 0.08);
}

dt {
  color: #d9e7ec;
}

dd {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 3rem;
  align-items: center;
  gap: 0.8rem;
}

dd span {
  height: 0.3rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: linear-gradient(90deg, var(--red) 0 var(--v), rgba(216, 237, 241, 0.38) var(--v));
}

dd b {
  color: #e7f3f7;
  font-family: var(--font-data);
  text-align: right;
}

.work-section {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.8rem;
  margin-top: 2.2rem;
}

.bio-panel {
  padding-bottom: 1rem;
}

.bio-copy {
  display: grid;
  gap: 0.7rem;
  padding: 0 1rem;
}

.bio-copy h3 {
  margin: 0;
  color: #effbfe;
  font-family: var(--font-ui);
  font-size: 1.65rem;
  font-weight: 400;
  text-transform: uppercase;
}

.bio-copy p {
  margin: 0;
}

.archive-page {
  --portfolio-opacity: 1;
}

.archive-shell {
  margin-top: 0;
}

.archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  gap: 2rem;
  align-items: end;
  padding: 0 1.2rem 1.2rem;
  margin-bottom: 2rem;
}

.archive-hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-ui);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 300;
}

.archive-hero p {
  max-width: 58rem;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.archive-stats {
  display: grid;
  gap: 0.45rem;
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.archive-stats span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(221, 241, 244, 0.1);
  background: rgba(10, 22, 30, 0.38);
}

.archive-stats b {
  color: var(--blue);
  font-family: var(--font-data);
}

.archive-category {
  margin-top: 2rem;
}

.category-heading {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-soft);
}

.category-heading h2 {
  margin: 0;
  color: #eaffff;
  font-family: var(--font-ui);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 300;
  text-transform: uppercase;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.archive-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
}

.archive-card::after {
  inset: 0.35rem;
}

.archive-media {
  margin: 0;
  display: grid;
  align-items: end;
  min-height: 11rem;
  padding: 1rem;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.archive-media::after {
  display: none;
}

.archive-copy {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1rem;
}

.archive-copy h3 {
  margin: 0;
  color: #effbfe;
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 400;
  text-transform: uppercase;
}

.archive-subtitle {
  color: var(--blue);
  font-family: var(--font-data);
  font-size: 0.78rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.archive-copy p {
  margin: 0;
}

.archive-link {
  justify-self: start;
  margin-top: 0.55rem;
  padding: 0.52rem 0.85rem;
  border: 1px solid rgba(221, 241, 244, 0.28);
  background: rgba(150, 177, 186, 0.18);
  color: #eaffff;
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.archive-link:hover {
  background: rgba(149, 174, 184, 0.42);
}

.contact-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.contact-panel {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(22rem, 1.2fr);
  gap: 2rem;
  width: min(78rem, 100%);
  margin: 2rem auto 4.2rem;
  padding: 0 1.2rem 1.2rem;
}

.contact-intro h1 {
  margin: 0 0 0.8rem;
  color: #effbfe;
  font-family: var(--font-ui);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 300;
  text-transform: uppercase;
}

.contact-list {
  display: grid;
  align-content: center;
  gap: 0.45rem;
  padding-top: 1.2rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 5rem minmax(8rem, 1fr) minmax(10rem, 1.2fr);
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(218, 238, 242, 0.12);
  background: rgba(20, 34, 43, 0.5);
}

.contact-row:hover {
  background: rgba(149, 174, 184, 0.42);
}

.contact-row strong {
  color: #effbfe;
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
}

.contact-row em {
  color: #cad9de;
  font-family: var(--font-data);
  font-size: 0.86rem;
  font-style: normal;
  overflow-wrap: anywhere;
}

.project-table {
  display: grid;
  gap: 0.14rem;
  padding: 0 1rem 1rem;
}

.project-row {
  display: grid;
  grid-template-columns: 7rem 1fr 7rem;
  gap: 1rem;
  align-items: center;
  min-height: 7rem;
  padding: 1rem;
  border: 1px solid rgba(218, 238, 242, 0.1);
  background: rgba(22, 38, 49, 0.44);
}

.project-row.selected,
.project-row:hover {
  background: rgba(158, 181, 190, 0.52);
}

.project-row h3,
.detail-panel h3 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
  font-weight: 400;
  text-transform: uppercase;
}

.project-row p {
  margin-bottom: 0;
}

.project-meta {
  display: grid;
  gap: 0.45rem;
  text-align: right;
  font-family: var(--font-data);
}

.project-meta span {
  color: var(--muted);
}

.project-meta b,
.blue {
  color: var(--blue);
}

.detail-panel {
  padding: 0 1.1rem 1.1rem;
}

.delta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.delta-grid span {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.62rem 0.7rem;
  background: rgba(10, 22, 30, 0.38);
  border: 1px solid rgba(221, 241, 244, 0.1);
}

.red {
  color: var(--red);
}

.command-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 3.6rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.75rem 4.8vw;
  background: rgba(4, 8, 12, 0.88);
  border-top: 1px solid rgba(193, 229, 237, 0.22);
  backdrop-filter: blur(0.35rem);
  z-index: 20;
}

.command-strip a {
  color: #dce9ee;
  white-space: nowrap;
}

.command-strip span {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.72rem;
}

.command-strip small {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-data);
}

@media (max-width: 1180px) {
  .title-mark p {
    font-size: 2.2rem;
  }

  .title-mark h1 {
    font-size: 6.4rem;
  }

  .topbar,
  .hero-grid,
  .work-section,
  .archive-hero,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-counter {
    justify-self: stretch;
  }

  .tabs {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .tab {
    flex: 0 0 7.4rem;
    min-width: 0;
  }

  .roster-panel,
  .main-stage {
    min-height: 31rem;
  }

  .specs-panel {
    max-width: none;
  }

  .media-console {
    position: relative;
    inset: auto;
    margin: 2rem 1.2rem 1.2rem;
    grid-template-rows: minmax(14rem, auto) auto;
  }
}

@media (max-width: 720px) {
  #profile,
  #work,
  #systems,
  #contact {
    scroll-margin-top: 12rem;
  }

  .title-mark {
    width: min(23rem, 88vw);
  }

  .title-mark p {
    margin-bottom: 0.85rem;
    font-size: 1.25rem;
  }

  .title-mark h1 {
    font-size: 3.8rem;
    line-height: 0.9;
  }

  .press-start {
    margin-top: 2.2rem;
    font-size: 0.78rem;
  }

  .title-footer {
    width: 86vw;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
  }

  .shell {
    max-width: 100vw;
    overflow: hidden;
    padding: 1rem 0.75rem 5.8rem;
  }

  .side-code {
    display: none;
  }

  .topbar {
    gap: 0.8rem;
    margin-bottom: 1.4rem;
  }

  .topbar,
  .hero-grid,
  .work-section,
  .archive-hero,
  .archive-grid,
  .contact-panel,
  .panel,
  .profile-card,
  .thumb {
    width: 100%;
    max-width: 100%;
  }

  .panel {
    overflow: hidden;
  }

  .screen-title,
  .access-counter {
    height: 2.7rem;
  }

  .screen-title {
    padding-left: 1rem;
  }

  .profile-card,
  .project-row,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .archive-hero {
    gap: 1rem;
    padding-inline: 0.8rem;
  }

  .archive-card {
    min-height: auto;
  }

  .archive-media {
    min-height: 10rem;
  }

  .contact-panel {
    margin-top: 1rem;
    padding-inline: 0.8rem;
  }

  .contact-list {
    padding-top: 0;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .profile-card {
    overflow: hidden;
    padding: 0.75rem;
  }

  .profile-card p {
    max-width: 31ch;
  }

  h1 {
    font-size: clamp(1.45rem, 9vw, 2.1rem);
  }

  p {
    font-size: 0.92rem;
  }

  .roster-panel {
    padding-inline: 0.75rem;
  }

  .mini-row {
    grid-template-columns: 2rem minmax(0, 1fr) 3.1rem;
    gap: 0.5rem;
    padding: 0.72rem 0.65rem;
  }

  .mini-row em,
  .mini-row span {
    font-size: 0.68rem;
  }

  .project-meta {
    text-align: left;
    display: flex;
    justify-content: space-between;
  }

  .briefing {
    width: 88%;
    margin-top: 2rem;
  }

  .briefing p {
    font-size: 0.92rem;
  }

  .media-console {
    margin: 1.2rem 0.75rem 0.75rem;
    grid-template-rows: auto auto;
  }

  .media-stack {
    grid-template-columns: 1fr;
  }

  .feature-media {
    min-height: 13rem;
  }

  .delta-grid,
  .stat-list div {
    grid-template-columns: 1fr;
  }

  .command-strip {
    overflow-x: auto;
    align-items: center;
    padding: 0.75rem 1rem;
  }

  .command-strip small {
    display: none;
  }
}
