:root {
  --ink: #0b0e13;
  --panel: #12161d;
  --panel-2: #161b24;
  --line: #232b36;
  --text: #e8ecf1;
  --muted: #9aa5b3;
  --dim: #6b7684;
  --signal: #ff6b1a;
  --green: #3fb950;
  --yellow: #f0d722;
  --blue: #4ea1f3;
  --teal: #4ec9b0;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --r: 4px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font: 16px/1.6 var(--body);
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 44px 44px;
}

a { color: var(--text); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.mono { font-family: var(--mono); }

header.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.topbar {
  display: flex; align-items: center; gap: 24px;
  min-height: 64px;
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand .b-name { font-family: var(--display); font-size: 20px; letter-spacing: .01em; }
.brand .b-name em { font-style: normal; color: var(--signal); }
.brand .b-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--dim); text-transform: uppercase; }
nav.main { display: flex; gap: 4px; margin-left: auto; }
nav.main a {
  font-family: var(--mono); font-size: 13px; text-decoration: none;
  color: var(--muted); padding: 10px 12px; border-radius: var(--r);
  min-height: 44px; display: inline-flex; align-items: center;
}
nav.main a:hover { color: var(--text); background: var(--panel-2); }
.clock {
  font-family: var(--mono); font-size: 12px; color: var(--dim);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 6px 10px; white-space: nowrap;
}
.clock b { color: var(--green); font-weight: 500; }

.hero { padding: 72px 0 40px; }
.hero .kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--signal); margin-bottom: 20px;
}
h1 {
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02; letter-spacing: -.01em;
  max-width: 16ch;
}
h1 em { font-style: normal; color: var(--signal); }
.hero .lede { margin-top: 24px; max-width: 62ch; color: var(--muted); font-size: 18px; }
.stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 40px; }
.stat .n { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--text); }
.stat .n span { color: var(--signal); }
.stat .l { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-top: 8px; }

section { padding: 56px 0; }
.sec-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
h2 { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); letter-spacing: .005em; }
.sec-head .idx { font-family: var(--mono); font-size: 13px; color: var(--signal); }
.sec-head .note { font-family: var(--mono); font-size: 12.5px; color: var(--dim); margin-left: auto; }

.netzplan {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); overflow: hidden;
}
.netzplan .np-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.netzplan .np-head .live { color: var(--green); }
.netzplan .np-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.netzplan svg { display: block; width: 100%; height: auto; min-width: 720px; }
.np-legend {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding: 12px 16px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.np-legend .key { display: inline-flex; align-items: center; gap: 8px; }
.np-legend .swatch { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }

.toolbar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.searchrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search {
  flex: 1; min-width: 240px; position: relative;
}
.search input {
  width: 100%; min-height: 48px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r);
  font: 15px var(--body); padding: 12px 16px 12px 44px;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--signal); outline: none; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.region { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.region button {
  min-height: 48px; padding: 0 16px; cursor: pointer;
  background: var(--panel); color: var(--muted); border: 0;
  font: 13px var(--mono); letter-spacing: .06em;
}
.region button + button { border-left: 1px solid var(--line); }
.region button[aria-pressed="true"] { background: var(--signal); color: var(--ink); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r);
  font: 12.5px var(--mono); letter-spacing: .04em;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip:hover { border-color: var(--dim); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.chip[aria-pressed="true"] .dot { outline: 1px solid var(--ink); }
.resultline { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.resultline b { color: var(--signal); font-weight: 500; }

.grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 168px;
}
.card:hover { border-color: var(--dim); background: var(--panel-2); }
.card .c-top { display: flex; align-items: baseline; gap: 12px; }
.card h3 { font-family: var(--display); font-size: 17px; letter-spacing: .01em; line-height: 1.25; }
.card .year { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--dim); white-space: nowrap; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.card .c-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
  border-top: 1px solid var(--line); padding-top: 12px;
}
.card .tag { display: inline-flex; align-items: center; gap: 6px; letter-spacing: .04em; }
.card .tag .dot { width: 7px; height: 7px; border-radius: 50%; }
.card .place { letter-spacing: .04em; }
.card .link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  color: var(--signal); text-decoration: none; letter-spacing: .04em;
  padding: 4px 0;
}
.card .link:hover { text-decoration: underline; }
.card .link svg { flex: none; }

