/* Shared styles for the secondary pages (team, privacy, terms, 404). Matches v2-motif.html. */
:root {
  --bg: #0a0a0a; --surface: #151515; --ink: #efefef; --muted: #a3a3a3;
  --accent: #b11226; --accent-ink: #ffffff;
  --font: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --margin: 8vw; --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 clamp(17px, 1rem + .25vw, 19px)/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
body::after { content: ""; position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .06; mix-blend-mode: screen; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: #fff; color: #000; padding: 10px 16px; font-weight: 500; transition: top .2s; }
.skip:focus { top: 12px; }

.display { font-weight: 700; letter-spacing: -.03em; line-height: .92; text-transform: uppercase; text-wrap: balance; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: 16px; cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.btn:hover { background: #cf1830; transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--light { background: var(--ink); color: var(--bg); }
.btn--light:hover { background: #fff; }

/* nav */
.nav { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 84px; padding: 0 var(--margin); display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-weight: 700; font-size: 24px; letter-spacing: -.02em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.wordmark::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 16px; }
.nav__links a:not(.btn) { padding: 8px 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.nav__links a:not(.btn):hover, .nav__links a[aria-current="page"] { text-decoration-color: currentColor; }
.nav__links .btn { background: var(--ink); color: var(--bg); }
.nav__links .btn:hover { background: #fff; }

/* footer */
.foot { margin-top: 10svh; padding: 0 var(--margin) 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 24px; font-size: 16px; color: var(--muted); }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.foot nav a { color: var(--ink); }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot span:last-child { justify-self: end; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* document pages */
.docpage { padding: clamp(150px, 16vw, 230px) var(--margin) 0; }
.doc { max-width: 72ch; }
.doc h1 { font-size: clamp(36px, 5vw, 76px); }
.doc .updated { margin-top: 24px; color: var(--muted); }
.doc h2 { margin-top: 56px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.doc p, .doc ul { margin-top: 16px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-top: 8px; }
.doc a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.doc a:hover { text-decoration-color: currentColor; }

@media (max-width: 960px) {
  :root { --margin: 16px; }
  .nav__links a:not(.btn) { display: none; }
  .nav__links .btn { min-height: 44px; padding: 0 18px; white-space: nowrap; }
  .foot { grid-template-columns: 1fr; gap: 10px; margin-top: 14svh; }
  .foot nav { justify-content: flex-start; gap: 16px; }
  .foot span:last-child { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* status pages: 404, error, under construction */
.lost { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 0 var(--margin); }
.lost .motif { position: absolute; z-index: 0; width: 120svh; height: 120svh; border-radius: 50%; background: var(--accent); overflow: hidden; left: calc(86vw - 60svh); top: calc(55svh - 60svh); animation: open 1.1s var(--ease) both, breathe 9s ease-in-out 1.2s infinite alternate; }
.lost .motif img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.25) brightness(1.2); opacity: .92; }
@keyframes open { from { clip-path: inset(0 0 0 100%); transform: scale(1.12); } to { clip-path: inset(0); transform: none; } }
@keyframes breathe { to { transform: translate(-1.2vw, 1vh) scale(1.015); } }
.lost__copy { position: relative; z-index: 1; width: min(100%, 62vw); }
.lost h1 { font-size: clamp(40px, 5.4vw, 92px); }
.lost p { margin-top: 24px; font-size: clamp(18px, 1.25vw, 21px); max-width: 34ch; line-height: 1.4; }
.lost .acts { margin-top: 32px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.lost .acts a:not(.btn) { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.lost .small { font-size: 16px; color: var(--muted); }
.lost .small a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 960px) {
  .lost { align-items: flex-start; }
  .lost__copy { width: 100%; padding-top: 22svh; }
  .lost h1 { font-size: 10.5vw; }
  .lost .motif { width: 130vw; height: 130vw; left: -15vw; top: 62svh; animation-name: open-m, breathe; }
}
@keyframes open-m { from { clip-path: inset(100% 0 0 0); transform: scale(1.1); } to { clip-path: inset(0); transform: none; } }
@media (prefers-reduced-motion: reduce) { .lost .motif { animation: none; } }
