/* chriswalzl.com — "hangar" theme
   washi paper · sumi ink · vermilion · steel · sakura  */

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

/* ── Tokens ─────────────────────────────────────── */

:root {
  --bg:         #f1efe8;
  --bg-2:       #e9e6dd;
  --surface:    #f8f7f2;
  --ink:        #121316;
  --ink-2:      #3d4048;
  --muted:      #7c8088;
  --line:       rgba(18, 19, 22, 0.14);
  --line-soft:  rgba(18, 19, 22, 0.07);
  --grid:       rgba(18, 19, 22, 0.045);
  --shu:        #d63a1f;             /* vermilion — hanko ink */
  --shu-soft:   rgba(214, 58, 31, 0.12);
  --steel:      #4f6172;
  --steel-soft: rgba(79, 97, 114, 0.12);
  --sakura:     #f2b8c8;             /* blossom */
  --sakura-2:   #e58aa4;             /* bud / petal shade */
  --sakura-edge: rgba(18, 19, 22, 0.35);
  --wood:       #6b6e75;
  --enso:       0.88;
  --ok:         #2fbf71;
  --glow:       0 0 0 rgba(0, 0, 0, 0);
  --seigaiha:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='30'%3E%3Cg fill='%23f1efe8' stroke='%23121316' stroke-opacity='.16'%3E%3Cg id='w'%3E%3Ccircle cx='0' cy='20' r='19.5'/%3E%3Ccircle cx='0' cy='20' r='14.5'/%3E%3Ccircle cx='0' cy='20' r='9.5'/%3E%3Ccircle cx='0' cy='20' r='4.5'/%3E%3C/g%3E%3Cuse href='%23w' x='40'/%3E%3Cuse href='%23w' x='20' y='10'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --disp: "Chakra Petch", "Bahnschrift", "Eurostile", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #0e1013;
    --bg-2:       #131619;
    --surface:    #15181c;
    --ink:        #ecebe4;
    --ink-2:      #b9bcc4;
    --muted:      #7f848d;
    --line:       rgba(236, 235, 228, 0.16);
    --line-soft:  rgba(236, 235, 228, 0.07);
    --grid:       rgba(236, 235, 228, 0.045);
    --shu:        #ff5a3c;
    --shu-soft:   rgba(255, 90, 60, 0.14);
    --steel:      #8fa3b5;
    --steel-soft: rgba(143, 163, 181, 0.12);
    --sakura:     #eea3b9;
    --sakura-2:   #d9728f;
    --sakura-edge: rgba(0, 0, 0, 0.35);
    --wood:       #8a8d94;
    --enso:       0.72;
    --glow:       0 0 24px rgba(255, 90, 60, 0.35);
    --seigaiha:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='30'%3E%3Cg fill='%230e1013' stroke='%23ecebe4' stroke-opacity='.13'%3E%3Cg id='w'%3E%3Ccircle cx='0' cy='20' r='19.5'/%3E%3Ccircle cx='0' cy='20' r='14.5'/%3E%3Ccircle cx='0' cy='20' r='9.5'/%3E%3Ccircle cx='0' cy='20' r='4.5'/%3E%3C/g%3E%3Cuse href='%23w' x='40'/%3E%3Cuse href='%23w' x='20' y='10'/%3E%3C/g%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:         #0e1013;
  --bg-2:       #131619;
  --surface:    #15181c;
  --ink:        #ecebe4;
  --ink-2:      #b9bcc4;
  --muted:      #7f848d;
  --line:       rgba(236, 235, 228, 0.16);
  --line-soft:  rgba(236, 235, 228, 0.07);
  --grid:       rgba(236, 235, 228, 0.045);
  --shu:        #ff5a3c;
  --shu-soft:   rgba(255, 90, 60, 0.14);
  --steel:      #8fa3b5;
  --steel-soft: rgba(143, 163, 181, 0.12);
  --sakura:     #eea3b9;
  --sakura-2:   #d9728f;
  --sakura-edge: rgba(0, 0, 0, 0.35);
  --wood:       #8a8d94;
  --enso:       0.72;
  --glow:       0 0 24px rgba(255, 90, 60, 0.35);
  --seigaiha:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='30'%3E%3Cg fill='%230e1013' stroke='%23ecebe4' stroke-opacity='.13'%3E%3Cg id='w'%3E%3Ccircle cx='0' cy='20' r='19.5'/%3E%3Ccircle cx='0' cy='20' r='14.5'/%3E%3Ccircle cx='0' cy='20' r='9.5'/%3E%3Ccircle cx='0' cy='20' r='4.5'/%3E%3C/g%3E%3Cuse href='%23w' x='40'/%3E%3Cuse href='%23w' x='20' y='10'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip;
  /* drafting grid */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }
