/* Shared by every DarkStrix Labs page. Each page sets its own theme tokens
   (--bg, --fg, --muted, --accent, --line, --nav-bg) on :root. */
*, *::before, *::after { box-sizing: border-box; }
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-in-out: cubic-bezier(.77, 0, .175, 1); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Studio nav ---- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s ease, backdrop-filter .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
/* Text wordmark until the logo is decided */
.brand { display: inline-flex; align-items: baseline; text-decoration: none; font: 700 19px/1 "Geist", "Inter", system-ui, sans-serif; letter-spacing: -.04em; white-space: nowrap; padding-block: 6px; }
.brand i { font-style: normal; font-weight: 400; opacity: .5; margin-left: .22em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; font: 500 14px/1 "Geist", "Inter", system-ui, sans-serif; padding: 10px 14px; border-radius: 999px; opacity: .8; transition: opacity .2s ease, background-color .2s ease; }
.nav-links a:focus-visible, .nav-links a[aria-current] { opacity: 1; background: color-mix(in srgb, var(--fg) 10%, transparent); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { opacity: 1; background: color-mix(in srgb, var(--fg) 10%, transparent); } }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 560px) { .brand { font-size: 17px; } .nav-links a { padding: 15px 8px; } }


/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; font: 14px/1.6 "Geist", "Inter", system-ui, sans-serif; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4, .foot .fh { margin: 0 0 12px; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--fg); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--fg); }
.foot .brand { color: var(--fg); margin-bottom: 14px; }
.foot .legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-tilt] { transition: opacity .6s var(--ease-out), transform .25s var(--ease-out), box-shadow .35s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Keep fades (they explain state); drop travel, zoom and looping motion. */
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
  .reveal { transform: none; transition: opacity .4s ease; }
}
