@charset "UTF-8";
@layer fallback, base, home, folio, dialogs, effects;

@layer base {
  /* Design tokens */
  :root {
    --ink: #172025;
    --paper: #f2f1ec;
    --mist: #d6d9d9;
    --dark: #11151b;
    --orange: #e89861;
    --line: rgba(255, 255, 255, .16);
    --muted: #939c9f;
    --hero0: 1;
    --hero1: 0;
    --hero-ui: 1;

    --obsidian-bg: #0b0e13;
    --obsidian-deep: #070a0e;
    --ink-primary: #f2ede4;
    --ink-soft: rgba(242, 237, 228, .76);
    --ink-muted: rgba(242, 237, 228, .58);
    --amber-gold: #dfb485;
    --amber-gold-bright: #f0cba0;
    --hairline: rgba(242, 237, 228, .13);
    --hairline-gold: rgba(223, 180, 133, .38);
    --cta-bg: #dfb485;
    --cta-fg: #0e1217;

    --editorial-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --editorial-sans: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
    --editorial-mono: "Cascadia Mono", Consolas, "Courier New", monospace;

    --reading-body: 17px;
    --reading-meta: 13px;
    --reading-action: 16px;

    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--ink);
    background: var(--dark);
    font-synthesis: none;
  }

  /* Base reset & accessibility */
  * { box-sizing: border-box; }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-gutter: stable;
  }
  html:has(body:not([data-view="home"])) {
    scroll-padding-top: calc(var(--site-header-height, 76px) + 12px);
  }
  body { margin: 0; }
  body.is-intro,
  body.menu-open { overflow: hidden; }
  body:not([data-view="home"]) {
    background: var(--obsidian-bg);
    color: var(--ink-primary);
  }
  body:not([data-view="home"]) #scene { opacity: 0; }
  body[data-view]:is([data-view="products"], [data-view="news"]) #scene {
    display: block;
    opacity: 1;
  }
  body.is-routing #scene { z-index: 110; }
  body.is-routing #view,
  body.is-intro #view { pointer-events: none; }
  body.is-routing #site-header { pointer-events: none; }

  button, input { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
  button {
    cursor: pointer;
    color: inherit;
    border: 0;
    background: none;
  }
  button svg { width: 22px; height: 22px; }
  button:disabled { cursor: wait; opacity: .55; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  picture { display: contents; }
  h1, h2, h3, p { margin: 0; }
  h1, h2, h3 { font-weight: 500; }

  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  [tabindex]:focus-visible {
    outline: 2px solid #d68d59;
    outline-offset: 5px;
  }
  ::selection { background: #d69360; color: #11151b; }

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

  .skip-link {
    position: fixed;
    top: 0;
    left: 16px;
    padding: 14px;
    background: #162130;
    color: #e9bd98;
    border: 1px solid #d5b59999;
    z-index: 300;
    transform: translateY(-130%);
  }
  .skip-link:focus { transform: none; }
  .noscript-message {
    padding: 150px 30px;
    background: var(--paper);
    min-height: 100vh;
  }

  .no-save-image,
  .image-protect-wrap {
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  .image-protect-wrap {
    position: relative;
    display: block;
    max-width: 100%;
  }
  .image-protect-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  /* Scene canvas & route transition shells */
  #view { position: relative; z-index: 1; outline: none; }
  #scene,
  #scene-fallback {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }
  #scene-fallback {
    background:
      radial-gradient(ellipse at 70% 42%, #b46a474a, transparent 46%),
      radial-gradient(ellipse at 30% 80%, #878d9960, transparent 60%),
      #161e27;
    display: none;
  }
  .motion-unavailable #scene-fallback,
  body[data-render-state="fallback"] #scene-fallback { display: block; }
  .route-veil {
    position: fixed;
    inset: 0;
    background: #bc815d;
    z-index: 115;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .route-wipe {
    position: fixed;
    inset: 0;
    z-index: 199;
    pointer-events: none;
    background: #21252b;
    transform: translateY(100%);
  }

  /* Shared header & navigation */
  #site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 26px 4.3%;
    color: #fff;
    border-bottom: 1px solid transparent;
    transition: padding .35s, background .35s, border-color .35s, color .35s;
    min-height: 100px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    min-width: 0;
  }
  .brand > span { min-width: 0; }
  .brand img { width: 37px; height: 40px; object-fit: contain; }
  .brand strong {
    display: block;
    font-size: 18px;
    letter-spacing: .065em;
    line-height: 1.5;
    font-weight: 600;
  }
  .brand small {
    display: block;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .08em;
    margin-top: 3px;
    opacity: .65;
  }

  #main-nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.4vw, 44px);
    margin-left: auto;
    font-size: 16px;
  }
  #main-nav a {
    position: relative;
    padding: 9px 0;
    white-space: nowrap;
  }
  #main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
  }
  #main-nav a:hover::after,
  #main-nav a.active::after { transform: scaleX(1); }

  .nav-contact {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-left: 1px solid #ffffff30;
    padding: 0 0 0 25px;
    font-size: 16px;
    white-space: nowrap;
  }
  .nav-contact span { margin-left: 16px; }
  .nav-contact:is(:hover, :focus-visible) {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
  }

  .header-tools { display: flex; gap: 14px; }
  .icon-button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 4px;
  }
  .menu-button { display: none; }

  /* Header state variants */
  body.header-solid #site-header {
    background: #0d1623f5;
    color: #f4ede4;
    border-color: #ffffff20;
    padding-top: 17px;
    padding-bottom: 17px;
    min-height: 80px;
  }
  body.header-solid #site-header .brand small { color: #c8beb3; }
  body[data-scene-context="ambient"] #site-header {
    background: #0d1623de;
    color: #f4ede4;
    border-color: #ffffff20;
  }
  body[data-scene-context="ambient"] #site-header .brand small { color: #c8beb3; }
  body[data-scene-context="ambient"] #site-header a.active::after { background: #eac3a1; }
  body.section-hero-visible #site-header {
    color: #f4eee8;
    background: #10192326;
    border-color: #ffffff20;
    backdrop-filter: blur(12px);
  }
  body.section-hero-visible #site-header .brand small { color: #e6d5c3; }
  body.section-hero-visible .brand strong { color: #f4eee8; }
  body.section-hero-visible .brand img { background: transparent; }
  body.section-hero-visible #site-header a.active::after { background: #efc59f; }

  body:not([data-view="home"]):not(.privacy-document) #site-header {
    background: #0b0e13f7;
    color: var(--ink-primary);
    border-bottom: 1px solid var(--hairline);
    padding-top: 17px;
    padding-bottom: 17px;
    min-height: 80px;
  }
  body:not([data-view="home"]):not(.privacy-document) #site-header .brand small { color: #c8beb3; }
  body.header-solid .nav-contact,
  body:not([data-view="home"]) .nav-contact { border-color: #ffffff30; }
  body.is-intro #site-header {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /* Navigation dropdown panel */
  .interaction-nav-panel {
    position: absolute;
    width: max-content;
    min-width: 165px;
    max-width: 220px;
    padding: 10px;
    border: 1px solid #55515f;
    border-radius: 12px;
    background: linear-gradient(#1b1b21, #222128);
    box-shadow: 0 16px 35px #0005;
    z-index: 80;
  }
  .interaction-nav-panel[hidden] { display: none; }
  .interaction-nav-panel::before {
    content: "";
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 24px;
    pointer-events: auto;
  }
  .interaction-nav-panel::after {
    content: "";
    position: absolute;
    top: -6px;
    left: var(--nub);
    width: 10px;
    height: 10px;
    background: #1b1b21;
    border-left: 1px solid #55515f;
    border-top: 1px solid #55515f;
    transform: rotate(45deg);
  }
  .interaction-nav-panel a,
  .interaction-nav-panel button {
    display: block;
    width: 100%;
    padding: 11px 16px;
    text-align: left;
    font-size: 13px;
    color: #cfcbd5;
    background: none;
    border: 0;
    white-space: nowrap;
    border-radius: 7px;
    cursor: pointer;
  }
  .interaction-nav-panel a:hover,
  .interaction-nav-panel button:hover {
    background: #34303d;
    color: #fff;
  }
  @media (min-width: 901px) {
    #site-header .interaction-nav-panel {
      padding: 5px 18px;
      background: #101419;
      border: 0;
      border-block: 1px solid #dfb48538;
      border-radius: 0;
      box-shadow: 0 10px 25px #0003;
    }
    #site-header .interaction-nav-panel::after { content: none; }
    #site-header .interaction-nav-panel :is(a, button) {
      border-radius: 0;
      padding: 11px 0;
      border: 0;
      text-decoration: none;
    }
    #site-header .interaction-nav-panel :is(a, button):is(:hover, :focus-visible) {
      background: none;
      color: #f2cda1;
      text-decoration: underline;
      text-underline-offset: .36em;
    }
  }

  /* Intro overlay & startup status loader */
  #intro-caption {
    position: fixed;
    z-index: 125;
    bottom: 10%;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    mix-blend-mode: difference;
    opacity: 0;
    pointer-events: none;
  }
  #intro-caption span { display: block; font-size: 16px; letter-spacing: .2em; }
  #intro-caption small { display: block; font-size: 12px; letter-spacing: .25em; margin-top: 14px; opacity: .45; }
  #intro-skip {
    position: fixed;
    bottom: 30px;
    right: 4.3%;
    z-index: 155;
    border-bottom: 1px solid #fff6;
    color: #fff;
    mix-blend-mode: difference;
    padding: 12px 0;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 25px;
  }
  #intro-skip span { margin-left: 24px; }
  body.is-intro #intro-skip { display: inline-flex; }
  body.is-intro #intro-caption { opacity: 1; }
  body.is-intro .hero-stage { visibility: hidden; }

  /* Startup feedback is independent of the optional module graph.
     Loader adapted from Uiverse.io by mrhyddenn:
     https://uiverse.io/mrhyddenn/tasty-crab-98
     Original: https://github.com/uiverse-io/galaxy/blob/main/loaders/mrhyddenn_tasty-crab-98.html
     MIT License - Copyright (c) 2026 mrhyddenn */
  #startup-status {
    position: fixed;
    z-index: 160;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(88vw, 520px);
    color: #fff;
    text-align: center;
    pointer-events: none;
  }
  #startup-status[hidden],
  #startup-status [data-startup-percent][hidden] { display: none; }
  #startup-status [data-startup-percent] {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .1em;
    font-family: Bahnschrift, "Roboto", system-ui, sans-serif;
    font-variant-numeric: lining-nums tabular-nums;
    font-size: clamp(40px, 5.6vw, 64px);
    font-weight: 450;
    line-height: 1;
    letter-spacing: -.025em;
  }
  #startup-status .startup-unit {
    font-size: .5em;
    font-weight: 500;
    letter-spacing: 0;
    color: #cad1d6;
  }
  #startup-status[data-state="loading"] [data-startup-message] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  #startup-status a {
    display: inline-block;
    margin-top: 12px;
    color: inherit;
    text-decoration: underline;
    pointer-events: auto;
  }
  #startup-status[data-state="error"] {
    top: auto;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    padding: 14px 20px;
    background: #20282c;
    border: 1px solid #ffffff30;
    font-size: 13px;
    line-height: 1.8;
  }
  #startup-status .startup-progress-loader {
    width: clamp(152px, 24vw, 200px);
    max-width: 100%;
    height: 8px;
    margin: 16px auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(221, 232, 242, .23);
  }
  #startup-status .startup-progress {
    width: var(--startup-progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: #f2f5f7;
  }
  #startup-status[data-state="error"] .startup-progress-loader { display: none; }
  #startup-status[data-state="loading"]:not([hidden]) ~ #view :is(.hero-copy, #hero-controls) { visibility: hidden; }

  /* Shared container & footer */
  .section-wrap { width: 84%; max-width: 1600px; margin: auto; }
  .site-footer {
    position: relative;
    z-index: 1;
    background: #10171b;
    color: #dce0dd;
    padding: 72px 0 calc(36px + env(safe-area-inset-bottom, 0px));
  }
  .site-footer .footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: clamp(32px, 5vw, 80px);
    padding-bottom: 55px;
  }
  .site-footer .footer-top > *,
  .site-footer .footer-brand > span { min-width: 0; }
  .footer-brand { display: flex; align-items: center; gap: 16px; }
  .footer-brand img { width: 42px; height: 42px; object-fit: contain; }
  .footer-brand small {
    display: block;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .08em;
    color: #8f989a;
  }
  .footer-brand strong {
    display: block;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
    margin-top: 8px;
    overflow-wrap: anywhere;
  }
  .footer-desc {
    font-size: 16px;
    line-height: 1.9;
    margin-top: 20px;
    color: #aeb9b9;
    max-width: 400px;
  }
  .site-footer .footer-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(12px, 3vw, 48px);
  }
  .footer-groups section {
    display: grid;
    align-content: start;
    gap: 0;
    min-width: 0;
  }
  .site-footer .footer-groups h2 {
    margin: 0 0 8px;
    padding: 0 0 9px;
    border-bottom: 1px solid var(--hairline-gold);
    color: var(--amber-gold);
    font: 500 12px/1.5 var(--editorial-sans);
    letter-spacing: .065em;
  }
  .site-footer .footer-groups :is(a, button) {
    display: flex;
    align-items: center;
    justify-self: start;
    min-height: 44px;
    padding: 0;
    text-align: left;
    border: 0;
    background: none;
    box-shadow: none;
    color: #ded8ce;
    cursor: pointer;
    font: 400 14.5px/1.5 var(--editorial-sans);
    text-decoration: none;
  }
  .site-footer .footer-groups :is(a, button):is(:hover, :focus-visible) {
    color: #f2cca1;
    text-decoration: underline;
    text-underline-offset: .32em;
  }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid #ffffff14;
    padding-top: 23px;
    color: #a0adad;
    font-size: 12px;
    line-height: 1.8;
  }
  .footer-bottom > span { font-size: 13px; letter-spacing: 0; line-height: 1.7; }
  .footer-legal {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
  }
  .footer-legal img {
    height: 12px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
  }
  .footer-legal a:hover { color: #bac3c4; }
  .footer-top-link {
    position: static;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
  }
  .footer-top-link:is(:hover, :focus-visible) {
    color: #f2cda1;
    text-decoration: underline;
    text-underline-offset: .3em;
  }

  /* Reveal & page transition animations */
  .reveal { transition: opacity .8s, transform .9s cubic-bezier(.2, .7, .2, 1); }
  .reveal.reveal-ready:not(.in-view) { opacity: 0; transform: translateY(35px); }
  .stagger > * { transition-delay: calc(var(--order, 0) * 80ms); }
  .pause-motion *,
  .pause-motion *::before,
  .pause-motion *::after { animation-play-state: paused !important; }
  .page-enter { animation: content-arrive .2s ease-out both; }
  @keyframes content-arrive { from { opacity: .6; } to { opacity: 1; } }

  /* Standalone privacy document */
  .privacy-document {
    max-width: none;
    margin: 0;
    padding: 0;
    background: #0b0e13;
    color: #eee8dd;
    min-height: 100vh;
    font: 16px/1.8 system-ui, sans-serif;
  }
  .privacy-document #site-header {
    position: sticky;
    top: 0;
    z-index: 150;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px max(20px, 5vw);
    min-height: 40px;
    background: #0b0e13;
    border-bottom: 1px solid #dfb48540;
  }
  .privacy-document #site-header a {
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: .3em;
  }
  .privacy-copy {
    box-sizing: border-box;
    max-width: 44rem;
    margin: auto;
    padding: clamp(1.2rem, 5vw, 3rem) 20px 65px;
    color: #d5cdc1;
  }
  .privacy-copy h1,
  .privacy-copy h2 {
    font-family: var(--editorial-serif);
    font-weight: 700;
    color: #f2ede4;
  }
  .privacy-copy h1 { font-size: 1.65rem; line-height: 1.4; margin: .67em 0; }
  .privacy-copy h2 { margin: 1.5em 0 .25em; font-size: 1.15rem; }
  .privacy-copy p { margin: .3em 0 .8em; }

  /* Responsive header, mobile drawer & footer */
  @media (min-width: 1800px) {
    .section-wrap { width: 82%; }
  }
  @media (max-width: 1200px) {
    #site-header { gap: 25px; padding-left: 4%; padding-right: 4%; }
    .brand { gap: 10px; }
    .brand img { width: 29px; height: 35px; }
    .brand strong { font-size: 15px; }
    .brand small { font-size: 6px; }
    #main-nav { gap: 22px; font-size: 12px; }
    .nav-contact { font-size: 12px; padding-left: 20px; }
    .section-wrap { width: 88%; }
  }
  @media (min-width: 901px) and (max-width: 1200px) {
    #site-header { gap: 20px; }
    #main-nav { font-size: 15px; gap: 18px; }
    #main-nav .nav-contact { font-size: 15px; padding-left: 16px; }
    #main-nav .nav-contact span { margin-left: 10px; }
    .brand strong { font-size: 15px; letter-spacing: .025em; }
    .brand small { font-size: 11px; letter-spacing: .025em; }
  }
  @media (max-width: 900px) {
    #site-header { min-height: 80px; padding: 18px 5%; gap: 18px; }
    body.header-solid #site-header,
    body:not([data-view="home"]):not(.privacy-document) #site-header { min-height: 72px; padding: 15px 5%; }
    .brand { flex-shrink: 1; }
    .brand strong { font-size: 15px; }
    .brand small { font-size: 11px; }
    #site-header .search-button,
    #site-header .menu-button {
      min-width: 44px;
      min-height: 44px;
      width: 44px;
      height: 44px;
      flex: 0 0 44px;
      align-items: center;
      justify-content: center;
    }
    #site-header .header-tools { gap: 4px; flex-shrink: 0; }
    .menu-button {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 6px;
    }
    .menu-button span {
      display: block;
      height: 1px;
      width: 21px;
      background: currentColor;
      transition: transform .3s;
    }
    .menu-open .menu-button span:first-child { transform: translateY(3.5px) rotate(45deg); }
    .menu-open .menu-button span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
    .nav-contact { justify-content: flex-start; }

    #main-nav {
      position: fixed;
      top: 72px;
      left: 0;
      right: 0;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      padding: 35px 7% 45px;
      gap: 6px;
      max-height: calc(100dvh - 80px);
      overflow-y: auto;
      overscroll-behavior: contain;
      background: #101a27;
      color: #f0ede8;
      border-color: #ffffff26;
      transform: translateY(-140%);
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s, transform .45s;
      z-index: -1;
      box-shadow: 0 40px 60px #00121820;
      font-size: 18px;
    }
    #main-nav a { padding: 16px 0; border-bottom: 1px solid #19282520; }
    #main-nav .nav-contact { font-size: 18px; text-align: left; padding: 20px 0 0; border: 0; }
    #main-nav .interaction-nav-panel {
      position: static;
      width: 100%;
      min-width: 0;
      max-width: none;
      margin: 0 0 8px;
      padding: 8px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 4px;
      box-sizing: border-box;
    }
    #main-nav .interaction-nav-panel[hidden] { display: none; }
    #main-nav .interaction-nav-panel::before,
    #main-nav .interaction-nav-panel::after { display: none; }
    #main-nav .interaction-nav-panel a,
    #main-nav .interaction-nav-panel button {
      white-space: normal;
      padding: 11px 12px;
      min-height: 44px;
      font-size: 13px;
      line-height: 1.5;
    }

    body.menu-open #site-header {
      background: #0b0e13;
      color: #f2ede4;
    }
    body.menu-open #site-header .brand small { color: #c8beb3; opacity: 1; }
    body.menu-open #main-nav {
      position: absolute;
      left: 0;
      right: 0;
      top: calc(100% + 1px);
      bottom: auto;
      max-height: none;
      display: flex;
      justify-content: flex-start;
      align-items: stretch;
      gap: 0;
      height: calc(100dvh - var(--ob-menu-bar, 72px));
      padding: clamp(22px, 5vh, 52px) 7% max(32px, env(safe-area-inset-bottom));
      overflow-y: auto;
      overscroll-behavior: contain;
      background: #0b0e13;
      color: #f2ede4;
      border: 0;
      box-shadow: none;
      transform: none;
      opacity: 1;
      pointer-events: auto;
    }
    body.menu-open #main-nav > :is(a, button) {
      flex: none;
      width: 100%;
      margin: 0;
      text-align: left;
      border: 0;
      border-bottom: 1px solid #f2ede424;
      padding: 15px 0;
      color: #f2ede4;
      font: 500 clamp(23px, 5vw, 30px)/1.45 var(--editorial-serif);
    }
    body.menu-open #main-nav > [aria-expanded="true"] { color: #dfb485; }
    body.menu-open #main-nav .interaction-nav-panel:not([hidden]) {
      margin: 0;
      padding: 8px 0 13px;
      border: 0;
      border-bottom: 1px solid #f2ede424;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      gap: 0 16px;
    }
    body.menu-open #main-nav .interaction-nav-panel :is(a, button) {
      min-height: 44px;
      padding: 10px 0;
      border: 0;
      color: #e2d4c2;
      background: transparent;
      font-size: 15px;
    }
  }
  @media (max-width: 800px) {
    .site-footer .footer-top { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  }
  @media (max-width: 700px) {
    html:has(body:not([data-view="home"])) {
      scroll-padding-top: calc(var(--site-header-height, 70px) + 10px);
    }
  }
  @media (max-width: 600px) {
    :root { --reading-body: 16px; --reading-meta: 12px; --reading-action: 15px; }
    html { scroll-padding-top: 85px; }
    #site-header { gap: 12px; }
    .brand { gap: 8px; }
    .brand img { width: 25px; height: 29px; }
    .brand strong { font-size: 14px; letter-spacing: 0; line-height: 1.4; }
    .brand small { font-size: 11px; letter-spacing: .01em; opacity: .8; }
    .section-wrap { width: 86%; }
    #intro-skip { font-size: 13px; }
    .site-footer { padding-top: 45px; }
    .site-footer .footer-top { padding-bottom: 30px; }
    .footer-brand { gap: 12px; }
    .footer-brand strong { font-size: 16px; }
    .footer-desc { font-size: 11px; margin-top: 18px; }
    .footer-bottom {
      display: block;
      font-size: 12px;
      align-items: flex-start;
    }
    .footer-bottom > span { font-size: 12px; }
    .footer-legal {
      gap: 10px;
      row-gap: 12px;
      margin-top: 15px;
      align-items: flex-start;
    }
    .footer-legal a { overflow-wrap: anywhere; }
  }

  /* Floating 2.0 Obsidian + Champagne Gold reading-progress return-to-top capsule */
  #backToTopBtn.back-to-top {
    position: fixed;
    right: max(clamp(26px, 4.5vw, 80px), calc((100vw - 1376px) / 2 - 118px));
    bottom: max(28px, env(safe-area-inset-bottom));
    z-index: 95;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 15px 0 8px;
    border: 1px solid rgba(223, 180, 133, .34);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(24, 30, 41, .84), rgba(11, 14, 21, .94));
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: #f2ede4;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .44), inset 0 1px 0 rgba(255, 242, 220, .15);
    font: 500 12.5px/1 "SFMono-Regular", Consolas, monospace;
    letter-spacing: .04em;
    cursor: pointer;
    transition: border-color .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease, opacity .22s ease;
  }
  #backToTopBtn.back-to-top[hidden] { display: none; }
  #backToTopBtn.back-to-top .btt-badge {
    position: relative;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: none;
  }
  #backToTopBtn.back-to-top .btt-ring {
    position: absolute;
    inset: 0;
    width: 28px;
    height: 28px;
    display: block;
    transform: rotate(-90deg);
  }
  #backToTopBtn.back-to-top .btt-track {
    fill: rgba(223, 180, 133, .06);
    stroke: rgba(223, 180, 133, .22);
    stroke-width: 1.5;
  }
  #backToTopBtn.back-to-top .btt-arc {
    fill: none;
    stroke: #e8c28e;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-dasharray: 81.68;
    stroke-dashoffset: calc(81.68 * (1 - var(--scroll-progress, 0)));
    transition: stroke-dashoffset .08s linear;
  }
  #backToTopBtn.back-to-top .btt-arrow {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    display: block;
    color: #f4e6d2;
    transition: transform .22s ease, color .22s ease;
  }
  #backToTopBtn.back-to-top .btt-pct {
    font-variant-numeric: tabular-nums;
    color: #e6bf8d;
    min-width: 3.1ch;
    text-align: right;
  }
  #backToTopBtn.back-to-top.above-footer { transform: translateY(-76px); }
  #backToTopBtn.back-to-top:hover {
    border-color: rgba(240, 203, 160, .8);
    color: #fffaf2;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .54), 0 0 20px rgba(223, 180, 133, .18), inset 0 1px 0 rgba(255, 244, 224, .24);
  }
  #backToTopBtn.back-to-top:hover .btt-arrow {
    transform: translateY(-2px);
    color: #fffaf2;
  }
  #backToTopBtn.back-to-top.above-footer:hover { transform: translateY(-78px); }
  #backToTopBtn.back-to-top:focus-visible {
    outline: 2px solid #e9bd98;
    outline-offset: 3px;
  }
  body.menu-open #backToTopBtn.back-to-top,
  body:has(.service-overlay:not([hidden])) #backToTopBtn.back-to-top {
    opacity: 0;
    pointer-events: none;
  }
  @media (max-width: 700px) {
    #backToTopBtn.back-to-top {
      right: 20px;
      bottom: max(18px, env(safe-area-inset-bottom));
      height: 42px;
      padding: 0 13px 0 7px;
    }
  }

  /* Global reduced motion */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation: none !important;
      transition: none !important;
    }
    .reveal.reveal-ready:not(.in-view) { opacity: 1; transform: none; }
  }
}
