/* ============================================================
   AXXN DESKTOP
   A manifesto wallpaper, five objects, windows that behave.
   ============================================================ */

:root {
  --blue: #1e2aff;
  --blue-deep: #0a10c4;
  --cream: #f2eee3;
  --paper: #fbfaf6;
  --ink: #111111;
  --muted: #6f6a61;
  --line: rgba(17, 17, 17, 0.16);
  --line-soft: rgba(17, 17, 17, 0.08);
  --line-cream: rgba(242, 238, 227, 0.26);

  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --menubar-h: 34px;
  --statusbar-h: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body { height: 100%; }

body {
  margin: 0;
  background: var(--blue);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

.icons :focus-visible { outline-color: var(--cream); outline-offset: 5px; }
.menubar :focus-visible,
.statusbar :focus-visible { outline-color: var(--blue); outline-offset: 2px; }
.window :focus-visible { outline-color: var(--blue); outline-offset: 3px; }
.window:focus { outline: none; }

.desktop {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* ---------------------------------------------------- wallpaper */
.wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 78% 8%, #5360ff 0%, #2a34ff 36%, var(--blue) 58%, var(--blue-deep) 100%);
  z-index: 0;
}

.wallpaper::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(242, 238, 227, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 227, 0.055) 1px, transparent 1px);
  background-size: 92px 92px;
  pointer-events: none;
}

.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wall-copy {
  position: absolute;
  right: 7vw;
  bottom: 8vh;
  width: min(58vw, 900px);
  z-index: 2;
  color: var(--cream);
  pointer-events: none;
}

.wall-copy .label {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 238, 227, 0.68);
}

.wall-copy h1 {
  font-family: var(--sans);
  font-size: clamp(2.8rem, 6.2vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
  max-width: 17ch;
}

.wall-copy h1 em {
  font-style: italic;
  font-weight: 400;
}

.wall-copy .sign {
  margin-top: 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 238, 227, 0.72);
}

.wall-copy .sign::before {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: currentColor;
}

/* ---------------------------------------------------- menubar */
.menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--menubar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 12px;
  background: var(--cream);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menubar-left,
.menubar-right { display: flex; align-items: center; gap: 14px; }

.menubar-brand {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.menubar-brand:hover { color: var(--blue); }

.menubar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  white-space: nowrap;
}

.menubar button {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 0;
}
.menubar button:hover { color: var(--blue); }

.menubar-clock { color: var(--muted); white-space: nowrap; }

/* ---------------------------------------------------- statusbar */
.statusbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  height: var(--statusbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 12px;
  background: var(--cream);
  color: var(--ink);
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.statusbar .status-center { color: var(--muted); }

/* ---------------------------------------------------- icons */
.icons {
  position: absolute;
  top: calc(var(--menubar-h) + 26px);
  left: 22px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.icon {
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.5938rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}
.icon:hover .icon-label { text-decoration: underline; text-underline-offset: 3px; }
.icon:active { transform: translateY(1px); }

.icon-shape { position: relative; display: block; }

/* folder */
.folder {
  width: 66px;
  height: 48px;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.16);
}
.folder::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -9px;
  width: 28px;
  height: 9px;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}
.folder::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 5px 0 rgba(17, 17, 17, 0.18);
}

/* envelope */
.envelope {
  width: 66px;
  height: 46px;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
.envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom right, transparent 49.4%, var(--ink) 49.6%, var(--ink) 50.1%, transparent 50.4%),
    linear-gradient(to bottom left, transparent 49.4%, var(--ink) 49.6%, var(--ink) 50.1%, transparent 50.4%);
}
.envelope::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 12px;
  height: 2px;
  transform: translateX(-50%);
  background: var(--blue);
}

/* text file */
.file {
  width: 48px;
  height: 62px;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.16);
}
.file::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border-left: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.file::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 22px;
  height: 2px;
  background: rgba(17, 17, 17, 0.35);
  box-shadow: 0 7px 0 rgba(17, 17, 17, 0.35), 0 14px 0 rgba(17, 17, 17, 0.35);
}

/* ---------------------------------------------------- windows */
.window {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  width: min(840px, calc(100vw - 160px));
  max-height: calc(100vh - var(--menubar-h) - var(--statusbar-h) - 40px);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
.window.is-open { display: flex; animation: winIn 0.28s var(--ease) both; }
.window.is-active { box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.22); }
.window--wide { width: min(980px, calc(100vw - 140px)); }
.window--narrow { width: min(700px, calc(100vw - 180px)); }

@keyframes winIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.win-bar {
  flex: 0 0 auto;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 0 12px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.win-bar:active { cursor: grabbing; }

.win-title { display: flex; align-items: center; gap: 10px; }
.win-title::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--blue);
  display: block;
}

.win-close {
  width: 24px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 238, 227, 0.4);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1;
}
.win-close:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.win-body {
  overflow: auto;
  padding: clamp(20px, 3vw, 36px);
}

