/* House style for every page except the home page (which carries its own
   copy of these rules inline). Loaded by page-template.html, so it styles
   /about, /terms, /privacy, /imprint and /child-safety. */

@font-face { font-family: "JUST Sans"; src: url("fonts/JUSTSans-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "JUST Sans"; src: url("fonts/JUSTSans-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JUST Sans"; src: url("fonts/JUSTSans-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }

:root {
  --blue: #365BF2;
  --blue-hi: #6C8BFF;
  --ink: #000;
  --paper: #F4F1EA;
  --dim: rgba(244, 241, 234, .5);
  --soft: rgba(244, 241, 234, .78);
  --line: rgba(244, 241, 234, .14);
  --pad: clamp(20px, 4.4vw, 64px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--ink); color: var(--paper); font: 400 17px/1.5 "JUST Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
.label { font-size: 13px; font-weight: 500; color: var(--blue-hi); letter-spacing: .01em; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 99px; background: var(--paper); color: #000; font-weight: 500; font-size: 15px; transition: background .25s, color .25s; }
.pill:hover { background: var(--blue); color: #fff; }
.pill.ghost { background: none; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .4); }
.pill.ghost:hover { background: var(--paper); color: #000; }

/* reveal on scroll; content is visible without scripts */
.js .up { opacity: 0; transform: translateY(26px); transition: opacity .9s, transform 1s cubic-bezier(.2, .7, .2, 1); }
.js .up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .up { opacity: 1; transform: none; transition: none; }
}

/* ---------- header + menu (same as home) ---------- */
.hdr { position: fixed; z-index: 50; inset: var(--app-banner-offset, 0px) 0 auto 0; transition: inset .35s cubic-bezier(.2, .7, .2, 1); display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) var(--pad) 14px; pointer-events: none; }
.hdr > * { pointer-events: auto; }
.hdr .logo img { height: 22px; width: auto; }
.menu-btn { font-size: 15px; font-weight: 500; height: 40px; padding: 0 4px; display: flex; align-items: center; gap: 10px; }
.menu-btn i { width: 22px; height: 8px; position: relative; display: block; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s cubic-bezier(.7, 0, .2, 1); }
.menu-btn i::before { top: 0; } .menu-btn i::after { bottom: 0; }
.menu-open .menu-btn i::before { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn i::after { transform: translateY(-3.25px) rotate(-45deg); }
.menu { position: fixed; z-index: 40; inset: 0; background: var(--blue); color: #fff; display: flex; flex-direction: column; padding: 96px var(--pad) calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; clip-path: circle(0 at calc(100% - 44px) 34px); visibility: hidden; transition: clip-path .7s cubic-bezier(.7, 0, .2, 1), visibility 0s .7s; }
.menu-open .menu { clip-path: circle(150vmax at calc(100% - 44px) 34px); visibility: visible; transition: clip-path .8s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
.menu > :first-child { margin-top: auto; }
.menu a { display: block; font-weight: 300; font-size: clamp(26px, min(6.4vw, 7svh), 78px); line-height: 1.12; letter-spacing: -.03em; transform: translateY(28px); opacity: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .5s; transition-delay: calc(var(--i) * 50ms + 160ms); }
.menu-open .menu a { transform: none; opacity: 1; }
.menu a:hover { font-weight: 500; }
.menu p { margin-top: 30px; font-size: 14px; opacity: .8; max-width: 34em; }
.menu .legal { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.menu .legal a { font-size: 14px; font-weight: 400; letter-spacing: 0; line-height: 1.4; opacity: 0; transform: none; transition: opacity .5s .5s; }
.menu-open .menu .legal a { opacity: .8; }
.menu .legal a:hover { font-weight: 400; opacity: 1; }

/* ---------- footer (same as home) ---------- */
.foot { padding: 26px var(--pad) calc(26px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; font-size: 13px; color: var(--dim); border-top: 1px solid var(--line); }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a:hover { color: var(--paper); }

/* ---------- cookie box (same as home) ---------- */
.cookie-banner { position: fixed; z-index: 60; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); width: min(680px, calc(100vw - 24px)); transform: translate(-50%, 24px); opacity: 0; visibility: hidden; transition: transform .4s cubic-bezier(.2, .7, .2, 1), opacity .4s, visibility 0s .4s; background: #111113; border: 1px solid rgba(244, 241, 234, .16); border-radius: 16px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; font-size: 14px; line-height: 1.4; }
.cookie-banner.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .4s cubic-bezier(.2, .7, .2, 1), opacity .4s; }
.cookie-banner .text { flex: 1 1 260px; color: rgba(244, 241, 234, .8); }
.cookie-banner .text a { color: var(--blue-hi); text-decoration: underline; }
.cookie-banner .actions { display: flex; gap: 8px; }
.cookie-banner button { height: 38px; padding: 0 16px; border-radius: 99px; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .35); }
.cookie-banner button.primary { background: var(--paper); color: #000; box-shadow: none; }

/* ---------- shared: the closing door ---------- */
.out { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 110px var(--pad) 70px; overflow: hidden; }
.out .word2 { width: 84vw; max-width: 1500px; aspect-ratio: 3046 / 978; background: #222 url("assets/stories/crew-jumping-red-wall-lg.webp") 40% 40% / cover; -webkit-mask: url("assets/lynq-mark.svg") center / contain no-repeat; mask: url("assets/lynq-mark.svg") center / contain no-repeat; animation: pan 26s ease-in-out infinite alternate; }
@keyframes pan { from { background-position: 20% 30%; } to { background-position: 70% 60%; } }
.out h2 { margin-top: clamp(22px, 5svh, 54px); font-weight: 300; letter-spacing: -.025em; line-height: 1.04; font-size: clamp(30px, 5.2vw, 76px); text-wrap: balance; }
.out h2 span { display: block; color: rgba(244, 241, 234, .55); }
.out p { margin: 16px auto 0; max-width: 28em; color: rgba(244, 241, 234, .75); }
.out .row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .out .word2 { animation: none; } }

/* =====================================================================
   Our mission (/about)
   ===================================================================== */
.ab-hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px var(--pad) clamp(40px, 8svh, 90px); position: relative; overflow: hidden; }
.ab-hero .bg { position: absolute; inset: 0; z-index: 0; }
.ab-hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .5; }
.ab-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .1) 35%, #000 96%); }
.ab-hero > :not(.bg) { position: relative; z-index: 1; }
.ab-hero h1 { margin-top: 18px; font-weight: 300; letter-spacing: -.035em; line-height: .98; font-size: clamp(40px, 8vw, 132px); max-width: 12.5em; text-wrap: balance; }
.ab-hero h1 span { display: block; margin-top: .4em; max-width: 22em; font-size: .56em; line-height: 1.1; letter-spacing: -.025em; color: rgba(244, 241, 234, .7); }
.ab-hero .scroll { margin-top: clamp(26px, 5svh, 60px); font-size: 14px; font-weight: 500; color: var(--soft); display: flex; align-items: center; gap: 12px; }
.ab-hero .scroll::before { content: ""; width: 44px; height: 1px; background: currentColor; }

/* a chapter: small label on the left, text on the right */
.ab-ch { padding: clamp(50px, 9svh, 110px) var(--pad); display: grid; gap: 18px clamp(28px, 6vw, 110px); border-top: 1px solid var(--line); }
.ab-ch .lead { font-weight: 300; letter-spacing: -.025em; line-height: 1.1; font-size: clamp(27px, 3.6vw, 52px); margin-bottom: clamp(18px, 3svh, 34px); text-wrap: balance; }
.ab-ch p { color: var(--soft); max-width: 36em; margin-bottom: 16px; font-size: clamp(17px, 1.25vw, 19px); }
.ab-ch p:last-child { margin-bottom: 0; }
.ab-ch p.label { color: var(--blue-hi); font-size: 13px; margin: 0; }
.ab-ch strong { color: var(--paper); font-weight: 500; }
.ab-ch em { font-style: normal; color: var(--paper); }
.ab-ch a { border-bottom: 1px solid rgba(244, 241, 234, .4); }
.ab-ch a:hover { border-color: var(--paper); }
@media (min-width: 900px) {
  .ab-ch { grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); }
  .ab-ch .label { position: sticky; top: 96px; align-self: start; }
}

/* a sentence that gets the whole width */
.ab-say { padding: clamp(60px, 13svh, 170px) var(--pad); font-weight: 300; letter-spacing: -.035em; line-height: 1; font-size: clamp(38px, 8.2vw, 136px); text-wrap: balance; }
.ab-say span { color: var(--dim); }
.ab-say.blue { background: var(--blue); color: #fff; }
.ab-say.blue span { color: rgba(255, 255, 255, .6); }

/* figures */
.ab-figs { display: flex; flex-wrap: wrap; gap: 18px clamp(36px, 6vw, 90px); margin: clamp(26px, 4svh, 44px) 0 0; }
.ab-figs b { display: block; font-weight: 300; letter-spacing: -.035em; line-height: 1; font-size: clamp(34px, 5vw, 76px); color: var(--paper); }
.ab-figs span { display: block; margin-top: 8px; font-size: 14px; color: var(--dim); }

/* a row of pictures that drifts sideways as you scroll */
.ab-strip { overflow: hidden; padding: clamp(10px, 3svh, 40px) 0 clamp(50px, 9svh, 110px); }
.ab-strip div { display: flex; gap: clamp(10px, 1.4vw, 20px); width: max-content; transform: translateX(var(--sx, 0px)); will-change: transform; }
.ab-strip img { height: clamp(220px, 44svh, 480px); width: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.ab-strip img:nth-child(even) { margin-top: clamp(18px, 4svh, 48px); }

/* founder */
.ab-founder { padding: clamp(70px, 12svh, 150px) var(--pad); display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
.ab-founder .ph { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; max-width: 520px; }
.ab-founder .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.ab-founder blockquote { font-weight: 300; letter-spacing: -.025em; line-height: 1.08; font-size: clamp(28px, 3.8vw, 54px); }
.ab-founder .by { margin-top: 26px; }
.ab-founder .by small { display: block; color: var(--dim); font-size: 14px; }
.ab-founder p.bio { margin-top: 22px; color: var(--soft); max-width: 34em; }
.ab-founder p.bio strong { color: var(--paper); font-weight: 500; }
.ab-founder a.more { display: inline-block; margin-top: 10px; border-bottom: 1px solid currentColor; padding-bottom: 2px; font-size: 15px; }
@media (min-width: 900px) { .ab-founder { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); } }

/* =====================================================================
   Documents (/terms, /privacy, /imprint, /child-safety)
   ===================================================================== */
.doc { padding: clamp(130px, 22svh, 220px) var(--pad) clamp(70px, 12svh, 130px); }
.doc-in { max-width: 760px; margin: 0 auto; }
.doc .back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--blue-hi); }
.doc .back-link svg { width: 14px; height: 14px; transition: transform .3s; }
.doc .back-link:hover svg { transform: translateX(-4px); }
.doc h1 { margin: 18px 0 clamp(26px, 5svh, 54px); font-weight: 300; letter-spacing: -.035em; line-height: .98; font-size: clamp(44px, 8vw, 112px); text-wrap: balance; }
.doc .meta { margin: calc(clamp(26px, 5svh, 54px) * -1 + 14px) 0 clamp(26px, 5svh, 54px); font-size: 14px; color: var(--dim); }
.doc h2 { margin: clamp(44px, 7svh, 76px) 0 16px; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; font-size: clamp(22px, 2.3vw, 30px); scroll-margin-top: 90px; text-wrap: balance; }
.doc h3 { margin: 30px 0 10px; font-weight: 500; font-size: 18px; line-height: 1.3; }
.doc h4 { margin: 22px 0 8px; font-weight: 500; font-size: 16px; }
.doc p, .doc li { color: var(--soft); margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 16px; }
.doc ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.doc ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 1px; background: var(--blue-hi); }
.doc ol { counter-reset: n; }
.doc ol li { position: relative; padding-left: 30px; margin-bottom: 8px; counter-increment: n; }
.doc ol li::before { content: counter(n); position: absolute; left: 0; top: 0; color: var(--blue-hi); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.doc strong { color: var(--paper); font-weight: 500; }
.doc a:not(.back-link) { color: var(--blue-hi); border-bottom: 1px solid rgba(108, 139, 255, .4); }
.doc a:not(.back-link):hover { border-color: var(--blue-hi); }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); color: var(--soft); }
.doc th { color: var(--paper); font-weight: 500; }
.doc blockquote { margin: 20px 0; padding-left: 20px; border-left: 2px solid var(--blue-hi); color: var(--paper); }

/* contents: a quiet list beside long documents, wide screens only */
.toc { display: none; }
@media (min-width: 1280px) {
  .toc { display: block; position: fixed; z-index: 5; left: var(--pad); top: 50%; transform: translateY(-50%); width: calc((100vw - 760px) / 2 - var(--pad) - 40px); max-width: 250px; max-height: 70svh; overflow-y: auto; scrollbar-width: none; font-size: 13px; line-height: 1.35; }
  .toc::-webkit-scrollbar { display: none; }
  .toc a { display: block; padding: 5px 0 5px 14px; color: var(--dim); border-left: 1px solid var(--line); transition: color .25s, border-color .25s; }
  .toc a:hover { color: var(--paper); }
  .toc a.on { color: var(--paper); border-color: var(--blue-hi); }
}
