:root {
      --bg: #050b14;
      --bg-2: #091426;
      --panel: rgba(8, 18, 33, .68);
      --panel-strong: rgba(8, 18, 33, .92);
      --line: rgba(151, 201, 255, .19);
      --text: #eef7ff;
      --muted: #90a7ba;
      --cyan: #58dcff;
      --cyan-2: #b2f2ff;
      --lime: #b9ff66;
      --amber: #ffc969;
      --violet: #b7a1ff;
      --shadow: 0 24px 90px rgba(0,0,0,.42);
      --safe-top: env(safe-area-inset-top, 0px);
      --safe-bottom: env(safe-area-inset-bottom, 0px);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; background: var(--bg); }
    body {
      margin: 0;
      min-width: 320px;
      color: var(--text);
      background:
        radial-gradient(circle at 50% -20%, rgba(48, 121, 185, .17), transparent 42%),
        var(--bg);
      font-family: Inter, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }
    body.mode-2d #webgl { opacity: 0; pointer-events: none; }
    body.mode-2d .fallback { display: block; }
    body.mode-2d .scroll-story { display: none; }

    a { color: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }

    #webgl {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
      z-index: 0;
      transition: opacity .35s ease;
      background: transparent;
      touch-action: pan-y;
    }

    .grain {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      opacity: .12;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E");
      mix-blend-mode: soft-light;
    }

    .topbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      height: calc(78px + var(--safe-top));
      padding: var(--safe-top) clamp(18px, 4vw, 56px) 0;
      background: linear-gradient(to bottom, rgba(3,8,15,.82), rgba(3,8,15,.32), transparent);
      pointer-events: none;
    }
    .topbar > * { pointer-events: auto; }
    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      font-weight: 800;
      letter-spacing: .08em;
      font-size: 13px;
    }
    .brand-mark {
      width: 31px;
      aspect-ratio: 1;
      border: 1px solid rgba(145,224,255,.62);
      border-radius: 9px;
      display: grid;
      place-items: center;
      position: relative;
      background: linear-gradient(145deg, rgba(88,220,255,.15), rgba(185,255,102,.06));
      box-shadow: inset 0 0 18px rgba(88,220,255,.08);
    }
    .brand-mark::before,
    .brand-mark::after {
      content: "";
      position: absolute;
      background: var(--cyan);
      box-shadow: 0 0 12px rgba(88,220,255,.62);
    }
    .brand-mark::before { width: 12px; height: 1px; transform: rotate(45deg); }
    .brand-mark::after { width: 1px; height: 12px; transform: rotate(45deg); }
    .brand small { color: var(--muted); font-weight: 600; letter-spacing: .13em; }

    .top-actions { display: flex; align-items: center; gap: 10px; }
    .top-link, .mode-button {
      border: 1px solid rgba(153,192,224,.18);
      background: rgba(5,12,22,.48);
      backdrop-filter: blur(12px);
      color: #dcecff;
      text-decoration: none;
      border-radius: 999px;
      height: 39px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 15px;
      font: inherit;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .08em;
      cursor: pointer;
      transition: .2s ease;
    }
    .top-link:hover, .mode-button:hover {
      border-color: rgba(88,220,255,.46);
      background: rgba(14,31,49,.72);
      transform: translateY(-1px);
    }

    .progress {
      position: fixed;
      z-index: 30;
      right: clamp(18px, 3vw, 44px);
      top: 50%;
      transform: translateY(-50%);
      display: grid;
      gap: 14px;
      pointer-events: none;
    }
    .progress a {
      pointer-events: auto;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      color: rgba(203,222,239,.42);
      text-decoration: none;
      font-size: 10px;
      letter-spacing: .12em;
      font-weight: 800;
      transition: .25s ease;
    }
    .progress a span:first-child { opacity: 0; transform: translateX(4px); transition: .25s ease; }
    .progress a:hover span:first-child,
    .progress a.active span:first-child { opacity: 1; transform: translateX(0); }
    .progress a.active { color: var(--text); }
    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      border: 1px solid rgba(203,222,239,.38);
      background: rgba(5,11,20,.8);
      transition: .25s ease;
    }
    .progress a.active .dot {
      border-color: var(--cyan);
      background: var(--cyan);
      box-shadow: 0 0 16px rgba(88,220,255,.8);
      transform: scale(1.25);
    }

    .scroll-story { position: relative; z-index: 2; }
    .scene-section {
      min-height: 116vh;
      position: relative;
      display: flex;
      align-items: center;
      padding: 110px clamp(22px, 6vw, 92px) 70px;
      pointer-events: none;
    }
    .scene-section.intro { min-height: 120vh; }
    .scene-section.end { min-height: 100vh; }
    .content {
      width: min(600px, 48vw);
      pointer-events: auto;
      transform: translateZ(0);
    }
    .align-right { margin-left: auto; width: min(530px, 42vw); }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      font-size: 11px;
      line-height: 1;
      letter-spacing: .18em;
      color: var(--cyan-2);
      font-weight: 800;
      text-transform: uppercase;
      margin-bottom: 22px;
    }
    .eyebrow::before {
      content: "";
      width: 28px;
      height: 1px;
      background: var(--cyan);
      box-shadow: 0 0 12px rgba(88,220,255,.5);
    }
    .zone-number {
      font-size: clamp(76px, 9vw, 132px);
      font-weight: 900;
      line-height: .7;
      letter-spacing: -.055em;
      color: transparent;
      -webkit-text-stroke: 1px rgba(185,225,255,.2);
      position: absolute;
      top: 15vh;
      left: clamp(22px, 6vw, 92px);
      user-select: none;
      pointer-events: none;
    }
    .align-right + .zone-number { left: auto; right: clamp(22px, 6vw, 92px); }
    h1, h2 { margin: 0; }
    h1 {
      max-width: 760px;
      font-size: clamp(48px, 7.7vw, 116px);
      letter-spacing: -.058em;
      line-height: .84;
      font-weight: 900;
      text-wrap: balance;
    }
    h1 .outline {
      color: transparent;
      -webkit-text-stroke: 1px rgba(213,238,255,.62);
    }
    h1 .accent { color: var(--cyan); text-shadow: 0 0 30px rgba(88,220,255,.2); }
    h2 {
      font-size: clamp(36px, 5vw, 72px);
      line-height: .98;
      letter-spacing: -.045em;
      font-weight: 870;
      max-width: 650px;
    }
    h2 em {
      display: block;
      color: var(--muted);
      font-style: normal;
      font-size: .34em;
      letter-spacing: .06em;
      margin-bottom: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }
    .lead {
      max-width: 560px;
      margin: 28px 0 0;
      color: #a9bed0;
      font-size: clamp(14px, 1.35vw, 17px);
      line-height: 1.95;
      letter-spacing: .015em;
    }
    .lead strong { color: #eef7ff; font-weight: 700; }

    .hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 28px;
    }
    .pill {
      border: 1px solid rgba(141,184,220,.16);
      background: rgba(7,17,30,.5);
      color: #9db4c8;
      padding: 8px 11px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .09em;
      backdrop-filter: blur(10px);
    }

    .project-links {
      list-style: none;
      margin: 34px 0 0;
      padding: 0;
      display: grid;
      gap: 8px;
      width: min(520px, 100%);
    }
    .project-links a {
      position: relative;
      display: grid;
      grid-template-columns: 45px 1fr auto;
      align-items: center;
      gap: 13px;
      min-height: 63px;
      padding: 9px 14px 9px 8px;
      border: 1px solid rgba(141,184,220,.14);
      background: linear-gradient(90deg, rgba(8,18,33,.66), rgba(8,18,33,.28));
      backdrop-filter: blur(13px);
      border-radius: 15px;
      text-decoration: none;
      overflow: hidden;
      transition: border-color .22s ease, transform .22s ease, background .22s ease;
    }
    .project-links a::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(88,220,255,.08), transparent 48%);
      opacity: 0;
      transition: .22s ease;
    }
    .project-links a:hover {
      transform: translateX(4px);
      border-color: rgba(88,220,255,.4);
      background: linear-gradient(90deg, rgba(11,28,45,.8), rgba(8,18,33,.4));
    }
    .project-links a:hover::before { opacity: 1; }
    .project-no {
      width: 43px;
      height: 43px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      color: var(--cyan);
      background: rgba(88,220,255,.075);
      border: 1px solid rgba(88,220,255,.15);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .06em;
    }
    .project-text { position: relative; z-index: 1; min-width: 0; }
    .project-text b { display: block; font-size: 13px; margin-bottom: 4px; }
    .project-text small { color: #7f98ad; font-size: 10px; line-height: 1.4; }
    .arrow { color: #8eafc7; font-size: 17px; position: relative; z-index: 1; }

    .scroll-hint {
      margin-top: 42px;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      color: #738da2;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .16em;
    }
    .mouse {
      width: 19px;
      height: 29px;
      border-radius: 10px;
      border: 1px solid rgba(142,183,218,.38);
      position: relative;
    }
    .mouse::after {
      content: "";
      width: 2px;
      height: 6px;
      border-radius: 2px;
      position: absolute;
      top: 6px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--cyan);
      animation: scrollWheel 1.8s ease-in-out infinite;
    }
    @keyframes scrollWheel {
      0%, 100% { opacity: 0; transform: translate(-50%, 0); }
      35% { opacity: 1; }
      70% { opacity: 0; transform: translate(-50%, 7px); }
    }

    .end .content {
      margin: auto;
      text-align: center;
      width: min(740px, 92vw);
      padding: 60px 30px;
      border-radius: 28px;
      border: 1px solid rgba(137,192,234,.18);
      background: radial-gradient(circle at 50% 0%, rgba(88,220,255,.10), transparent 48%), rgba(6,14,26,.64);
      backdrop-filter: blur(18px);
      box-shadow: var(--shadow);
    }
    .end h2 { margin-inline: auto; }
    .end .lead { margin-inline: auto; }
    .cta-row { margin-top: 30px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
    .cta {
      min-height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 20px;
      border-radius: 999px;
      text-decoration: none;
      font-size: 12px;
      font-weight: 850;
      letter-spacing: .06em;
      border: 1px solid rgba(88,220,255,.32);
      background: rgba(88,220,255,.09);
      transition: .2s ease;
    }
    .cta.primary { background: var(--cyan); color: #041019; border-color: var(--cyan); box-shadow: 0 0 30px rgba(88,220,255,.18); }
    .cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.28); }

    .project-tooltip {
      position: fixed;
      z-index: 50;
      left: 0;
      top: 0;
      width: 184px;
      pointer-events: none;
      opacity: 0;
      transform: translate(15px, 15px) scale(.96);
      transition: opacity .15s ease, transform .15s ease;
      border: 1px solid rgba(88,220,255,.27);
      border-radius: 13px;
      padding: 12px 13px;
      background: rgba(4,12,22,.86);
      backdrop-filter: blur(14px);
      box-shadow: 0 15px 40px rgba(0,0,0,.35);
    }
    .project-tooltip.show { opacity: 1; transform: translate(15px, 15px) scale(1); }
    .project-tooltip b { font-size: 11px; display: block; margin-bottom: 4px; }
    .project-tooltip small { color: var(--cyan); font-size: 9px; letter-spacing: .12em; font-weight: 800; }

    .loader {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: grid;
      place-items: center;
      background: #050b14;
      transition: opacity .55s ease, visibility .55s ease;
    }
    .loader.done { opacity: 0; visibility: hidden; }
    .loader-box { width: min(330px, 78vw); text-align: center; }
    .loader-logo { font-size: 14px; font-weight: 900; letter-spacing: .21em; margin-bottom: 16px; }
    .loader-line { height: 1px; background: rgba(138,190,226,.12); overflow: hidden; }
    .loader-line::before {
      content: "";
      display: block;
      width: 42%;
      height: 100%;
      background: linear-gradient(90deg, transparent, var(--cyan), transparent);
      animation: loadLine 1.1s ease-in-out infinite;
    }
    @keyframes loadLine { from { transform: translateX(-110%); } to { transform: translateX(350%); } }
    .loader small { display: block; color: #60788e; margin-top: 10px; font-size: 9px; letter-spacing: .14em; }

    .fallback {
      display: none;
      position: relative;
      z-index: 5;
      padding: 110px clamp(18px, 5vw, 68px) 80px;
      min-height: 100vh;
    }
    .fallback-inner { max-width: 1180px; margin: auto; }
    .fallback h1 { font-size: clamp(44px, 8vw, 92px); }
    .fallback-intro { color: #92a9bb; line-height: 1.8; max-width: 700px; }
    .fallback-group { margin-top: 70px; }
    .fallback-group h2 { font-size: clamp(28px, 5vw, 48px); margin-bottom: 20px; }
    .fallback-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
    .fallback-card {
      min-height: 230px;
      text-decoration: none;
      border: 1px solid rgba(146,187,222,.17);
      border-radius: 20px;
      padding: 24px;
      background: linear-gradient(155deg, rgba(16,35,54,.82), rgba(6,14,25,.92));
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      box-shadow: var(--shadow);
    }
    .fallback-card small { color: var(--cyan); font-weight: 800; letter-spacing: .12em; }
    .fallback-card h3 { margin: 8px 0; font-size: 21px; }
    .fallback-card p { margin: 0; color: #8098aa; line-height: 1.7; font-size: 12px; }

    .sr-only {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }

    @media (max-width: 900px) {
      .topbar { height: calc(66px + var(--safe-top)); padding-inline: 16px; }
      .brand small, .top-link { display: none; }
      .mode-button { height: 35px; padding: 0 12px; }
      .progress {
        top: auto;
        right: 50%;
        bottom: calc(13px + var(--safe-bottom));
        transform: translateX(50%);
        display: flex;
        padding: 8px 11px;
        border-radius: 999px;
        background: rgba(3,9,17,.64);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(134,178,214,.12);
      }
      .progress a span:first-child { display: none; }
      .dot { width: 7px; height: 7px; }
      .scene-section {
        min-height: 118svh;
        align-items: flex-start;
        padding: 16vh 19px 84px;
      }
      .scene-section.intro { min-height: 124svh; align-items: flex-start; padding-top: 19vh; }
      .scene-section.end { min-height: 100svh; align-items: center; }
      .content, .align-right { width: min(94vw, 560px); margin-left: 0; }
      .zone-number { top: 11vh; left: 20px; font-size: 78px; }
      .align-right + .zone-number { left: 20px; right: auto; }
      h1 { font-size: clamp(52px, 15vw, 82px); max-width: 95vw; }
      h2 { font-size: clamp(38px, 11vw, 62px); max-width: 92vw; }
      .lead { width: 88vw; max-width: 470px; font-size: 14px; line-height: 1.82; }
      .project-links { margin-top: 28px; width: min(92vw, 500px); }
      .project-links a { background: linear-gradient(90deg, rgba(7,17,30,.78), rgba(7,17,30,.46)); }
      .scroll-hint { margin-top: 30px; }
      .fallback-grid { grid-template-columns: 1fr; }
      .project-tooltip { display: none; }
    }

    @media (max-width: 520px) {
      .brand { font-size: 11px; gap: 9px; }
      .brand-mark { width: 28px; border-radius: 8px; }
      .mode-button { font-size: 9px; }
      .scene-section { padding-inline: 16px; }
      .eyebrow { font-size: 9px; margin-bottom: 17px; }
      .lead { width: 92vw; }
      .project-links a { min-height: 58px; border-radius: 13px; }
      .project-no { width: 39px; height: 39px; border-radius: 10px; }
      .project-text b { font-size: 12px; }
      .project-text small { font-size: 9px; }
      .end .content { padding: 40px 17px; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
    }
