/* TuneCraft site. Colors are tokens; light and dark follow the system. */

/* Fonts are served from the site (Latin subsets, variable weight), so nothing waits on a third party. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #F5F6F8;
  --bg-2: #FFFFFF;
  --card: #FFFFFF;
  --edge: rgba(12, 16, 28, 0.09);
  --text: #0C0F1A;
  --text-2: #3C4253;
  --text-3: #5D6478;
  --accent: #28DCAA;          /* the mod's interface accent */
  --accent-ink: #0B7A5C;      /* accent used as text on light: 5.1:1 on white */
  --ring: #0B7A5C;            /* focus ring: 4.9:1 on the light page */
  --on-accent: #04140F;
  --accent-hover: #3BE8B8;
  --stage: #0B0A12;           /* behind screenshots and clips: the game is always dark */
  --wash: rgba(40, 220, 170, 0.10);
  --lift: 0 1px 2px rgba(10, 14, 30, 0.12), 0 6px 16px rgba(10, 14, 30, 0.12);
  --bar: rgba(245, 246, 248, 0.78);
  --shadow: 0 1px 2px rgba(10, 14, 30, 0.06), 0 12px 40px rgba(10, 14, 30, 0.10);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.75, 0.15, 1);
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0A12;
    --bg-2: #12111C;
    --card: #15141F;
    --edge: rgba(255, 255, 255, 0.08);
    --text: #F3F4F8;
    --text-2: #C3C6D2;
    --text-3: #9CA0B2;
    --accent-ink: #4BE6BA;
    --ring: #28DCAA;
    --wash: rgba(40, 220, 170, 0.08);
    --lift: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.35);
    --bar: rgba(11, 10, 18, 0.72);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0A12; --bg-2: #12111C; --card: #15141F; --edge: rgba(255, 255, 255, 0.08);
  --text: #F3F4F8; --text-2: #C3C6D2; --text-3: #9CA0B2; --accent-ink: #4BE6BA; --ring: #28DCAA;
  --wash: rgba(40, 220, 170, 0.08); --lift: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.35); --bar: rgba(11, 10, 18, 0.72);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
