/* VulKara landing page. Plain CSS, no external requests. Light and dark follow the system. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --bg-soft: #f3f1ed;
  --card: #ffffff;
  --line: #e4e0d9;
  --text: #17181c;
  --muted: #55585f;
  --accent: #d65a12;
  --accent-text: #b44a0c;
  --on-accent: #ffffff;
  /* filled buttons: white text needs 4.5:1, the bright accent has 3.9:1 (#b44a0c has 7.7:1) */
  --accent-fill: #b44a0c;
  --fill-from: #c2510d;
  --fill-to: #9a3d07;
  --accent-tint: rgba(214, 90, 18, 0.10);
  --glow: rgba(255, 138, 61, 0.22);
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.06), 0 8px 28px rgba(20, 20, 30, 0.08);
  --shadow-lg: 0 2px 6px rgba(20, 20, 30, 0.08), 0 24px 60px rgba(20, 20, 30, 0.14);
  --header: rgba(251, 250, 248, 0.82);
  --radius: 18px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* dark: chosen in the header (data-theme, theme.js), or like the system when nothing is chosen */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1014;
  --bg-soft: #13161b;
  --card: #171a20;
  --line: #272b33;
  --text: #f1efeb;
  --muted: #a7abb3;
  --accent: #ff8a3d;
  --accent-text: #ff9a55;
  --on-accent: #1b1006;
  --accent-fill: #ff8a3d;
  --accent-tint: rgba(255, 138, 61, 0.12);
  --glow: rgba(255, 138, 61, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.45), 0 24px 60px rgba(0, 0, 0, 0.5);
  --header: rgba(14, 16, 20, 0.78);
  --fill-from: #ffa45e;
  --fill-to: #ff7b2c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1014;
    --bg-soft: #13161b;
    --card: #171a20;
    --line: #272b33;
    --text: #f1efeb;
    --muted: #a7abb3;
    --accent: #ff8a3d;
    --accent-text: #ff9a55;
    --on-accent: #1b1006;
    --accent-fill: #ff8a3d;
    --accent-tint: rgba(255, 138, 61, 0.12);
    --glow: rgba(255, 138, 61, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.45), 0 24px 60px rgba(0, 0, 0, 0.5);
    --header: rgba(14, 16, 20, 0.78);
    --fill-from: #ffa45e;
    --fill-to: #ff7b2c;
  }
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -0.025em; }
h3 { font-size: 1.12rem; }
p { margin: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent-fill); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

.ico { width: 24px; height: 24px; flex: none; color: var(--accent-text); }
.btn .ico, .lang summary .ico { color: inherit; }

/* header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.brand .ver { margin-left: -5px; align-self: flex-end; padding-bottom: 3px; font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
/* the version beside the name leads to the changes page */
.brandbox { display: flex; align-items: center; flex-shrink: 0; }
.brandbox .ver { margin-left: 2px; align-self: center; margin-top: 6px; padding: 1px 6px; border-radius: 6px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.72rem; color: var(--muted); text-decoration: none; border: 1px solid transparent; }
.brandbox .ver:hover { color: var(--accent-text); border-color: var(--line); background: var(--accent-tint); }
.top nav { display: flex; gap: 18px; margin-left: 2px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; white-space: nowrap; }
.top nav a:hover { color: var(--text); }
.top .spacer { flex: 1; }

.lang { position: relative; font-size: 0.92rem; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 10px; color: var(--muted); border: 1px solid transparent;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); border-color: var(--line); background: var(--card); }
.lang summary .ico { width: 18px; height: 18px; }
.community {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; font-size: 0.92rem;
  color: var(--muted); text-decoration: none; border: 1px solid transparent;
}
.community:hover { color: var(--text); border-color: var(--line); background: var(--card); }
.community .ico { width: 18px; height: 18px; color: inherit; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; min-width: 220px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.lang li a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--text); text-decoration: none; }
.lang li a:hover { background: var(--accent-tint); }
.lang li a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px; font-weight: 600; text-decoration: none; line-height: 1.2;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn .ico { width: 20px; height: 20px; }
.btn.primary {
  background: linear-gradient(135deg, var(--fill-from), var(--fill-to)); border-color: transparent; color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 18px var(--glow);
}
.btn.primary:hover { filter: saturate(1.1) brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 28px var(--glow); }
.btn.ghost { background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(8px); }
.btn.small { padding: 7px 14px; border-radius: 10px; font-size: 0.9rem; }
.btn.big { padding: 17px 30px; font-size: 1.15rem; border-radius: 16px; box-shadow: 0 10px 30px var(--glow); }
.btn.big .ico { width: 22px; height: 22px; }

