/* 1D3R website (1d3r.com). Same graphite and brass as the dashboard,
   with a louder display face and one big moment: the live ticket in the hero. */

@font-face { font-family: "Tektur"; src: url("/site/fonts/tektur-medium.woff") format("woff"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: local("Geist Mono"), url("/site/fonts/geist-mono.woff") format("woff"); font-weight: 400 500; font-display: swap; }

:root {
  --night: #0a0c10;
  --graphite: #10141b;
  --graphite-2: #151a23;
  --steel: #212833;
  --steel-2: #2d3542;
  --bone: #edf0f4;
  --fog: #a3adbb;
  --mist: #6f7a89;
  --brass: #e7b04a;
  --brass-hot: #ffc965;
  --brass-ink: #1b1305;
  --brass-soft: rgba(231, 176, 74, .12);
  --brass-line: rgba(231, 176, 74, .38);
  --ok: #3fbf86; --warn: #f39a52; --down: #f0606a;

  --font: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Tektur", "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 24px;
  --r: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-synthesis: none; background: var(--night); color: var(--bone); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 8px 14px; background: var(--brass); color: var(--brass-ink); border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: -.01em; line-height: .98; color: var(--bone); text-wrap: balance; }
h2.display { font-size: clamp(32px, 4.6vw, 56px); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--fog); max-width: 54ch; line-height: 1.6; }
.sec-lead { margin-top: 16px; font-size: 17px; color: var(--fog); max-width: 60ch; }
.text-link { display: inline-block; margin-top: 22px; color: var(--brass-hot); font-weight: 500; text-underline-offset: 4px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; font: 600 14px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease); }
.btn svg { width: 16px; height: 16px; }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 10px; }
.btn-brass { background: var(--brass); color: var(--brass-ink); box-shadow: 0 0 0 1px rgba(255, 201, 101, .25) inset, 0 10px 30px -10px rgba(231, 176, 74, .6); }
.btn-brass:hover { background: var(--brass-hot); }
.btn-brass:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--steel-2); color: var(--bone); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--fog); background: rgba(255, 255, 255, .05); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(10, 12, 16, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--steel); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
/* The 1D3R mark: the brass tile with its cut corner (img/brand/1d3r-mark.svg). The "1D" text stays for screen readers and old browsers. */
.brand-mark { display: block; width: 32px; height: 32px; background: url("/site/img/brand/1d3r-mark.svg") center / contain no-repeat; color: transparent; font-size: 0; filter: drop-shadow(0 0 10px rgba(231, 176, 74, .45)); }
.brand-name { font: 500 18px/1 var(--display); letter-spacing: .02em; }
.brand-name span { color: var(--fog); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: var(--fog); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: color .15s; }
.nav-links > a:not(.btn):hover, .nav-links > a.is-active { color: var(--bone); }
.nav-links .btn { margin-left: 6px; }
.nav-status { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; font-size: 13.5px !important; }
.nav-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); box-shadow: 0 0 0 3px rgba(111, 122, 137, .18); }
.nav-status.st-ok i { background: var(--ok); box-shadow: 0 0 0 3px rgba(63, 191, 134, .2); animation: pulse 2.4s ease-in-out infinite; }
.nav-status.st-warn i { background: var(--warn); box-shadow: 0 0 0 3px rgba(243, 154, 82, .2); }
.nav-status.st-down i { background: var(--down); box-shadow: 0 0 0 3px rgba(240, 96, 106, .22); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(63, 191, 134, 0); } }
.nav-toggle { display: none; position: relative; width: 42px; height: 42px; border: 1px solid var(--steel-2); border-radius: 8px; background: transparent; cursor: pointer; }
.nav-toggle span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--bone); transition: transform .2s var(--ease), top .2s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 0; overflow: hidden; isolation: isolate; }
.hero-grid { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 65% 35%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 65% 35%, #000 25%, transparent 75%); }
/* The slash: the shape of a Discord command, cut through the hero. */
.hero-slash { position: absolute; z-index: -1; top: -18%; right: 22%; width: clamp(120px, 13vw, 200px); height: 140%; transform: skewX(-24deg); background: linear-gradient(180deg, rgba(255, 201, 101, 0) 0%, rgba(231, 176, 74, .55) 38%, rgba(231, 176, 74, .18) 70%, rgba(231, 176, 74, 0) 100%); filter: blur(.5px); box-shadow: 0 0 120px 30px rgba(231, 176, 74, .12); opacity: .55; }
.hero-slash::after { content: ""; position: absolute; inset: 0 auto 0 -2px; width: 2px; background: linear-gradient(180deg, transparent, var(--brass-hot) 40%, transparent 80%); }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(48px, 6.3vw, 92px); line-height: .92; letter-spacing: -.015em; }
.hero .lead { margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 14px; color: var(--mist); font-size: 14px; }