@media (prefers-contrast: more) {
  :root { --text-2: var(--text); --text-3: var(--text-2); --edge: rgba(127, 127, 127, 0.5); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.55 "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
::selection { background: color-mix(in srgb, var(--accent) 38%, transparent); color: var(--text); }
html { accent-color: var(--accent); caret-color: var(--accent-ink); scrollbar-color: color-mix(in srgb, var(--text) 28%, transparent) transparent; }
table, .versions, .mc, figcaption { font-variant-numeric: tabular-nums; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 8px; }
code, kbd {
  font: 0.88em/1 ui-monospace, "SF Mono", Menlo, monospace;
  padding: 0.18em 0.42em; border-radius: 6px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
kbd { border: 1px solid var(--edge); border-bottom-width: 2px; }
h1, h2, h3 { margin: 0; font-family: "Bricolage Grotesque", "Onest", system-ui, sans-serif; font-optical-sizing: auto; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
.brand { font-family: "Bricolage Grotesque", system-ui, sans-serif; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(var(--wrap), 100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip:focus { top: 12px; }

/* Bar: the one floating, translucent layer */
.bar { position: sticky; top: 0; z-index: 10; background: var(--bar); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--edge); }
@media (prefers-reduced-transparency: reduce) { .bar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.bar-in { width: min(var(--wrap), 100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)); margin-inline: auto; height: 60px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.links { display: flex; gap: 4px; list-style: none; margin: 0 auto 0 12px; padding: 0; }
.links a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-size: 0.9375rem; font-weight: 500; }
.links a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); text-decoration: none; }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .bar-in { gap: 10px; }
  .brand { margin-right: auto; }
  /* Without JS the links stay as a row you can swipe; with JS they fold into a menu. */
  .links { order: 3; flex-basis: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .bar-in:has(.links) { flex-wrap: wrap; height: auto; min-height: 60px; padding-block: 12px; }
  .js .bar-in { flex-wrap: nowrap; height: 60px; padding-block: 0; }
  .js .menu-btn { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border-radius: 12px; cursor: pointer; color: var(--text); }
  .js .menu-btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 0; }
  .menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .menu-btn path { transition: transform 0.35s var(--ease); transform-origin: 12px 12px; }
  .bar.open .menu-btn .l1 { transform: translateY(4px) rotate(45deg); }
  .bar.open .menu-btn .l2 { transform: translateY(-4px) rotate(-45deg); }
  .js .links { position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 2px; padding: 8px max(16px, env(safe-area-inset-left)) 16px; background: var(--bar); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--edge);
    opacity: 0; transform: translateY(-6px); visibility: hidden; transition: opacity 0.2s ease, transform 0.35s var(--ease), visibility 0s linear 0.35s; }
  .js .bar.open .links { opacity: 1; transform: none; visibility: visible; transition: opacity 0.2s ease, transform 0.35s var(--ease), visibility 0s; }
  .js .links a { min-height: 48px; display: flex; align-items: center; font-size: 1.0625rem; padding: 0 12px; }
  .js .links a::after { display: none; }
}
@media (max-width: 760px) and (prefers-reduced-transparency: reduce) { .js .links { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.2s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--lift); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-quiet { color: var(--text); border-color: var(--edge); background: color-mix(in srgb, var(--card) 70%, transparent); }
.btn-quiet:hover { background: var(--card); }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 0.875rem; box-shadow: none; }
.btn-wide { width: 100%; max-width: 360px; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--edge); background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--text-2); font-size: 0.875rem; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Hero */
.hero { position: relative; padding: 84px 0 24px; text-align: center; isolation: isolate; }
.hero h1 { margin-top: 22px; font-size: clamp(2.5rem, 7vw, 4.75rem); font-weight: 800; }
.lede { max-width: 620px; margin: 22px auto 0; color: var(--text-2); font-size: clamp(1.125rem, 2.2vw, 1.3125rem); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.hero-shot { margin-top: 56px; margin-bottom: 0; }
.hero-shot img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--edge); }
.facts { list-style: none; padding: 0; margin-top: 1.625rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; color: var(--text-3); font-size: 0.9375rem; }
.facts li { display: flex; align-items: center; gap: 0.5rem; }
.facts li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-ink); }

/* Sections */
.section { padding: 112px 0 0; }
.section-tight { padding-top: 96px; }
.head { max-width: 680px; margin-bottom: 40px; }
.head h2, .split-text h2, .get h2 { font-size: clamp(2.125rem, 5vw, 3.5rem); font-weight: 700; }
.sub { margin-top: 16px; color: var(--text-2); font-size: 1.1875rem; }
.note { margin-top: 18px; color: var(--text-3); font-size: 0.9375rem; }

/* The menu tour: the page's signature. The real sidebar in the screenshot is the control. */
.tour { position: relative; }
.tour-tabs { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1600 / 878; pointer-events: none; z-index: 1; }
.tab { all: unset; box-sizing: border-box; position: absolute; left: 2.1%; width: 22.1%; top: var(--top); height: var(--h); border-radius: 1.1vw; pointer-events: auto; cursor: pointer; color: transparent; transition: background 0.15s ease, box-shadow 0.15s ease; }
.tab svg { display: none; }
.tab:hover { background: rgba(255, 255, 255, 0.07); }
.tab[aria-selected="true"]:hover { background: transparent; }
.tab:focus-visible { box-shadow: 0 0 0 3px #28DCAA, 0 0 0 5px #04140F; } /* sits on the dark screenshot in both themes */
.tour-view { margin: 0; }
.tour-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--stage); box-shadow: var(--shadow), 0 0 0 1px var(--edge); aspect-ratio: 1600 / 878; }
.tour-frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.18s ease; }
.tour-frame img.out { opacity: 0.35; }
.tour-view figcaption { margin-top: 16px; color: var(--text-3); font-size: 1rem; }
.tour-view figcaption b { color: var(--text); font-weight: 600; }
@media (min-width: 1240px) { .tab { border-radius: 14px; } }
@media (max-width: 900px) {
  .tour-tabs { position: static; width: auto; aspect-ratio: auto; pointer-events: auto; display: flex; overflow-x: auto; gap: 8px; margin: 0 -16px 14px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tab { position: static; width: auto; height: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; scroll-snap-align: start; border: 1px solid var(--edge); border-radius: 999px; color: var(--text-2); font-size: 0.9375rem; font-weight: 500; background: var(--card); }
  .tab svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .tab:hover { background: var(--card); color: var(--text); }
  .tab[aria-selected="true"], .tab[aria-selected="true"]:hover { background: color-mix(in srgb, var(--accent) 18%, var(--card)); color: var(--text); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
  .tab[aria-selected="true"] svg { color: var(--accent-ink); }
}

/* Split */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.split-shot { margin: 0; }
.split-shot img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--edge); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 28px; }
.card { margin: 0; }
.clip { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stage); border: 1px solid var(--edge); transition: transform 0.5s var(--ease); }
.clip video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card h3 { margin: 18px 2px 6px; font-size: 1.375rem; font-weight: 700; }
.card p { margin: 0 2px; color: var(--text-2); font-size: 1rem; max-width: 34ch; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .clip { aspect-ratio: 1 / 1; } }

