/* DOT — dotforlifestudio.com
   Tokens and logo CSS match assets/brand/outro-preview.html exactly. */

@font-face { font-family: "Inter"; src: url("/fonts/inter-latin.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #08090b;
  --surface: #101217;
  --line: #1f232b;
  --fg: #eef1f5;
  --muted: #8a93a1;
  --accent: #5aa9ff;
  --accent-glow: rgba(90, 169, 255, 0.45);
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--fg); text-decoration-color: rgba(90, 169, 255, 0.6); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(28px, 4.2vw, 44px); }
h3 { font-size: 20px; }
p { margin: 0; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 3; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand-mini { display: inline-flex; align-items: baseline; gap: 0.06em; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.brand-mini .mini-dot { width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.site-header nav a { font-size: 14px; color: var(--muted); text-decoration: none; margin-left: 22px; }
.site-header nav a:hover { color: var(--fg); }

/* ---------- Hero: the sting's stage ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 52%, #131720 0%, #0a0c10 55%, #050607 100%);
  container-type: inline-size;
}
.hero .grain {
  position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("/grain.png"); background-size: 160px 160px;
}
.hero .vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%); }
.stack { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 3.2cqw, 40px); padding: 0 var(--gutter); text-align: center; }

.lockup {
  position: relative; display: flex; align-items: baseline;
  font-family: var(--display); font-weight: 600; font-size: clamp(88px, 17cqw, 240px);
  line-height: 1; letter-spacing: -0.02em; padding-left: 0.25em;
}
.word { position: relative; display: inline-block; }
.word .fill { background: linear-gradient(180deg, #ffffff 0%, #e6ebf2 55%, #b9c3d1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.word .sheen {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 42%, rgba(255,255,255,0.95) 50%, transparent 58%);
  background-size: 260% 100%; background-position: 130% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; pointer-events: none;
}
.dotwrap { position: relative; display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.05em; }
.dot {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #ffffff 0%, #d9ecff 30%, var(--accent) 75%);
  box-shadow: 0 0 0.06em #fff, 0 0 0.16em var(--accent), 0 0 0.45em var(--accent-glow);
  animation: breathe 3.4s ease-in-out infinite;
}
.flash { position: absolute; left: 50%; top: 50%; width: 6em; height: 6em; margin: -3em 0 0 -3em; border-radius: 50%; background: radial-gradient(circle, rgba(140,195,255,0.55) 0%, rgba(90,169,255,0.18) 30%, transparent 65%); opacity: 0; pointer-events: none; }
.trail { position: absolute; right: 50%; top: 50%; width: 3.2em; height: 0.045em; margin-top: -0.0225em; background: linear-gradient(90deg, transparent, var(--accent-glow) 60%, #cfe6ff); border-radius: 1em; transform-origin: right center; transform: scaleX(0); opacity: 0; pointer-events: none; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 0.012em solid var(--accent); opacity: 0; pointer-events: none; }

.tagline {
  font-family: var(--body); font-weight: 500; text-transform: uppercase;
  font-size: clamp(11px, 1.55cqw, 20px); letter-spacing: 0.32em; color: #9aa4b3; padding-left: 0.32em;
}
.hero-note { font-size: 15px; color: var(--muted); max-width: 36ch; }

/* Sting timeline (5 s), identical timings to the preview */
.run .dot      { animation: ignite 0.7s cubic-bezier(.2,.8,.2,1) 0.2s both, breathe 3.4s ease-in-out 3s infinite; }
.run .flash    { animation: flash 0.7s ease-out 0.78s both; }
.run .dotwrap  { animation: glide 0.9s cubic-bezier(.65,0,.25,1) 1.0s both; }
.run .trail    { animation: trail 0.9s cubic-bezier(.65,0,.25,1) 1.0s both; }
.run .ring     { animation: ring 1.3s cubic-bezier(.1,.7,.3,1) 1.9s both; }
.run .word     { animation: wipe 0.9s cubic-bezier(.65,0,.25,1) 1.0s both, focus 1.2s ease-out 1.0s both; }
.run .sheen    { animation: sheen 0.9s cubic-bezier(.4,0,.2,1) 2.1s both; }
.run .tagline  { animation: rise 0.9s cubic-bezier(.2,.8,.2,1) 2.5s both; }
.run .hero-note, .run .scroll-cue { animation: fadein-full 0.8s ease-out 3.0s both; }
/* Before JS starts the sting, hide the parts it reveals (no flash of the end state). */
.pre .word, .pre .dot, .pre .tagline, .pre .hero-note, .pre .scroll-cue { opacity: 0; }

@keyframes ignite { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0.06em #fff, 0 0 0.16em var(--accent), 0 0 0.45em var(--accent-glow); } 50% { box-shadow: 0 0 0.08em #fff, 0 0 0.22em var(--accent), 0 0 0.7em var(--accent-glow); } }
@keyframes flash { 0% { opacity: 0; transform: scale(0.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes glide { from { transform: translateX(calc(-1 * var(--travel, 2.4em))); } to { transform: translateX(0); } }
@keyframes trail { 0% { transform: scaleX(0); opacity: 0; } 35% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(0); opacity: 0; } }
@keyframes ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(16); opacity: 0; } }
@keyframes wipe { from { clip-path: inset(-0.2em 100% -0.2em -0.1em); } to { clip-path: inset(-0.2em -0.1em -0.2em -0.1em); } }
@keyframes focus { from { filter: blur(0.05em); } to { filter: blur(0); } }
@keyframes sheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(0.8em); letter-spacing: 0.5em; } to { opacity: 1; transform: none; letter-spacing: 0.32em; } }
@keyframes fadein-full { from { opacity: 0; } to { opacity: 1; } }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #5e6674; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .run *, .dot { animation: none !important; }
  .pre .word, .pre .dot, .pre .tagline, .pre .hero-note, .pre .scroll-cue { opacity: 1; }
}

/* ---------- Sections ---------- */
section.block { padding: clamp(72px, 12vw, 140px) 0; border-top: 1px solid var(--line); }
.lead { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; color: #c9d0da; max-width: 40ch; margin-top: 20px; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }

.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.format { background: var(--bg); padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 10px; min-height: 190px; }
.format .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.format p { color: var(--muted); font-size: 15.5px; }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; max-width: 880px; }
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }
.principle { display: flex; gap: 16px; }
.principle .pdot { flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.principle h3 { margin-bottom: 6px; }
.principle p { color: var(--muted); font-size: 15.5px; }

.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.button { display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1 var(--body); color: #07080a; background: var(--fg); border-radius: 999px; padding: 14px 22px; text-decoration: none; }
.button:hover { background: #fff; }
.button[aria-disabled="true"] { background: var(--surface); color: var(--muted); border: 1px solid var(--line); cursor: default; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

/* ---------- Legal pages ---------- */
.legal { padding: 120px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin: 10px 0 12px; }
.legal h2 { font-size: 22px; margin: 44px 0 12px; }
.legal p, .legal li { color: #c9d0da; font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0 0; }
.legal address { font-style: normal; color: #c9d0da; }
.todo { background: rgba(255, 196, 0, 0.12); outline: 1px dashed rgba(255, 196, 0, 0.6); padding: 0 4px; border-radius: 3px; }
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.notfound .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }

@media (max-width: 560px) {
  .site-header nav a { margin-left: 16px; }
  .site-header nav a.hide-sm { display: none; }
}
