@font-face {
  font-family: AW;
  src: url("/assets/fonts/plus-jakarta-sans-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2c2429;
  --deep: #171418;
  --panel: #241c23;
  --paper: #fcf9fa;
  --coral: #ff4654;
  --coral-light: #ff858d;
  --coral-pale: #ffc2c6;
  --rose-wash: #ffe8ea;
  --rose-rule: #c58f99;
  --muted: #584a53;
  --console-muted: #c5b2be;
  --console-text: #ede0e7;
  --line: #e5d7dd;
  --panel-line: #57434e;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-family: AW, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  scrollbar-color: var(--muted) var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
::selection { color: var(--deep); background-color: var(--coral-pale); }
.wrap { width: min(100% - 2 * clamp(20px, 5vw, 74px), 1300px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: 10px; left: 10px; z-index: 2; transform: translateY(-160%); padding: 10px 16px; color: var(--deep); background: var(--coral-pale); }
.skip:focus { transform: none; }

.top { background: var(--deep); color: var(--paper); }
.top-inner { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-bottom: 1px solid var(--panel-line); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px; text-decoration: none; font-weight: 800; letter-spacing: -.025em; }
.brand img { display: block; flex: 0 0 auto; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 38px); }
.top nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--console-text); font-size: .88rem; text-decoration: none; }
.top nav a:hover { color: var(--coral-light); text-decoration: underline; }
.edition { justify-self: end; display: inline-flex; gap: 9px; align-items: center; border: 1px solid var(--panel-line); border-radius: 100px; padding: 5px 11px; color: var(--console-text); font-size: .75rem; white-space: nowrap; }
.edition span { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

.hero { background: var(--deep); color: var(--paper); padding-block: clamp(56px, 9.5vw, 138px) clamp(70px, 10vw, 144px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; gap: clamp(24px, 4.5vw, 66px); }
.intro { align-self: center; }
h1, h2, h3 { letter-spacing: -.038em; font-weight: 800; }
h1 { font-size: clamp(3.1rem, 7.15vw, 6rem); line-height: .98; }
h1 em { color: var(--coral); font-style: normal; }
.intro > p { max-width: 35ch; margin-top: clamp(23px, 4vw, 36px); color: var(--console-text); font-size: clamp(1.03rem, 1.45vw, 1.27rem); line-height: 1.58; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 1px solid transparent; border-radius: 4px; padding: 9px 15px; text-decoration: none; font-weight: 800; font-size: .91rem; line-height: 1.3; transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
.button svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.primary { background: var(--coral); color: var(--deep); }
.primary:hover { background: var(--coral-light); border-color: var(--coral-light); }
.primary:focus-visible { outline-color: var(--coral-light); }
.secondary { color: var(--paper); background: transparent; border-color: #8b7080; }
.secondary:hover { color: var(--coral-light); border-color: var(--coral-light); }
.intro .hero-note { color: var(--console-muted); margin-top: 19px; font-size: .74rem; line-height: 1.45; max-width: none; }

.desk { min-width: 0; border: 1px solid var(--panel-line); border-radius: 14px; background: var(--panel); padding: clamp(12px, 2.5vw, 24px); }
.desk-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 12px; }
.desk-head strong { display: block; font-weight: 800; font-size: 1.06rem; }
.desk-head span { display: block; color: var(--console-muted); font-size: .74rem; margin-top: 2px; }
.desk-mark { width: 26px; height: 26px; stroke: var(--coral-light); fill: none; stroke-width: 1.4; flex: 0 0 auto; stroke-linecap: round; stroke-linejoin: round; }
.desk-modes { display: flex; gap: 4px; margin: 0 0 12px; padding: 4px; background: var(--deep); border: 1px solid var(--panel-line); border-radius: 5px; }
.desk-modes button { flex: 1; border: 1px solid transparent; background: transparent; color: var(--console-text); border-radius: 3px; min-height: 44px; line-height: 1.16; padding: 4px 7px; font-size: clamp(.73rem, 1.15vw, .87rem); font-weight: 750; }
.desk-modes button[aria-pressed="true"] { background: var(--coral-light); color: var(--deep); }
.desk-modes button[aria-pressed="true"]:focus-visible { outline-color: var(--coral-pale); outline-offset: 3px; }
.desk-modes button:not([aria-pressed="true"]):hover { border-color: #8b7080; }
.scope { background: #1c151c; border: 1px solid var(--panel-line); border-radius: 3px; padding: clamp(9px, 1.5vw, 15px); }
.scope-label, .timecode { display: flex; justify-content: space-between; color: var(--console-muted); font: .66rem/1.45 var(--mono); font-variant-numeric: tabular-nums; }
.trace { display: block; width: 100%; height: clamp(112px, 15vw, 170px); margin: 8px 0; overflow: visible; }
.trace use, .trace path { fill: none; vector-effect: non-scaling-stroke; }
.trace .rulers { stroke: var(--panel-line); stroke-width: .55; }
.trace .signal-base { stroke: #a1879b; stroke-width: 1.2; }
.trace .signal-kept, .trace .signal-reversed { stroke: var(--coral-light); stroke-width: 2; }
.trace .cut-marks { stroke: var(--coral-light); stroke-width: .85; stroke-dasharray: 3 3; }
.trace .range-fill { fill: #ff465429; }
.cue-marks, .signal-reversed { display: none; }
.cue-marks rect { fill: var(--coral-light); }
.cue-marks path { stroke: var(--deep); stroke-width: 1.6; }
.desk[data-mode="srt"] .cue-marks, .desk[data-mode="reverse"] .signal-reversed { display: initial; }
.desk:not([data-mode="trim"]) .cut-marks, .desk:not([data-mode="trim"]) .signal-kept, .desk:not([data-mode="trim"]) .range-fill, .desk[data-mode="reverse"] .signal-base { display: none; }
.readout { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-variant-numeric: tabular-nums; }
.readout div:last-child { text-align: right; }
.readout span { display: block; color: var(--console-muted); font: .62rem/1.7 var(--mono); }
.readout strong { color: var(--coral-light); font: 700 clamp(.93rem, 1.7vw, 1.2rem)/1.35 var(--mono); }
.readout code { color: var(--console-text); font: .75rem/1.35 var(--mono); }
.prompt-line { display: flex; align-items: center; gap: 12px; justify-content: space-between; border-top: 1px solid var(--panel-line); padding-top: 9px; }
.prompt-line p { color: var(--console-text); font-size: .79rem; line-height: 1.55; }
.copy-small { min-height: 44px; flex-shrink: 0; border: 0; border-radius: 3px; padding: 0 7px; color: var(--coral-light); background: transparent; font-size: .75rem; font-weight: 800; }
.copy-small:hover { background: #402b38; }
.copy-small[data-copied="true"] { color: var(--paper); }

.workflows, .limits { padding-block: clamp(62px, 9vw, 124px); }
.section-lead { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 28px; padding-bottom: clamp(24px, 4vw, 44px); }
h2 { font-size: clamp(2.33rem, 5.5vw, 4.65rem); line-height: 1.04; text-wrap: balance; }
.section-lead p, .limits p { max-width: 52ch; color: var(--muted); }
.job { border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, .75fr); align-items: center; gap: clamp(14px, 3vw, 36px); padding-block: clamp(18px, 3vw, 36px); }
.job:last-of-type { border-bottom: 1px solid var(--line); }
.job-icon { display: grid; place-items: center; background: var(--rose-wash); width: clamp(44px, 6vw, 69px); aspect-ratio: 1; border-radius: 4px; }
.job-icon svg { width: 66%; height: 66%; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.job h3 { font-size: clamp(1.23rem, 2.4vw, 1.93rem); line-height: 1.15; }
.job p { color: var(--muted); margin-top: 7px; max-width: 61ch; font-size: .96rem; }
.job-tail { justify-self: end; text-align: right; min-width: 0; }
.job-tail code { font: clamp(.69rem, 1.22vw, .83rem)/1.5 var(--mono); overflow-wrap: anywhere; }
.job-tail a { display: flex; align-items: center; justify-content: end; gap: 6px; min-height: 44px; font-size: .86rem; font-weight: 750; }
.job-tail a:hover, .registry-link:hover { text-decoration-thickness: 2px; }

.connect { background: var(--rose-wash); color: var(--deep); padding-block: clamp(60px, 9vw, 126px); }
.connect-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 7vw, 110px); align-items: center; }
.connect h2 { font-size: clamp(2.48rem, 5.2vw, 4.33rem); }
.connect h2 + p { margin-top: 17px; max-width: 50ch; }
.address { border-top: 1px solid var(--rose-rule); border-bottom: 1px solid var(--rose-rule); margin-top: 25px; padding: 14px 0; }
.address span, .address code { display: block; }
.address span { font: bold .74rem/1.4 var(--mono); }
.endpoint { display: flex; align-items: center; min-height: 44px; }
.address code { overflow-wrap: anywhere; font: .87rem/1.55 var(--mono); }
.dark { margin-top: 12px; background: var(--deep); color: var(--coral-pale); }
.dark:hover { background: #402b38; }
.dark:focus-visible { outline-color: var(--deep); }
.registry-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .90rem; font-weight: 800; }
.action-status { min-height: 1.7em; font-size: .85rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; border-top: 1px solid var(--rose-rule); }
.steps li { position: relative; counter-increment: step; border-bottom: 1px solid var(--rose-rule); padding: 18px 0 20px 52px; }
.steps li::before { content: "0" counter(step); position: absolute; left: 0; top: 21px; font: bold .78rem/1.4 var(--mono); }
.steps strong { display: block; font-size: 1.18rem; font-weight: 800; letter-spacing: -.02em; }
.steps p { margin-top: 5px; max-width: 50ch; font-size: .93rem; }
.limits h2 { font-size: clamp(2rem, 5vw, 3.72rem); }
.limits > p { margin-block: 17px 27px; max-width: 70ch; }
.limits details { border-top: 1px solid var(--line); }
.limits details:last-of-type { border-bottom: 1px solid var(--line); }
.limits summary { display: list-item; padding: 13px 5px 13px 0; min-height: 44px; cursor: pointer; font-weight: 750; }
.limits details p { padding: 0 16px 15px 0; max-width: 70ch; }
.footer { background: var(--deep); color: var(--paper); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 22px; padding-block: 17px; min-height: 86px; }
.footer-inner > span { color: var(--console-muted); font-size: .8rem; }
.footer-inner > a:last-child { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 750; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .intro { display: grid; grid-template-columns: minmax(0, 1fr); }
  .intro > p { max-width: 47ch; }
  .hero { padding-block: 57px 71px; }
  h1 { font-size: clamp(3rem, 9vw, 5rem); }
}
@media (max-width: 680px) {
  .top-inner { grid-template-columns: 1fr auto; gap: 8px; min-height: 65px; }
  .top nav { display: none; }
  .section-lead, .connect-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .job { grid-template-columns: 44px minmax(0, 1fr); gap: 9px 13px; }
  .job-icon { align-self: start; }
  .job-tail { grid-column: 2; justify-self: start; text-align: left; }
  .job-tail a { justify-content: start; }
  .steps { margin-top: 14px; }
  .hero-grid { gap: 31px; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 32px); }
  .button { padding-inline: 11px; font-size: .83rem; }
  .prompt-line { align-items: start; flex-direction: column; gap: 4px; }
  .copy-small { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
