@font-face { font-family: "Areion"; src: url("/assets/fonts/areion.woff2") format("woff2"); font-display: swap; }

  @font-face { font-family: "Manrope"; src: url("/assets/fonts/font-b.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
  @font-face { font-family: "Kode Mono"; src: url("/assets/fonts/font-a.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
  /* Cyber-zen research lab. Washi paper #f0e6d7 ground, pine ink, sea green,
     one hanko red. 70% editorial / 20% terminal / 10% old-web. */
  :root {
    --paper: #f0e6d7;
    --paper-2: #e7dcc8;
    --paper-edge: #e3d7c0;
    --panel: rgba(247, 241, 230, 0.66);
    --panel-2: rgba(240, 231, 216, 0.82);
    --ink: #23201a;
    --ink-2: #433d32;
    --dim: #6d6656;
    --faint: #98917a;
    /* accents remapped to warm sumi ink — no green, no red anywhere */
    --sea: #3a352a;
    --sea-deep: #1b1912;
    --moss: #4a4636;
    --vermilion: #2b271e;
    --hanko: #23201a;
    --blossom: #DDA6A6;
    --blossom-soft: #EEDADA;
    --border: #cdc1a3;
    --line: #ded2b8;
    --sans: "Manrope", system-ui, sans-serif;
    --disp: "Manrope", system-ui, sans-serif; /* headlines: large + refined */
    --wordmark: "Areion", "Manrope", sans-serif; /* reserved for the logo only */
    --mono: "Kode Mono", ui-monospace, monospace;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    /* one uniform washi ground so the hero art dissolves into it with no seam */
    background:
      repeating-linear-gradient(135deg, rgba(120,105,70,0.030) 0 1px, transparent 1px 8px) fixed,
      var(--paper);
  }
  #grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.45;
    background-image: repeating-linear-gradient(0deg, rgba(60,50,30,0.03) 0 1px, transparent 1px 2px),
                      repeating-linear-gradient(90deg, rgba(60,50,30,0.025) 0 1px, transparent 1px 2px); }
  a { color: var(--sea-deep); text-decoration: none; }
  a:hover { color: var(--vermilion); text-decoration: underline; }
  img { display: block; }
  .mono { font-family: var(--mono); }
  .site { max-width: 940px; margin: 0 auto; padding: 0 14px 48px; }
  .flower { display: inline-block; vertical-align: -2px; }
  ::selection { background: var(--sea); color: var(--paper); }
  :focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; border-radius: 3px; }
  .box { transition: box-shadow 0.2s ease, transform 0.2s ease; }
  .box:hover { box-shadow: 0 4px 20px rgba(60,50,30,0.13); }
  .tabs a, .b31, .cta, .pbtn, .gbtn { transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
  .brush { width: 120px; height: 10px; margin: 16px auto 0; opacity: 0.75; }

  /* ---- masthead ---- */
  .masthead { padding: 4px 0 26px; text-align: center; }
  .masthead .kanji { font-family: var(--mono); font-size: 12px; letter-spacing: 0.5em; color: var(--sea-deep); text-transform: uppercase; }
  .masthead h1 { margin: 10px 0 6px; font-family: var(--mono); font-weight: 400; font-size: clamp(38px, 7vw, 64px); letter-spacing: 0.02em; color: var(--ink); text-shadow: 0 1px 0 rgba(255,255,255,0.4); }
  .masthead h1 .dot { color: var(--sea); }
  .masthead h1 .flower { color: var(--vermilion); margin-left: 10px; }
  .masthead .sub { font-family: var(--sans); font-size: 15px; color: var(--ink-2); max-width: 42ch; margin: 0 auto; }
  .seal { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: var(--vermilion); color: var(--paper); border-radius: 5px; margin-top: 14px; box-shadow: 0 2px 8px rgba(120,60,45,0.3); }

  /* ---- hero banner (title left, animated zen landscape right) ---- */
  .banner { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; margin: 20px 0 16px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: linear-gradient(120deg, #F4EEDF, #E9E1CF); box-shadow: 0 8px 30px rgba(60,50,30,0.11); min-height: 320px; }
  .banner-l { padding: 36px 34px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
  .banner-l .kanji { font-family: var(--mono); font-size: 11px; letter-spacing: 0.42em; color: var(--sea-deep); text-transform: uppercase; }
  .banner-l h1 { margin: 12px 0 12px; font-family: "Areion", var(--mono); font-weight: 400; font-size: clamp(34px, 4.4vw, 58px); letter-spacing: 0.01em; color: var(--ink); line-height: 1.05; }
  .banner-l h1 .dot { color: var(--sea); } .banner-l h1 .flower { color: var(--vermilion); margin-left: 6px; }
  .banner-l .sub { font-size: 15px; color: var(--ink-2); max-width: 34ch; margin: 0 0 22px; line-height: 1.5; }
  .banner-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .banner-meta .seal { margin-top: 0; }
  .chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); background: rgba(48,43,33,0.09); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; }
  .chip b { color: var(--sea-deep); font-weight: 600; }
  .chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sea); animation: cpulse 2.2s ease-out infinite; }
  @keyframes cpulse { 0%{box-shadow:0 0 0 0 rgba(48,43,33,0.45);} 70%{box-shadow:0 0 0 8px rgba(48,43,33,0);} 100%{box-shadow:0 0 0 0 rgba(48,43,33,0);} }
  .banner-r { position: relative; overflow: hidden; }
  .banner-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 100%); }
  .banner-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
  .scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(45,40,31,0.05) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; opacity: 0.55; }
  @media (max-width: 720px) {
    .banner { grid-template-columns: 1fr; min-height: 0; }
    .banner-r { min-height: 200px; order: -1; }
    .banner-art { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%); }
    .banner-l { padding: 22px 22px 26px; }
  }
  @media (prefers-reduced-motion: reduce) { .chip-dot, .hero-live .pulse { animation: none; } }

  /* ---- title bar ---- */
  .titlebar {
    display: flex; align-items: center; gap: 12px; margin-top: 8px;
    background: var(--panel-2); backdrop-filter: blur(3px);
    border: 1px solid var(--border); border-radius: 4px; padding: 14px 18px;
  }
  .titlebar .logo-chip { width: 32px; height: 32px; border-radius: 6px; background: #f3eee2; display: grid; place-items: center; flex: none; overflow: hidden; border: 1px solid var(--border); }
  .titlebar .logo-chip img { width: 28px; height: 28px; object-fit: contain; }
  /* chrome Y2K wordmark: metallic green bevel on the Areion face */
  .titlebar .name {
    font-family: "Areion", var(--mono); font-size: clamp(28px, 4.4vw, 42px);
    line-height: 1; letter-spacing: 0.012em;
    background: linear-gradient(180deg, #16351f 0%, #35603f 20%, #f3f8ef 47%, #cbdfc7 53%, #4f7d5c 66%, #173a23 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 1px 0 #0f2a18) drop-shadow(0 2px 2px rgba(20,40,20,0.38));
    transition: filter 0.2s ease;
  }
  .titlebar .name:hover { filter: drop-shadow(0 1px 0 #0f2a18) drop-shadow(0 0 7px rgba(48,43,33,0.5)); }
  .titlebar .name .dot { -webkit-text-fill-color: var(--sea-deep); color: var(--sea-deep); }
  .titlebar .tb-right { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: 0.14em; text-transform: uppercase; align-self: center; }

  /* ---- nav tabs ---- */
  .tabs { display: flex; flex-wrap: wrap; gap: 3px; margin: 5px 0 16px; }
  .tabs a {
    font-family: var(--mono); font-size: 12.5px; color: var(--ink);
    padding: 8px 14px; background: var(--panel); backdrop-filter: blur(3px);
    border: 1px solid var(--border); border-radius: 4px 4px 0 0;
    flex: 1 1 auto; text-align: center; min-width: 70px;
  }
  .tabs a:hover { color: var(--paper); background: var(--sea); border-color: var(--sea); text-decoration: none; }
  .tabs a.on { color: var(--paper); background: var(--sea-deep); border-color: var(--sea-deep); }

  /* ---- layout ---- */
  .cols { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 22px; align-items: start; }
  .main { min-width: 0; display: flex; flex-direction: column; gap: 18px; } .side { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

  /* ---- panels ---- */
  .box {
    position: relative; background: var(--panel); backdrop-filter: blur(2px);
    border: 1px solid var(--line); border-radius: 9px; padding: 26px 20px 20px; margin: 0;
    box-shadow: 0 1px 2px rgba(60,50,30,0.03);
  }
  /* the corner tab names each box (melankorin signature), kept quiet and consistent */
  .box > .tab {
    position: absolute; top: 0; left: 0;
    font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--sea-deep); background: rgba(48,43,33,0.10); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 4px 12px 5px; border-radius: 7px 0 8px 0;
  }
  .box.vermilion-tab > .tab { color: var(--vermilion); background: rgba(120,60,45,0.10); }
  .box h2 { margin: 0 0 10px; font-family: var(--disp); font-size: 24px; letter-spacing: -0.015em; color: var(--ink); font-weight: 600; }
  .box h3 { margin: 0 0 6px; font-size: 15.5px; color: var(--ink); font-weight: 600; }
  .box p { margin: 0 0 11px; color: var(--ink-2); font-size: 15px; line-height: 1.66; }
  .box p:last-child { margin-bottom: 0; }

  /* status */
  .status .who { color: var(--sea-deep); font-weight: 600; }
  .status .when { color: var(--faint); font-size: 11px; font-family: var(--mono); }
  .status blockquote { margin: 6px 0 0; padding: 8px 11px; background: rgba(48,43,33,0.07); border-left: 2px solid var(--sea); color: var(--ink); font-size: 13px; font-style: italic; }

  /* now fuzzing */
  .nf-row { display: flex; gap: 10px; align-items: center; }
  .nf-ic { width: 42px; height: 42px; flex: none; border: 1px solid var(--border); border-radius: 5px; background: rgba(48,43,33,0.08); display: grid; place-items: center; font-family: var(--mono); font-size: 9.5px; color: var(--sea-deep); }
  .nf-row .nm { font-weight: 600; color: var(--ink); font-size: 13.5px; }
  .nf-row .sub { color: var(--faint); font-size: 11px; font-family: var(--mono); }
  .cov { margin-top: 10px; }
  .cov .lab { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin-bottom: 4px; }
  .cov .lab b { color: var(--sea-deep); }
  .barwrap { height: 11px; background: rgba(45,40,31,0.10); border: 1px solid var(--border); border-radius: 2px; padding: 2px; }
  .barwrap i { display: block; height: 100%; border-radius: 1px; background: repeating-linear-gradient(90deg, var(--sea) 0 6px, var(--moss) 6px 8px); transition: width 0.8s ease; }

  /* 88x31 buttons */
  .b31grid { display: flex; flex-wrap: wrap; gap: 5px; }
  .b31 { width: 88px; height: 31px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--mono); font-size: 8.5px; line-height: 1.05; text-transform: uppercase; overflow: hidden; padding: 2px; text-decoration: none; border-radius: 2px; }
  .b31:hover { text-decoration: none; outline: 1px solid var(--vermilion); }
  .b31.a { background: var(--sea-deep); color: var(--paper); }
  .b31.b { background: rgba(45,40,31,0.06); color: var(--ink); }
  .b31.c { background: var(--moss); color: var(--paper); }
  .b31.d { background: var(--blossom-soft); color: var(--vermilion); }
  .hotlink { font-size: 11px; color: var(--dim); margin-bottom: 8px; }
  .hotlink i { color: var(--sea-deep); font-style: italic; }

  /* hit counter */
  .counter { display: flex; gap: 3px; justify-content: center; padding: 4px 0 2px; }
  .counter span { font-family: var(--mono); font-size: 19px; color: var(--sea-deep); background: rgba(45,40,31,0.07); border: 1px solid var(--border); border-radius: 2px; padding: 3px 6px; }
  .counter-cap { text-align: center; font-family: var(--mono); font-size: 9.5px; color: var(--faint); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 6px; }

  /* webring */
  .ring { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-family: var(--mono); font-size: 11px; }
  .ring a { padding: 3px 8px; border: 1px solid var(--border); border-radius: 3px; background: rgba(45,40,31,0.05); }

  /* feature */
  .home-feature .lead { display: grid; grid-template-columns: 1fr 188px; gap: 16px; }
  .home-feature h2 { margin: 0 0 8px; font-family: var(--disp); font-size: 29px; font-weight: 600; letter-spacing: -0.018em; color: var(--ink); }
  /* standalone top bar on non-home pages */
  .pagebar { margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .home-feature p { color: var(--ink-2); font-size: 13.5px; margin: 0 0 11px; }
  .cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--paper); background: var(--sea-deep); padding: 11px 20px; border-radius: 7px; border: 1px solid var(--sea-deep); }
  .cta:hover { background: var(--vermilion); border-color: var(--vermilion); text-decoration: none; color: var(--paper); }
  .spec-card { border: 1px solid var(--border); border-radius: 5px; background: rgba(45,40,31,0.04); padding: 11px; }
  .spec-card .id { font-family: var(--mono); font-size: 10px; color: var(--vermilion); letter-spacing: 0.06em; }
  .spec-card .bug { font-weight: 600; font-size: 13px; margin: 4px 0 2px; }
  .spec-card .loc { font-family: var(--mono); font-size: 10.5px; color: var(--faint); word-break: break-all; }
  .spec-card .bloom { width: 100%; height: 72px; margin-top: 9px; border-radius: 4px; border: 1px solid var(--border); background:
      radial-gradient(circle at 58% 42%, var(--blossom) 0 5px, transparent 6px),
      radial-gradient(circle at 46% 58%, var(--blossom-soft) 0 4px, transparent 5px),
      radial-gradient(circle at 66% 62%, var(--blossom-soft) 0 4px, transparent 5px),
      linear-gradient(160deg, rgba(48,43,33,0.16), rgba(45,40,31,0.05)); }

  /* philosophy */
  .zen .koans { display: grid; gap: 12px; }
  .koan { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0; }
  .koan .k-seal { flex: none; width: 22px; height: 22px; background: var(--vermilion); color: var(--paper); border-radius: 4px; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; margin-top: 2px; }
  .koan .k-text { font-size: 15px; color: var(--ink); font-style: italic; line-height: 1.5; }
  .koan .k-text small { display: block; font-style: normal; font-size: 12px; color: var(--dim); margin-top: 3px; }

  /* stat cards */
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
  .scard { background: var(--panel); backdrop-filter: blur(3px); border: 1px solid var(--border); border-radius: 7px; padding: 13px 15px; box-shadow: 0 1px 2px rgba(60,50,30,0.04), 0 6px 18px rgba(60,50,30,0.05); }
  .scard .k { font-family: var(--mono); font-size: 9px; color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; }
  .scard .v { font-family: var(--mono); font-size: 21px; color: var(--sea-deep); margin-top: 5px; }
  .scard .v small { font-size: 12px; color: var(--dim); }

  /* borderless metric strip (replaces four bordered stat cards) */
  .metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
  .metric { padding: 2px 20px; border-left: 1px solid var(--line); }
  .metric:first-child { border-left: 0; padding-left: 2px; }
  .metric .mk { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
  .metric .mv { font-family: var(--mono); font-size: clamp(22px, 3vw, 28px); color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
  .metric .mv small { font-size: 13px; color: var(--sea-deep); }

  /* how-it-works pipeline (a real sequence, so numbers earn their place) */
  .pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
  .pstep { padding: 0 16px 0 0; }
  .pstep + .pstep { padding-left: 18px; border-left: 1px solid var(--line); }
  .pstep .pn { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--sea-deep); }
  .pstep h4 { font-family: var(--disp); font-weight: 600; font-size: 18px; margin: 7px 0 5px; color: var(--ink); letter-spacing: -0.01em; }
  .pstep p { font-size: 13px; color: var(--dim); margin: 0; line-height: 1.5; }
  @media (max-width: 760px) { .metrics { grid-template-columns: 1fr 1fr; gap: 14px 0; } .pipeline { grid-template-columns: 1fr 1fr; gap: 16px 0; } .pstep, .pstep + .pstep { border-left: 0; padding-left: 0; } }

  .lab-teaser h2 { max-width: 22ch; }

  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  @media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
  .anom-item { display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--line); border-radius: 6px; background: rgba(45,40,31,0.03); padding: 11px 12px; margin-bottom: 9px; }
  .anom-item:last-child { margin-bottom: 0; }
  .anom-item .ai-body { flex: 1; min-width: 0; }
  .anom-item .hanko { width: 28px; height: 28px; margin-top: 2px; }
  .anom-item .hanko svg { width: 12px; height: 12px; }
  .anom-item .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .anom-item .title { font-weight: 600; font-size: 13.5px; color: var(--ink); }
  .anom-item .date { font-family: var(--mono); font-size: 10px; color: var(--faint); flex: none; }
  .anom-item .loc { font-family: var(--mono); font-size: 10.5px; color: var(--sea-deep); margin: 2px 0 5px; word-break: break-all; }
  .verified { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sea-deep); border: 1px solid var(--border); border-radius: 999px; padding: 2px 7px; }
  .arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .arch-cell { border: 1px solid var(--border); border-radius: 4px; background: rgba(45,40,31,0.04); padding: 9px; }
  .arch-cell .id { font-family: var(--mono); font-size: 9.5px; color: var(--vermilion); }
  .arch-cell .nm { font-size: 12px; font-weight: 600; margin: 3px 0 1px; }
  .arch-cell .fx { font-family: var(--mono); font-size: 9.5px; color: var(--faint); }
  .arch-cell .fx b { color: var(--sea-deep); }

  /* swarm feed */
  .feed { font-family: var(--mono); font-size: 11px; line-height: 1.85; color: var(--dim); background: rgba(45,40,31,0.05); border: 1px solid var(--border); border-radius: 4px; padding: 9px 11px; height: 130px; overflow: hidden; }
  .feed .hit { color: var(--sea-deep); } .feed .crash { color: var(--vermilion); }

  /* changelog + poll */
  .changelog .ver { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--sea-deep); border-bottom: 1px dashed var(--border); padding-bottom: 4px; margin: 8px 0 6px; }
  .changelog .ver .d { color: var(--faint); }
  .changelog ul { margin: 0; padding-left: 16px; color: var(--dim); font-size: 12.5px; }
  .changelog li { margin-bottom: 3px; }
  .poll .q { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
  .poll label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--dim); padding: 3px 0; cursor: pointer; }
  .poll label:hover { color: var(--ink); }
  .poll .res { display: none; } .poll.voted .opts { display: none; } .poll.voted .res { display: block; }
  .poll .rrow { font-family: var(--mono); font-size: 11px; margin-bottom: 6px; color: var(--ink-2); }
  .poll .rbar { height: 9px; background: rgba(45,40,31,0.08); border: 1px solid var(--border); border-radius: 2px; margin-top: 3px; }
  .poll .rbar i { display: block; height: 100%; background: var(--sea); }
  .poll .pbtn, .gb .gbtn { font-family: var(--mono); font-size: 11px; color: var(--paper); background: var(--sea-deep); border: 1px solid var(--sea-deep); border-radius: 3px; padding: 6px 14px; cursor: pointer; }
  .poll .pbtn:hover, .gb .gbtn:hover { background: var(--vermilion); border-color: var(--vermilion); }
  .poll .pbtn { margin-top: 8px; }

  /* guestbook */
  .gb form { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
  .gb input, .gb textarea { font-family: var(--sans); font-size: 13px; background: rgba(255,255,255,0.5); border: 1px solid var(--border); border-radius: 3px; color: var(--ink); padding: 7px 9px; resize: vertical; }
  .gb input:focus, .gb textarea:focus { outline: 1px solid var(--sea); border-color: var(--sea); }
  .gb .gbtn { align-self: flex-start; }
  .gb .status-line { font-family: var(--mono); font-size: 10px; color: var(--faint); margin-bottom: 8px; }
  .gb-entry { border: 1px solid var(--border); border-left: 2px solid var(--sea); border-radius: 3px; background: rgba(45,40,31,0.04); padding: 8px 10px; margin-bottom: 7px; }
  .gb-entry .h { font-family: var(--mono); font-size: 10.5px; color: var(--sea-deep); }
  .gb-entry .h .t { color: var(--faint); }
  .gb-entry .m { font-size: 13px; color: var(--ink); margin-top: 3px; white-space: pre-wrap; word-break: break-word; }

  /* footer */
  .botbar { margin-top: 18px; background: var(--panel-2); backdrop-filter: blur(3px); border: 1px solid var(--border); border-radius: 4px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.05em; text-transform: uppercase; }
  .botbar a { color: var(--dim); } .botbar a:hover { color: var(--vermilion); }
  .botbar .garden { display: inline-flex; flex-wrap: wrap; gap: 14px; }
  .botbar .sp { margin-left: auto; }

  @media (max-width: 760px) {
    .cols, .home-feature .lead, .two, .arch-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .masthead { padding: 40px 0 22px; }
  }
  @media (prefers-reduced-motion: reduce) { .barwrap i { transition: none; } }

  /* ---- multi-page helpers ---- */
  .page { padding-top: 14px; }
  .page-intro { margin: 2px 0 2px; }
  .page-intro .kanji { font-family: var(--mono); font-size: 11px; letter-spacing: 0.34em; color: var(--sea-deep); text-transform: uppercase; }
  .page-intro h1 { font-family: var(--disp); font-size: 42px; font-weight: 600; letter-spacing: -0.02em; margin: 12px 0 12px; color: var(--ink); }
  .page-intro p { color: var(--ink-2); font-size: 17px; max-width: 66ch; margin: 0; line-height: 1.65; }
  .home-cols { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }
  .cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
  .cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
  .cta.ghost:hover { color: var(--vermilion); border-color: var(--vermilion); background: transparent; }
  @media (max-width: 720px) { .home-cols { grid-template-columns: 1fr; } }

  /* ---- split (tokenomics / campaign split) ---- */
  .split { display: flex; flex-direction: column; gap: 10px; }
  .split-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
  .split-pct { font-family: var(--mono); font-weight: 650; color: var(--sea-deep); }
  .split-bar { height: 8px; background: rgba(45,40,31,0.10); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
  .split-bar i { display: block; height: 100%; background: var(--sea); }
  .split-to { color: var(--dim); }

  html { overflow-x: clip; }

  /* ================= integrated hero (home) ================= */
  /* nav + wordmark + headline sit inside the illustration; the ink art bleeds
     out and fades into the paper below with no rectangular boundary. */
  .hero { position: relative; margin: 0 0 4px; isolation: isolate; }
  .hero-art { position: absolute; left: 50%; transform: translateX(-50%); top: -26px;
    width: min(1340px, 130vw); height: 640px; z-index: -1; pointer-events: none; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 0 58%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0 58%, transparent 100%); }
  .hero-art img { position: absolute; top: 0; height: 100%; width: auto; mix-blend-mode: multiply; }
  .hero-art .tree { left: -3%; opacity: 0.8;
    -webkit-mask-image: radial-gradient(120% 100% at 4% 16%, #000 38%, transparent 78%);
    mask-image: radial-gradient(120% 100% at 4% 16%, #000 38%, transparent 78%); }
  .hero-art .koi { right: 0; top: 10%; height: 104%; opacity: 0.72;
    -webkit-mask-image: radial-gradient(120% 100% at 90% 58%, #000 40%, transparent 80%);
    mask-image: radial-gradient(120% 100% at 90% 58%, #000 40%, transparent 80%); }

  /* top bar — shared shape for hero (home) and standalone (other pages) */
  .topnav { display: flex; align-items: center; gap: 18px; padding: 20px 2px 0; }
  .brandmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
  .brandmark img { width: 30px; height: 30px; display: block; border-radius: 7px; }
  .brandmark .wm { font-family: var(--sans); font-weight: 800; font-size: 25px; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
  .brandmark:hover { text-decoration: none; }
  .brandmark:hover .wm { color: var(--sea-deep); }
  .navlinks { display: flex; align-items: center; gap: 21px; margin-left: 22px; }
  .navlinks a { font-family: var(--sans); font-size: 14.5px; color: var(--ink-2); }
  .navlinks a:hover { color: var(--sea-deep); text-decoration: none; }
  .navlinks a.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--vermilion); }
  .nav-right { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; }
  .nav-ghost { font-family: var(--mono); font-size: 12px; color: var(--dim); }
  .nav-ghost:hover { color: var(--sea-deep); text-decoration: none; }
  .nav-cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; color: var(--paper); background: var(--sea-deep); border: 1px solid var(--sea-deep); border-radius: 6px; padding: 9px 15px; }
  .nav-cta:hover { background: var(--vermilion); border-color: var(--vermilion); text-decoration: none; color: var(--paper); }

  /* headline block in the negative space */
  .hero-head { padding: 60px 2px 66px; max-width: 640px; }
  .hero-head .kanji { font-family: var(--mono); font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--sea-deep); }
  .hero-head h1 { font-family: var(--disp); font-weight: 500; font-size: clamp(40px, 6vw, 66px); line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); margin: 15px 0 18px; text-wrap: balance; }
  .hero-head .sub { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; margin: 0 0 26px; }
  .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
  .hero-live { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
  .hero-live b { color: var(--sea-deep); font-weight: 400; font-variant-numeric: tabular-nums; }
  .hero-live .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--sea); box-shadow: 0 0 0 0 rgba(48,43,33,0.5); animation: cpulse 2.4s ease-out infinite; }

  @media (max-width: 780px) {
    .hero-art { height: 500px; width: 158vw; top: -10px; }
    .topnav { flex-wrap: wrap; gap: 10px 16px; }
    .navlinks { margin-left: 0; order: 3; width: 100%; gap: 16px; }
    .nav-right { margin-left: auto; order: 2; }
    .hero-head { padding: 34px 0 40px; }
    .hero-head .sub { font-size: 16.5px; }
  }

  /* ================= Japanese-motif helpers ================= */
  /* ink-brush divider — replaces flat <hr> rules */
  .rule-ink { height: 11px; border: 0; margin: 22px 0; background: var(--ink); opacity: 0.42;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 11' preserveAspectRatio='none'%3E%3Cpath d='M1 6 C28 3 55 8 92 5 S150 3 188 6 S248 4 299 5 L299 7 C250 9 208 6 172 7 S108 10 68 8 S24 9 1 8 Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center/100% 100%;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 11' preserveAspectRatio='none'%3E%3Cpath d='M1 6 C28 3 55 8 92 5 S150 3 188 6 S248 4 299 5 L299 7 C250 9 208 6 172 7 S108 10 68 8 S24 9 1 8 Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center/100% 100%; }
  .rule-ink.short { max-width: 132px; margin-left: 0; }
  /* hanko verification stamp */
  .hanko { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none;
    color: #f5e9df; background: var(--hanko); border-radius: 6px; transform: rotate(-4deg);
    font-family: var(--mono); font-size: 7.5px; line-height: 1.05; text-align: center; letter-spacing: 0.04em; text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(150,40,30,0.32), inset 0 0 0 1px rgba(255,240,232,0.18); }
  /* borderless section + its stamped label (for atmospheric / copy, not cards) */
  .bare { position: relative; padding: 2px; }
  .slabel { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sea-deep); display: inline-flex; align-items: center; gap: 7px; margin: 0 0 11px; }
  .slabel::before { content: ""; width: 15px; height: 1px; background: currentColor; opacity: 0.55; }
  .slabel.vm { color: var(--vermilion); }
  /* faint circuit traces under a section */
  .trace { position: relative; }
  .trace::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
    background:
      linear-gradient(90deg, transparent 0 8%, rgba(48,43,33,0.06) 8% 8.4%, transparent 8.4%),
      linear-gradient(0deg, transparent 0 70%, rgba(48,43,33,0.05) 70% 70.3%, transparent 70.3%); }
