/* Jagen AI studio site. Brand v1.0 colours and type. Self-hosted: no third-party requests. */
:root {
  --charcoal: #1F2A24;
  --green: #4CAF2F;
  --lime: #B8E65A;
  --forest: #173F2A;
  --white: #FFFFFF;
  --ink: #141C18;
  --muted: rgba(255, 255, 255, 0.74);
  --faint: rgba(255, 255, 255, 0.16);
  --rule: rgba(255, 255, 255, 0.1);
  --font-display: "Sora", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --max: 78rem;
  --radius: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.35s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.55s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font: 1rem/1.65 var(--font-body); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--lime); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--charcoal); }

.skip-link { position: absolute; left: -999px; top: 0.5rem; z-index: 60; background: var(--lime); color: var(--charcoal); padding: 0.5rem 1rem; }
.skip-link:focus { left: 0.5rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

.label { font: 500 0.75rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; color: var(--lime); margin: 0; }
.label .idx { color: var(--muted); margin-right: 0.9em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(3rem, 8.4vw, 8.2rem); line-height: 0.96; }
h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.02; }
h3 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.02em; }
.lime { color: var(--lime); }
.green { color: var(--green); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 34rem; margin: 0; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; transition: background 0.4s, border-color 0.4s; border-bottom: 1px solid transparent; }
.site-header.scrolled, html:not(.js) .site-header { background: rgba(20, 28, 24, 0.78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.brand { display: block; line-height: 0; }
.brand svg { height: 2.1rem; width: auto; }
.site-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 0.5rem 0.9rem; border-radius: 999px; font: 500 0.76rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--white); text-decoration: none; transition: background 0.25s, color 0.25s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--lime); color: var(--charcoal); }
main { display: block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.7rem; padding: 1rem 1.6rem; border-radius: 999px; font: 600 1rem/1 var(--font-display); text-decoration: none; transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s; will-change: transform; }
.btn-primary { background: var(--green); color: var(--charcoal); }
.btn-primary:hover { background: var(--lime); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn .arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- agreement lines (CSS version, also the no-WebGL fallback) ---------- */
.lines { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lines::before { content: ""; position: absolute; inset: -50%; background: repeating-linear-gradient(-35deg, transparent 0 46px, var(--lime) 46px 47px); opacity: 0.2; animation: drift 40s linear infinite; -webkit-mask-image: linear-gradient(to left, #000 15%, transparent 70%); mask-image: linear-gradient(to left, #000 15%, transparent 70%); }
@keyframes drift { to { transform: translate(-66px, 94px); } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 60rem); display: flex; align-items: flex-end; background: var(--ink); overflow: hidden; }
.hero canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.hero canvas.field.on { opacity: 1; }
.hero canvas.field.on + .lines { display: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, var(--ink), transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 8rem; padding-bottom: clamp(3rem, 8vh, 6rem); }
.hero h1 { margin: 1.5rem 0 2rem; max-width: 12ch; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.scroll-cue { position: absolute; right: clamp(1.25rem, 4vw, 2.5rem); bottom: 2rem; z-index: 3; writing-mode: vertical-rl; font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 0.8rem; }
.scroll-cue::after { content: ""; width: 1px; height: 3.5rem; background: linear-gradient(var(--lime), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* split headline */
.js [data-split] .w { display: inline-block; white-space: nowrap; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; vertical-align: top; }
.js [data-split] .ch { display: inline-block; transform: translateY(110%) rotate(6deg); opacity: 0; transition: transform 1.1s var(--ease), opacity 0.8s ease; transition-delay: calc(var(--i) * 28ms + 150ms); }
.js [data-split].go .ch { transform: none; opacity: 1; }

/* ---------- marquee ---------- */
.ticker { background: var(--green); color: var(--charcoal); overflow: hidden; white-space: nowrap; transform: rotate(-1.2deg) scale(1.02); margin: 2rem 0; }
.ticker .track { display: inline-flex; animation: ticker 32s linear infinite; }
.ticker span { font: 600 clamp(1.4rem, 3.2vw, 2.6rem)/1 var(--font-display); letter-spacing: -0.03em; padding: 1.15rem 1.5rem; display: inline-flex; align-items: center; gap: 3rem; }
.ticker span::after { content: ""; width: 0.75rem; height: 0.75rem; background: var(--charcoal); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(5rem, 12vw, 10rem) 0; }
.section-head { display: grid; gap: 1.4rem; margin-bottom: clamp(3rem, 7vw, 5.5rem); max-width: 52rem; }
.section.charcoal { background: var(--charcoal); }

/* statement that lights up with scroll */
.statement { font: 600 clamp(2rem, 4.6vw, 4.2rem)/1.12 var(--font-display); letter-spacing: -0.03em; max-width: 22ch; margin: 2rem 0 0; }
.js .statement span { color: var(--faint); transition: color 0.4s ease; }
.js .statement span.lit { color: var(--white); }

/* principles */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tilt { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--rule); border-radius: var(--radius); padding: 2rem 1.6rem 2.2rem; min-height: 20rem; display: flex; flex-direction: column; transition: transform 0.5s var(--ease), border-color 0.3s, opacity 1s var(--ease); }
.tilt::before { content: ""; position: absolute; inset: 0; background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), rgba(184, 230, 90, 0.13), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.tilt > * { position: relative; }
.tilt:hover { border-color: rgba(184, 230, 90, 0.5); }
.tilt:hover::before { opacity: 1; }
.tilt .num { font: 500 0.78rem/1 var(--font-mono); color: var(--lime); letter-spacing: 0.14em; margin: 0; }
.tilt svg.ic { width: 2.6rem; height: 2.6rem; margin: auto 0 1.4rem; stroke: var(--green); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tilt h3 { margin-bottom: 0.7rem; }
.tilt p { color: var(--muted); margin: 0; }

/* coming soon band */
.soon { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: end; }
.soon .big { font: 600 clamp(4rem, 13vw, 12rem)/0.85 var(--font-display); letter-spacing: -0.05em; margin: 0; color: transparent; -webkit-text-stroke: 1.5px rgba(184, 230, 90, 0.75); }
.soon .big span { color: var(--lime); -webkit-text-stroke: 0; }
.soon .lead { margin-bottom: 1.6rem; }
.status { display: inline-flex; align-items: center; gap: 0.7rem; }
.dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--lime); flex: none; position: relative; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lime); animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3); opacity: 0; } }

/* call to action */
.cta { position: relative; overflow: hidden; background: var(--forest); border-radius: 1.5rem; padding: clamp(2.5rem, 7vw, 6rem); }
.cta > * { position: relative; }
.cta > .lines { position: absolute; }
.cta h2 { max-width: 16ch; margin-top: 1.2rem; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.5rem; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .tilt.reveal.in { transition-delay: 0s; }

/* cursor ring (mouse only, added by script) */
.cursor { position: fixed; left: -1.1rem; top: -1.1rem; width: 2.2rem; height: 2.2rem; border: 1.5px solid var(--lime); border-radius: 50%; pointer-events: none; z-index: 100; mix-blend-mode: difference; transition: width 0.3s var(--ease), height 0.3s var(--ease), left 0.3s var(--ease), top 0.3s var(--ease), background 0.3s; }
.cursor.hot { width: 3.6rem; height: 3.6rem; left: -1.8rem; top: -1.8rem; background: rgba(184, 230, 90, 0.15); }

/* ---------- text pages ---------- */
.page-hero { position: relative; background: var(--charcoal); overflow: hidden; padding: clamp(8rem, 14vw, 11rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.6rem); margin-top: 1.2rem; max-width: 16ch; }
.prose { max-width: 48rem; padding-top: 3.5rem; padding-bottom: 6rem; }
.prose h2 { font-size: 1.55rem; margin: 3rem 0 0.9rem; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
.prose p, .prose li { color: rgba(255, 255, 255, 0.86); }
.prose strong { color: var(--white); }
.prose table { border-collapse: collapse; width: 100%; margin: 1.25rem 0; font-size: 0.92rem; }
.prose th, .prose td { border-bottom: 1px solid rgba(255, 255, 255, 0.12); padding: 0.7rem 0.75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--forest); font: 500 0.72rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--lime); }
.table-scroll { overflow-x: auto; }
.meta { color: var(--muted); font-family: var(--font-mono); font-size: 0.85rem; }
.toc { background: rgba(255, 255, 255, 0.035); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.toc ol { columns: 2; column-gap: 2rem; margin: 0; padding-left: 1.2rem; }
.toc a { color: var(--white); text-decoration: none; }
.toc a:hover { color: var(--lime); }
.prose section { scroll-margin-top: 6rem; }

/* Review build only: every unknown is marked so none ships by accident. */
mark.todo { background: #E9A825; color: var(--charcoal); padding: 0 0.25em; border-radius: 0.2em; font-family: var(--font-mono); font-size: 0.85em; }

/* ---------- footer ---------- */
.site-footer { background: var(--forest); position: relative; overflow: hidden; }
.site-footer .wrap { position: relative; padding-top: 5rem; padding-bottom: 2.5rem; }
.foot-word { font: 600 clamp(4rem, 15vw, 14rem)/0.95 var(--font-display); letter-spacing: -0.06em; margin: 0 0 4.5rem; color: var(--white); }
.foot-word span { color: var(--green); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.foot-top p { color: var(--muted); max-width: 24rem; margin: 0; }
.site-footer h2 { font: 500 0.75rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--lime); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer ul a { color: var(--white); text-decoration: none; }
.site-footer ul a:hover { color: var(--lime); }
.legal { padding-top: 1.75rem; font: 0.8rem/1.6 var(--font-mono); color: var(--muted); margin: 0; }

/* ---------- small screens ---------- */
@media (max-width: 60rem) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .soon { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > :first-child { grid-column: 1 / -1; }
  .toc ol { columns: 1; }
}
@media (max-width: 36rem) {
  .site-header .wrap { height: 4rem; }
  .brand svg { height: 1.7rem; }
  .site-nav a { padding: 0.45rem 0.55rem; font-size: 0.66rem; letter-spacing: 0.1em; }
  .grid4 { grid-template-columns: 1fr; }
  .tilt { min-height: 0; }
  .tilt svg.ic { margin-top: 2rem; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js [data-split] .ch { opacity: 1; }
  .js .reveal, .js [data-split] .ch { transform: none; }
}

/* ---------- genre list (type only) ---------- */
.genre-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2em 0.55em; font: 600 clamp(2.4rem, 6.5vw, 6rem)/1.05 var(--font-display); letter-spacing: -0.04em; }
.genre-list li { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35); transition: color 0.35s, -webkit-text-stroke-color 0.35s; cursor: default; }
.genre-list li::after { content: " /"; color: var(--green); -webkit-text-stroke: 0; }
.genre-list li:last-child::after { content: ""; }
.genre-list li:hover, .genre-list li:nth-child(4n+1) { color: var(--lime); -webkit-text-stroke-color: transparent; }
.genre-list li:nth-child(4n+1):hover { color: var(--white); }

/* Highlighted box, e.g. the delete-your-data summary Google asks to be prominent */
.prose .callout { border: 1px solid rgba(184,230,90,.45); border-left: 4px solid #B8E65A; background: rgba(76,175,47,.08); padding: 1rem 1.25rem; border-radius: 10px; }
