 :root {
    --teal: #2ec4a0;
    --teal-bright: #3ddbb3;
    --teal-dark: #1a8a70;
    --teal-glow: rgba(46, 196, 160, 0.18);
    --teal-dim: rgba(46, 196, 160, 0.08);
    --charcoal: #0d0f0e;
    --charcoal-2: #141716;
    --charcoal-3: #1c1f1e;
    --charcoal-4: #252928;
    --off-white: #e8f0ee;
    --muted: #6b7e78;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--charcoal);
    color: var(--off-white);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
  }

  #bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

  /* ─── NAV ─── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 3rem;
    background: rgba(13, 15, 14, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(46, 196, 160, 0.12);
  }
  .nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; cursor: pointer; }
  .nav-logo-icon { width: 40px; height: 40px; }
  .nav-logo-icon svg { width: 100%; height: 100%; }
  .nav-logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; color: var(--off-white); }
  .nav-logo-text span { color: var(--teal); font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 0.7rem; display: block; letter-spacing: 0.3em; margin-top: -2px; opacity: 0.8; }
  .nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
  .nav-links a { text-decoration: none; color: var(--muted); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.25s; }
  .nav-links a:hover { color: var(--teal); }
  .nav-cta { background: transparent; border: 1px solid var(--teal); color: var(--teal) !important; padding: 0.5rem 1.2rem; border-radius: 4px; transition: background 0.25s, color 0.25s !important; }
  .nav-cta:hover { background: var(--teal) !important; color: var(--charcoal) !important; }

  /* ─── HERO ─── */
  .hero { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 8rem 2rem 4rem; }
  .logo-3d-container { width: 200px; height: 200px; margin: 0 auto 2.5rem; perspective: 600px; }
  .logo-3d { width: 100%; height: 100%; transform-style: preserve-3d; position: relative; will-change: transform; }
  .logo-face { position: absolute; width: 160px; height: 160px; left: 20px; top: 20px; border-radius: 22px; border: 2px solid var(--teal); display: flex; align-items: center; justify-content: center; backface-visibility: visible; }
  .face-front { transform: translateZ(20px); background: rgba(13,15,14,0.95); box-shadow: 0 0 40px var(--teal-glow), inset 0 0 30px rgba(46,196,160,0.05); }
  .face-back  { transform: translateZ(-20px) rotateY(180deg); background: rgba(13,15,14,0.95); box-shadow: 0 0 40px var(--teal-glow), inset 0 0 30px rgba(46,196,160,0.05); }
  .face-left  { transform: translateX(-20px) rotateY(-90deg); width: 40px; height: 160px; left: 0; border-radius: 10px 0 0 10px; background: var(--teal-dark); opacity: 0.6; }
  .face-right { transform: translateX(160px) rotateY(90deg); width: 40px; height: 160px; left: 20px; border-radius: 0 10px 10px 0; background: var(--teal-dark); opacity: 0.6; }
  .face-top   { transform: translateY(-20px) rotateX(90deg); height: 40px; top: 0; border-radius: 10px 10px 0 0; background: var(--teal); opacity: 0.5; }
  .face-bottom{ transform: translateY(160px) rotateX(-90deg); height: 40px; top: 20px; border-radius: 0 0 10px 10px; background: var(--teal-dark); opacity: 0.4; }
  .logo-face svg { width: 70%; height: 70%; }
  .glow-ring { position: absolute; inset: -20px; border-radius: 50%; border: 1px solid rgba(46,196,160,0.15); animation: pulseRing 3s ease-in-out infinite; pointer-events: none; }
  .glow-ring:nth-child(2) { inset: -40px; animation-delay: 1s; border-color: rgba(46,196,160,0.08); }
  .glow-ring:nth-child(3) { inset: -60px; animation-delay: 2s; border-color: rgba(46,196,160,0.04); }
  @keyframes pulseRing { 0%,100%{opacity:.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.03)} }

  .hero-eyebrow { font-family: 'Space Mono', monospace; font-size: 0.72rem; letter-spacing: 0.35em; color: var(--teal); text-transform: uppercase; margin-bottom: 1.2rem; opacity: 0; animation: fadeUp 0.8s 0.3s forwards; }
  .hero-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.4rem, 5.5vw, 5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; opacity: 0; animation: fadeUp 0.9s 0.5s forwards; margin-bottom: 0.3rem; }
  .hero-title .kanji { font-family: 'Noto Serif JP', serif; font-weight: 300; color: var(--teal); display: block; font-size: 0.45em; letter-spacing: 0.25em; margin-bottom: 0.5rem; }
  .hero-sub { max-width: 580px; margin: 1.5rem auto 2.5rem; font-size: 1.05rem; color: var(--muted); font-weight: 300; line-height: 1.8; opacity: 0; animation: fadeUp 0.9s 0.7s forwards; }
  .hero-ctas { display: flex; gap: 1rem; justify-content: center; opacity: 0; animation: fadeUp 0.9s 0.9s forwards; }
  .hero-ctas .btn-primary, .hero-ctas .btn-ghost { min-width: 190px; text-align: center; }
  .btn-primary { background: var(--teal); color: var(--charcoal); border: none; padding: 0.9rem 2.2rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; border-radius: 6px; cursor: pointer; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 0 24px rgba(46,196,160,0.35); }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(46,196,160,0.5); }
  .btn-ghost { background: transparent; color: var(--teal); border: 1px solid rgba(46,196,160,0.4); padding: 0.9rem 2.2rem; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; border-radius: 6px; cursor: pointer; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
  .btn-ghost:hover { border-color: var(--teal); background: var(--teal-dim); }
  @keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
  .scroll-hint { position: relative; margin-top: 3.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; opacity: 0; animation: fadeUp 1s 1.5s forwards; }
  .scroll-hint span { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); font-family: 'Space Mono', monospace; }
  .scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--teal), transparent); animation: scrollAnim 2s ease-in-out infinite; }
  @keyframes scrollAnim { 0%,100%{opacity:.4;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.3)} }

  /* ─── SECTION BASE ─── */
  section { position: relative; z-index: 1; padding: 7rem 2rem; }
  .section-inner { max-width: 1100px; margin: 0 auto; }
  .section-label { font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.35em; color: var(--teal); text-transform: uppercase; margin-bottom: 1rem; }
  .section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1.5rem; }

  /* ─── SERVICES ─── */
  .services { background: var(--charcoal-2); border-top: 1px solid rgba(46,196,160,0.08); border-bottom: 1px solid rgba(46,196,160,0.08); }
  .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
  .service-card { padding: 2rem; background: var(--charcoal-3); border: 1px solid rgba(46,196,160,0.08); border-radius: 12px; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; cursor: default; position: relative; overflow: hidden; }
  .service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
  .service-card:hover { border-color: rgba(46,196,160,0.3); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(46,196,160,0.08); }
  .service-card:hover::before { transform: scaleX(1); }
  .service-icon { width: 44px; height: 44px; margin-bottom: 1.2rem; color: var(--teal); }
  .service-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.7rem; }
  .service-list { list-style: none; }
  .service-list li { font-size: 0.85rem; color: var(--muted); line-height: 1.9; padding-left: 1rem; position: relative; }
  .service-list li::before { content: '→'; position: absolute; left: 0; color: var(--teal); opacity: 0.6; font-size: 0.75rem; }
  .services-cta { text-align: center; margin-top: 3rem; }

  /* ─── KIROKU─── */
  .kiroku { background: var(--charcoal); }
  .kiroku-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  @media (max-width: 768px) { .kiroku-inner { grid-template-columns: 1fr; gap: 2.5rem; } }
  .kiroku-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(46,196,160,0.1); border: 1px solid rgba(46,196,160,0.25); padding: 0.4rem 0.9rem; border-radius: 100px; font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; color: var(--teal); text-transform: uppercase; margin-bottom: 1.5rem; }
  .kiroku-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); display: inline-block; animation: dotPulse 2s ease-in-out infinite; }
  .kiroku-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1rem; }
  .kiroku-title .gl-accent { color: var(--teal); }
  .kiroku-desc { color: var(--muted); font-size: 1rem; line-height: 1.85; margin-bottom: 2rem; }
  .kiroku-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 2rem; }
  .ku-feature { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--off-white); }
  .ku-feature-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
  .kiroku-panel { background: var(--charcoal-3); border: 1px solid rgba(46,196,160,0.15); border-radius: 16px; padding: 2.5rem; position: relative; overflow: hidden; }
  .kiroku-panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(46,196,160,0.06) 0%, transparent 60%); pointer-events: none; }
  .ku-panel-label { font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.3em; color: var(--teal); text-transform: uppercase; margin-bottom: 1.5rem; }
  .ku-flow { display: flex; flex-direction: column; gap: 0; }
  .ku-flow-step { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 0; }
  .ku-flow-step:not(:last-child) { border-bottom: 1px solid rgba(46,196,160,0.07); }
  .ku-step-num { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--teal); display: flex; align-items: center; justify-content: center; font-family: 'Space Mono', monospace; font-size: 0.65rem; color: var(--teal); flex-shrink: 0; }
  .ku-step-text { font-size: 0.88rem; color: var(--off-white); font-weight: 500; }
  .ku-step-sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.1rem; }
  .ku-arrow { margin-left: auto; color: var(--teal); opacity: 0.4; font-size: 0.8rem; }

  /* ─── WHY BENKYO ─── */
  .why { background: var(--charcoal-2); border-top: 1px solid rgba(46,196,160,0.08); }
  .why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
  .why-card { padding: 2rem 1.5rem; background: var(--charcoal-3); border: 1px solid rgba(46,196,160,0.08); border-radius: 12px; text-align: center; transition: border-color 0.3s, transform 0.3s; cursor: default; }
  .why-card:hover { border-color: rgba(46,196,160,0.3); transform: translateY(-4px); }
  .why-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(46,196,160,0.08); border: 1px solid rgba(46,196,160,0.15); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; color: var(--teal); }
  .why-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; }
  .why-text { font-size: 0.82rem; color: var(--muted); line-height: 1.7; }

  /* ─── PROCESS ─── */
  .process { background: var(--charcoal); }
  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin-top: 4rem; position: relative; }
  .steps::before { content: ''; position: absolute; top: 28px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--teal), transparent); opacity: 0.3; }
  .step { text-align: center; padding: 2rem 1.2rem; position: relative; }
  .step-num { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--teal); background: var(--charcoal); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--teal); position: relative; z-index: 1; transition: background 0.3s, box-shadow 0.3s, color 0.3s; }
  .step:hover .step-num { background: var(--teal); color: var(--charcoal); box-shadow: 0 0 24px rgba(46,196,160,0.4); }
  .step-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; }
  .step-text { font-size: 0.8rem; color: var(--muted); line-height: 1.7; }

  /* ─── ABOUT ─── */
  .about { background: var(--charcoal-2); border-top: 1px solid rgba(46,196,160,0.08); }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  @media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
  .about-body { font-size: 1rem; color: var(--muted); line-height: 1.9; }
  .about-body p + p { margin-top: 1.2rem; }
  .about-body strong { color: var(--off-white); font-weight: 600; }
  .about-visual { position: relative; display: flex; align-items: center; justify-content: center; }
  .about-logo-3d { width: 220px; height: 220px; margin: 0 auto; perspective: 500px; }
  .about-logo-inner { width: 100%; height: 100%; transform-style: preserve-3d; animation: floatSpin 18s linear infinite; }
  @keyframes floatSpin { 0%{transform:rotateY(0deg) rotateX(15deg) translateY(0)} 50%{transform:rotateY(180deg) rotateX(15deg) translateY(-12px)} 100%{transform:rotateY(360deg) rotateX(15deg) translateY(0)} }
  .about-face { position: absolute; width: 160px; height: 160px; left: 30px; top: 30px; border-radius: 20px; border: 1.5px solid var(--teal); display: flex; align-items: center; justify-content: center; backface-visibility: visible; }
  .about-face-front  { transform: translateZ(18px); background: rgba(13,15,14,0.97); box-shadow: 0 0 50px var(--teal-glow); }
  .about-face-back   { transform: translateZ(-18px) rotateY(180deg); background: rgba(13,15,14,0.97); box-shadow: 0 0 50px var(--teal-glow); }
  .about-face-left   { transform: translateX(-18px) rotateY(-90deg); width: 36px; height: 160px; left: 12px; border-radius: 10px 0 0 10px; background: var(--teal-dark); opacity: 0.6; }
  .about-face-right  { transform: translateX(160px) rotateY(90deg); width: 36px; height: 160px; left: 30px; border-radius: 0 10px 10px 0; background: var(--teal-dark); opacity: 0.6; }
  .about-face-top    { transform: translateY(-18px) rotateX(90deg); height: 36px; top: 12px; background: var(--teal); opacity: 0.5; }
  .about-face-bottom { transform: translateY(160px) rotateX(-90deg); height: 36px; top: 30px; background: var(--teal-dark); opacity: 0.4; }
  .about-face svg { width: 65%; height: 65%; }
  .grid-deco { position: absolute; inset: -30px; background-image: linear-gradient(rgba(46,196,160,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(46,196,160,0.05) 1px, transparent 1px); background-size: 30px 30px; border-radius: 20px; z-index: -1; }

  /* ─── CTA / CONTACT ─── */
  .cta-band { background: var(--charcoal); border-top: 1px solid rgba(46,196,160,0.08); padding: 6rem 2rem; position: relative; z-index: 1; }
  .cb-card { position: relative; overflow: hidden; max-width: 520px; margin: 0 auto; border-radius: 28px; padding: 3.5rem 2.5rem 3rem; text-align: center; cursor: crosshair; background: #141716; border: 1px solid rgba(255,255,255,0.07); transition: background 0.85s cubic-bezier(0.4,0,0.2,1), border-color 0.85s ease, box-shadow 0.85s ease; }
  .cb-card.teal-active { background: linear-gradient(145deg, #0f4a28 0%, #0a3320 35%, #072a19 65%, #041a10 100%); border-color: rgba(46,196,160,0.2); box-shadow: 0 0 80px rgba(46,196,160,0.12), 0 0 180px rgba(46,196,160,0.05); }
  .cb-ring { position: absolute; border-radius: 50%; pointer-events: none; border: 1.5px solid rgba(46,232,128,0.18); transition: opacity 0.6s ease; }
  .cb-ring-1 { width:160px; height:160px; top:-55px; right:-55px; opacity:0; }
  .cb-ring-2 { width:100px; height:100px; top:-32px; right:-32px; border-color:rgba(46,232,128,0.1); opacity:0; }
  .teal-active .cb-ring-1, .teal-active .cb-ring-2 { opacity:1; }
  .cb-dot-wrap { position: absolute; top: 2rem; right: 2rem; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(46,232,128,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.5); transition: opacity 0.5s ease 0.2s, transform 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.2s; pointer-events: none; }
  .teal-active .cb-dot-wrap { opacity: 1; transform: scale(1); }
  .cb-dot-core { width: 18px; height: 18px; border-radius: 50%; background: #2ee880; box-shadow: 0 0 12px rgba(46,232,128,0.7); animation: dotPulse 2s ease-in-out infinite; }
  @keyframes dotPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.15);opacity:.8} }
  .cb-ripple-wrap { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
  .cb-ripple-ring { position: absolute; width: 0; height: 0; border-radius: 50%; border: 2px solid rgba(46,196,160,0.5); transform: translate(-50%,-50%); animation: cbRippleExpand 1.4s cubic-bezier(0.2,0.8,0.3,1) forwards; }
  @keyframes cbRippleExpand { 0%{width:0;height:0;opacity:.9} 100%{width:800px;height:800px;opacity:0} }
  .cb-heading { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem,5.5vw,2.6rem); font-weight: 700; color: #ffffff; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.3rem; position: relative; z-index: 1; }
  .cb-accent { color: #2ee880; }
  .cb-sub { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; color: rgba(255,255,255,0.38); line-height: 1.8; max-width: 380px; margin: 0 auto 2.2rem; position: relative; z-index: 1; }
  .cb-email-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1.1rem 1.8rem 1.1rem 1.5rem; background: #2ee880; border-radius: 14px; color: #061a10; font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; text-decoration: none; margin-bottom: 1.1rem; position: relative; z-index: 1; transition: transform 0.18s, box-shadow 0.18s, background 0.2s; }
  .cb-email-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(46,232,128,0.35); background: #3df590; }
  .cb-email-btn .cb-email-arrow { font-size: 1.1rem; }
  .cb-email-btn.cb-flash { animation: emailFlash 0.5s ease forwards; }
  @keyframes emailFlash { 0%{background:#2ee880;box-shadow:0 0 0 0 rgba(46,232,128,0.8)} 40%{background:#ffffff;box-shadow:0 0 0 18px rgba(46,232,128,0)} 100%{background:#2ee880;box-shadow:none} }
  .cb-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; position: relative; z-index: 1; }
  .cb-link-btn { display: flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.85rem 1rem; border-radius: 14px; font-family: 'Space Grotesk', sans-serif; font-size: 0.88rem; font-weight: 600; text-decoration: none; cursor: pointer; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.65); transition: background 0.4s, border-color 0.4s, color 0.2s, transform 0.15s; }
  .teal-active .cb-link-btn { background: rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.08); }
  .cb-link-btn:hover { transform: translateY(-1px); color: #fff; }
  .cb-link-btn.cb-flash { animation: linkPop 0.5s ease forwards; }
  @keyframes linkPop { 0%{transform:scale(1)} 30%{transform:scale(0.96);background:rgba(46,232,128,0.2);color:#2ee880;border-color:rgba(46,232,128,0.5)} 65%{transform:scale(1.03)} 100%{transform:scale(1)} }

  /* ─── FOOTER ─── */
  footer { background: var(--charcoal); border-top: 1px solid rgba(46,196,160,0.08); padding: 3rem 2rem; text-align: center; z-index: 1; position: relative; }
  .footer-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.04em; color: var(--teal); margin-bottom: 0.5rem; }
  .footer-kanji { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 0.7rem; letter-spacing: 0.3em; color: var(--muted); margin-bottom: 1.5rem; }
  .footer-links { display: flex; gap: 2rem; justify-content: center; list-style: none; margin-bottom: 2rem; flex-wrap: wrap; }
  .footer-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; letter-spacing: 0.04em; transition: color 0.2s; }
  .footer-links a:hover { color: var(--teal); }
  .footer-copy { font-size: 0.72rem; color: rgba(107,126,120,0.5); letter-spacing: 0.05em; }

  /* ─── LOGO PORTAL OVERLAY ─── */
  #logo-portal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; pointer-events: none; overflow: hidden; }
  #portal-backdrop { position: absolute; inset: 0; background: radial-gradient(circle at center, #0a0c0b 0%, #0d0f0e 100%); clip-path: circle(0% at 50% 50%); transition: clip-path 0.72s cubic-bezier(0.77,0,0.18,1); }
  #logo-portal.open #portal-backdrop { clip-path: circle(150% at 50% 50%); }
  #portal-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
  .p-ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(46,196,160,0); width: 0; height: 0; }
  #logo-portal.open .p-ring:nth-child(1) { animation: ringBurst 0.9s 0.1s cubic-bezier(0.2,0.8,0.4,1) forwards; }
  #logo-portal.open .p-ring:nth-child(2) { animation: ringBurst 0.9s 0.22s cubic-bezier(0.2,0.8,0.4,1) forwards; }
  #logo-portal.open .p-ring:nth-child(3) { animation: ringBurst 0.9s 0.36s cubic-bezier(0.2,0.8,0.4,1) forwards; }
  @keyframes ringBurst { 0%{width:0;height:0;border-color:rgba(46,196,160,0.8);margin:0} 80%{border-color:rgba(46,196,160,0.2)} 100%{width:100vmax;height:100vmax;margin:calc(-50vmax) 0 0 calc(-50vmax);border-color:rgba(46,196,160,0)} }
  #portal-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg,transparent,transparent 39px,rgba(46,196,160,0.04) 40px),repeating-linear-gradient(90deg,transparent,transparent 39px,rgba(46,196,160,0.04) 40px); opacity: 0; transition: opacity 0.3s 0.5s; }
  #logo-portal.open #portal-scan { opacity: 1; }
  #portal-scan::after { content:''; position:absolute; left:0; right:0; height:2px; background:linear-gradient(90deg,transparent,rgba(46,196,160,0.6),transparent); top:-4px; animation:none; }
  #logo-portal.open #portal-scan::after { animation: scanLine 1.4s 0.5s ease-in-out forwards; }
  @keyframes scanLine { 0%{top:-4px;opacity:1} 100%{top:100%;opacity:0} }
  #portal-logo-stage { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2rem; opacity: 0; transform: scale(0.5) rotateY(90deg); transition: opacity 0.5s 0.45s, transform 0.7s 0.4s cubic-bezier(0.34,1.56,0.64,1); }
  #logo-portal.open #portal-logo-stage { opacity: 1; transform: scale(1) rotateY(0deg); }
  #portal-cube-wrap { width: 220px; height: 220px; perspective: 700px; }
  #portal-cube { width: 100%; height: 100%; transform-style: preserve-3d; animation: portalSpin 6s linear infinite paused; }
  #logo-portal.open #portal-cube { animation-play-state: running; }
  @keyframes portalSpin { 0%{transform:rotateY(0deg) rotateX(10deg)} 100%{transform:rotateY(360deg) rotateX(10deg)} }
  .pc-face { position: absolute; width: 180px; height: 180px; left: 20px; top: 20px; border-radius: 24px; border: 2px solid var(--teal); display: flex; align-items: center; justify-content: center; backface-visibility: visible; }
  .pc-front { transform:translateZ(22px); background:rgba(10,12,11,0.97); box-shadow:0 0 60px rgba(46,196,160,0.3),inset 0 0 40px rgba(46,196,160,0.06); }
  .pc-back  { transform:translateZ(-22px) rotateY(180deg); background:rgba(10,12,11,0.97); box-shadow:0 0 60px rgba(46,196,160,0.3),inset 0 0 40px rgba(46,196,160,0.06); }
  .pc-left  { transform:translateX(-22px) rotateY(-90deg); width:44px; height:180px; left:-2px; border-radius:12px 0 0 12px; background:linear-gradient(180deg,var(--teal-dark),#0d2a22); }
  .pc-right { transform:translateX(180px) rotateY(90deg); width:44px; height:180px; left:20px; border-radius:0 12px 12px 0; background:linear-gradient(180deg,var(--teal),var(--teal-dark)); opacity:.7; }
  .pc-top   { transform:translateY(-22px) rotateX(90deg); height:44px; top:-2px; border-radius:12px 12px 0 0; background:linear-gradient(90deg,var(--teal-dark),var(--teal)); opacity:.5; }
  .pc-bottom{ transform:translateY(180px) rotateX(-90deg); height:44px; top:20px; border-radius:0 0 12px 12px; background:var(--teal-dark); opacity:.3; }
  .pc-face svg { width: 72%; height: 72%; }
  #portal-particles { position: absolute; inset: 0; pointer-events: none; }
  .portal-dot { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); top: 50%; left: 50%; opacity: 0; }
  #logo-portal.open .portal-dot { animation: dotBurst var(--dur) var(--delay) cubic-bezier(0.2,0.8,0.4,1) forwards; }
  @keyframes dotBurst { 0%{transform:translate(-50%,-50%) translate(0,0);opacity:1} 70%{opacity:.6} 100%{transform:translate(-50%,-50%) translate(var(--tx),var(--ty));opacity:0} }
  #portal-wordmark { text-align: center; }
  #portal-wordmark .pw-kanji { font-family:'Noto Serif JP',serif; font-weight:300; font-size:1rem; letter-spacing:.6em; color:var(--teal); opacity:.7; display:block; margin-bottom:.3rem; }
  #portal-wordmark .pw-name { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:2.2rem; letter-spacing:.12em; color:var(--off-white); display:block; text-transform:uppercase; }
  #portal-wordmark .pw-tag { font-family:'Space Mono',monospace; font-size:.65rem; letter-spacing:.4em; color:var(--muted); text-transform:uppercase; display:block; margin-top:.5rem; }
  #logo-portal.open .pw-name { animation: glitchIn 0.6s 0.55s both; }
  @keyframes glitchIn { 0%{clip-path:inset(0 100% 0 0)} 20%{clip-path:inset(0 60% 0 0)} 40%{clip-path:inset(30% 30% 30% 0)} 60%{clip-path:inset(0 10% 0 0)} 80%{clip-path:inset(0 0 0 0);opacity:.8} 100%{clip-path:inset(0 0 0 0);opacity:1} }
  #portal-close-hint { position:absolute; bottom:2.5rem; left:50%; transform:translateX(-50%); font-family:'Space Mono',monospace; font-size:.62rem; letter-spacing:.3em; color:var(--muted); text-transform:uppercase; opacity:0; transition:opacity .4s 1s; display:flex; align-items:center; gap:.6rem; cursor:pointer; z-index:3; }
  #logo-portal.open #portal-close-hint { opacity:.5; }
  #portal-close-hint:hover { opacity:1!important; color:var(--teal); }
  #portal-close-hint svg { width:14px; height:14px; }
  .portal-corner { position:absolute; width:40px; height:40px; border-color:rgba(46,196,160,0.3); border-style:solid; opacity:0; transition:opacity .4s .7s; }
  #logo-portal.open .portal-corner { opacity:1; }
  .portal-corner.tl{top:24px;left:24px;border-width:2px 0 0 2px} .portal-corner.tr{top:24px;right:24px;border-width:2px 2px 0 0} .portal-corner.bl{bottom:24px;left:24px;border-width:0 0 2px 2px} .portal-corner.br{bottom:24px;right:24px;border-width:0 2px 2px 0}

  /* ─── SCROLL REVEAL ─── */
  .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* team member */

  
    .team { background: var(--charcoal-2); border-top: 1px solid rgba(46,196,160,0.08); }
  .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
  .team-card {
    background: var(--charcoal-3);
    border: 1px solid rgba(46,196,160,0.08);
    border-radius: 14px;
    overflow: hidden;
    cursor: default;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
  }
  .team-card:hover { transform: translateY(-6px); border-color: rgba(46,196,160,0.4); box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 20px rgba(46,196,160,0.1); }
  .team-avatar { width: 100%; aspect-ratio: 1; position: relative; overflow: hidden; background: var(--charcoal-4); }
  .team-avatar svg { width: 100%; height: 100%; }
  .team-card-body { padding: 1.1rem 1.2rem 1.3rem; border-top: 1px solid rgba(46,196,160,0.08); position: relative; }
  .team-name { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.2rem; color: var(--off-white); }
  .team-role { font-size: 0.72rem; color: var(--teal); font-family: 'Space Mono', monospace; letter-spacing: 0.04em; margin-bottom: 0.6rem; text-transform: uppercase; }
  .team-bio { font-size: 0.78rem; color: var(--muted); line-height: 1.65; }
  .team-links { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
  .team-link {
    width: 28px; height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(46,196,160,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }
  .team-link:hover { border-color: var(--teal); color: var(--teal); background: rgba(46,196,160,0.08); }
  .team-link svg { width: 13px; height: 13px; }
  .team-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(46,196,160,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  .team-card:hover::after { opacity: 1; }



  /* MOBILE NAV TOGGLE (hamburger) */
  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
  }
  .nav-toggle span {
    width: 24px; height: 2px;
    background: var(--teal);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  @media (max-width: 768px) {
    nav { padding: 1rem 1.2rem; }

    .nav-toggle { display: flex; }

    /* Slide-in mobile menu (replaces old display:none which hid navigation entirely) */
    .nav-links {
      display: flex;
      position: fixed;
      top: 0;
      right: -100%;
      width: 70%;
      max-width: 300px;
      height: 100vh;
      background: var(--charcoal-2);
      border-left: 1px solid rgba(46,196,160,0.15);
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 2.2rem;
      transition: right 0.35s ease;
      box-shadow: -10px 0 40px rgba(0,0,0,0.4);
      z-index: 100;
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 0.95rem; }

    section { padding: 4rem 1.25rem; }
    .hero { padding: 6rem 1.25rem 3rem; }

    .hero-title { font-size: 2.2rem; }
    .hero-sub { font-size: 0.95rem; }
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }

    .kiroku-features { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .cta-band { padding: 3.5rem 1.25rem; }
    .cb-card { padding: 2.6rem 1.6rem 2.2rem; }
    .nav-logo-text { font-size: 1rem; }

    /* Scale the whole 3D cube as one unit -- do not resize individual
       faces/widths, since their transforms (translateZ, translateX, etc.)
       are hand-tuned to the 200px box and misalign if resized directly. */
    .logo-3d-container { transform: scale(0.78); }
    .about-logo-3d { transform: scale(0.85); }
    #portal-cube-wrap { transform: scale(0.8); }
  }

  @media (max-width: 420px) {
    .cb-links-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    #portal-wordmark .pw-name { font-size: 1.7rem; }
    .logo-3d-container { transform: scale(0.65); }
    .about-logo-3d { transform: scale(0.7); }
    #portal-cube-wrap { transform: scale(0.68); }
    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas .btn-primary, .hero-ctas .btn-ghost { min-width: 0; width: 100%; }
  }