/* global.css — shared base, helpers, chrome */

html { background: var(--color-base); }
body {
  background: var(--color-base);
  color: var(--color-text);
  font-family: var(--font);
  font-size: var(--fs-body);
  letter-spacing: -0.01em;
}

/* ---- typography helpers ---- */
.label {
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.muted { color: var(--color-text-muted); }

a { color: inherit; transition: color 0.25s ease; }
a:hover { color: var(--color-accent); }

/* ---- focus ---- */
:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

/* ---- layout ---- */
.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space);
}

/* ---- placeholder box (image/video pending) ---- */
.placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #141416;
  border: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
}
.placeholder::after {
  content: attr(data-dim);
}
.placeholder--phone { aspect-ratio: 9 / 19; }

/* ---- back arrow (top-left of inner pages) ---- */
.back-arrow {
  position: fixed;
  top: var(--space);
  left: var(--space);
  z-index: 60;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.back-arrow svg { width: 24px; height: 24px; }
.back-arrow:hover { color: var(--color-accent); }

/* ---- language switcher ---- */
.lang-switch {
  position: fixed;
  bottom: var(--space);
  right: var(--space);
  z-index: 60;
  display: flex;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  mix-blend-mode: difference;
}
.lang-switch button {
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-current="true"] {
  color: var(--color-text);
  opacity: 1;
}

/* ---- custom cursor ---- */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: width 0.25s ease, height 0.25s ease, opacity 0.2s ease, background 0.25s ease;
  display: flex; align-items: center; justify-content: center;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-active { width: 40px; height: 40px; }
.cursor__label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #000;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.cursor.is-active .cursor__label { opacity: 1; }

/* ---- generic arrow glyphs ---- */
.arrow-left svg { transform: rotate(180deg); }

/* ---- visually hidden (a11y) ---- */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- reveal base (JS adds .is-in) ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease-page), transform 0.7s var(--ease-page), filter 0.7s var(--ease-page);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---- reduced motion: static fallbacks ---- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .lang-switch { mix-blend-mode: normal; }
}