::selection { background: var(--sakura); color: #121316; }

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

/* ── Header ─────────────────────────────────────── */

.site-header {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.seal {
  width: 26px; height: 26px; flex: none;
  background: var(--shu);
  color: #fff;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 15px;
  display: grid; place-items: center;
  border-radius: 3px;
  box-shadow: var(--glow), inset 0 0 0 2px var(--shu), inset 0 0 0 3px rgba(255, 255, 255, .35);
  letter-spacing: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-family: var(--disp); font-weight: 600; font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
.brand-sub  { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.brand-sub b { color: var(--shu); font-weight: 500; }

.site-nav { display: flex; gap: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.site-nav a { position: relative; padding: 4px 0; }
.site-nav a::before { content: '/ '; color: var(--shu); opacity: .7; }
.site-nav a:hover { color: var(--ink); }

/* day / night theme switch */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 10px 0 6px;
  background: none; color: var(--ink-2);
  border: 1px solid var(--line);
  font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: color .12s, border-color .12s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle .mark {
  width: 18px; height: 18px; display: grid; place-items: center;
  background: var(--ink); border-radius: 2px;
}
/* sun by day, crescent by night */
.theme-toggle .mark::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg);
  transition: background .2s, box-shadow .2s;
}
.theme-toggle[aria-pressed="true"] .mark::before { background: transparent; box-shadow: inset 3px -2px 0 0 var(--bg); }

/* ── Layout ─────────────────────────────────────── */

main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 28px 64px; position: relative; z-index: 1; }

.section-head {
  display: flex; align-items: baseline; gap: 14px;
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
  margin-bottom: 20px;
}
.section-head .idx { font-family: var(--mono); font-size: 12px; color: var(--shu); letter-spacing: .08em; }
.section-head h2 { font-family: var(--disp); font-weight: 600; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; }
.section-head .rule { flex: 1; height: 1px; background: var(--line-soft); align-self: center; }
.section-head .tag { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; }

section { margin-top: 72px; scroll-margin-top: 76px; }

/* ── Sakura: branch + drifting petals ───────────── */

/* desktop: pinned just below the navbar, reaching in from the right edge */
.sakura { display: block; pointer-events: none; opacity: .8; animation: sway 12s ease-in-out infinite alternate; }
.sakura-top {
  position: absolute; z-index: 0; top: 72px; right: 0;
  width: clamp(276px, 26.5vw, 392px); height: clamp(138px, 13.25vw, 196px);
  transform-origin: 100% 30%;
}
/* phones: tucked above the robot instead (see the 880px breakpoint) */
.sakura-fig {
  display: none; position: absolute; z-index: 2;
  left: 56%; top: -21%;
  width: calc(44% + 50vw); height: 29%;
  transform-origin: 30% 20%;
}
/* same drawing language as the mech: opaque shapes, hairline outlines */
.sk-wood   { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sk-stamen { fill: var(--shu); }
.sk-thin   { fill: none; stroke: var(--ink); stroke-width: .75; opacity: .55; vector-effect: non-scaling-stroke; }
.sk-label  { font-family: var(--mono); font-size: 13px; letter-spacing: 2.2px; fill: var(--muted); }
@keyframes sway { from { transform: rotate(0deg); } to { transform: rotate(-.6deg); } }

.petals {
  position: absolute; top: 60px; left: 0; right: 0; z-index: 0;
  height: 100svh; overflow: hidden; pointer-events: none;
}
.petals i {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  animation: fall var(--d) linear var(--delay) infinite;
  opacity: 0;
}
.petals i::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--sakura), var(--sakura-2));
  border-radius: 150% 0 150% 0;
  animation: flutter calc(var(--d) / 4) ease-in-out var(--delay) infinite alternate;
}
@keyframes fall {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
  10%  { opacity: .55; }
  80%  { opacity: .4; }
  100% { opacity: 0; transform: translate3d(var(--dx), 85svh, 0) rotate(var(--r)); }
}
@keyframes flutter {
  from { transform: rotate3d(1, .4, 0, 0deg) scale(1); }
  to   { transform: rotate3d(1, .4, 0, 70deg) scale(.85); }
}

