  :root {
    --bg: #FAFAFA;
    --fg: #0A0A0A;
    --muted: #5C5C66;
    --rule: rgba(10, 10, 10, 0.08);
    --glass: rgba(255, 255, 255, 0.55);
    --glass-stroke: rgba(255, 255, 255, 0.7);
    --glass-shadow: rgba(10, 20, 40, 0.06);
    --gold: #B8860B;
    --aurora-1: #C7BAFF; /* lavender */
    --aurora-2: #B6E1FF; /* sky */
    --aurora-3: #FFD7B0; /* peach */
    --aurora-4: #BBF3D8; /* mint */
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'Hiragino Sans', sans-serif;
    --sans-ja: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP',
               -apple-system, BlinkMacSystemFont, 'Yu Gothic Medium', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  }

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

  html { -webkit-text-size-adjust: 100%; }

  body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'ss01', 'cv11';
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
  }

  /* Aurora mesh — bottom layer (z: -3) */
  .aurora {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
  }

  .aurora::before,
  .aurora::after,
  .aurora .blob {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
    will-change: transform;
  }

  .aurora::before {
    width: 720px; height: 720px;
    top: -180px; left: -120px;
    background: var(--aurora-1);
    animation: drift1 32s ease-in-out infinite alternate;
  }

  .aurora::after {
    width: 640px; height: 640px;
    top: 30%; right: -160px;
    background: var(--aurora-2);
    animation: drift2 40s ease-in-out infinite alternate;
  }

  .aurora .blob.peach {
    width: 520px; height: 520px;
    bottom: 12%; left: 8%;
    background: var(--aurora-3);
    opacity: 0.4;
    animation: drift3 36s ease-in-out infinite alternate;
  }

  .aurora .blob.mint {
    width: 460px; height: 460px;
    bottom: -120px; right: 18%;
    background: var(--aurora-4);
    opacity: 0.4;
    animation: drift4 44s ease-in-out infinite alternate;
  }

  @keyframes drift1 { to { transform: translate(120px, 80px) scale(1.1); } }
  @keyframes drift2 { to { transform: translate(-100px, -60px) scale(0.95); } }
  @keyframes drift3 { to { transform: translate(80px, -100px) scale(1.08); } }
  @keyframes drift4 { to { transform: translate(-120px, -40px) scale(1.05); } }

  /* WebGL lattice — middle layer (z: -2), transparent canvas over aurora */
  #lattice {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    display: block;
    cursor: crosshair;
    pointer-events: auto;
  }

  /* Soft brightening scrim — vertical band behind the entire text column */
  .scrim {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      linear-gradient(to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 18%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.55) 82%,
        rgba(255, 255, 255, 0) 100%);
  }

  @media (prefers-reduced-motion: reduce) {
    .aurora::before,
    .aurora::after,
    .aurora .blob { animation: none; }
  }

  a { color: inherit; text-decoration: none; }

  .page {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
    pointer-events: none;
  }
  .page > *,
  .page a,
  .page button,
  .glass {
    pointer-events: auto;
  }

  /* Top meta strip */
  .top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 32px 0 0;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
  }

  .top .brand-mark {
    color: var(--fg);
    font-weight: 400;
  }

  /* Hero */
  .hero {
    padding: 128px 0 96px;
  }

  .hero h1 {
    font-size: clamp(40px, 5.6vw, 64px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--fg);
    max-width: 680px;
    margin-bottom: 28px;
  }

  .hero .sub {
    font-size: clamp(17px, 1.7vw, 19px);
    font-weight: 400;
    line-height: 1.5;
    color: #2D2D33;
    max-width: 560px;
  }

  /* Glass element shared style */
  .glass {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--glass-stroke);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.55) inset,
      0 24px 48px -16px var(--glass-shadow),
      0 2px 6px -2px rgba(10, 20, 40, 0.04);
    border-radius: 18px;
  }

  .hero .legal-name {
    margin-top: 56px;
    padding: 14px 18px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--muted);
    text-transform: uppercase;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    border-radius: 999px;
  }

  /* Sections */
  section.block { padding: 64px 0; }

  .text-panel {
    margin-top: 8px;
    padding: 24px 28px;
    border-radius: 16px;
    max-width: 640px;
  }
  .text-panel p { max-width: none; }
  .text-panel p.lead { margin-bottom: 14px; }
  @media (max-width: 640px) {
    .text-panel { padding: 20px 22px; }
  }

  .label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
  }

  h2 {
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.018em;
    color: var(--fg);
    margin-bottom: 20px;
    max-width: 640px;
  }

  p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--fg);
    max-width: 600px;
  }

  p + p { margin-top: 16px; }

  p.lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--fg);
    margin-bottom: 18px;
  }

  /* Project glass card */
  .project {
    margin-top: 32px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: transform 220ms ease, box-shadow 220ms ease;
  }

  .project:hover {
    transform: translateY(-2px);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.55) inset,
      0 32px 56px -16px rgba(10, 20, 40, 0.12),
      0 2px 6px -2px rgba(184, 134, 11, 0.08);
  }

  .project .name {
    font-size: 18px;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 4px;
    font-feature-settings: 'tnum';
  }

  .project .desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
    max-width: 520px;
  }

  .project .visit {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--fg);
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(10, 10, 10, 0.08);
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  }

  .project a { display: contents; }
  .project a:hover .visit {
    background: var(--gold);
    color: #FFFFFF;
    border-color: var(--gold);
  }

  /* Governance + Contact */
  .glass-rows {
    margin-top: 24px;
    padding: 8px 24px;
    border-radius: 16px;
  }

  .row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
    align-items: baseline;
  }

  .row:last-child { border-bottom: none; }

  .row dt, .row .label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 0;
  }

  .row dd, .row .value {
    font-size: 15px;
    color: var(--fg);
    line-height: 1.5;
  }

  .row dd .ja {
    color: var(--muted);
    font-size: 13px;
    margin-left: 8px;
    font-family: var(--sans);
  }

  .row .value a {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1px;
    transition: color 180ms ease, border-color 180ms ease;
  }
  .row .value a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
  }

  /* Footer */
  footer {
    padding: 48px 0 64px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Cursor pulse */
  .cursor-pulse {
    position: fixed;
    pointer-events: none;
    z-index: 4;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(184, 134, 11, 0.5);
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease;
    opacity: 0;
  }

  /* Responsive */
  @media (max-width: 640px) {
    .page { padding: 0 20px; }
    .hero { padding: 88px 0 64px; }
    section.block { padding: 48px 0; }
    .row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
    .project {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
      padding: 20px 22px;
    }
    .top { padding-top: 24px; }
    .glass-rows { padding: 4px 18px; }
    .hero .legal-name {
      gap: 8px 16px;
      padding: 12px 16px;
      flex-direction: column;
    }
    #lattice { cursor: default; }
  }

  ::selection { background: var(--gold); color: #FFFFFF; }

  a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 1px;
  }

/* ── Language switcher ─────────────────────────────────────────
   Added when the single page was split into /ja and /en. Sits in
   .top opposite the brand mark and inherits its mono/uppercase set. */
.top .lang {
  display: flex;
  align-items: baseline;
}
.top .lang a {
  color: var(--muted);
  text-decoration: none;
  padding: 0 9px;
  border-left: 1px solid var(--rule);
  transition: color 0.18s ease;
}
.top .lang a:first-child {
  border-left: 0;
  padding-left: 0;
}
.top .lang a:last-child {
  padding-right: 0;
}
.top .lang a[aria-current='page'] {
  color: var(--fg);
}
.top .lang a:hover,
.top .lang a:focus-visible {
  color: var(--gold);
}

/* ── Japanese typography ───────────────────────────────────────
   Japanese needs more leading than Inter's defaults and benefits
   from proportional kana ('palt'). Latin pages keep the original. */
html[lang='ja'] body {
  font-family: var(--sans-ja);
  line-height: 1.9;
  font-feature-settings: 'palt';
}
html[lang='ja'] h1,
html[lang='ja'] h2 {
  line-height: 1.5;
  letter-spacing: 0.01em;
}
html[lang='ja'] .lead,
html[lang='ja'] .desc,
html[lang='ja'] .sub {
  line-height: 1.95;
}
html[lang='ja'] .label,
html[lang='ja'] .top,
html[lang='ja'] .visit {
  font-family: var(--mono);
}

/* Visible keyboard focus — the original had none. */
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