/* ---------- the Discord window ---------- */
.dc { --dc-bg: #313338; --dc-bar: #2b2d31; --dc-line: #3f4147; --dc-text: #dbdee1; --dc-muted: #949ba4; position: relative; margin: 0; border-radius: 14px; background: var(--dc-bg); color: var(--dc-text); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 80px -20px rgba(231, 176, 74, .25); overflow: hidden; font-size: 15px; line-height: 1.45; }
.dc-bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px; background: var(--dc-bar); border-bottom: 1px solid #1f2023; }
.dc-dots { display: inline-flex; gap: 6px; }
.dc-dots i { width: 10px; height: 10px; border-radius: 50%; background: #4e5058; }
.dc-channel { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #f2f3f5; }
.dc-channel b { color: #80848e; font-size: 20px; font-weight: 500; }
.dc-topic { color: var(--dc-muted); font-size: 13px; padding-left: 12px; border-left: 1px solid var(--dc-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-scroll { position: relative; height: 470px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 10px 0 6px; }
.dc-scroll::before { content: ""; position: absolute; inset: 0 0 auto; height: 60px; z-index: 1; background: linear-gradient(var(--dc-bg), transparent); pointer-events: none; }
.dc-log { display: flex; flex-direction: column; }
.dc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 6px 18px; }
.dc-msg p { color: var(--dc-text); }
.dc-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--av, #5865f2); color: #fff; font-weight: 600; font-size: 15px; }
.dc-av-bot { background: var(--brass); color: var(--brass-ink); font: 500 13px/1 var(--display); }
.dc-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.dc-name { font-weight: 600; color: #f2f3f5; }
.name-bot { color: var(--brass-hot); }
.name-staff { color: #c4a2ff; }
.dc-app { padding: 0 5px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; align-self: center; }
.dc-tag { padding: 0 6px; border-radius: 3px; background: rgba(168, 85, 247, .2); color: #d8b4fe; font-size: 11px; font-weight: 600; line-height: 16px; align-self: center; }
.dc-head time { color: var(--dc-muted); font-size: 12px; }
.dc-role { padding: 0 3px; border-radius: 3px; background: rgba(88, 101, 242, .3); color: #c9cdfb; font-weight: 500; }
.dc-embed { margin-top: 6px; padding: 10px 14px 12px; border-left: 4px solid var(--brass); border-radius: 4px; background: #2b2d31; max-width: 440px; }
.dc-embed strong { display: block; color: #f2f3f5; font-size: 15px; margin-bottom: 3px; }
.dc-source { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--dc-muted); font-size: 12px; }
.dc-source svg { width: 13px; height: 13px; color: var(--brass); }
.dc-sys { display: flex; align-items: center; gap: 14px; padding: 8px 18px 8px 30px; color: var(--dc-muted); font-size: 14px; }
.dc-sys svg { width: 16px; height: 16px; color: #23a55a; }
.dc-sys b { color: #f2f3f5; font-weight: 600; }
.dc-stars { display: flex; gap: 6px; margin: 8px 0 6px; }
.dc-stars i { width: 34px; height: 30px; border-radius: 4px; background: #4e5058 center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b5bac1'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E"); transition: background-color .25s var(--ease), transform .25s var(--ease); }
.dc-stars i.on, .dc:not(.is-playing) .dc-stars i { background-color: var(--brass); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231b1305'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E"); transform: translateY(-2px); }
.dc-thanks { color: var(--dc-muted); font-size: 13px; }
.dc.is-playing .dc-thanks { opacity: 0; transition: opacity .3s; }
.dc.is-playing .dc-thanks.on { opacity: 1; }
.dc.is-fading .dc-log { opacity: 0; transition: opacity .5s; }
.dc-typing { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 18px; color: var(--dc-muted); font-size: 12.5px; visibility: hidden; }
.dc-typing.is-on { visibility: visible; }
.dc-typing b { color: #f2f3f5; }
.dc-typing-dots { display: inline-flex; gap: 3px; }
.dc-typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: #b5bac1; animation: blink 1.2s infinite; }
.dc-typing-dots i:nth-child(2) { animation-delay: .15s; } .dc-typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
/* While the script plays it, messages wait offstage. */
.dc.is-playing .dc-log > li { display: none; }
.dc.is-playing .dc-log > li.is-in { display: grid; animation: msgIn .35s var(--ease) both; }
.dc.is-playing .dc-log > li.dc-sys.is-in { display: flex; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(48px, 7vw, 88px) 0 0; border-top: 1px solid var(--steel); border-bottom: 1px solid var(--steel); }
.stat { display: flex; flex-direction: column-reverse; gap: 6px; padding: 26px 24px; border-left: 1px solid var(--steel); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dd { margin: 0; font: 500 clamp(30px, 3.6vw, 46px)/1 var(--display); letter-spacing: -.01em; color: var(--bone); }
.stat dt { color: var(--fog); font-size: 14.5px; }
.stat:first-child dd { color: var(--brass-hot); }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }

/* Feature filters */
.filters { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--steel); border-radius: 10px; background: var(--graphite); }
.filters button { padding: 7px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--fog); font: 500 14px var(--font); cursor: pointer; }
.filters button:hover { color: var(--bone); }
.filters button[aria-selected="true"] { background: var(--steel); color: var(--bone); }

/* Feature rail */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), (100vw - var(--wrap)) / 2); padding: 4px max(var(--gutter), (100vw - var(--wrap)) / 2) 24px; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent 0, #000 max(var(--gutter), (100vw - var(--wrap)) / 2 - 10px), #000 calc(100% - max(var(--gutter), (100vw - var(--wrap)) / 2) + 10px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 max(var(--gutter), (100vw - var(--wrap)) / 2 - 10px), #000 calc(100% - max(var(--gutter), (100vw - var(--wrap)) / 2) + 10px), transparent 100%); }
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; }
.card { scroll-snap-align: start; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--steel); border-radius: 12px; background: linear-gradient(180deg, var(--graphite-2), var(--graphite)); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.card:hover { border-color: var(--steel-2); transform: translateY(-2px); }
.card[hidden] { display: none; }
.card.is-premium { border-color: rgba(231, 176, 74, .28); background: linear-gradient(180deg, rgba(231, 176, 74, .07), var(--graphite) 55%); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--brass-soft); color: var(--brass-hot); }
.card-icon svg { width: 19px; height: 19px; }
.card-group { color: var(--mist); font-size: 13px; }
.card.is-premium .card-group { color: var(--brass-hot); }
.card h3 { font: 500 19px/1.2 var(--display); letter-spacing: .01em; }
.card > p { margin-top: 8px; color: var(--fog); font-size: 14.5px; line-height: 1.55; }
.specs { display: grid; gap: 8px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--steel); }
.specs li { display: flex; gap: 9px; color: var(--bone); font-size: 14px; line-height: 1.4; }
.specs svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--brass); }
.card-stat { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 9px 12px; border-radius: 9px; background: rgba(240, 96, 106, .09); border: 1px solid rgba(240, 96, 106, .28); color: #f6c3c7; font-size: 13.5px; font-weight: 500; line-height: 1.35; font-variant-numeric: tabular-nums; }
.card-stat-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #f0606a; box-shadow: 0 0 0 4px rgba(240, 96, 106, .18); }
.cmds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.cmds code { padding: 3px 8px; border-radius: 6px; background: rgba(88, 101, 242, .14); color: #c9cdfb; font-size: 12.5px; }
.rail-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.rail-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--steel-2); border-radius: 50%; background: var(--graphite); color: var(--bone); cursor: pointer; transition: border-color .15s, opacity .15s; }
.rail-btn:hover { border-color: var(--fog); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail-btn svg { width: 18px; height: 18px; }

/* Why switch */
.why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.why-points { display: grid; gap: 14px; margin-top: 28px; }
.why-points li { padding-left: 18px; border-left: 2px solid var(--brass-line); color: var(--fog); font-size: 15.5px; }
.why-points strong { color: var(--bone); font-weight: 600; }
.compare { border: 1px solid var(--steel); border-radius: 14px; overflow: hidden; background: var(--graphite); }
.cmp-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.25fr); border-top: 1px solid var(--steel); }
.cmp-row:first-child { border-top: 0; }
.cmp-row > span { padding: 15px 18px; font-size: 14.5px; display: flex; align-items: center; gap: 9px; }
.cmp-row > span:first-child { color: var(--bone); font-weight: 600; }
.cmp-headrow > span { padding-block: 12px; color: var(--mist) !important; font-size: 13px; font-weight: 500 !important; background: var(--graphite-2); }
.cmp-old { color: var(--mist); }
.cmp-us { background: rgba(231, 176, 74, .05); color: var(--bone); border-left: 1px solid var(--brass-line); }
.cmp-headrow .cmp-us { color: var(--brass-hot) !important; background: rgba(231, 176, 74, .09); }
.cmp-us svg { flex: none; width: 16px; height: 16px; color: var(--brass); }

/* Dashboard showcase */
.shot-tabs { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.shot-tabs button { flex: none; padding: 9px 16px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--fog); font: 500 14.5px var(--font); cursor: pointer; }
.shot-tabs button:hover { color: var(--bone); }
.shot-tabs button[aria-selected="true"] { border-color: var(--brass-line); background: var(--brass-soft); color: var(--bone); }
.browser { border: 1px solid var(--steel-2); border-radius: 14px; background: var(--graphite); overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02); }
.browser-bar { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--steel); background: var(--graphite-2); }
.browser-url { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 5px 12px; border-radius: 7px; background: var(--night); color: var(--fog); font: 13px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-url svg { flex: none; width: 13px; height: 13px; color: var(--ok); }
.shot img { width: 100%; height: auto; aspect-ratio: 1800 / 1125; object-fit: cover; object-position: top left; }
.shot-cap { padding: 14px 18px; border-top: 1px solid var(--steel); color: var(--fog); font-size: 14.5px; }

/* Privacy */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ops { border: 1px solid var(--steel); border-radius: 14px; background: var(--graphite); overflow: hidden; }
.ops-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--steel); background: var(--graphite-2); color: var(--fog); font-size: 13.5px; }
.ops-server { color: var(--bone); font-weight: 600; }
.ops-list { margin: 0; }
.ops-list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 20px; border-top: 1px solid var(--steel); }
.ops-list > div:first-child { border-top: 0; }
.ops-list dt { color: var(--fog); font-size: 14.5px; }
.ops-list dd { margin: 0; font: 600 15px var(--mono); color: var(--bone); }
.ops-list .redact { display: flex; align-items: center; gap: 10px; font: 500 13px var(--font); }
.redact span { width: 96px; height: 12px; border-radius: 3px; background: repeating-linear-gradient(135deg, var(--steel-2) 0 6px, var(--steel) 6px 12px); }
.redact em { font-style: normal; color: var(--mist); }

/* Premium */
.prem { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); padding: clamp(28px, 5vw, 56px); border: 1px solid var(--brass-line); border-radius: 18px; background: radial-gradient(120% 120% at 0% 0%, rgba(231, 176, 74, .14), transparent 55%), var(--graphite); overflow: hidden; }
.prem-crown { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; background: var(--brass); color: var(--brass-ink); box-shadow: 0 0 36px -6px rgba(231, 176, 74, .7); }
.prem-crown svg { width: 24px; height: 24px; }
.prem-head .btn { margin-top: 28px; }
.prem-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.prem-list li { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--steel); border-radius: 12px; background: rgba(10, 12, 16, .5); }
.prem-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--brass-soft); color: var(--brass-hot); }
.prem-ico svg { width: 18px; height: 18px; }
.prem-list h3 { font-size: 15.5px; font-weight: 600; }
.prem-list p { margin-top: 4px; color: var(--fog); font-size: 14px; line-height: 1.5; }