.win-kicker {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.win-title-text {
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.96;
  max-width: 16ch;
}

.win-lead {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.win-section { margin-top: 26px; }
.win-rule { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.win-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.25s var(--ease);
}
.win-link:hover { color: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--cream); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.5938rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.back-link:hover { color: var(--blue); }

/* ---------------------------------------------------- work list */
.win-list { border-top: 1px solid var(--line); margin-top: 22px; }

.win-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 22px;
  gap: 10px 14px;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.win-row:hover { color: var(--blue); }
.win-row .idx {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  font-family: var(--mono);
  font-size: 0.5938rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 2px;
}
.win-row .name {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.win-row .sub {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}
.win-row .cat {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: start;
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.win-row .arrow {
  grid-column: 4;
  grid-row: 1 / 3;
  align-self: start;
  justify-self: end;
  padding-top: 2px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------------------------------------------------- project window */
.win-body--flush { padding: 0; }

.project-banner {
  height: clamp(180px, 26vw, 280px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.project-banner .art { position: absolute; inset: 0; }

.project-inner { padding: clamp(20px, 3vw, 36px); }

.proj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.proj-meta strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.proj-meta span { color: var(--ink); }

.proj-sections { margin-top: 26px; }
.proj-section {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px 28px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.proj-section .lbl {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.proj-section h3 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.proj-section p { max-width: 62ch; color: #333; margin-bottom: 10px; font-size: 0.93rem; }
.proj-section p:last-child { margin-bottom: 0; }
.proj-quote {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 24ch;
  margin-bottom: 4px;
}
.proj-stats { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 6px; }
.proj-stats strong { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.proj-stats span { font-size: 0.78rem; color: var(--muted); }

/* art directions for project banners */
.art { overflow: hidden; }
.art::before,
.art::after { content: ""; position: absolute; }

.project-banner img,
.product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.art--1 { background: radial-gradient(120% 120% at 20% 0%, #ff9a62 0%, #f25a1c 34%, #a52607 66%, #3a0c02 100%); }
.art--1::before {
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0b0b0b;
  right: 10%;
  top: 14%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.art--1::after {
  width: 12%;
  aspect-ratio: 1;
  background: var(--blue);
  left: 8%;
  bottom: 16%;
  transform: rotate(9deg);
}

.art--2 { background: radial-gradient(120% 120% at 76% 10%, #4d57ff 0%, #1a24ff 40%, #0810a8 72%, #04074d 100%); }
.art--2::before {
  width: 48%;
  aspect-ratio: 1;
  background: #f4f1e8;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  right: 4%;
  top: 12%;
}

.art--3 { background: linear-gradient(160deg, #f2f1ed 0%, #deddd6 100%); }
.art--3::before {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50% 50% 0 0;
  background: #0b0b0b;
  left: 33%;
  top: 12%;
}
.art--3::after {
  height: 5%;
  left: 33%;
  right: 33%;
  bottom: 14%;
  background: var(--blue);
}

/* ---------------------------------------------------- thinking */
.reader p { max-width: 66ch; font-size: 0.95rem; line-height: 1.65; color: #333; margin-bottom: 14px; }
.reader ul { margin: 0 0 14px 18px; padding: 0; list-style: disc; }
.reader li { max-width: 62ch; font-size: 0.95rem; line-height: 1.65; color: #333; margin-bottom: 6px; }
.reader h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 22px 0 8px;
}
.reader blockquote {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  border-left: 2px solid var(--blue);
  padding-left: 14px;
  margin: 18px 0;
  max-width: 26ch;
}
.reader .reader-meta {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ---------------------------------------------------- store */
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.product { border-top: 1px solid var(--line); padding-top: 12px; }
.product-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--ink);
  margin-bottom: 10px;
}
.product-art span { position: absolute; }

.prod--1 { background: var(--blue); }
.prod--1::before {
  content: "MARK.";
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-family: var(--sans);
  font-size: clamp(1.2rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--cream);
}

.prod--2 { background: var(--cream); }
.prod--2::before {
  content: "";
  position: absolute;
  left: 18%;
  top: 14%;
  width: 64%;
  height: 72%;
  background: var(--ink);
  border-radius: 2px;
}
.prod--2::after {
  content: "AXXN";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--cream);
}

.prod--3 { background: #e9e6dc; }
.prod--3::before {
  content: "";
  position: absolute;
  left: 12%;
  top: 20%;
  width: 38%;
  height: 54%;
  background: var(--blue);
  transform: rotate(-4deg);
}
.prod--3::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 26%;
  width: 38%;
  height: 54%;
  background: var(--cream);
  border: 1px solid var(--ink);
  transform: rotate(4deg);
}

.product h3 { font-size: 0.95rem; font-weight: 500; letter-spacing: -0.02em; }
.product .meta { font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.product .desc { font-size: 0.8rem; line-height: 1.45; color: var(--muted); margin-top: 5px; max-width: 34ch; }
.product .enquire {
  margin-top: 8px;
  font-size: 0.75rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  color: var(--ink);
}
.product .enquire:hover { color: var(--blue); }

/* ---------------------------------------------------- contact compose */
.compose { margin-top: 22px; border-top: 1px solid var(--ink); }
.compose-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.compose-row .k {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.compose-row .v { font-size: 0.88rem; }
.compose-row input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.88rem;
}
.compose-row input:focus { outline: none; }
.compose-row.split { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); }
.compose-message { padding-top: 10px; }
.compose-message textarea {
  width: 100%;
  min-height: 150px;
  border: 0;
  background: transparent;
  resize: vertical;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.compose-message textarea:focus { outline: none; }
.compose-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
}
.compose-actions .note { font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.compose-sent { display: none; }
.compose-sent.is-visible { display: block; }
.compose-sent h3 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 8px; }
.compose-sent p { color: var(--muted); max-width: 44ch; margin-bottom: 14px; }

.form-error { color: #a80000; font-size: 0.75rem; margin-top: 8px; }
.form-error:empty { display: none; }

/* ---------------------------------------------------- about readme */
.readme p { max-width: 60ch; color: #333; font-size: 0.93rem; margin-bottom: 12px; }
.readme p:last-child { margin-bottom: 0; }
.readme .systems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: 22px;
}
.readme .systems div { background: var(--paper); padding: 14px; }
.readme .systems h3 { font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.readme .systems p { font-size: 0.88rem; }
.readme .clients {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------------------------------------------------- noscript */
.noscript-card {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  width: min(520px, calc(100vw - 40px));
  padding: 28px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.2);
}
.noscript-card h1 { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.03em; margin: 10px 0; }
.noscript-card p { color: var(--muted); font-size: 0.9rem; }
.noscript-card a { border-bottom: 1px solid currentColor; }

/* ---------------------------------------------------- 404 */
.nf {  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--menubar-h) + 28px) 7vw;
  background: var(--blue);
  color: var(--cream);
}
.nf .label { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242, 238, 227, 0.7); margin-bottom: 18px; }
.nf h1 { font-size: clamp(2.6rem, 7vw, 6.6rem); font-weight: 500; letter-spacing: -0.055em; line-height: 0.94; max-width: 15ch; }
.nf p { margin-top: 18px; max-width: 42ch; color: rgba(242, 238, 227, 0.78); }
.nf .actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.nf .btn { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.nf .btn--line { background: transparent; color: var(--cream); border-color: var(--cream); }

/* ---------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .menubar-center { display: none; }
  .wall-copy { width: min(64vw, 760px); }
}

@media (max-width: 800px) {
  :root { --menubar-h: 40px; --statusbar-h: 24px; }

  .menubar { padding: 0 10px; }
  .menubar-left .menubar-tagline { display: none; }

  .statusbar .status-center { display: none; }

  .icons {
    top: calc(var(--menubar-h) + 18px);
    left: 14px;
    right: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 8px;
    justify-items: center;
  }
  .icon { width: 86px; }
  .folder { width: 52px; height: 39px; }
  .folder::before { width: 22px; height: 8px; top: -8px; }
  .envelope { width: 54px; height: 38px; }
  .file { width: 40px; height: 52px; }

  .wall-copy {
    left: 16px;
    right: 16px;
    bottom: calc(var(--statusbar-h) + 18px);
    width: auto;
    max-width: none;
  }
  .wall-copy h1 { font-size: clamp(2rem, 8vw, 3.6rem); max-width: 20ch; }
  .wall-copy .label { margin-bottom: 12px; }
  .wall-copy .sign { display: none; }

  .window,
  .window--wide,
  .window--narrow {
    position: fixed;
    left: 8px !important;
    right: 8px;
    top: calc(var(--menubar-h) + 8px) !important;
    bottom: calc(var(--statusbar-h) + 8px);
    width: auto;
    max-height: none;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
  }
  .win-bar { cursor: default; }
  .win-body { padding: 20px; }
  .proj-section { grid-template-columns: 1fr; gap: 4px; }
  .store-grid { grid-template-columns: 1fr; }
  .compose-row.split { grid-template-columns: 64px 1fr; }
  .compose-row.split .v:last-child { grid-column: 2; }
  .readme .systems { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .menubar-tagline { display: none; }
  .menubar-right .menubar-close-all { display: none; }
  .wall-copy h1 { font-size: clamp(1.9rem, 9.2vw, 3rem); }
  .icons { grid-template-columns: repeat(3, 1fr); gap: 10px 4px; }
  .icon { width: 76px; font-size: 0.55rem; }
  .folder { width: 46px; height: 35px; }
  .envelope { width: 48px; height: 34px; }
  .file { width: 34px; height: 46px; }
  .win-title-text { font-size: 1.8rem; }
  .win-body { padding: 16px; }
  .project-inner { padding: 16px; }
  .win-row { grid-template-columns: 26px minmax(0, 1fr) 20px; }
  .win-row .cat { display: none; }
  .win-row .sub { grid-column: 2; }
  .win-row .arrow { grid-column: 3; }
}

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