.empty {
  border: 1px dashed var(--line); border-radius: var(--r);
  padding: 48px 24px; text-align: center; color: var(--muted);
}
.empty .mono { color: var(--dim); font-size: 13px; margin-bottom: 16px; }
.empty button {
  min-height: 44px; padding: 10px 20px; cursor: pointer;
  background: var(--signal); color: var(--ink); border: 0; border-radius: var(--r);
  font: 500 14px var(--body);
}

.projects { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.prow {
  display: grid; grid-template-columns: 56px 1.1fr 2fr auto;
  gap: 20px; align-items: center;
  padding: 20px 24px; background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.prow:last-child { border-bottom: 0; }
.prow:hover { background: var(--panel-2); }
.prow .p-idx { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.prow .p-name { font-family: var(--display); font-size: 16px; }
.prow .p-name a { text-decoration: none; }
.prow .p-name a:hover { color: var(--signal); }
.prow .p-desc { color: var(--muted); font-size: 14px; line-height: 1.5; }
.badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 6px 10px; white-space: nowrap; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.badge.live { color: var(--green); border-color: rgba(63, 185, 80, .4); }
.badge.live .dot { background: var(--green); }
.badge.building { color: var(--yellow); border-color: rgba(240, 215, 34, .35); }
.badge.building .dot { background: var(--yellow); }

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.about-grid .col p { color: var(--muted); max-width: 62ch; }
.about-grid .col p + p { margin-top: 16px; }
.databox {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
  padding: 24px; font-family: var(--mono); font-size: 13px; line-height: 1.8; color: var(--muted);
}
.databox .k { color: var(--signal); }
.databox .c { color: var(--dim); }

footer {
  border-top: 1px solid var(--line); margin-top: 32px;
  padding: 28px 0 40px;
}
.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12.5px; color: var(--dim);
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--signal); }
.foot nav { display: flex; gap: 20px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

.legal { max-width: 760px; padding: 64px 24px 80px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 4vw, 44px); max-width: none; margin-bottom: 32px; }
.legal h2 { font-size: 18px; margin: 32px 0 12px; font-family: var(--body); font-weight: 600; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal p + p { margin-top: 12px; }
.legal .ph { color: var(--yellow); font-family: var(--mono); font-size: 13px; }
.legal .back { display: inline-block; margin-bottom: 32px; font-family: var(--mono); font-size: 13px; color: var(--signal); text-decoration: none; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 40px 1fr auto; }
  .prow .p-desc { grid-column: 2 / 4; }
  .brand .b-sub { display: none; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar { flex-wrap: wrap; padding: 8px 0; gap: 8px; }
  nav.main { margin-left: 0; order: 3; width: 100%; overflow-x: auto; }
  nav.main a { padding: 8px 10px; min-height: 40px; }
  .clock { margin-left: auto; }
  .hero { padding: 48px 0 32px; }
  .stats { gap: 24px; }
  .stat .n { font-size: 32px; }
  .grid { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px; }
  .prow .p-idx { display: none; }
  .prow .p-desc { grid-column: 1 / 3; }
  section { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ===== applemaker restyle 2026-11-25: card glow + hero readout ===== */
:root{--am-green:#47e08e;--am-green-glow:rgba(71,224,142,.14);--am-purple:#5b2fb8;--am-purple-glow:rgba(91,47,184,.35);--am-hairline:rgba(255,255,255,.55)}
.grid .card{
  box-shadow:0 0 22px var(--am-green-glow),0 10px 26px rgba(0,0,0,.35),inset 0 0 0 1.5px var(--am-hairline);
  background-image:linear-gradient(160deg,rgba(71,224,142,.055),transparent 55%);
  transition:box-shadow .18s ease,transform .18s ease,background-image .18s ease;
}
.grid .card:hover,.grid .card:focus-within{
  box-shadow:0 0 28px var(--am-purple-glow),0 12px 30px rgba(0,0,0,.4),inset 0 0 0 1.5px var(--am-hairline);
  background-image:linear-gradient(160deg,rgba(91,47,184,.07),transparent 55%);
  transform:translateY(-2px);
}
@media (prefers-reduced-motion:reduce){.grid .card,.grid .card:hover{transition:none;transform:none}}
.readout{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font-family:"IBM Plex Mono",monospace;font-size:12.5px;
  color:var(--am-green);border:1px solid var(--am-hairline);border-radius:999px;padding:5px 13px;
  box-shadow:0 0 16px var(--am-green-glow);transition:box-shadow .2s,color .2s}
.readout.hot{color:#caa6f5;box-shadow:0 0 20px var(--am-purple-glow)}
.readout .dot{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 9px currentColor}