:root {
  --fog: #e7e4dc;
  --alu: #9aa0a8;
  --tape: #d4c4a0;
  --wet: #8b6bb8;
  --river: #4a8fb8;
  --gold: #c4a05a;
  --ink: #17181b;
  --mute: #5c5f66;
  --ok: #2d6a4f;
  --warn: #a33b1a;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --cond: "Barlow Condensed", "Noto Sans SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
section[id] { scroll-margin-top: 64px; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--fog);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--wet); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
.tape-veil {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 4;
  opacity: 0.08;
  background-image: url("images/texture.webp");
  background-size: 380px;
  mix-blend-mode: multiply;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 70; background: var(--wet); color: #fff; padding: 8px; }

.hangar-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px;
  background: rgba(231, 228, 220, 0.94);
  border-bottom: 8px solid var(--tape);
}
.ac-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.ac-mark small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--mute);
}
.swatch {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--tape) 40%, var(--wet) 40% 70%, var(--river) 70%);
}
.peel-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 6px 12px;
}
#skin-nav { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; }
#skin-nav a { color: var(--mute); }
#skin-nav a.is-active, #skin-nav a:hover { color: var(--ink); }
#skin-nav .go, a.go {
  background: var(--ink);
  color: var(--fog);
  padding: 6px 12px;
}

.wet-hero {
  position: relative;
  min-height: 100vh;
  background: #1c1e24;
  padding-top: 10vh;
}
.wet-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 70% 62%;
}
.wet-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 24, 27, 0.55) 0%, rgba(23, 24, 27, 0.12) 55%, transparent 100%);
  pointer-events: none;
}
.workcard {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 40px));
  margin: 0 0 8vh 6vw;
  padding: 28px 28px 32px;
  background: rgba(23, 24, 27, 0.86);
  color: var(--fog);
  backdrop-filter: blur(8px);
  box-shadow: 16px 16px 0 var(--tape);
}
.wc-id {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 10px;
}
h1, h2, h3 {
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 14px;
}
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: 24px; }
.lede { max-width: 42em; color: rgba(231, 228, 220, 0.92); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 18px 0; }
.chips li {
  border: 1px solid rgba(231, 228, 220, 0.35);
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 12px;
}
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.ghost {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid currentColor;
}
.workcard .go { display: inline-flex; }

#need, #desk, #edge, #roles {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 40px;
}
.note { color: var(--mute); max-width: 46em; }
.note.light { color: rgba(231, 228, 220, 0.78); }
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.three article, .panel, .io article {
  background: #fff;
  padding: 20px;
  border-top: 6px solid var(--tape);
}
.three ul, .io ul, #edge ol { margin: 0; padding-left: 1.15em; }
.three.dark article, .three article.dark {
  background: #22242a;
  color: var(--fog);
  border-top-color: var(--wet);
}

.alu {
  background: #1c1e24;
  color: var(--fog);
  padding: 84px 0 64px;
}
.alu > .wc-id, .alu > h2, .alu > .note, .alu > .layer, .alu > .three {
  width: min(1100px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
.layer {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin: 40px auto;
}
.layer.flip { grid-template-columns: 0.9fr 1.1fr; }
.layer.flip img { order: 2; }
.layer img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-left: 10px solid var(--tape);
}
.step {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 8px;
}

.desk-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.panel label { display: block; margin: 10px 0 4px; font-family: var(--mono); font-size: 13px; }
.panel input[type=range] { width: 100%; accent-color: var(--wet); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.peel-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.peel-row button {
  background: transparent;
  border: 1px solid var(--ink);
  padding: 6px 10px;
}
.peel-row button.on {
  background: var(--wet);
  color: #fff;
  border-color: var(--wet);
}

.io {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.io article { border-top-color: var(--river); }
.hangar-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 28px;
  background: var(--ink);
  color: var(--fog);
  font-size: 14px;
}
.hangar-foot .app-link { color: var(--gold); }

@media (max-width: 900px) {
  .peel-btn { display: inline-flex; }
  #skin-nav {
    display: none;
    position: absolute;
    right: 12px;
    top: 100%;
    background: var(--fog);
    border: 1px solid var(--ink);
    flex-direction: column;
    padding: 12px;
  }
  #skin-nav.open { display: flex; }
  .hangar-bar { position: relative; }
  .three, .desk-row, .layer, .layer.flip, .io { grid-template-columns: 1fr; }
  .layer.flip img { order: 0; }
  .workcard { margin: 0; width: 100%; box-shadow: none; }
  .wet-hero { min-height: auto; padding-top: 0; }
  .wet-hero > img { position: relative; height: 32vh; }
  .wet-hero::after { display: none; }
  h1 { font-size: 34px; }
}