/* Docs */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.docs-grid a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px; border: 1px solid var(--steel); border-radius: 12px; background: var(--graphite); text-decoration: none; transition: border-color .15s; }
.docs-grid a:hover { border-color: var(--brass-line); }
.docs-grid strong { font-size: 16px; }
.docs-grid span { color: var(--fog); font-size: 14px; }
.docs-grid .docs-sec { color: var(--brass-hot); font-size: 12.5px; }
.docs-soon { display: flex; gap: 18px; padding: 24px; border: 1px dashed var(--steel-2); border-radius: 14px; background: var(--graphite); }
.docs-soon > svg { flex: none; width: 26px; height: 26px; color: var(--brass); }
.docs-soon strong { font-size: 17px; }
.docs-soon p { margin-top: 6px; color: var(--fog); max-width: 70ch; }
.docs-soon a:not(.btn) { color: var(--brass-hot); }
.docs-soon .hero-cta { margin-top: 18px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-list { border-top: 1px solid var(--steel); }
.faq-list details { border-bottom: 1px solid var(--steel); }
.faq-list summary { position: relative; padding: 20px 40px 20px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--fog); border-bottom: 2px solid var(--fog); transform: rotate(45deg); transition: transform .2s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { padding: 0 40px 22px 0; color: var(--fog); max-width: 68ch; }
.faq-list a { color: var(--brass-hot); }

/* Final call */
.final { position: relative; margin-top: clamp(90px, 12vw, 150px); padding: clamp(70px, 10vw, 120px) 0; border-top: 1px solid var(--steel); overflow: hidden; isolation: isolate; }
.final-slash { top: -40%; right: auto; left: 58%; height: 180%; opacity: .4; }
.final-row { display: flex; flex-direction: column; align-items: flex-start; }
.final h2 { font-size: clamp(36px, 6vw, 76px); max-width: 16ch; }

/* Footer */
.foot { border-top: 1px solid var(--steel); background: var(--graphite); }
.foot-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; padding: 48px 0 36px; }
.foot-brand p { margin-top: 14px; color: var(--fog); font-size: 14.5px; max-width: 36ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols h2 { margin-bottom: 12px; color: var(--mist); font-size: 13px; font-weight: 500; }
.foot-cols a { display: block; padding: 4px 0; color: var(--fog); font-size: 14.5px; text-decoration: none; }
.foot-cols a:hover { color: var(--bone); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 28px; border-top: 1px solid var(--steel); color: var(--mist); font-size: 13px; }

/* ---------- docs pages ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 48px; padding: 48px 0 96px; align-items: start; }
.docs-side, .docs-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.docs-side a, .docs-toc a { padding: 6px 10px; border-radius: 7px; color: var(--fog); font-size: 14.5px; text-decoration: none; }
.docs-side a:hover, .docs-toc a:hover { color: var(--bone); }
.docs-side a.is-active { background: var(--brass-soft); color: var(--bone); }
.docs-home { display: inline-flex; align-items: center; gap: 8px; }
.docs-home svg { width: 15px; height: 15px; }
.docs-group { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.docs-group h2, .docs-toc h2 { padding: 0 10px 6px; color: var(--mist); font-size: 13px; font-weight: 500; }
.docs-toc a.lvl-3 { padding-left: 22px; font-size: 13.5px; }
.docs-main { min-width: 0; }
.docs-title { font-size: clamp(34px, 4.4vw, 52px); }
.docs-crumbs { display: flex; gap: 8px; margin-bottom: 14px; color: var(--mist); font-size: 14px; }
.docs-crumbs a { color: var(--fog); text-decoration: none; }
.docs-sec-title { margin: 40px 0 14px; font: 500 20px var(--display); }
.docs-main .docs-soon { margin-top: 32px; }
.prose { margin-top: 32px; color: #c9d0da; font-size: 16.5px; line-height: 1.75; max-width: 72ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 44px; color: var(--bone); font: 500 25px/1.2 var(--display); scroll-margin-top: 90px; }
.prose h3 { margin-top: 32px; color: var(--bone); font-size: 19px; scroll-margin-top: 90px; }
.prose h4 { margin-top: 24px; color: var(--bone); font-size: 16.5px; }
.prose a { color: var(--brass-hot); text-underline-offset: 3px; }
.prose strong { color: var(--bone); }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--brass); }
.prose code { padding: 2px 6px; border-radius: 5px; background: var(--graphite-2); border: 1px solid var(--steel); font-size: .88em; color: var(--bone); }
.prose pre { padding: 16px 18px; border: 1px solid var(--steel); border-radius: 10px; background: var(--graphite); overflow-x: auto; }
.prose pre code { padding: 0; border: 0; background: none; font-size: 14px; }
.prose img { border: 1px solid var(--steel); border-radius: 10px; }
.prose hr { border: 0; border-top: 1px solid var(--steel); margin: 36px 0; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 14px 18px; border-left: 3px solid var(--steel-2); border-radius: 0 10px 10px 0; background: var(--graphite); color: var(--fog); }
.prose blockquote > * + * { margin-top: 10px; }
.prose .callout-tip { border-left-color: var(--ok); }
.prose .callout-warning { border-left-color: var(--warn); }
.prose .callout-premium, .prose .callout-note { border-left-color: var(--brass); }
.doc-table { overflow-x: auto; border: 1px solid var(--steel); border-radius: 10px; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc-table th, .doc-table td { padding: 10px 14px; border-top: 1px solid var(--steel); text-align: left; vertical-align: top; }
.doc-table th { border-top: 0; background: var(--graphite-2); color: var(--bone); font-weight: 600; }
.doc-table td:first-child code { white-space: nowrap; }
@media (max-width: 640px) {
  .doc-table-stack { overflow: visible; border: 0; }
  .doc-table-stack thead { display: none; }
  .doc-table-stack table, .doc-table-stack tbody, .doc-table-stack tr, .doc-table-stack td { display: block; width: 100%; }
  .doc-table-stack tr { border: 1px solid var(--steel); border-radius: 10px; padding: 6px 0; margin-bottom: 10px; background: var(--graphite); }
  .doc-table-stack td { border: 0; padding: 6px 14px; }
  .doc-table-stack td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--mist); margin-bottom: 2px; }
  .doc-table-stack td:first-child::before { display: none; }
  .doc-table-stack td:first-child { font-size: 16px; }
}
.docs-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--steel); }
.docs-pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--steel); border-radius: 10px; text-decoration: none; min-width: 0; }
.docs-pager a:hover { border-color: var(--brass-line); }
.docs-pager a.next { text-align: right; margin-left: auto; }
.docs-pager span { color: var(--mist); font-size: 13px; }

/* 404 */
.lost { padding: 100px 0 140px; }
.lost-code { font: 500 clamp(90px, 16vw, 180px)/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--brass); margin-bottom: 8px; }
.lost h1 { font-size: clamp(32px, 5vw, 56px); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links .nav-dash { display: none; }
  .docs { grid-template-columns: 200px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px; background: rgba(10, 12, 16, .97); border-bottom: 1px solid var(--steel); display: none; }
  .nav-links.is-open { display: flex; }
  .nav-links > a:not(.btn) { padding: 12px 4px; font-size: 16px; }
  .nav-links .btn, .nav-links .nav-dash { display: inline-flex; margin: 8px 0 0; min-height: 46px; }
  .nav-status { margin-left: 0; }
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .hero-slash { right: -10%; top: 30%; height: 90%; }
  .why, .trust, .faq, .prem { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--steel); }
  .foot-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .docs-side { position: static; flex-direction: row; flex-wrap: nowrap; gap: 6px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .docs-side::-webkit-scrollbar { display: none; }
  .docs-side a { flex: none; white-space: nowrap; }
  .docs-group { margin-top: 0; flex-direction: row; flex-wrap: nowrap; gap: 6px; }
  .docs-group h2 { display: none; }
  .docs-side a { border: 1px solid var(--steel); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav-row { height: 60px; }
  .nav-links { top: 60px; }
  .brand-name span { display: none; }
  .hero h1 { font-size: clamp(42px, 13.4vw, 60px); }
  .hero-note { display: none; }
  .hero-cta .btn { flex: 1 1 auto; }
  .dc { margin-inline: -4px; font-size: 14px; }
  .dc-scroll { height: 430px; }
  .dc-msg { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 6px 12px; }
  .dc-av { width: 34px; height: 34px; font-size: 13px; }
  .dc-topic { display: none; }
  .dc-sys { padding-left: 20px; }
  .dc-stars i { width: 30px; height: 28px; }
  .stat { padding: 20px 14px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .rail { grid-auto-columns: 82vw; }
  .cmp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .cmp-row > span:nth-child(2) { display: none; }
  .cmp-row > span { padding: 13px 14px; }
  .prem-list { grid-template-columns: minmax(0, 1fr); }
  .ops-list .redact span { width: 54px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-soon { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Discord pieces used in docs images and demos */
.dc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 16px; border-radius: 4px; font-size: 14px; font-weight: 500; color: #fff; background: #4e5058; }
.dc-btn.blurple { background: #5865f2; } .dc-btn.green { background: #248046; } .dc-btn.red { background: #da373c; }
.dc-select { display: flex; justify-content: space-between; align-items: center; max-width: 440px; height: 40px; margin-top: 8px; padding: 0 12px; border-radius: 4px; background: #1e1f22; color: #949ba4; font-size: 14px; }
.dc-menu { max-width: 440px; margin-top: 4px; border-radius: 4px; background: #2b2d31; border: 1px solid #1e1f22; overflow: hidden; }
.dc-menu div { display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px; padding: 8px 12px; font-size: 14px; color: #dbdee1; }
.dc-menu div span { grid-row: span 2; font-size: 18px; }
.dc-menu div small { color: #949ba4; font-size: 12.5px; }
.dc-menu div.on { background: #404249; }
.dc-embed .dc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin-top: 8px; }
.dc-embed .dc-fields b { display: block; color: #f2f3f5; font-size: 13px; }
.dc-embed .dc-fields span { font-size: 13.5px; }
.dc-embed .dc-full { grid-column: 1 / -1; }
.dc-embed.purple { border-left-color: #a855f7; } .dc-embed.yellow { border-left-color: #f0b232; } .dc-embed.red { border-left-color: #f0606a; } .dc-embed.blue { border-left-color: #5865f2; }
.dc-eph { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: #949ba4; font-size: 12px; }
.dc-mention { padding: 0 3px; border-radius: 3px; background: rgba(88, 101, 242, .3); color: #c9cdfb; }

/* Docs figures */
.prose .doc-fig { margin: 26px 0; }
.prose .doc-fig { text-align: center; }
.prose .doc-fig a { display: inline-block; max-width: 100%; border-radius: 12px; vertical-align: top; }
.prose .doc-fig img { width: auto; max-width: 100%; height: auto; text-align: left; border: 1px solid var(--steel-2); border-radius: 12px; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9); transition: border-color .15s; }
.prose .doc-fig a:hover img { border-color: var(--brass-line); }
.prose .doc-fig figcaption { margin-top: 10px; color: var(--mist); font-size: 14px; line-height: 1.5; text-align: center; }
.prose kbd { padding: 1px 6px; border: 1px solid var(--steel-2); border-bottom-width: 2px; border-radius: 5px; background: var(--graphite-2); font: 13px var(--mono); color: var(--bone); }

/* Announcement bar (written on the admin site; same as the dashboard's) */
.ann-bar { position: relative; display: flex; align-items: stretch; height: 34px; background: var(--ann-bg); color: var(--ann-fg); overflow: hidden; font-size: 13px; font-weight: 500; z-index: 20; }
.ann-viewport { flex: 1; min-width: 0; overflow: hidden; }
.ann-track { display: flex; width: max-content; height: 100%; animation: ann-scroll 45s linear infinite; will-change: transform; }
.ann-bar:hover .ann-track, .ann-bar:focus-within .ann-track { animation-play-state: paused; }
@keyframes ann-scroll { from { transform: translateX(0); } to { transform: translateX(var(--ann-shift, -50%)); } }
.ann-group { display: flex; height: 100%; }
.ann-item { display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 28px; background: var(--ann-bg); color: var(--ann-fg); white-space: nowrap; }
.ann-item + .ann-item, .ann-group + .ann-group .ann-item:first-child { box-shadow: inset 1px 0 0 color-mix(in srgb, var(--ann-fg) 22%, transparent); }
.ann-emoji { font-size: 14px; }
.ann-link { color: inherit !important; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ann-close { flex: 0 0 34px; width: 34px; height: 34px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: color-mix(in srgb, var(--ann-bg) 80%, #000) !important; color: var(--ann-fg) !important; font-size: 18px; line-height: 1; cursor: pointer; }
.ann-close:hover { background: color-mix(in srgb, var(--ann-bg) 65%, #000) !important; }
.ann-bar.is-static .ann-track { animation: none; width: 100%; }
.ann-bar.is-static .ann-item { width: 100%; justify-content: center; white-space: normal; overflow: hidden; text-overflow: ellipsis; }

/* What's new */
.news { padding: 48px 0 96px; max-width: 920px; }
.news-head { margin-bottom: 40px; }
.news-head h1 { font-size: clamp(38px, 5vw, 64px); }
.text-link-inline { color: var(--brass-hot); text-underline-offset: 3px; font-size: 15px; }
.news-list { position: relative; display: grid; gap: 20px; }
.news-list::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 1px; background: var(--steel); }
.news-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; }
.news-date { position: relative; padding-top: 22px; color: var(--mist); font-size: 14px; }
.news-date::after { content: ""; position: absolute; right: -37px; top: 27px; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px var(--night); }
.news-card { padding: 22px 24px; border: 1px solid var(--steel); border-radius: 14px; background: var(--graphite); transition: border-color .15s; }
.news-card:hover { border-color: var(--steel-2); }
.news-card h2 { margin-top: 10px; font: 500 22px/1.2 var(--display); }
.news-card h2 a { text-decoration: none; }
.news-card h2 a:hover { color: var(--brass-hot); }
.news-card p { margin-top: 8px; color: var(--fog); }
.news-more { display: inline-block; margin-top: 14px; color: var(--brass-hot); font-size: 14.5px; font-weight: 500; text-underline-offset: 3px; }
.news-meta { display: flex; align-items: center; gap: 10px; color: var(--mist); font-size: 13.5px; }
.news-tag { padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--tag) 16%, transparent); color: var(--tag); font-size: 12.5px; font-weight: 600; }
.news-pin { color: var(--brass-hot); font-size: 12.5px; }
.news-post { padding: 48px 0 96px; max-width: 760px; }
.news-post .news-meta { margin-bottom: 14px; }
@media (max-width: 760px) {
  .news-list::before { display: none; }
  .news-item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .news-date { padding-top: 0; } .news-date::after { display: none; }
}
.preview-banner { padding: 10px 24px; background: var(--brass); color: var(--brass-ink); font-weight: 600; font-size: 14px; text-align: center; }
.preview-banner a { color: inherit; margin-left: 8px; }

/* ---------- logo intro (home page, once per visit) ---------- */
.intro { display: none; }
.intro-on .intro { position: fixed; inset: 0; z-index: 100; display: block; background: var(--night); animation: intro-failsafe .01s linear 8s forwards; transition: opacity .5s var(--ease); }
.intro-lock body { overflow: hidden; }
.intro-video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Phones: show the whole vertical cut; the bars match the video's dark edges. */
.intro.is-tall { background: #050608; }
.intro.is-tall .intro-video { object-fit: contain; }
.intro.is-out { opacity: 0; pointer-events: none; }
.intro-skip { position: absolute; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); padding: 10px 16px; border: 1px solid var(--steel-2); border-radius: 8px; background: rgba(10, 12, 16, .6); color: var(--fog); font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.intro-skip:hover { color: var(--bone); border-color: var(--fog); }
/* If the script never runs, the intro still gets out of the way. */
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } }

/* Support server */
.docs-help { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:48px; padding:18px 20px; border:1px solid var(--steel); border-radius:14px; background:var(--graphite); }
.docs-help strong { color:var(--bone); } .docs-help p { margin:4px 0 0; color:var(--fog); }
.final-help { margin-top:22px; color:var(--fog); } .final-help a { color:var(--brass-hot); }

/* ---------- partner servers (under the numbers strip) ---------- */
.partners { padding-top: clamp(64px, 8vw, 104px); }
.pt-head { display: grid; justify-items: center; text-align: center; margin-bottom: 34px; }
.pt-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; font: 500 12px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--fog); }
.pt-kicker::before { content: ""; width: 8px; height: 8px; background: var(--brass); }
.pt-head h2 em { font-style: normal; color: var(--brass-hot); }
.pt-head .sec-lead { margin-inline: auto; }

.pt-rail { position: relative; display: flex; overflow: hidden; padding: 6px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.pt-track { display: flex; flex: none; gap: 16px; padding-right: 16px; }
.pt-rail.is-loop .pt-track { animation: pt-scroll calc(var(--pt-n) * 5.5s) linear infinite; }
.pt-rail.is-loop:hover .pt-track, .pt-rail.is-loop:focus-within .pt-track, .pt-rail.is-loop:active .pt-track { animation-play-state: paused; }
@keyframes pt-scroll { to { transform: translateX(-100%); } }
/* Too few to loop: a still, centred row. */
.pt-rail:not(.is-loop) { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; justify-content: center; -webkit-mask-image: none; mask-image: none; }
.pt-rail:not(.is-loop) .pt-track { flex-wrap: wrap; justify-content: center; padding-right: 0; }

.pt-card { flex: none; width: 300px; }
.pt-link { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; height: 100%; padding: 18px 18px 18px;
  border: 1px solid var(--steel); border-radius: 14px; background: linear-gradient(180deg, var(--graphite-2), var(--graphite)); text-decoration: none; color: var(--bone);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
a.pt-link:hover { border-color: var(--brass-line); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(231, 176, 74, .55); }
.pt-icon { width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--steel-2); object-fit: cover; background: var(--graphite-2); }
.pt-ini { display: grid; place-items: center; font: 500 18px var(--display); color: var(--brass-hot); background: var(--brass-soft); border-color: var(--brass-line); }
.pt-copy { display: grid; gap: 6px; min-width: 0; padding-top: 2px; }
.pt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 16.5px/1.25 var(--font); padding-right: 46px; }
.pt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.pt-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px 4px 5px; border: 1px solid var(--brass-line); border-radius: 999px; background: var(--brass-soft); color: var(--brass-hot); }
.pt-badge svg { width: 11px; height: 11px; }
.pt-blurb { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--fog); font-size: 14px; line-height: 1.45; }
.pt-join { position: absolute; top: 18px; right: 16px; display: inline-flex; align-items: center; gap: 2px; font: 500 12.5px var(--font); color: var(--fog); transition: color .2s var(--ease); }
.pt-join svg { width: 14px; height: 14px; }
a.pt-link:hover .pt-join { color: var(--brass-hot); }
@media (max-width: 640px) {
  .pt-card { width: 262px; }
  .pt-link { grid-template-columns: 48px minmax(0, 1fr); padding: 15px; }
  .pt-icon { width: 48px; height: 48px; border-radius: 14px; }
  .pt-join { top: 15px; right: 13px; }
  .pt-head { justify-items: start; text-align: left; }
  .pt-head .sec-lead { margin-inline: 0; }
}
/* Reduced motion: no moving loop; swipe or scroll through the cards instead. */
@media (prefers-reduced-motion: reduce) {
  .pt-rail.is-loop { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); -webkit-mask-image: none; mask-image: none; }
  .pt-rail.is-loop .pt-track { animation: none; padding-left: max(var(--gutter), (100% - var(--wrap)) / 2); }
  .pt-rail.is-loop .pt-copy-track { display: none; }
  .pt-card { scroll-snap-align: start; }
  a.pt-link:hover { transform: none; }
}