/* hero */
.hero { position: relative; text-align: center; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto; height: 680px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
}
.hero .appicon { width: 128px; height: 128px; margin: 0 auto 18px; }
.kicker { color: var(--accent-text); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; margin-bottom: 10px; }
.hero h1 { font-size: clamp(3rem, 2rem + 5vw, 5.2rem); letter-spacing: -0.04em; }
.tagline { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); font-weight: 600; margin-top: 10px; letter-spacing: -0.015em; }
.lead { max-width: 640px; margin: 18px auto 0; color: var(--muted); font-size: 1.12rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px auto 0; padding: 0; list-style: none; max-width: 720px; }
.chips li { font-size: 0.86rem; padding: 5px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--text); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 32px; }
.note { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }

.banner { margin: 48px auto 0; }
.banner img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.banner figcaption { margin-top: 12px; color: var(--muted); font-size: 0.85rem; }

/* sections */
section { padding: 84px 0 0; }
.head { max-width: 720px; margin-bottom: 36px; }
.head p { margin-top: 12px; color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: block; color: var(--accent-text); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid .wide { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
}
.card .tile {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.97rem; }

.why { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.why .card { padding: 28px; }
/* an odd card at the end takes the whole row instead of leaving a gap beside it */
.why .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.why h3 { font-size: 1.3rem; }
.why p + p { margin-top: 10px; }
.why .fine { font-size: 0.86rem; }

.models { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); padding: 0; margin: 0; list-style: none; }
.models .card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.models .pic { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.models .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.models .body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 22px; }
.models h3 { font-size: 1.05rem; }
.grid .full { grid-column: 1 / -1; }
.models .new, .grid .new { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); }
.models .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.models .tags span { font-size: 0.78rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.models .tags .rt { background: var(--bg-soft); font-weight: 600; }
.models-fine { margin-top: 18px; max-width: 720px; color: var(--muted); font-size: 0.86rem; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { position: relative; padding: 24px 22px 22px 74px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 22px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-fill); color: var(--on-accent); font-weight: 700;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 0.97rem; }
.steps b { color: var(--text); font-weight: 600; }

.shots { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.shots figure { margin: 0; }
.shots a { display: block; border-radius: 14px; }
.shots img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: top left;
  border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shots a:hover img { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.shots figcaption { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.shots figcaption b { color: var(--text); font-weight: 600; }

.responsible {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px;
}
.responsible .ico { width: 30px; height: 30px; margin-top: 2px; }
.responsible h2 { font-size: 1.4rem; letter-spacing: -0.015em; margin-bottom: 6px; }
.responsible p { color: var(--muted); }
.resp-list { color: var(--muted); margin: 0; padding-left: 1.1em; list-style: "– "; }
.resp-list li + li { margin-top: 4px; }

.links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); padding: 0; margin: 0; list-style: none; }
.links a {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease;
}
.links a:hover { border-color: var(--accent); transform: translateY(-1px); }
.links span { display: block; }
.links small { display: block; color: var(--muted); font-size: 0.84rem; margin-top: 2px; }

.support {
  margin-top: 84px; text-align: center; padding: 56px 24px; border-radius: 24px;
  background: radial-gradient(120% 140% at 50% 0%, var(--glow), transparent 60%), var(--bg-soft);
  border: 1px solid var(--line);
}
.support h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.support p { max-width: 560px; margin: 12px auto 26px; color: var(--muted); }

footer { margin-top: 72px; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
footer .wrap { display: grid; gap: 8px; text-align: center; }
footer .ai { color: var(--text); font-weight: 500; }

/* five menu items, the language, Discord, theme and Download fit side by side from about 1240 px (Portuguese) */
/* the wrap stays 1120 px wide above that: the longest menu (Portuguese) needs tighter gaps to fit */
/* below that the menu folds into a button (no script: details/summary), as the language list does */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; padding: 6px 8px; border-radius: 10px; color: var(--muted); border: 1px solid transparent; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { color: var(--text); border-color: var(--line); background: var(--card); }
.menu summary .ico { width: 22px; height: 22px; }
.menu summary .close, .menu[open] summary .ico:not(.close) { display: none; }
.menu[open] summary .close { display: block; }
.menu .panel {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; padding: 6px; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.menu .panel a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px; color: var(--text); text-decoration: none; }
.menu .panel a:hover { background: var(--accent-tint); }
.menu .panel a .ico { width: 18px; height: 18px; }
.menu .panel .phone { display: none; }
.menu .panel .theme { margin: 6px 6px 2px; }
@media (max-width: 1240px) {
  .top nav { display: none; }
  .menu { display: block; }
}
.top .wrap:has(nav) { gap: 14px; }
.top nav { gap: 14px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; overflow-x: hidden; }
  .top .wrap { gap: 8px; }
  .brandbox .ver { display: none; }
  /* the bar keeps the brand, the language, the menu and Download; Discord and the appearance move into the menu */
  .top .wrap > .community, .top .wrap > .theme { display: none; }
  .menu .panel .phone { display: flex; }
  /* the panel spans the screen: beside the brand it would reach past the left edge */
  .menu .panel { position: fixed; left: 12px; right: 12px; top: 60px; min-width: 0; }
  .lang summary span { display: none; }
  .top .btn.small { padding: 7px 10px; }
  .hero { padding-top: 48px; }
  .hero .appicon { width: 104px; height: 104px; }
  .btn.big { width: 100%; }
  .cta .btn { width: 100%; }
  section { padding-top: 64px; }
  .responsible { flex-direction: column; padding: 22px; }
  .steps li { padding-left: 70px; }
}

@media (max-width: 360px) {
  .top .btn.small { display: none; }  /* the hero's own download button is right below */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.btn.ghost { box-shadow: none; }
.btn.ghost:hover { box-shadow: var(--shadow); }

/* legal notice and privacy */
.legal-page { padding: 48px 0 80px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: 2rem; margin: 1.2em 0 0.4em; }
.legal-page h2 { font-size: 1.15rem; margin: 1.6em 0 0.4em; }
.legal-page p { line-height: 1.6; }
.legal-page hr { margin: 48px 0 8px; border: 0; border-top: 1px solid currentColor; opacity: 0.2; }
footer .legal a { color: inherit; display: inline-block; padding: 5px 2px; }

/* the gallery: pictures made with VulKara. Squares stay whole; the wide ones fill two columns and lose only some of
   their top, so the EU icon in the lower right corner always shows */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow-lg); aspect-ratio: 1; }
.gallery figure.wide { grid-column: span 2; aspect-ratio: auto; }
/* the wide picture takes the row's height (set by the squares) instead of setting it */
.gallery figure.wide img { position: absolute; inset: 0; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transition: transform 0.5s ease; transform-origin: 50% 100%; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; top: 0; padding: 12px 14px 28px; font-size: 0.9rem; color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.62), transparent); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery figure.wide { aspect-ratio: 1200 / 686; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery figure.wide { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .gallery img, .gallery figcaption { transition: none; } }
.note.inspired { margin-top: 6px; font-style: italic; }


.stream {
  padding: 40px 36px; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 100% 0%, var(--glow), transparent 60%), var(--bg-soft);
}
.stream .head { margin-bottom: 26px; }
.stream .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.stream .eyebrow .ico { width: 18px; height: 18px; }
.stream .points { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.stream article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.stream .tile { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); display: grid; place-items: center; margin-bottom: 12px; }
.stream h3 { margin-bottom: 6px; }
.stream article p { color: var(--muted); font-size: 0.97rem; }
.stream .fine { margin-top: 18px; color: var(--muted); font-size: 0.86rem; }
@media (max-width: 560px) { .stream { padding: 28px 20px; } }
/* Coming next: a dark spotlight band, the same in light and dark mode */
.spotlight {
  margin-top: 84px; padding: 72px 0 64px; color: #f3f1ed;
  background: radial-gradient(70% 90% at 15% 0%, rgba(255, 138, 61, 0.28), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(120, 220, 200, 0.16), transparent 60%), #121419;
}
.spot-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 138, 61, 0.16); border: 1px solid rgba(255, 138, 61, 0.55); color: #ffb27d;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ff8a3d; box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(255, 138, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.spotlight h2 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.05; margin: 18px 0 14px; color: #fff; }
.spot-lead { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem); color: #d9d6d0; }
.mosaic { display: grid; gap: 14px; grid-template-columns: 1.5fr repeat(3, 1fr); grid-template-rows: auto auto; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.12); }
.mosaic .ref { grid-row: span 2; border: 2px solid #ff8a3d; box-shadow: 0 0 40px rgba(255, 138, 61, 0.25); }
.mosaic img { display: block; width: 100%; height: 100%; aspect-ratio: 848 / 1216; object-fit: cover; object-position: 50% 100%; }
.mosaic .ref { background: #d9d9d6; min-height: 320px; }
.mosaic .ref img { aspect-ratio: auto; position: absolute; inset: 0; object-fit: cover; object-position: 50% 100%; }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; top: 0; padding: 10px 12px 18px; font-size: 0.8rem; font-weight: 600; color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.6), transparent);
}
.spot-cap { margin-top: 18px; text-align: center; color: #bdb9b2; font-size: 0.9rem; }
.spot-fine { margin-top: 8px; text-align: center; color: #ffb27d; font-weight: 600; font-size: 0.92rem; display: flex; gap: 8px; justify-content: center; align-items: center; }
.spot-fine .ico { width: 18px; height: 18px; }
.spot-second { margin-top: 64px; }
.spot-second::before { content: ""; display: block; height: 2px; margin: 0 auto 64px; background: linear-gradient(90deg, transparent, rgba(255, 178, 125, 0.85), transparent); }
.pose-teaser { max-width: 640px; margin: 0 auto 28px; text-align: center; }
.pose-teaser img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.12); }
.pose-teaser figcaption { margin-top: 10px; color: #bdb9b2; font-size: 0.9rem; }
.spotlight .spot-second h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); margin-top: 0; }
.spot-points { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin-bottom: 28px; }
@media (min-width: 1000px) { .spot-points { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .spot-points { grid-template-columns: 1fr; } }
.spot-points article { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 20px; }
.spot-points .tile { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 178, 125, 0.14); color: #ffb27d; display: grid; place-items: center; margin-bottom: 12px; }
.spot-points h3 { color: #fff; margin-bottom: 6px; }
.spot-points p { color: #d9d6d0; font-size: 0.97rem; }
.pill-next {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 16px; border-radius: 999px;
  background: #121419; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  border: 1px solid rgba(255, 138, 61, 0.6); transition: transform 0.15s ease;
}
.pill-next:hover { transform: translateY(-1px); }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic .ref { grid-row: auto; grid-column: span 2; }
  .mosaic .ref { min-height: 0; }
  .mosaic .ref img { position: static; aspect-ratio: 848 / 1216; }
}

/* ---- motion: a few calm movements, transform and opacity only, none with reduced motion */
@media (prefers-reduced-motion: no-preference) {
  /* the app icon floats; its glow breathes */
  .hero .appicon { animation: float 6s ease-in-out infinite; filter: drop-shadow(0 18px 36px var(--glow)); }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  /* cards lift, their icon turns slightly toward the pointer */
  .card, .stream article { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease; }
  .card:hover, .stream article:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
  /* a model's picture comes slowly closer */
  .models .pic img { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .models .card:hover .pic img { transform: scale(1.06); }
  .card .tile, .stream .tile { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease; }
  .card:hover .tile, .stream article:hover .tile { transform: scale(1.1) rotate(-6deg); background: color-mix(in srgb, var(--accent) 20%, transparent); }
  /* the main button: a light passes over it */
  .btn.primary.big { position: relative; overflow: hidden; }
  .btn.primary.big::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform 0.7s ease;
  }
  .btn.primary.big:hover::after { transform: translateX(120%); }
  /* sections and pictures come in as they scroll into view, where the browser can tie motion to scrolling */
  @supports (animation-timeline: view()) {
    .card, .stream article, .steps li, .gallery figure, .mosaic figure, .shots figure, .links li, .spot-head, .head {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%;
    }
    /* translate and scale, not transform: the hover lift of the cards (transform) keeps working */
    @keyframes rise { from { opacity: 0; translate: 0 28px; scale: 0.98; } to { opacity: 1; translate: none; scale: none; } }
  }
}

/* ---- appearance switch in the header: like the system, light, dark */
.theme { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.theme button {
  display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 999px; padding: 0;
  background: transparent; color: var(--muted); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease;
}
.theme button .ico { width: 16px; height: 16px; color: inherit; }
.theme button:hover { color: var(--text); }
.theme button[aria-pressed="true"] { background: var(--accent-tint); color: var(--accent-text); }
@media (max-width: 860px) { .theme button { width: 34px; height: 34px; } }

/* ---- the Homebrew command: a small terminal line with a copy button */
.cmd {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 14px; padding: 6px 6px 6px 14px;
  border-radius: 14px; background: #15171c; color: #e9e6e1; border: 1px solid #2a2e36; box-shadow: var(--shadow);
}
.cmd-label { font-size: 0.82rem; color: #a5a9b1; white-space: nowrap; }
.cmd code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88rem; user-select: all; overflow-wrap: anywhere; text-align: left; }
.cmd .prompt { color: #ff9a55; user-select: none; }
.cmd .copy {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px;
  border: 1px solid #343843; background: #1f2229; color: #e9e6e1; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cmd .copy:hover { background: #2a2e36; border-color: #4a4f5b; }
.cmd .copy .ico { width: 16px; height: 16px; color: inherit; transition: opacity 0.2s ease, transform 0.2s ease; }
.cmd .copy .done { position: absolute; opacity: 0; transform: scale(0.6); color: #7ee2a8; }
.cmd .copy.done .ico:not(.done) { opacity: 0; transform: scale(0.6); }
.cmd .copy.done .done { opacity: 1; transform: none; }
@media (max-width: 560px) { .cmd { flex-wrap: wrap; justify-content: center; padding: 10px; } .cmd-label { width: 100%; text-align: center; } }

/* the changes page (site/changes, from CHANGELOG.md): a technical look, monospaced labels and a release index */
.changes-page { --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }
.cl-top { position: sticky; top: 0; z-index: 10; background: var(--header); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.cl-top .wrap { display: flex; align-items: center; gap: 18px; height: 56px; }
.cl-top .path { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-top .path b { color: var(--accent-text); font-weight: 600; }
.changes-page .spacer { flex: 1; }
.changes-page a.gh { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.changes-page a.gh:hover { color: var(--accent-text); }
.changes-page .intro { padding: 40px 0 8px; }
.changes-page .intro h1 { font-family: var(--mono); font-size: 1.9rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.changes-page .intro h1::before { content: "# "; color: var(--accent-text); }
.changes-page .intro p { color: var(--muted); margin: 0; line-height: 1.6; }
.changes-page .stat { display: block; margin-top: 6px; font-family: var(--mono); font-size: 0.82rem; }
.cl-grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 24px 0 64px; align-items: start; }
.cl-grid .index { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; border-right: 1px solid var(--line); padding-right: 12px; }
.cl-grid .index ol { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 0.8rem; }
.cl-grid .index a { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.cl-grid .index a:hover { background: var(--accent-tint); color: var(--text); }
.cl-grid .index time { opacity: 0.7; }
.release { padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 22px; overflow: hidden; scroll-margin-top: 72px; }
.release > header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.82rem; }
.release .tag { font-size: 1rem; font-weight: 700; color: var(--accent-text); text-decoration: none; }
.release time, .release .count { color: var(--muted); }
.release .latest { padding: 1px 8px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); font-weight: 600; }
.release > header .gh { margin-left: auto; }
.release .note { margin: 14px 18px 0; color: var(--muted); line-height: 1.6; }
.release .entries { list-style: none; margin: 0; padding: 6px 0; }
.release .entries > li { position: relative; padding: 10px 18px 10px 38px; line-height: 1.6; border-top: 1px dashed var(--line); }
.release .entries > li:first-child { border-top: 0; }
.release .entries > li::before { content: "+"; position: absolute; left: 18px; top: 10px; font-family: var(--mono); font-weight: 700; color: var(--accent-text); }
.release .title { font-weight: 650; }
.release ul ul { margin: 6px 0 0; padding-left: 18px; }
.release code { font-family: var(--mono); font-size: 0.86em; padding: 1px 5px; border-radius: 5px; background: var(--bg-soft); border: 1px solid var(--line); }
@media (max-width: 760px) {
  .cl-grid { grid-template-columns: 1fr; gap: 16px; }
  .cl-grid .index { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; }
  .cl-grid .index ol { display: flex; flex-wrap: wrap; gap: 4px; }
  .cl-grid .index time { display: none; }
  .cl-top .path { display: none; }
  .release .entries > li { padding-left: 32px; }
  .release .entries > li::before { left: 14px; }
}
/* phones: the links of the sub pages' header go into a second row instead of widening the page */
@media (max-width: 560px) {
  .cl-top .wrap { flex-wrap: wrap; height: auto; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
  .changes-page .spacer { flex-basis: 100%; height: 0; }
  .release { scroll-margin-top: 100px; }
}

/* the benchmarks page (site/benchmarks, tools/build_site_benchmarks.mjs): dumbbells and bars in plain HTML, the marks'
   positions in its charts.css; two validated series colours, each stepped for its surface */
.bench-page { --s-a: #2a78d6; --s-b: #eb6834; --grid: rgba(20, 20, 30, 0.08); }
:root[data-theme="dark"] .bench-page { --s-a: #3987e5; --s-b: #d95926; --grid: rgba(255, 255, 255, 0.08); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bench-page { --s-a: #3987e5; --s-b: #d95926; --grid: rgba(255, 255, 255, 0.08); }
}
.bench-page .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 8px; }
.bench-page .tile { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 14px 16px; }
.bench-page .tile .big { margin: 0; font-family: var(--mono); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.bench-page .tile .big span { font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.bench-page .tile .what { margin: 2px 0 10px; color: var(--muted); font-size: 0.9rem; }
.bench-page .tile .vals { margin: 6px 0 0; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.bench-page .spark { display: block; width: 100%; max-width: 180px; height: 22px; }
.bench-page .spark .a { fill: var(--s-a); }
.bench-page .spark .b { fill: var(--s-b); }
.bench-page .chart { padding: 0; margin: 36px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 18px 18px 8px; }
.bench-page .chart h2 { font-family: var(--mono); font-size: 1.05rem; margin: 0 0 4px; }
.bench-page .chart .sub { margin: 0 0 10px; color: var(--muted); line-height: 1.55; font-size: 0.92rem; }
.bench-page .legend { display: flex; gap: 18px; margin: 0 0 6px; font-size: 0.82rem; color: var(--muted); font-family: var(--mono); }
.bench-page .legend .k { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.bench-page .k.a { background: var(--s-a); }
.bench-page .k.b { background: var(--s-b); }
.bench-page .bx-row { display: grid; grid-template-columns: minmax(150px, 250px) 1fr 200px; gap: 14px; align-items: center; min-height: 40px; border-radius: 6px; }
.bench-page .bx-row[data-tip]:hover, .bench-page .bx-row[data-tip]:focus-visible { background: var(--accent-tint); outline: none; }
.bench-page .dot-label { font-size: 0.88rem; line-height: 1.25; padding-left: 4px; }
.bench-page .dot-label small, .bench-page .micro td small { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.bench-page .bx-track { position: relative; height: 24px; }
.bench-page .bx-axis { min-height: 22px; }
.bench-page .bx-axis .bx-track { height: 18px; }
.bench-page .tick { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--mono); font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.bench-page .grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--grid); }
.bench-page .bar-link { position: absolute; top: 11px; height: 2px; background: var(--muted); opacity: 0.45; }
.bench-page .bd { position: absolute; top: 6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--card); }
.bench-page .bd.a { background: var(--s-a); }
.bench-page .bd.b { background: var(--s-b); }
.bench-page .hbar { position: absolute; left: 0; top: 4px; height: 16px; border-radius: 0 4px 4px 0; background: var(--s-b); }
.bench-page .bx-value { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); text-align: right; padding-right: 6px; white-space: nowrap; }
.bench-page .bx-table { margin: 10px 0 8px; font-size: 0.85rem; }
.bench-page .bx-table summary { cursor: pointer; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.bench-page table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.bench-page th, .bench-page td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.bench-page th { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.bench-page .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.bench-page .micro tr[data-tip]:hover td, .bench-page .micro tr[data-tip]:focus-visible td { background: var(--accent-tint); }
.bench-page .micro .bars { width: 34%; }
.bench-page .mbar { display: block; height: 7px; border-radius: 0 3.5px 3.5px 0; margin: 2px 0; min-width: 3px; }
.bench-page .mbar.a { background: var(--s-a); }
.bench-page .mbar.b { background: var(--s-b); }
.bench-page .worse { color: var(--accent-text); }
.bx-tip { position: fixed; z-index: 50; max-width: 360px; padding: 8px 10px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 0.8rem; line-height: 1.45; pointer-events: none; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .bench-page .tiles { grid-template-columns: repeat(2, 1fr); }
  .bench-page .bx-row { grid-template-columns: 1fr auto; grid-template-areas: "label value" "track track"; gap: 2px 10px; padding: 6px 0; }
  .bench-page .bx-row .dot-label { grid-area: label; }
  .bench-page .bx-row .bx-value { grid-area: value; align-self: start; padding-right: 0; font-size: 0.72rem; }
  .bench-page .bx-row .bx-track { grid-area: track; margin: 0 8px; }
  .bench-page .bx-axis { grid-template-areas: "track track"; }
  .bench-page .bx-axis .dot-label, .bench-page .bx-axis > span:last-child { display: none; }
  .bench-page .tile .big span { display: block; margin: 2px 0 0; }
  .bench-page .chart { padding: 14px 12px 6px; }
  .bench-page .micro th:nth-child(3), .bench-page .micro td:nth-child(3), .bench-page .micro th:nth-child(4), .bench-page .micro td:nth-child(4) { display: none; }
}

/* results page: pictures at full width of their column, pairs side by side */
.results-page .chart .prompt { font-family: var(--mono); font-size: 0.85rem; color: var(--text); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; white-space: pre-wrap; word-break: break-word; }
.results-page .item { padding: 14px 0 6px; border-top: 1px solid var(--line); }
.results-page .item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.results-page .item .note { color: var(--muted); margin: 0 0 8px; line-height: 1.5; }
.results-page .runs { list-style: none; margin: 0 0 12px; padding: 0; font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.results-page .runs b { color: var(--text); font-weight: 600; }
.results-page .pics { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.results-page .pics figure { margin: 0; }
.results-page .pics figure.wide { grid-column: 1 / -1; }
.results-page .pics img, .results-page .pics video { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-lg); background: var(--bg-soft); }
.results-page .pics figcaption { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
