:root {
  color-scheme: dark;
  --bg: #0a1020;
  --bg-elevated: #10192c;
  --panel: #121d31;
  --panel-2: #17233a;
  --text: #f0f5fe;
  --muted: #a4b2c8;
  --dim: #788aa5;
  --line: rgba(179,199,227,.14);
  --line-strong: rgba(179,199,227,.26);
  --accent-ac: #5be0cb;
  --accent-ad: #c1a4ff;
  --accent-bc: #79b6ff;
  --accent-bd: #ffc079;
  --radius: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative; isolation: isolate;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-feature-settings: "palt";
  line-height: 1.65;
  min-width: 320px;
}
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 690px;
  z-index: -1;
  background:
    radial-gradient(ellipse 38% 42% at 86% 7%, rgba(57,112,221,.19), transparent 72%),
    radial-gradient(ellipse 42% 55% at 5% 42%, rgba(35,162,151,.115), transparent 75%),
    linear-gradient(180deg, #0d1630, var(--bg) 96%);
  pointer-events: none;
}
.peer-network {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  pointer-events: none; overflow: hidden;
}
.peer-links { fill: none; stroke: #64b9c0; stroke-opacity: .25; stroke-width: .8; }
.peer-face { fill: #5bd1c0; opacity: .034; }
.peer-node { fill: #7cd8c9; fill-opacity: .66; }
.peer-relay { fill: #112d39; stroke: #7cd8c9; stroke-opacity: .62; }
.peer-route { fill: none; stroke: #7ce2cf; stroke-opacity: .31; stroke-width: 1; }
.peer-packet { fill: #b6ffee; }
.peer-network { mask-image: linear-gradient(105deg, #000, rgba(0,0,0,.48) 21%, rgba(0,0,0,.62) 48%, #000 85%); }
@media(max-width: 590px) {
  .peer-network { opacity: .77; }
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #8cc5ff; outline-offset: 3px; }
::selection { background: #3c7696; color: #fff; }
.container { width: min(1330px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid rgba(195,218,255,.09); }
.header-inner { min-height: 79px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #c6f2e8, #58aee4);
  color: #09223a;
  box-shadow: 0 7px 28px rgba(66,169,194,.17);
  font-size: 16px; font-weight: 900; letter-spacing: -.07em;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.35; gap: 2px; }
.brand-copy strong { font-size: 14px; letter-spacing: .015em; }
.brand-copy small { color: var(--dim); font-size: 11px; letter-spacing: .04em; }
.draft-tag { color: #b9d3ec; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font-size: 11px; letter-spacing: .08em; }
.hero { position: relative; isolation: isolate; padding: 82px 0 52px; }
.defense-scene {
  position: absolute; z-index: -1; pointer-events: none;
  inset: 0; width: 100%; height: 100%;
  mask-image: linear-gradient(90deg, transparent 20%, #000 57%);
}
.incident-key {
  position: absolute; bottom: 8px; left: 78%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 11px; white-space: nowrap;
  color: #a8b9ca; font-size: 10px; letter-spacing: .025em;
}
.incident-key span { display: inline-flex; align-items: center; gap: 5px; }
.incident-key i { display: inline-block; width: 7px; height: 7px; }
.incident-in { background: #e6aa69; clip-path: polygon(0 32%,65% 32%,65% 0,100% 50%,65% 100%,65% 68%,0 68%); }
.incident-block { border: 1px solid #91ebcd; border-radius: 50%; }
.incident-hit { border: 1px solid #ff6774; transform: rotate(45deg); }
.eyebrow { color: #76cabe; font-size: 11px; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 11px; }
.eyebrow::before { content: ""; display: block; width: 23px; height: 1px; background: currentColor; }
h1 { font-size: clamp(33px, 4.6vw, 62px); line-height: 1.23; letter-spacing: -.052em; margin: 20px 0 20px; max-width: 960px; font-weight: 850; }
h1 .thin { font-weight: 420; color: #a5bcd4; }
.hero-description { max-width: 810px; margin: 0; font-size: 15px; color: #b6c5da; line-height: 1.95; }
@media(min-width: 591px) {
  .hero-description { max-width: min(810px, 57%); }
}
.hero-footer { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 29px; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(24,36,58,.5); padding: 9px 14px; border-radius: 999px; color: #d2e1f3; font-size: 12px; }
.hero-pill strong { font-variant-numeric: tabular-nums; font-size: 15px; color: #fff; }
.hero-pill .small-dot { height: 6px; width: 6px; border-radius: 50%; background: #73dec6; }
.case-collection { margin-bottom: 28px; border-block: 1px solid var(--line); background: rgba(14,24,43,.8); }
.case-collection summary { padding: 12px 16px; color: #ccdee9; font-size: 13px; cursor: pointer; }
.case-collection summary small { margin-left: 8px; color: #a4b5c9; }
.case-caption, .case-picker { margin: 4px 16px 12px; font-size: 12px; color: var(--muted); }
.case-picker select { max-width: 100%; padding: 5px; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; font: inherit; }
.case-collection article { margin: 0 16px 16px; max-width: 760px; padding-left: 12px; border-left: 2px solid #ff6774; }
.case-collection article small { font-size: 12px; color: #b5d5ef; }
.case-collection article h3 { font-size: 16px; margin: 2px 0; }
.case-collection article p { font-size: 13px; margin: 3px 0; }
#case-studies, #ai-cases { scroll-margin-top: min(52vh, 440px); }
.case-picker:not([hidden]) { display: block; }
main:has(#case-studies[open]) .incident-key { visibility: hidden; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 21px; }
.kicker { color: var(--dim); font-size: 12px; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(22px, 2.8vw, 29px); margin: 5px 0 0; letter-spacing: -.03em; line-height: 1.4; }
.section-note { color: var(--muted); font-size: 12px; max-width: 470px; margin: 0 0 2px; text-align: right; }
.toolbox {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 14px; margin-bottom: 24px;
  border: 1px solid var(--line); border-radius: 18px;
  padding: 12px;
  background: rgba(18,29,49,.64);
}
.filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-button { padding: 8px 13px; color: #aabbd2; font-size: 12px; background: transparent; border: 1px solid transparent; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.filter-button:hover { color: #e6f1ff; background: rgba(255,255,255,.06); }
.filter-button[aria-pressed="true"] { color: #f3f9ff; background: #293a56; border-color: rgba(145,182,229,.22); }
.search { position: relative; min-width: min(260px, 100%); flex: 0 1 310px; }
.search svg { width: 18px; height: 18px; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #9caec7; pointer-events: none; }
.search input { width: 100%; background: #0b1426; color: #f1f6fc; border: 1px solid rgba(176,200,232,.22); border-radius: 11px; padding: 10px 13px 10px 40px; outline: 0; font-size: 13px; }
.search input:focus { border-color: #72b6d0; box-shadow: 0 0 0 3px rgba(87,155,196,.13); }
.search input::placeholder { color: #7e92ae; }
#matrix { margin-bottom: 32px; }
.matrix-caption { display: flex; justify-content: space-between; align-items: center; margin: 0 1px 17px; gap: 12px; }
.matrix-caption p { margin: 0; font-size: 12px; color: var(--muted); }
.result-counter { color: #9fb7cd; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-counter strong { display: inline-block; min-width: 2ch; text-align: right; color: #fff; font-size: 15px; }
#matrix-empty { margin: 0 0 12px; font-size: 13px; color: var(--text); }
.matrix-grid {
  --axis-line: #60768b;
  display: grid; grid-template-columns: clamp(50px, 9vw, 112px) repeat(2, minmax(0, 1fr));
  background: #101b2b; border: 1px solid var(--line-strong); border-radius: 14px;
}
.corner-label, .column-label, .row-label { display: flex; align-items: center; justify-content: center; }
.corner-label { flex-direction: column; color: var(--muted); font-size: 10px; }
.column-label, .row-label { gap: 9px; font-size: 13px; color: #d8e4f3; }
.column-label { min-height: 48px; border-left: 1px solid var(--line); }
.row-label { flex-direction: column; border-top: 1px solid var(--line); }
.axis-code { color: #a2bad0; font: 600 12px/1 ui-monospace, monospace; }
.quadrant {
  min-width: 0; padding: 13px clamp(8px, 1.6vw, 24px) 18px;
  border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong);
  background-color: color-mix(in srgb, var(--quad) 4%, #101b2b);
  background-image: linear-gradient(to right, var(--plot-rule) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--plot-rule) 1px, transparent 1px);
  --plot-rule: rgba(163,194,213,.055);
  background-size: 24px 24px; background-position: center;
}
.quadrant[data-quad="AC"] { --quad: var(--accent-ac); }
.quadrant[data-quad="AD"] { --quad: var(--accent-ad); border-left-color: var(--axis-line); }
.quadrant[data-quad="BC"] { --quad: var(--accent-bc); border-top-color: var(--axis-line); }
.quadrant[data-quad="BD"] {
  --quad: var(--accent-bd); border-color: var(--axis-line); border-bottom-right-radius: 13px;
}
.quadrant-heading {
  display: flex; justify-content: space-between; align-items: center;
  font: 11px/1.4 ui-monospace, monospace; color: var(--muted);
}
.quadrant-heading h3 { margin: 0; color: var(--quad); font: inherit; font-weight: 700; }
.topics-grid {
  position: relative; height: clamp(175px, 15vw, 205px);
  list-style: none; margin: 26px 22px 16px; padding: 0;
}
.topics-grid li {
  position: absolute; width: 44px; height: 44px; transform: translate(-50%, -50%);
}
.topics-grid li:is(:hover, :focus-within) { z-index: 1; }
.topics-grid li[aria-hidden="true"] .topic-point { display: none; }
.topic-point {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; border: 0; border-radius: 6px; padding: 0 4px;
  color: var(--text); background: transparent; cursor: pointer;
  font: 600 13px/1 ui-monospace, monospace;
}
.topic-point::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--quad); }
.topic-point:is(:hover, :focus-visible)::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--quad) 22%, transparent); }
.point-title {
  display: none; position: absolute; z-index: 2; bottom: 100%; left: 0;
  width: max-content; max-width: min(230px, 45vw); padding: 7px 10px; border-radius: 6px;
  border: 1px solid var(--quad); background: #0b1424; color: var(--text);
  font: 500 12px/1.6 sans-serif; text-align: left;
}
.quadrant[data-quad$="D"] .point-title { left: auto; right: 0; }
.topic-point:focus-visible .point-title { display: block; }
@media (hover: hover) {
  .topic-point:hover .point-title { display: block; }
}
footer { padding: 23px 0 36px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
#globe-source { flex-basis: 100%; }
#globe-source summary { width: fit-content; cursor: pointer; color: #b5d5ef; }
#globe-source p { max-width: 78ch; margin-top: 8px; }
.footer-inner a { color: #b5d5ef; text-underline-offset: 3px; }
.drawer-scrim { position: fixed; inset: 0; background: rgba(3,8,18,.75); backdrop-filter: blur(5px); opacity: 0; pointer-events: none; transition: opacity .24s; z-index: 20; }
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer { --drawer-accent: var(--accent-ac); position: fixed; top: 0; bottom: 0; right: 0; z-index: 21; width: min(560px, 100vw); max-width: 100%; transform: translateX(102%); transition: transform .3s cubic-bezier(.2,.72,.2,1); background: #101b2e; border-left: 1px solid rgba(182,200,228,.25); box-shadow: -30px 0 90px rgba(0,0,0,.34); display: flex; flex-direction: column; }
.drawer.is-open { transform: translateX(0); }
/* Keep the existing phone drawer in portrait and touch landscape layouts. */
@media (min-width: 591px) and (pointer: fine),
       (min-width: 591px) and (orientation: portrait),
       (min-width: 951px) {
  .drawer {
    inset: 0; margin: auto;
    width: min(740px, calc(100% - 48px)); height: fit-content;
    max-height: min(860px, calc(100% - 48px)); overflow: hidden;
    border: 1px solid rgba(182,200,228,.25); border-radius: 18px;
    box-shadow: 0 24px 90px rgba(0,0,0,.38);
    display: none; transform: none; transition: none;
  }
  .drawer.is-open { display: flex; transform: none; }
}
.drawer[data-quad="AC"] { --drawer-accent: var(--accent-ac); }
.drawer[data-quad="AD"] { --drawer-accent: var(--accent-ad); }
.drawer[data-quad="BC"] { --drawer-accent: var(--accent-bc); }
.drawer[data-quad="BD"] { --drawer-accent: var(--accent-bd); }
.drawer-top { padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.drawer-top-label { color: #b5c5d7; font-size: 11px; letter-spacing: .11em; font-weight: 800; }
.drawer-close { width: 38px; height: 38px; display: grid; place-items: center; background: #26354d; color: #e9f3ff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 19px; }
.drawer-close:hover { background: #334766; }
.drawer-scroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 31px 30px 45px; }
.drawer-eyebrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 11px; color: #c0d1e7; margin-bottom: 18px; }
.drawer-topic-id { color: #092039; background: var(--drawer-accent); border-radius: 10px; padding: 4px 9px; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.drawer-topic-quad { color: var(--drawer-accent); font-weight: 700; }
.drawer h2 { margin: 0 0 18px; font-size: clamp(23px, 2.6vw, 31px); line-height: 1.43; letter-spacing: -.035em; }
.drawer-summary { color: #c8d5e6; font-size: 14px; line-height: 2; margin: 0; }
.topic-technology { margin-top: 22px; padding-left: 14px; border-left: 2px solid var(--drawer-accent); }
.topic-technology h3 { margin: 0 0 4px; color: var(--drawer-accent); font-size: 14px; }
.topic-technology p { margin: 0; color: #c8d5e6; font-size: 14px; line-height: 1.8; }
.topic-technology p + p { margin-top: 8px; color: var(--text); }
.topic-hint { margin-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.topic-hint + .topic-hint { margin-top: 0; }
.topic-hint summary { width: fit-content; padding: 12px 2px; color: var(--drawer-accent); cursor: pointer; }
.topic-hint summary:focus-visible { outline: 3px solid #8cc5ff; outline-offset: 2px; }
.topic-hint p { margin: 0 0 10px; color: #c8d5e6; line-height: 1.8; }
.drawer-bottom { padding: 15px 28px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; background: #101b2e; }
.icon-button, .share-button { border: 1px solid var(--line-strong); color: #eef5ff; background: #273851; cursor: pointer; height: 43px; border-radius: 11px; }
.icon-button { width: 43px; flex: 0 0 43px; font-size: 17px; }
.icon-button:hover, .share-button:hover { background: #344b6b; }
.share-button { padding-inline: 15px; flex: 1; font-size: 12px; font-weight: 700; }
.drawer-position { color: var(--dim); font-size: 11px; margin: 0 3px 0 auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.drawer-open { overflow: hidden; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 18px); border: 1px solid rgba(172,226,211,.4); border-radius: 12px; background: #1b453f; color: #eafff9; padding: 12px 20px; font-size: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .17s, transform .17s; z-index: 40; max-width: calc(100vw - 30px); text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.noscript-note { color: #ffdfa8; }
.clipboard-input { position: fixed; opacity: 0; }
@media(max-width: 1170px){
  .container { width: min(1330px,calc(100% - 40px)); }
}
@media(max-width: 680px){
  .topics-grid { height: 220px; }
  .column-label { gap: 5px; font-size: 12px; }
  .row-label strong { writing-mode: vertical-rl; letter-spacing: .08em; }
  .quadrant { padding: 10px 6px; }
}
@media(max-width: 480px){
  .topics-grid { height: 272px; }
}
@media (max-width: 767px), (max-width: 950px) and (orientation: landscape) and (pointer: coarse) {
  .hero.container { display: flex; flex-direction: column; width: 100%; padding: 32px 0; }
  .hero > :is(.eyebrow, h1, .hero-footer) { margin-inline: max(14px, 4vw); }
  .hero h1 { margin-block: 14px 0; }
  .defense-scene {
    order: 1; position: static; width: 100%; height: min(96vw, 80svh, 520px);
    mask-image: none;
  }
  .hero-footer { order: 2; margin-top: 6px; }
  .hero-description, .incident-key { display: none; }
}
@media(max-width: 590px){
  .container { width: calc(100% - 28px); }
  .header-inner { min-height: 68px; }
  .brand-mark { height: 38px; width: 38px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { font-size: 9px; }
  .draft-tag { font-size: 9px; padding: 5px 9px; }
  h1 { font-size: clamp(30px,8.4vw,43px); }
  .hero-pill { padding: 7px 11px; font-size: 10px; }
  .section-heading { display: block; }
  .section-note { margin-top: 10px; text-align:left; }
  .toolbox { gap: 13px; padding: 10px; }
  .filters { gap: 3px; }
  .filter-button { font-size: 11px; padding: 7px 10px; }
  .search { flex: 1 1 100%; }
  .matrix-caption { align-items: start; }
  .drawer { width: 100%; border-left: none; }
  .drawer-scroll { padding: 26px 22px 38px; }
  .drawer-top,.drawer-bottom { padding-left: 20px; padding-right: 20px; }
  .drawer-summary { font-size: 13px; }
  .drawer-position { display:none; }
  .drawer h2 { font-size: 24px; }
  .footer-inner { align-items: start; }
}
@media(prefers-reduced-motion: reduce){
  *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; }
}