/* Looks rail */
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(16px, calc((100vw - var(--wrap)) / 2)) 18px; scroll-padding-inline: max(16px, calc((100vw - var(--wrap)) / 2)); scrollbar-width: thin; }
.rail figure { margin: 0; flex: 0 0 min(560px, 84vw); scroll-snap-align: start; }
.rail img { border-radius: 18px; border: 1px solid var(--edge); box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.rail figcaption { margin-top: 12px; color: var(--text-3); font-size: 0.9375rem; }
.rail figcaption b { color: var(--text); font-weight: 600; }

.rail-nav { display: flex; gap: 10px; justify-content: flex-end; margin: -24px 0 16px; }
.round { all: unset; box-sizing: border-box; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--edge); background: var(--card); color: var(--text); transition: background 0.15s ease, opacity 0.15s ease; }
.round:hover { background: color-mix(in srgb, var(--text) 8%, var(--card)); }
.round:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.round:disabled { opacity: 0.35; cursor: default; }
.round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) { .rail-nav { display: none; } }

/* Table */
.table { overflow-x: auto; padding: 6px 8px; border-radius: var(--radius); border: 1px solid var(--edge); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 520px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--edge); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { color: var(--text-3); font-size: 0.875rem; font-weight: 600; }
tbody th { font-weight: 600; }
td { color: var(--text-2); }
.yes, .no { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.yes { color: var(--text); }
.yes::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%2304140F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.no { color: var(--text-3); font-weight: 500; }
.no::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }

/* Download */
.get { text-align: center; padding: 56px 28px; border-radius: 28px; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow); position: relative; overflow: hidden; isolation: isolate; }
.get h2 { margin-top: 18px; }
.get .sub { max-width: 480px; margin-inline: auto; }
.steps { list-style: none; padding: 0; margin: 32px auto; max-width: 460px; display: grid; gap: 14px; text-align: left; }
.steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.steps span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.875rem; font-weight: 700; color: var(--on-accent); background: var(--accent); }
.steps b { color: var(--text); }
.versions { list-style: none; padding: 0; margin: 28px auto 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 560px; }
.versions li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--edge); color: var(--text-2); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.get .note { max-width: 520px; margin-inline: auto; }

