
  :root {
    --bg: #0a0a0a;
    --bg-raised: #111111;
    --line: rgba(255, 198, 126, 0.14);
    --line-soft: #2e2e2e;
    --gold: #ffc67e;
    --gold-bright: #ffd9a3;
    --gold-dim: rgba(255, 198, 126, 0.55);
    --accent2: #be5cd8;
    --text: #e8e8e8;
    --text-dim: #b8b8b8;
    --text-faint: #8a8a8a;
    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  ::selection { background: rgba(255, 198, 126, 0.25); color: #fff; }

  /* ---------- starfield (same canvas engine as the home page) ---------- */
  #starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  /* ---------- Rikoukei texture layers (match home page) ---------- */
  .grain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.06;
    mix-blend-mode: overlay;
  }
  .scan-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 198, 126, 0.015) 3px,
      rgba(255, 198, 126, 0.015) 4px
    );
  }

  /* ---------- Scroll/load reveal (same as home page) ---------- */
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0s);
  }
  .reveal.visible { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
  }

  /* ---------- Custom cursor (same as home page, desktop only) ---------- */
  @media (pointer: fine) {
    body.cursor-custom, body.cursor-custom a, body.cursor-custom button { cursor: none; }
    .cursor-reticle {
      position: fixed;
      top: 0; left: 0;
      width: 24px; height: 24px;
      pointer-events: none;
      z-index: 10000;
      transform: translate(-50%, -50%);
      will-change: transform;
    }
    .cursor-reticle::before,
    .cursor-reticle::after {
      content: "";
      position: absolute;
      background: var(--gold);
    }
    .cursor-reticle::before { top: 50%; left: 2px; right: 2px; height: 1px; transform: translateY(-50%); }
    .cursor-reticle::after { left: 50%; top: 2px; bottom: 2px; width: 1px; transform: translateX(-50%); }
    .cursor-ring {
      position: fixed;
      top: 0; left: 0;
      width: 24px; height: 24px;
      border: 1.5px solid var(--gold);
      pointer-events: none;
      z-index: 10000;
      transform: translate(-50%, -50%);
      opacity: 0.6;
      will-change: transform;
    }
  }
  @media (pointer: coarse) {
    .cursor-reticle, .cursor-ring { display: none; }
  }

  /* ---------- top bar ---------- */
  .topbar {
    position: relative; z-index: 5;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 2px solid var(--line-soft);
  }
  .topbar .nav-left {
    display: flex; align-items: center; gap: 14px; min-width: 0;
  }
  .topbar .home-link {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    font-variant: small-caps;
    text-decoration: none;
    color: var(--text-faint);
    white-space: nowrap;
    transition: color 0.2s;
  }
  .topbar .home-link:hover { color: var(--accent2); }
  .topbar .crumb-sep { color: var(--line-soft); font-family: var(--font-mono); }
  .topbar .brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-weight: 800; font-size: 18px; letter-spacing: .06em;
    color: #ffffff; text-transform: uppercase; text-decoration: none;
  }
  .topbar
  /* Product mark: the real SVG asset, not an improvised circle. */
  .brand .mark { width: 26px; height: 26px; flex-shrink: 0; display: block; overflow: visible; }
  /* Company mark, deliberately subordinate to the product mark. */
  .home-link { display: inline-flex; align-items: center; gap: 7px; }
  .home-link .co-mark { width: 15px; height: 15px; flex-shrink: 0; opacity: .7; transition: opacity .2s; }
  .home-link:hover .co-mark { opacity: 1; }

  .home-btn {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
    text-transform: uppercase; text-decoration: none;
    color: var(--gold); border: 1px solid var(--gold-dim);
    padding: 9px 16px; transition: background .2s, color .2s;
  }
  .home-btn:hover { background: var(--gold); color: #0a0a0a; }
  @media (max-width: 520px) {
    .topbar { padding: 14px 16px; }
    .topbar .nav-left { gap: 10px; }
    .topbar .brand { font-size: 15px; }
    .topbar .brand .brand-name { display: none; }
    .topbar .home-link { font-size: 11px; letter-spacing: .1em; }
    .home-btn { font-size: 11px; padding: 8px 12px; }
  }

  /* ---------- heading ---------- */
  .head { position: relative; z-index: 5; text-align: center; margin: 48px 16px 8px; }
  .head h1 {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(28px, 4.6vw, 52px);
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--text);
  }
  .head h1 em { color: var(--gold); font-style: normal; }
  .head p {
    margin-top: 12px; font-size: 15px; letter-spacing: .24em;
    text-transform: uppercase; color: var(--text-dim);
  }

  /* ---------- orbit ---------- */
  .space {
    position: relative; z-index: 5;
    width: min(80vw, 580px); height: min(80vw, 580px);
    margin: 18px auto 44px;
  }
  .ring {
    position: absolute; inset: 8%; border-radius: 50%;
    border: 1px dashed rgba(255,198,126,.22);
  }
  .ring.inner { inset: 28%; border-color: rgba(190,92,216,.18); }

  .center {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
  }
  .core-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; text-align: center; text-decoration: none;
    width: clamp(150px, 24vw, 200px); height: clamp(150px, 24vw, 200px);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255,198,126,.22), rgba(17,17,17,.95) 60%);
    border: 1px solid var(--gold);
    box-shadow: 0 0 30px rgba(255,198,126,.22), inset 0 0 24px rgba(255,198,126,.08);
    padding: 14px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
  }
  /* Pulse lives on a glow layer animating opacity (composited),
     not on box-shadow (repaints a large blur every frame). */
  .core-btn::before {
    content: ""; position: absolute; inset: -28px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,198,126,.3), transparent 68%);
    z-index: -1;
    pointer-events: none;
    animation: glow-pulse 3.2s ease-in-out infinite;
  }
  .core-btn .tag { font-size: 10px; letter-spacing: .26em; color: var(--gold-dim); text-transform: uppercase; }
  .core-btn .label {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(15px, 2.4vw, 20px); letter-spacing: .08em;
    text-transform: uppercase; color: var(--gold-bright); line-height: 1.25;
  }
  .core-btn:hover {
    transform: scale(1.04);
    border-color: var(--gold-bright);
    box-shadow: 0 0 54px rgba(255,198,126,.45), inset 0 0 30px rgba(255,198,126,.14);
  }
  @keyframes glow-pulse {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 0.85; }
  }

  .orbit {
    position: absolute; inset: 0;
    animation: spin 60s linear infinite;
  }
  .space:hover .orbit, .space:hover .sat-inner { animation-play-state: paused; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .sat {
    position: absolute; top: 50%; left: 50%;
    width: 0; height: 0;
    transform: rotate(var(--a)) translateY(calc(min(36vw, 240px) * -1));
  }
  .sat-inner {
    width: 0; height: 0;
    transform: rotate(calc(var(--a) * -1));
    animation: unspin 60s linear infinite;
  }
  @keyframes unspin { to { transform: rotate(calc(var(--a) * -1 - 360deg)); } }
  .sat a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-decoration: none; text-align: center;
    position: absolute; left: 0; top: 0;
    transform: translate(-50%, -50%);
    width: clamp(120px, 18vw, 158px); padding: 14px 10px;
    background: rgba(17,17,17,.92);
    border: 1px solid var(--line);
    transition: border-color .2s, box-shadow .2s;
  }
  .sat a:hover {
    border-color: var(--gold);
    box-shadow: 0 0 24px rgba(255,198,126,.25);
  }
  .sat .go { font-size: 10px; letter-spacing: .24em; color: var(--gold-bright); text-transform: uppercase; }
  .sat .name {
    font-family: var(--font-mono); font-weight: 600; font-size: 12px;
    letter-spacing: .06em; color: var(--text); text-transform: uppercase; line-height: 1.5;
  }

  .core-btn { position: relative; }
  .core-btn::after {
    content: ""; position: absolute; inset: -14px; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg 250deg, rgba(255,198,126,.8) 320deg, transparent 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    animation: halo-spin 7s linear infinite;
    pointer-events: none;
  }
  @keyframes halo-spin { to { transform: rotate(360deg); } }

  /* ---------- mobile: stacked list ---------- */
  @media (max-width: 620px) {
    .space { width: auto; height: auto; margin: 34px 18px 50px; }
    .ring { display: none; }
    .center { position: static; transform: none; display: flex; justify-content: center; margin-bottom: 22px; }
    .orbit { position: static; animation: none; display: grid; gap: 12px; }
    .sat { position: static; transform: none; width: auto; height: auto; }
    .sat-inner { transform: none; animation: none; width: auto; height: auto; }
    .sat a { position: static; transform: none; width: 100%; flex-direction: row; justify-content: space-between; padding: 15px 16px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .orbit, .sat-inner, .core-btn, .core-btn::after, .core-btn::before { animation: none !important; }
  }

  /* ---------- Mobile performance (match home page) ----------
     Drop the GPU-heavy layers on small screens: blend-mode grain
     and scanlines. The starfield is drawn once, with no drift loop. */
  @media (max-width: 768px) {
    .grain, .scan-layer { display: none; }
    .reveal {
      transform: translateY(14px);
      transition-duration: 0.45s;
    }
  }

  /* ---------- footer ---------- */
  .foot-wrap { position: relative; z-index: 5; max-width: 1120px; margin: 0 auto; padding: 0 28px 36px; }
  .foot-links {
    margin-top: 10px;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
  }
  .foot-links .links { display: flex; gap: 18px 26px; flex-wrap: wrap; justify-content: center; }
  @media (max-width: 640px) {
    .foot-links { justify-content: center; text-align: center; }
  }
  .foot-links a { color: var(--text-faint); text-decoration: none; transition: color 0.2s; }
  .foot-links a:hover { color: var(--gold); }

  /* ---------- warp-out (same effect as home page) ---------- */
  .warp-out { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
  .warp-out .wfill {
    position: absolute; inset: 0; background: #0a0a0a;
    clip-path: circle(0px at var(--cx) var(--cy));
    animation: warp-fill 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.1s;
  }
  .warp-out .wring {
    position: absolute; left: var(--cx); top: var(--cy);
    width: 16px; height: 16px; margin: -8px 0 0 -8px;
    border: 2px solid #ffc67e; border-radius: 50%; opacity: 0;
    animation: warp-out-ring 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .warp-out .wring:nth-child(3) { animation-delay: 0.09s; border-width: 1px; }
  .warp-out .wring:nth-child(4) { animation-delay: 0.18s; border-width: 1px; border-color: #be5cd8; }
  .warp-out .wlabel {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em;
    color: #ffc67e; opacity: 0;
    animation: warp-out-label 0.35s ease forwards 0.4s;
  }
  @keyframes warp-fill { to { clip-path: circle(150% at var(--cx) var(--cy)); } }
  @keyframes warp-out-ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(70); opacity: 0; } }
  @keyframes warp-out-label { to { opacity: 1; } }

  /* ---------- leave-confirmation modal ---------- */
  #leave-modal{position:fixed;inset:0;z-index:9600;display:none;align-items:center;justify-content:center;background:rgba(5,6,10,0.72);backdrop-filter:blur(3px)}
  #leave-modal.open{display:flex}
  #leave-modal .lm-card{background:var(--bg-raised);border:1px solid var(--line);max-width:440px;width:calc(100% - 48px);padding:28px 26px;position:relative}
  #leave-modal .lm-title{font-family:var(--font-mono);font-size:13px;letter-spacing:.3em;color:var(--gold);margin:0 0 14px;text-transform:uppercase}
  #leave-modal .lm-desc{font-family:var(--font-mono);font-size:12.5px;color:var(--text-faint);line-height:1.7;margin:0 0 14px;padding-bottom:14px;border-bottom:1px solid var(--line)}
  #leave-modal .lm-desc:empty{display:none}
  #leave-modal .lm-text{font-family:var(--font-mono);font-size:13px;color:var(--text-dim);line-height:1.7}
  #leave-modal .lm-actions{display:flex;gap:12px;margin-top:22px}
  #leave-modal .lm-actions button{font-family:var(--font-mono);font-size:12px;letter-spacing:.18em;text-transform:uppercase;padding:10px 26px;cursor:pointer;transition:background .2s,color .2s}
  #leave-modal .lm-yes{background:var(--gold);color:#0a0a0a;border:1px solid var(--gold)}
  #leave-modal .lm-yes:hover{background:var(--gold-bright)}
  #leave-modal .lm-no{background:none;color:var(--gold);border:1px solid var(--gold-dim)}
  #leave-modal .lm-no:hover{background:rgba(255,198,126,.12)}
  #leave-modal .lm-close{position:absolute;top:10px;right:14px;background:none;border:none;color:var(--text-dim);font-size:20px;cursor:pointer;line-height:1}

  /* ---------- warp-in arrival (same as home page) ---------- */
  #warp-in {
    position: fixed; inset: 0; z-index: 9500;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
  }
  #warp-in.done { opacity: 0; pointer-events: none; }
  #warp-in .warc { position: absolute; border: 2px solid var(--gold); border-radius: 50%; opacity: 0; }
  #warp-in .warc.r1 { width: 26vmin; height: 26vmin; }
  #warp-in .warc.r2 { width: 46vmin; height: 46vmin; border-color: var(--accent2); border-width: 1px; }
  #warp-in .warc.r3 { width: 68vmin; height: 68vmin; border-width: 1px; }
  #warp-in .wdot { position: absolute; width: 10px; height: 10px; background: var(--gold); border-radius: 50%; opacity: 0; }
  #warp-in .winlabel {
    position: absolute; margin-top: 42vmin;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em;
    color: var(--gold-dim); opacity: 0;
  }
  #warp-in.play .warc { animation: warp-ring 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
  #warp-in.play .warc.r2 { animation-delay: 0.1s; }
  #warp-in.play .warc.r3 { animation-delay: 0.2s; }
  #warp-in.play .wdot { animation: warp-dot 0.9s ease forwards 0.15s; }
  #warp-in.play .winlabel { animation: warp-label 0.8s ease forwards 0.25s; }
  @keyframes warp-ring {
    0% { transform: scale(2.8); opacity: 0; }
    30% { opacity: 0.9; }
    100% { transform: scale(1); opacity: 0.15; }
  }
  @keyframes warp-dot {
    0% { transform: scale(0); opacity: 0; }
    40% { transform: scale(1.6); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
  }
  @keyframes warp-label {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  /* ---------- contact modal (same as home page) ---------- */
  #contact-modal{position:fixed;inset:0;z-index:9600;display:none;align-items:center;justify-content:center;background:rgba(5,6,10,0.72);backdrop-filter:blur(3px)}
  #contact-modal.open{display:flex}
  #contact-modal .cm-card{background:var(--bg-raised);border:1px solid var(--line);max-width:420px;width:calc(100% - 48px);padding:28px 26px;position:relative}
  #contact-modal .cm-title{font-family:var(--font-mono);font-size:13px;letter-spacing:.3em;color:var(--gold);margin:0 0 14px}
  #contact-modal .cm-desc{font-family:var(--font-mono);font-size:12.5px;color:var(--text-dim);line-height:1.75;margin:0 0 18px;padding-bottom:16px;border-bottom:1px solid var(--line)}
  #contact-modal .cm-row{margin:14px 0}
  #contact-modal .cm-label{font-family:var(--font-mono);font-size:11px;letter-spacing:.18em;color:var(--text-dim);display:block;margin-bottom:6px;text-transform:uppercase}
  #contact-modal .cm-val{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
  #contact-modal .cm-email{font-family:var(--font-mono);font-size:14px;color:var(--text);user-select:all;word-break:break-all}
  #contact-modal button.cm-copy{font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;color:var(--gold);background:none;border:1px solid var(--gold-dim);padding:5px 10px;cursor:pointer}
  #contact-modal a.cm-link{font-family:var(--font-mono);font-size:13px;color:var(--gold);text-decoration:underline;text-underline-offset:3px}
  #contact-modal .cm-close{position:absolute;top:10px;right:14px;background:none;border:none;color:var(--text-dim);font-size:20px;cursor:pointer;line-height:1}

  /* ---------- referral modal ---------- */
  #referral-modal{position:fixed;inset:0;z-index:9600;display:none;align-items:center;justify-content:center;background:rgba(5,6,10,0.72);backdrop-filter:blur(3px)}
  #referral-modal.open{display:flex}
  #referral-modal .cm-card{background:var(--bg-raised);border:1px solid var(--line);max-width:470px;width:calc(100% - 48px);padding:28px 26px;position:relative;max-height:calc(100vh - 48px);overflow-y:auto}
  #referral-modal .cm-title{font-family:var(--font-mono);font-size:13px;letter-spacing:.3em;color:var(--gold);margin:0 0 14px}
  #referral-modal .cm-desc{font-family:var(--font-mono);font-size:12.5px;color:var(--text-dim);line-height:1.75;margin:0 0 18px;padding-bottom:16px;border-bottom:1px solid var(--line)}
  #referral-modal .cm-row{margin:14px 0}
  #referral-modal .cm-label{font-family:var(--font-mono);font-size:11px;letter-spacing:.18em;color:var(--text-dim);display:block;margin-bottom:6px;text-transform:uppercase}
  #referral-modal .cm-val{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
  #referral-modal .cm-email{font-family:var(--font-mono);font-size:14px;color:var(--text);user-select:all;word-break:break-all}
  #referral-modal button.cm-copy{font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;color:var(--gold);background:none;border:1px solid var(--gold-dim);padding:5px 10px;cursor:pointer}
  #referral-modal a.cm-link{font-family:var(--font-mono);font-size:13px;color:var(--gold);text-decoration:underline;text-underline-offset:3px}
  #referral-modal .cm-close{position:absolute;top:10px;right:14px;background:none;border:none;color:var(--text-dim);font-size:20px;cursor:pointer;line-height:1}

  /* The topbar now carries the actions that used to sit in the footer. Each of these leaves the page or opens a dialog, so all are drawn as buttons, matching how the home page separates buttons from its plain section links. */
  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  /* Same look as the Home button, but deliberately a different class: .home-btn carries the warp-out click handler that sends the visitor to the home page, which must not fire on buttons that open a dialog instead. */
  .topbar-btn {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    padding: 9px 16px;
    transition: background .2s, color .2s;
  }
  .topbar-btn:hover {
    background: var(--gold);
    color: #12100a;
  }
