:root {
  --bg: #0b1535;
  --surface: #111e4b;
  --ink: #eef6ff;
  --muted: #9eafd4;
  --line: #2c4481;
  --accent: #65e7ff;
  --accent-2: #172d63;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0,0,0,.25);
  --display: ui-monospace, SFMono-Regular, Menlo, monospace;
  --body: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--body); line-height: 1.65; -webkit-font-smoothing: antialiased; background-image: linear-gradient(rgba(101,231,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(101,231,255,.05) 1px, transparent 1px); background-size: 32px 32px; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(11,21,53,.88); backdrop-filter: blur(16px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 850 1rem var(--display); letter-spacing: -.06em; }
.brand small { padding: 4px 9px; border: 1px solid currentColor; border-radius: 999px; color: var(--accent); font-size: .6rem; letter-spacing: .1em; }
.variant-label { color: var(--muted); font: 800 .66rem var(--display); letter-spacing: .1em; }
.intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 9vw, 140px); align-items: end; padding: 78px 0 58px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0; color: var(--muted); font: 800 .68rem var(--display); letter-spacing: .14em; }
.intro h1 { margin: 18px 0 0; color: var(--ink); font: 850 clamp(4rem, 8vw, 8rem)/.86 var(--display); letter-spacing: -.11em; }
.intro-note { max-width: 410px; margin: 0 0 7px; color: var(--muted); font-size: 1.02rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 32px; border: 1px solid var(--line); background: var(--line); }
.stat { min-height: 108px; padding: 17px 19px; background: rgba(17,30,75,.92); }
.stat span, .stat small { display: block; color: var(--muted); font-size: .72rem; }
.stat strong { display: block; margin: 3px 0; color: var(--ink); font: 800 2rem/1.1 var(--display); letter-spacing: -.06em; }
.stat-signal strong { color: var(--accent); }
.works-section { padding: 72px 0 104px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
h2 { margin: 8px 0 0; color: var(--ink); font: 750 clamp(2rem, 4vw, 3.6rem)/1 var(--display); letter-spacing: -.1em; }
.count { margin: 0; color: var(--muted); font-size: .82rem; }
.controls { max-width: 570px; margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .76rem; font-weight: 800; }
.field input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: rgba(17,30,75,.92); }
.field input::placeholder { color: #7085b1; }
.field input:focus { border-color: var(--accent); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font-size: .8rem; }
.tab[aria-pressed="true"] { color: #08152b; border-color: var(--accent); background: var(--accent); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(17,30,75,.9); box-shadow: var(--shadow); }
.card-media { position: relative; min-height: 236px; overflow: hidden; background: var(--accent-2); }
.card-media img { display: block; width: 100%; height: 236px; object-fit: cover; }
.card-placeholder { display: grid; place-items: center; min-height: 236px; color: var(--muted); font: 800 .78rem var(--display); letter-spacing: .12em; }
.card-body { padding: 22px; }
.card-status { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.badge { display: inline-flex; align-items: center; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); background: var(--accent-2); font-size: .72rem; font-weight: 800; }
.card h3 { margin: 0; color: var(--ink); font: 750 1.7rem/1.1 var(--display); letter-spacing: -.08em; }
.card-description { margin: 9px 0 17px; color: var(--muted); font-size: .92rem; }
.meta { margin: 0 0 17px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta dt { color: var(--muted); font: 800 .63rem var(--display); letter-spacing: .09em; }
.meta dd { margin: 2px 0 0; font-size: .86rem; }
.card-link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 13px; border-radius: 999px; color: #08152b; background: var(--accent); font: 800 .82rem var(--body); text-decoration: none; }
.empty { padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty strong { display: block; color: var(--ink); font-size: 2rem; }
.button { min-height: 40px; padding: 8px 13px; border: 1px solid var(--ink); border-radius: 999px; color: #08152b; background: var(--accent); font-weight: 800; }
.button.secondary { color: var(--ink); background: transparent; }
.button.small { min-height: 34px; font-size: .8rem; }
.site-footer { padding: 22px 0 44px; color: var(--muted); border-top: 1px solid var(--line); font: 800 .67rem var(--display); letter-spacing: .1em; }

/* 01 Core Grid */
.theme-01 { --bg: #0b1535; --surface: #111e4b; --ink: #eef6ff; --muted: #9eafd4; --line: #2c4481; --accent: #65e7ff; --accent-2: #172d63; --radius: 14px; }

/* 02 Terminal Index */
.theme-02 { --bg: #070b16; --surface: #0d1426; --ink: #e8f8ea; --muted: #88a09a; --line: #27423e; --accent: #8bff72; --accent-2: #122d29; --radius: 3px; --display: ui-monospace, SFMono-Regular, Menlo, monospace; --shadow: 0 16px 42px rgba(0,0,0,.36); }
.theme-02 .intro { grid-template-columns: .55fr 1.45fr; border-bottom: 1px dashed var(--line); }
.theme-02 .intro h1 { font-size: clamp(3.6rem, 7vw, 7rem); text-transform: uppercase; }
.theme-02 .intro-note::before { content: "> "; color: var(--accent); }
.theme-02 .stats { grid-template-columns: repeat(3, 1fr); border-style: dashed; }
.theme-02 .stat { background: var(--surface); }
.theme-02 .card { border-style: dashed; }
.theme-02 .card-link { border-radius: 3px; color: #061006; }

/* 03 Aurora */
.theme-03 { --bg: #0a1230; --surface: rgba(22,31,78,.84); --ink: #f5f2ff; --muted: #b6b5d3; --line: rgba(155,123,255,.35); --accent: #67efff; --accent-2: rgba(155,123,255,.16); --radius: 24px; --display: "Hiragino Sans", "Yu Gothic", sans-serif; --shadow: 0 25px 70px rgba(0,0,0,.3); }
.theme-03 { background-image: radial-gradient(ellipse at 80% 8%, rgba(103,239,255,.28), transparent 30%), radial-gradient(ellipse at 20% 45%, rgba(155,123,255,.25), transparent 34%); }
.theme-03 .site-header { border-bottom: 0; background: transparent; }
.theme-03 .intro { border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(120deg, rgba(22,31,78,.8), rgba(54,37,119,.65)); }
.theme-03 .intro h1, .theme-03 h2 { font-family: var(--body); font-weight: 900; letter-spacing: -.11em; }
.theme-03 .card { backdrop-filter: blur(16px); }
.theme-03 .card-link { color: #0a1230; }

/* 04 Blueprint */
.theme-04 { --bg: #0e2b61; --surface: rgba(15,54,113,.9); --ink: #e8f7ff; --muted: #9fc7df; --line: rgba(232,247,255,.38); --accent: #54b7e6; --accent-2: rgba(84,183,230,.16); --radius: 0; --display: "Hiragino Sans", "Yu Gothic", sans-serif; --shadow: none; }
.theme-04 { background-image: linear-gradient(rgba(232,247,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(232,247,255,.1) 1px, transparent 1px), linear-gradient(rgba(232,247,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(232,247,255,.05) 1px, transparent 1px); background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px; }
.theme-04 .intro { grid-template-columns: .7fr 1.3fr; border: 1px solid var(--line); padding: 52px; }
.theme-04 .intro h1, .theme-04 h2 { font-family: var(--body); font-weight: 850; letter-spacing: -.1em; }
.theme-04 .card { border: 1px solid var(--line); }
.theme-04 .card-media { border-right: 1px solid var(--line); }

/* 05 Neon Panels */
.theme-05 { --bg: #101a3f; --surface: #17234d; --ink: #f2f6ff; --muted: #aeb8d7; --line: #394e8d; --accent: #d1ff52; --accent-2: #263768; --radius: 10px; --display: "Hiragino Sans", "Yu Gothic", sans-serif; --shadow: 0 0 0 1px rgba(209,255,82,.18), 0 20px 52px rgba(0,0,0,.3); }
.theme-05 .intro { grid-template-columns: 1fr 1fr; }
.theme-05 .intro h1 { font-family: var(--body); font-weight: 900; letter-spacing: -.1em; }
.theme-05 .stats { gap: 12px; border: 0; background: transparent; }
.theme-05 .stat { border: 1px solid var(--line); border-radius: 10px; }
.theme-05 .stat-signal strong { color: var(--accent); }
.theme-05 .card { border-color: #5369b0; }
.theme-05 .card-link { color: #101a3f; }

/* 06 Glass Deck */
.theme-06 { --bg: #080e25; --surface: rgba(27,46,91,.66); --ink: #f3f8ff; --muted: #a8bddb; --line: rgba(165,233,255,.32); --accent: #a5e9ff; --accent-2: rgba(165,233,255,.12); --radius: 30px; --display: "Hiragino Sans", "Yu Gothic", sans-serif; --shadow: 0 28px 70px rgba(0,0,0,.4); }
.theme-06 { background-image: radial-gradient(circle at 85% 8%, rgba(165,233,255,.2), transparent 28%), radial-gradient(circle at 5% 35%, rgba(69,105,221,.25), transparent 32%); }
.theme-06 .site-header { border-bottom: 0; background: transparent; }
.theme-06 .intro { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(27,46,91,.42); backdrop-filter: blur(18px); }
.theme-06 .intro h1, .theme-06 h2 { font-family: var(--body); font-weight: 850; letter-spacing: -.1em; }
.theme-06 .stats { overflow: hidden; border-radius: 22px; }
.theme-06 .card { border-color: var(--line); backdrop-filter: blur(18px); }
.theme-06 .card-link { color: #08142b; }

/* 07 Signal Board */
.theme-07 { --bg: #091332; --surface: #101d43; --ink: #f0f5ff; --muted: #9aabd0; --line: #2e4378; --accent: #ffba55; --accent-2: #202f59; --radius: 6px; --display: ui-monospace, SFMono-Regular, Menlo, monospace; --shadow: 0 18px 44px rgba(0,0,0,.28); }
.theme-07 .intro { grid-template-columns: 1.4fr .6fr; border-bottom: 4px solid var(--accent); }
.theme-07 .intro h1 { font-size: clamp(3.8rem, 7vw, 7rem); }
.theme-07 .stats { grid-template-columns: repeat(3, 1fr); }
.theme-07 .stat-signal { background: rgba(255,186,85,.14); }
.theme-07 .stat-signal strong { color: var(--accent); }
.theme-07 .badge { color: var(--accent); }
.theme-07 .card-link { color: #17100a; background: var(--accent); }

/* 08 Orbital */
.theme-08 { --bg: #0c1230; --surface: #131d49; --ink: #f4f3ff; --muted: #a8acd4; --line: #3b478c; --accent: #75f2ff; --accent-2: #282e73; --radius: 34px; --display: "Hiragino Sans", "Yu Gothic", sans-serif; --shadow: 0 24px 60px rgba(0,0,0,.34); }
.theme-08::before { content: ""; position: fixed; z-index: -1; width: 48vw; height: 48vw; left: 50%; top: 11vh; transform: translateX(-50%); border: 1px solid rgba(117,242,255,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(117,242,255,.04), 0 0 0 140px rgba(117,242,255,.025); pointer-events: none; }
.theme-08 .site-header { border-bottom: 0; background: transparent; }
.theme-08 .intro { display: block; max-width: 800px; text-align: center; border: 0; }
.theme-08 .intro .eyebrow { color: var(--accent); }
.theme-08 .intro h1, .theme-08 h2 { font-family: var(--body); font-weight: 900; letter-spacing: -.12em; }
.theme-08 .intro-note { max-width: 500px; margin: 25px auto 0; }
.theme-08 .stats { max-width: 680px; margin-inline: auto; border-radius: 24px; overflow: hidden; }
.theme-08 .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: initial; gap: 18px; }
.theme-08 .card-media { aspect-ratio: 1.92 / 1; min-height: 0; }
.theme-08 .card-media img { height: 100%; }
.theme-08 .card { border-radius: 3px; border-style: dashed; border-color: #66e8ff; box-shadow: 0 0 0 1px rgba(102,232,255,.55), 0 0 24px rgba(102,232,255,.32), 0 22px 48px rgba(0,0,0,.38); backdrop-filter: none; transition: transform .2s ease, box-shadow .2s ease; }
.theme-08 .card:hover { transform: translateY(-7px); box-shadow: 0 0 0 2px rgba(102,232,255,.85), 0 0 38px rgba(102,232,255,.52), 0 32px 62px rgba(0,0,0,.48); }
.theme-08 .card .badge { color: #8bff72; border-color: rgba(139,255,114,.3); background: rgba(139,255,114,.1); }
.theme-08 .card-link { border-radius: 3px; color: #061006; background: #66e8ff; }

/* 09 Dense Index */
.theme-09 { --bg: #111a38; --surface: #19264f; --ink: #dfe9ff; --muted: #94a8d3; --line: #344b83; --accent: #6de6ff; --accent-2: #24396d; --radius: 4px; --display: ui-monospace, SFMono-Regular, Menlo, monospace; --shadow: 0 12px 30px rgba(0,0,0,.2); }
.theme-09 .intro { grid-template-columns: .4fr 1.6fr; padding: 54px 0 36px; }
.theme-09 .intro h1 { font-size: clamp(3.1rem, 6vw, 6rem); }
.theme-09 .stats { max-width: 720px; margin-top: 24px; }
.theme-09 .works-section { padding-top: 48px; }
.theme-09 .cards { grid-template-columns: 1fr; gap: 10px; }
.theme-09 .card { display: grid; grid-template-columns: 260px 1fr; }
.theme-09 .card-media, .theme-09 .card-media img { height: 100%; min-height: 190px; }
.theme-09 .card-body { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-items: center; }
.theme-09 .card-status, .theme-09 .card-description, .theme-09 .meta { grid-column: 1; }
.theme-09 .card h3 { grid-column: 1; }
.theme-09 .card-link { grid-column: 2; grid-row: 1 / span 4; }

/* 10 Indigo Editorial */
.theme-10 { --bg: #101b42; --surface: #f7f1df; --ink: #172541; --muted: #71809b; --line: #45608f; --accent: #e2a15b; --accent-2: #e8dcc1; --radius: 2px; --display: "Iowan Old Style", "Hiragino Mincho ProN", Georgia, serif; --shadow: 0 22px 54px rgba(0,0,0,.25); }
.theme-10 .site-header { background: rgba(16,27,66,.92); }
.theme-10 .intro { grid-template-columns: 1fr .8fr; }
.theme-10 .intro h1 { color: #f7f1df; font-family: var(--display); font-weight: 500; letter-spacing: -.1em; }
.theme-10 .intro-note { color: #c3cee0; }
.theme-10 .stat { background: var(--surface); }
.theme-10 .stat span, .theme-10 .stat small { color: var(--muted); }
.theme-10 .stat strong { color: var(--ink); font-family: var(--display); }
.theme-10 .works-section { background: var(--surface); color: var(--ink); padding: 62px 28px 90px; }
.theme-10 h2, .theme-10 .eyebrow, .theme-10 .count, .theme-10 .field label { color: var(--ink); }
.theme-10 .field input { border-color: #b9b09c; color: var(--ink); background: #fffaf0; }
.theme-10 .tab { border-color: #b9b09c; color: var(--ink); }
.theme-10 .tab[aria-pressed="true"] { color: var(--surface); border-color: var(--accent); background: var(--accent); }
.theme-10 .card { display: grid; grid-template-columns: minmax(220px, .42fr) 1fr; border-color: #b9b09c; background: #fffaf0; box-shadow: none; }
.theme-10 .card-media, .theme-10 .card-media img { height: 100%; min-height: 270px; }
.theme-10 .card-body { display: flex; flex-direction: column; justify-content: center; }
.theme-10 .card h3 { color: var(--ink); font-family: var(--display); font-weight: 500; }
.theme-10 .card-description { color: var(--muted); }
.theme-10 .meta { border-color: #d6ccb6; }
.theme-10 .card-link { color: var(--surface); background: var(--ink); }

@media (max-width: 800px) {
  .shell { width: min(100% - 30px, 680px); }
  .intro { display: block; padding: 55px 0 40px; }
  .intro-note { margin-top: 25px; }
  .cards { grid-template-columns: 1fr; }
  .theme-04 .intro { padding: 38px; }
  .theme-08 .cards { grid-template-columns: 1fr; }
  .theme-09 .card { grid-template-columns: 190px 1fr; }
  .theme-09 .card-body { display: block; }
  .theme-09 .card-link { margin-top: 10px; }
  .theme-10 .card { grid-template-columns: 1fr; }
  .theme-10 .card-media, .theme-10 .card-media img { min-height: 236px; height: 236px; }
}
@media (max-width: 480px) {
  .header-inner { min-height: 66px; }
  .variant-label { font-size: .58rem; }
  .intro h1 { font-size: clamp(3.3rem, 15vw, 5rem); }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 88px; }
  .section-head { align-items: start; flex-direction: column; gap: 7px; }
  .card-body { padding: 18px; }
  .theme-04 .intro { padding: 30px 20px; }
  .theme-09 .card { display: block; }
  .theme-09 .card-media, .theme-09 .card-media img { min-height: 210px; height: 210px; }
  .theme-10 .works-section { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