/* Team */
.head-img { width: 56px; height: 56px; border-radius: 12px; image-rendering: pixelated; flex: none; box-shadow: 0 0 0 1px var(--edge); }
.owner { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--edge); color: var(--text); transition: border-color 0.15s ease, transform 0.15s ease; }
.owner:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 55%, var(--edge)); }
.owner .head-img { width: 72px; height: 72px; border-radius: 14px; }
.owner > div { flex: 1; min-width: 0; }
.who { font-weight: 700; font-size: 1.1875rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.role { font-size: 0.8125rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--on-accent); background: var(--accent); }
.who, .mc { overflow-wrap: anywhere; }
.mc { color: var(--text-3); font: 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; margin-top: 2px; }
.what { color: var(--text-2); font-size: 1rem; margin-top: 6px; }
.lnk { color: var(--accent-ink); font-weight: 600; }
.go { width: 20px; height: 20px; fill: none; stroke: var(--text-3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.testers { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.testers li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--edge); min-width: 0; }
.testers .who { font-size: 1.0625rem; }
@media (max-width: 700px) { .testers { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; border: 1px solid var(--edge); background: var(--card); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--text-3); transition: transform 0.25s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 20px 20px; color: var(--text-2); }

/* Footer */
.foot { margin-top: 120px; padding: 36px 0 48px; border-top: 1px solid var(--edge); }
.foot-in { display: grid; gap: 14px; }
.foot p { color: var(--text-3); font-size: 0.875rem; max-width: 720px; }

/* ───────── Motion: light, CSS-driven, and only once JS adds .motion (never with Reduce Motion) ───────── */

/* Hero headline: each line rises out of a mask, then "sung live" fills the way the mod fills a sung line.
   Two copies sit on top of each other and one shared edge clips both, so nothing overlaps and no gradient text is needed. */
@property --sung { syntax: "<percentage>"; inherits: true; initial-value: 100%; }
.title .ln { display: block; overflow: clip; overflow-clip-margin: 0.12em; padding-bottom: 0.06em; }
.title .ln-i { display: block; }
.sing { position: relative; display: inline-block; white-space: nowrap; }
.sing-base { display: inline-block; clip-path: inset(-0.2em -0.1em -0.2em var(--sung)); }
.sing-fill { position: absolute; inset: 0; color: var(--accent-ink); clip-path: inset(-0.2em calc(100% - var(--sung)) -0.2em -0.1em); }
.motion .title .ln-i { transform: translateY(108%); transition: transform 1s var(--ease); }
.motion.ready .title .ln-i { transform: none; transition-delay: 0.12s; }
.motion.ready .title .ln + .ln .ln-i { transition-delay: 0.22s; }
.motion .sing { --sung: 0%; }
.motion.ready .sing { animation: sing 1.4s cubic-bezier(0.45, 0, 0.3, 1) 1s forwards; }
@keyframes sing { to { --sung: 100%; } }

/* Hero supporting copy follows the title. */
.motion .hero :is(.pill, .lede, .cta), .motion .bar { opacity: 0; transform: translateY(10px); transition: opacity 0.8s ease, transform 0.9s var(--ease); }
.motion .bar { transform: none; }
.motion.ready .hero :is(.pill, .lede, .cta), .motion.ready .bar { opacity: 1; transform: none; }
.motion.ready .hero .pill { transition-delay: 0.05s; }
.motion.ready .hero .lede { transition-delay: 0.45s; }
.motion.ready .hero .cta { transition-delay: 0.55s; }
.motion.ready .bar { transition-delay: 0.35s; }
.motion .hero-shot img { opacity: 0; transform: translateY(40px) scale(0.97); transition: opacity 1.1s ease 0.6s, transform 1.4s var(--ease) 0.6s; }
.motion.ready .hero-shot img { opacity: 1; transform: none; }

/* Nav: an underline slides in on hover and under the section you're reading. */
.links a { position: relative; }
.links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.links a:hover::after, .links a[aria-current="true"]::after { transform: scaleX(1); }
.links a[aria-current="true"] { color: var(--text); }

/* Small touches: buttons lift, cards and shots respond to the pointer. */
.btn { transition: transform 0.3s var(--ease), background 0.2s ease, box-shadow 0.3s ease; }
.btn-primary:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.99); transition-duration: 0.08s; }
.owner, .testers li { transition: transform 0.5s var(--ease), border-color 0.2s ease, box-shadow 0.4s ease; }
@media (hover: hover) {
  .card:hover .clip { transform: translateY(-4px); }
  .testers li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--edge)); }
  .owner:hover { transform: translateY(-3px); }
  .owner:hover .go { transform: translateX(3px); }
  .rail figure img { transition: transform 0.7s var(--ease); }
  .rail figure:hover img { transform: scale(1.015); }
}
.go { transition: transform 0.35s var(--ease); }
.tour-frame img { transition: opacity 0.22s ease, transform 0.5s var(--ease); }
.tour-frame img.out { opacity: 0.35; transform: scale(0.992); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
