/* =========================================================
   BISING Studio — base: reset, type, focus, utilities, motion
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; -webkit-tap-highlight-color: transparent; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  min-height: 100vh;
  background: var(--l0);
  color: var(--t1);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
picture, video, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
a, button, summary, label, select, [role="tab"], [role="button"] { touch-action: manipulation; }
p, li, dd { overflow-wrap: break-word; }
h1, h2, h3, h4 { overflow-wrap: break-word; font-weight: 400; }
.list-reset { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--on-lime); }

/* Fill images: explicit height + cover wherever a box is filled */
.fill { width: 100%; height: 100%; object-fit: cover; }

/* Grain overlay (5%) — sits above everything, never blocks input */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  background-image: url("../img/ui/texture-grain.png");
  background-size: 256px 256px;
  opacity: .05;
  mix-blend-mode: multiply;
}

/* ---------- Type ---------- */
.h1, .h2, .h3, .display {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .9;
  font-weight: 400;
}
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: .95; }
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: .01em; }
/* Eyebrow: plain sans, sentence case, short line accent */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .875rem;
  color: var(--t2);
  line-height: 1.3;
}
.eyebrow::before { content: ""; width: 20px; height: 1.5px; background: currentColor; flex: none; }
.eyebrow--plain::before { display: none; }
.lede { font-size: var(--fs-md); color: var(--t2); max-width: 46ch; }
.muted { color: var(--t2); }
.subtle { color: var(--t3); }
.small { font-size: var(--fs-sm); }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1em; }
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: text-decoration-color var(--d-fast) var(--ease);
}
.link:hover { text-decoration-color: transparent; }

/* ---------- Focus & a11y ---------- */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.on-photo :focus-visible, .inverse :focus-visible { outline-color: var(--lime); }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  left: 12px; top: -80px;
  z-index: 300;
  background: var(--lime);
  color: var(--on-lime);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: transform var(--d-fast) var(--ease);
}
.skip-link:focus-visible { transform: translateY(92px); outline-color: var(--t1); }

/* ---------- Reveal (IntersectionObserver adds .is-in) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--d-slow) var(--ease), transform 480ms var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 60ms; }
.js .reveal[data-delay="2"] { transition-delay: 120ms; }
.js .reveal[data-delay="3"] { transition-delay: 180ms; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.9); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
