@font-face {
  font-family: Manrope;
  src: url('/assets/fonts/manrope-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('/assets/fonts/manrope-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --border: #292929;
  --text: #dedede;
  --secondary: #a3a3a3;
  --muted: #929292;
  --accent: #c86b6b;
  --accent-hover: #e58b8b;
  --font-body: Manrope, Arial, sans-serif;
  --font-heading: var(--font-body);
  --page-inset: max(32px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
::selection { background: #c86b6b33; color: #fff; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
#atmosphere { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
body { isolation: isolate; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 12px; background: var(--bg); z-index: 50; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); background: #111111; }
.site-header, .site-footer { background-image: repeating-linear-gradient(to bottom, #ffffff04 0, #ffffff04 1px, transparent 1px, transparent 4px); }
.brand, .page-title, .info-card h2, .policy h2, .policy h3 { font-family: var(--font-heading); }
.header-inner { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; padding: max(8px, env(safe-area-inset-top, 0px)) var(--page-inset) 8px; gap: 24px; }
.brand { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 13px; min-height: 52px; }
.brand img { width: 52px; height: 52px; object-fit: contain; opacity: .94; }
.brand span { font-size: .95rem; font-weight: 700; letter-spacing: .17em; }
.primary-nav { grid-column: 2; display: flex; justify-content: center; }
.primary-nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; font-size: .875rem; letter-spacing: .13em; color: var(--secondary); transition: color 180ms ease; }
.primary-nav a:hover, .primary-nav a[aria-current='page'] { color: var(--accent-hover); }
main { width: 100%; flex: 1; outline: none; }
.page { width: min(calc(100% - var(--page-inset) * 2), 920px); margin: 0 auto; padding: 82px 0 120px; }
.page-about { min-height: min(670px, 70svh); }
html[data-page='about'] .page-privacy, html[data-page='privacy'] .page-about { display: none; }
.page-title { margin: 0 0 52px; font-size: 1rem; line-height: 1.5; font-weight: 400; letter-spacing: .04em; color: var(--muted); }
.info-stack { display: flex; flex-direction: column; gap: 36px; }
.info-card { position: relative; min-height: 130px; padding: 32px 36px; border: 1px solid var(--border); background: #0a0a0acc; }
.info-card h2 { position: absolute; top: 0; left: 24px; transform: translateY(-50%); margin: 0; padding: 0 12px; background: var(--bg); display: flex; align-items: center; gap: 10px; font-size: .875rem; letter-spacing: .12em; font-weight: 400; color: var(--secondary); text-transform: uppercase; }
.card-number { position: absolute; top: 0; right: 24px; transform: translateY(-50%); padding: 0 10px; background: var(--bg); font-size: .8125rem; letter-spacing: .12em; color: var(--muted); }
.mission { margin: 12px 0 0; font-size: 1rem; line-height: 1.6; letter-spacing: 0; font-weight: 400; }
.mission-period { color: var(--accent); }
.site-footer { border-top: 1px solid var(--border); background-color: #0d0d0df5; }
.footer-inner { width: min(calc(100% - var(--page-inset) * 2), 1120px); margin: auto; padding: 31px 0 max(20px, env(safe-area-inset-bottom, 0px)); }
.footer-columns { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px 72px; }
.footer-column { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; }
.footer-column h2 { font-size: .6875rem; margin: 0 0 4px; letter-spacing: .13em; font-weight: 400; color: var(--muted); }
.footer-column h2 span { color: #624848; }
.footer-column a { min-height: 33px; padding: 0 10px; display: inline-flex; align-items: center; font-size: .6875rem; letter-spacing: .11em; color: var(--secondary); transition: color 180ms ease; }
.footer-column a:hover, .footer-column a[aria-current='page'] { color: var(--accent-hover); }
.copyright { margin: 25px 0 0; padding-top: 15px; border-top: 1px solid #202020; text-align: center; font-size: .625rem; color: var(--muted); }
.policy h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.35; margin: 0 0 27px; font-weight: 700; letter-spacing: -.04em; }
.policy hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
.policy .updated { margin: 20px 0 36px; color: var(--muted); font-size: .875rem; }
.policy p { margin: 0 0 22px; font-size: 1rem; line-height: 1.95; overflow-wrap: anywhere; }
.policy h3 { display: flex; align-items: baseline; gap: 15px; margin: 48px 0 18px; font-size: 1.0625rem; font-weight: 700; line-height: 1.6; }
.section-number { color: var(--accent); font-size: .8125rem; font-weight: 400; }
.policy { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  :root { --page-inset: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: max(8px, env(safe-area-inset-top, 0px)) var(--page-inset) 4px; min-height: 96px; }
  .brand { gap: 8px; }
  .brand img { width: 42px; height: 42px; }
  .brand span { font-size: .8125rem; letter-spacing: .08em; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; }
  .primary-nav a { min-height: 44px; }
  .primary-nav a { gap: 6px; font-size: .8125rem; padding: 0 2px; letter-spacing: .04em; }
  .page { padding: 54px 0 84px; }
  .page-title { margin-bottom: 42px; }
  .info-card { padding: 28px 24px; min-height: 122px; }
  .info-card h2 { left: 13px; }
  .card-number { right: 13px; }
  .footer-inner { padding-top: 23px; }
  .policy p { line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* No reserved gutter: header and footer extend beneath the floating thumb. */
html.custom-scrollbar { scrollbar-width: none; }
html.custom-scrollbar::-webkit-scrollbar { display: none; }
.scroll-thumb { position: fixed; top: 0; right: 0; width: 18px; z-index: 40; opacity: 0; transition: opacity 350ms ease; touch-action: none; user-select: none; cursor: default; }
.scroll-thumb::before { content: ''; position: absolute; inset: 0 4px 0 8px; border-radius: 8px; background: #ad6767; }
.scroll-thumb.is-visible, .scroll-thumb:focus-visible, .scroll-thumb.is-dragging { opacity: 1; }
.scroll-thumb:hover::before, .scroll-thumb:focus-visible::before, .scroll-thumb.is-dragging::before { background: var(--accent-hover); }
.scroll-thumb:focus-visible { outline: 1px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
@media (forced-colors: active) {
  html.custom-scrollbar { scrollbar-width: auto; }
  html.custom-scrollbar::-webkit-scrollbar { display: block; }
  .scroll-thumb { display: none; }
}
/* Hide the browser's indicator too, without changing overflow or touch scrolling. */
@media (any-pointer: coarse), (max-width: 640px) {
  html, html.custom-scrollbar { scrollbar-width: none; }
  html::-webkit-scrollbar, html.custom-scrollbar::-webkit-scrollbar { display: none; }
  .scroll-thumb { display: none !important; }
}