/* ── Hero ───────────────────────────────────────── */

.hero {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px;
  align-items: center;
  min-height: calc(100dvh - 60px);
  padding: 56px 0 48px;
  position: relative;
}

.hero-copy { position: relative; }
.callsign {
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--steel);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.callsign .blink {
  width: 8px; height: 8px; background: var(--shu); border-radius: 1px;
  animation: blink 1.6s steps(1) infinite;
  box-shadow: var(--glow);
}
@keyframes blink { 50% { opacity: .25; } }

.hero h1 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(46px, 7.2vw, 84px);
  line-height: .95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero h1 .thin { font-weight: 300; display: block; color: var(--ink-2); }
.hero h1 .dot { color: var(--shu); }

.hero .tagline {
  margin-top: 26px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-2);
  max-width: 44ch;
  line-height: 1.5;
}
.hero .tagline b { color: var(--ink); font-weight: 600; }

.spec {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  width: fit-content;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
}
.spec div { padding: 9px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.spec div:last-child { border-right: 0; }
.spec span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.spec strong { font-weight: 500; color: var(--ink); text-transform: uppercase; }

.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  background: none;
  font-family: var(--disp); font-weight: 600; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background .12s, color .12s, border-color .12s;
  position: relative;
}
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--shu); border-color: var(--shu); color: #fff; box-shadow: var(--glow); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.sm { padding: 7px 14px; font-size: 12px; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }

/* hero figure */
.hero-art { position: relative; justify-self: end; width: 100%; max-width: 480px; margin-top: clamp(96px, 11vw, 150px); }
.hero-fig { position: relative; aspect-ratio: 1; width: 100%; margin-bottom: 26px; }
.hero-fig svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-fig .frame { position: absolute; inset: 0; pointer-events: none; }
.hero-fig .frame::before, .hero-fig .frame::after,
.hero-fig .frame i::before, .hero-fig .frame i::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  border-color: var(--ink); border-style: solid;
}
.hero-fig .frame::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hero-fig .frame::after  { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hero-fig .frame i::before { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hero-fig .frame i::after  { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.fig-label {
  position: absolute; left: 0; bottom: -24px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.fig-label b { color: var(--shu); font-weight: 500; }
.fig-label-r { left: auto; right: 0; text-align: right; }

/* ensō — brush circle painted behind the unit */
.enso { fill: var(--ink); opacity: var(--enso); }
.enso-brush { stroke-dasharray: 100 100; stroke-dashoffset: 0; animation: paint 1.6s cubic-bezier(.55, .1, .35, 1) .5s both; }
@keyframes paint { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* mono-eye sweeping the visor */
.eye { animation: eye 4.2s ease-in-out infinite alternate; }
@keyframes eye { 0%, 12% { transform: translateX(0); } 88%, 100% { transform: translateX(78px); } }

/* mech svg tokens */
.m-line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.m-thin { fill: none; stroke: var(--ink); stroke-width: .75; opacity: .55; vector-effect: non-scaling-stroke; }
.m-fill { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-dark { fill: var(--ink); }
.m-shu  { fill: var(--shu); }
.m-glow { fill: var(--shu); filter: drop-shadow(0 0 6px var(--shu)); }
.m-steel { fill: var(--steel-soft); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-dash { fill: none; stroke: var(--steel); stroke-width: .75; stroke-dasharray: 3 4; opacity: .8; vector-effect: non-scaling-stroke; }
.m-bloom { fill: var(--sakura); stroke: var(--sakura-edge); stroke-width: .6; }
.m-label { paint-order: stroke; stroke: var(--bg); stroke-width: 3.5px; stroke-linejoin: round; }

/* ── Panels (cards) ─────────────────────────────── */

.panels { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.panel {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  transition: transform .15s ease, border-color .15s ease;
}
a.panel:hover { transform: translateY(-2px); border-color: var(--shu); }
.panel.featured { grid-column: 1 / -1; }

.panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.panel-head .unit { color: var(--shu); font-weight: 500; }
.panel-head .status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.panel-head .status::before { content: ''; width: 6px; height: 6px; background: var(--ok); border-radius: 1px; box-shadow: 0 0 8px color-mix(in srgb, var(--ok) 60%, transparent); }
.panel-head .status.idle::before { background: var(--muted); box-shadow: none; }
.panel-head .status.warn::before { background: #e8a33a; box-shadow: 0 0 8px rgba(232, 163, 58, .6); }

.panel-body { padding: 22px 24px 20px; display: grid; grid-template-columns: 1fr; gap: 10px; flex: 1; align-content: start; }
.panel-body > div > * + * { margin-top: 10px; }
.panel.featured .panel-body { grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: center; }

.panel h3 {
  font-family: var(--disp); font-weight: 600; font-size: 22px; letter-spacing: .01em; line-height: 1.15;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.role {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  color: var(--shu); border: 1px solid currentColor; padding: 3px 8px;
}
.panel p { color: var(--ink-2); font-size: 15px; max-width: 62ch; }
.panel .meta {
  margin-top: 6px;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted);
}
.panel .meta > span { display: inline-flex; gap: 6px; align-items: baseline; margin: 0; }
.panel .meta b { color: var(--ink-2); font-weight: 500; }
.panel .go {
  margin-top: 8px;
  font-family: var(--disp); font-weight: 600; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.panel .go::after { content: '→'; color: var(--shu); transition: transform .15s; }
a.panel:hover .go::after { transform: translateX(4px); }

/* JavaMUG emblem (original, geometric) */
.emblem { width: 100%; max-width: 200px; aspect-ratio: 1; justify-self: end; }
.emblem svg { width: 100%; height: 100%; }

/* project thumbs */
.thumb { background: var(--bg-2); aspect-ratio: 16/7; display: grid; place-items: center; overflow: hidden; margin: -22px -24px 6px; border-bottom: 1px solid var(--line); }
.thumb svg { width: 60%; height: 90%; }
.panel.standby { background: color-mix(in srgb, var(--surface) 45%, transparent); }
.panel.standby h3 { color: var(--muted); }
.panel.standby p { color: var(--muted); }

/* ── Footer ─────────────────────────────────────── */

.site-footer {
  position: relative;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding: 22px 28px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
/* seigaiha — waves at the edge of the page */
.site-footer::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 30px;
  background: var(--seigaiha) repeat-x left bottom / 40px 30px;
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent);
  mask-image: linear-gradient(to top, #000 35%, transparent);
  pointer-events: none;
}
.site-footer a:hover { color: var(--ink); }
.site-footer .sys { display: inline-flex; gap: 14px; }
.site-footer .sys b { color: var(--shu); font-weight: 500; }

/* ── Motion / responsive ────────────────────────── */

.boot { animation: boot .9s cubic-bezier(.2,.7,.2,1) both; }
.boot.d1 { animation-delay: .08s } .boot.d2 { animation-delay: .16s } .boot.d3 { animation-delay: .24s } .boot.d4 { animation-delay: .32s }
@keyframes boot { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.scan { animation: scan 1.2s ease-out both; }
@keyframes scan { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 40px 0 24px; gap: 32px; }
  .hero-art { justify-self: center; max-width: 380px; margin-top: 60px; }
  .sakura-top { display: none; }
  .sakura-fig { display: block; }
  .panel.featured .panel-body { grid-template-columns: 1fr; }
  .emblem { justify-self: start; max-width: 120px; order: -1; }
}

@media (max-width: 600px) {
  .site-header { padding: 0 16px; gap: 10px; }
  .site-nav { gap: 12px; font-size: 11px; }
  .site-nav a::before { content: '/'; margin-right: 3px; }
  .site-nav a:nth-child(-n+2) { display: none; }
  .brand-sub { display: none; }
  .theme-toggle .lbl { display: none; }
  .theme-toggle { padding: 0 5px; }
  main { padding: 0 16px 48px; }
  section { margin-top: 56px; }
  .section-head .tag { display: none; }
  .spec { grid-template-columns: 1fr 1fr; width: 100%; }
  .spec div:nth-child(2) { border-right: 0; }
  .spec div:nth-child(3) { border-top: 1px solid var(--line); grid-column: 1 / -1; }
  .panels { grid-template-columns: 1fr; }
  .site-footer { padding: 20px 16px; }
  body { background-size: 24px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boot, .scan, .callsign .blink, .sakura, .eye, .enso-brush { animation: none !important; }
  .petals { display: none; }
  .panel, .btn, .panel .go::after { transition: none; }
}
