/* ── Lor product page (/lor/) ─────────────────────────────────────
   Figma "Lor" (Lor App - Product Explorations, node 2988:21826):
   index, 50px serif title, two-line lede, app icon, two pill CTAs,
   then a full-bleed soft band with three feature columns. */

/* Page-local secondary ink stays readable on white and both soft bands. */
:root { --lor-secondary: #61615f; }
html[data-theme="dark"] { --lor-secondary: #a7a7a3; }
.footer a { color: var(--lor-secondary); }

.lor-intro {
  padding: 104px 24px 68px; /* puts "2.0" at the same height as on Join us and News */
  text-align: center;
}
.lor-intro__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 54px;
  line-height: 1.25;
  letter-spacing: 0.1px;
  margin: 0;
  color: var(--ink);
}
.lor-intro__lede {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 12px auto 0;
  max-width: 520px;
}

/* The icon PNGs carry their own shadow: the 268px image holds a ~194px
   tile, so 122px wide draws the 88px tile from the design. */
.lor-intro__icon {
  display: flex;
  justify-content: center;
  margin: 30px auto 0;
}
.lor-intro__mark {
  display: block;
  width: 106px;
  height: 106px;
  color: #000;
  border-radius: 23px;
  box-shadow: 0 2.05px 7.16px 0 rgba(0, 0, 0, 0.15);
}
.lor-tile-a { stop-color: #fdfdfd; }
.lor-tile-b { stop-color: #f3f3f3; }
.lor-tile-edge { stroke: #fff; stroke-width: 1.5; }
html[data-theme="dark"] .lor-intro__mark { color: #fff; box-shadow: 0 0 24px rgba(0, 0, 0, 0.35); }
html[data-theme="dark"] .lor-tile-a { stop-color: #2c2c2c; }
html[data-theme="dark"] .lor-tile-b { stop-color: #202020; }
html[data-theme="dark"] .lor-tile-edge { stroke: #333; }

.lor-intro__actions { gap: 8px; margin-top: 22px; }
.lor-intro__icon + .lor-intro__actions { margin-top: 30px; }
.lor-btn { padding: 13px 18px; }
.lor-btn--solid {
  background: var(--solid);
  border-color: var(--solid);
  color: var(--solid-ink);
}
.lor-btn--solid:hover { background: var(--solid); opacity: 0.86; }

/* ── Sections below the band (structure after devin.ai: logo row,
   numbered steps, architecture, prompts, integrations, security,
   recent posts, final CTA), in the site's own type and colours. ── */
.lor-block,
.lor-final {
  width: 1076px;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.lor-prompt__kind {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--lor-secondary);
}
.lor-post__date,
.lor-post__kind {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--lor-secondary);
}

.lor-block { padding-top: 112px; }
.lor-block__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 48px;
  color: var(--ink);
}
.lor-block__title span { color: inherit; }

/* Hand-off prompts: full-bleed soft band; each prompt drawn as a white
   Lor composer (text, then a bar with the category and a send button). */
.lor-handoff {
  margin-top: 112px;
  background: linear-gradient(115deg, #f3f3f3 0%, #f0f5f5 100%);
}
html[data-theme="dark"] .lor-handoff { background: linear-gradient(115deg, #1c1c1c 0%, #1a1e1e 100%); }
.lor-handoff__inner { padding-top: 88px; padding-bottom: 96px; }
.lor-prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.lor-prompt {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.04);
}
.lor-prompt__text {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.lor-prompt__bar { display: flex; align-items: center; justify-content: space-between; }
.lor-prompt__send {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--solid);
  position: relative;
}
.lor-prompt__send::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--solid-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 13V3M3.5 7.5 8 3l4.5 4.5' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 13V3M3.5 7.5 8 3l4.5 4.5' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

/* Connectors: 4-column tile grid with hairlines */
.lor-connect { padding-bottom: 92px; }
.lor-connect + .latest { margin-top: 0; }
.lor-connect + .latest .latest__label { padding-top: 72px; }
.lor-rule { border-top: 1px solid var(--line); }
.lor-conns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.lor-conn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lor-conn__logo { width: 20px; height: 20px; color: var(--ink); margin-bottom: 8px; }
.lor-conn__name { font-family: var(--sans); font-size: 15px; color: var(--ink); }
.lor-conn__desc { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--lor-secondary); }

/* Hand-off cards are links into Lor (new chat, prompt prefilled). On hover
   the card lifts slightly and the send button bounces. */
a.lor-prompt { text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
a.lor-prompt:hover,
a.lor-prompt:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ink) 18%, transparent);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 28px rgba(0, 0, 0, 0.07);
}
a.lor-prompt:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
a.lor-prompt:hover .lor-prompt__send,
a.lor-prompt:focus-visible .lor-prompt__send { animation: lor-send-bounce 0.9s ease-in-out infinite; }
@keyframes lor-send-bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
  55% { transform: translateY(0); }
  72% { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  a.lor-prompt, a.lor-prompt:hover { transform: none; }
  a.lor-prompt:hover .lor-prompt__send { animation: none; }
}
.lor-section-note.lor-prompts__hint { margin: -34px 0 22px; }

/* Two-column blocks: text on one side, a visual on the other */
.lor-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px 72px;
  align-items: center;
}
.lor-duo--flip .lor-duo__text { order: 2; }
.lor-duo .lor-block__title { margin-bottom: 20px; }
.lor-duo__lede {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--lor-secondary);
  margin: 0;
  max-width: 440px;
}
.lor-duo .lor-section-note { margin-top: 18px; }

/* Model picker: a static copy of the app's dropdown */
.lor-picker {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 340px;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 18px 40px rgba(0, 0, 0, 0.08);
  font-family: var(--sans);
  font-size: 14px;
  overflow: hidden;
}
.lor-picker__search {
  cursor: text;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
}
.lor-picker__glass {
  width: 13px; height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex: none;
}
.lor-picker__glass::after {
  content: ""; position: absolute; width: 5px; height: 1.5px; background: currentColor;
  right: -4px; bottom: -2px; transform: rotate(45deg);
}
.lor-picker__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  height: 330px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lor-picker__row[hidden], .lor-picker__empty[hidden] { display: none; }
.lor-picker__empty { padding: 10px 16px; color: var(--muted-2); }
.lor-picker__divider { height: 1px; margin: 6px 0; background: var(--line); }
.lor-picker__divider[hidden] { display: none; }
.lor-picker__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
  padding: 0;
}
.lor-picker__input::placeholder { color: var(--muted-2); }
.lor-picker__search:focus-within { color: var(--ink); }
.lor-picker__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 16px;
  color: var(--ink);
}
.lor-picker__row.is-selected { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.lor-picker__ctx { color: var(--muted-2); font-size: 13px; }
.lor-picker__check {
  margin-left: auto;
  align-self: center;
  width: 12px; height: 7px;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(-45deg) translateY(-2px);
}
.lor-picker__foot {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.lor-picker__foot span { color: var(--muted-2); }

/* Compute: two GPU cards and a copy of the approval card */
.lor-gpus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.lor-gpu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  background: linear-gradient(135deg, #f3f3f3 0%, #f0f5f5 100%);
}
html[data-theme="dark"] .lor-gpu { background: linear-gradient(135deg, #161616 0%, #141818 100%); }
.lor-gpu--dark { background: var(--solid); border-color: var(--solid); }
html[data-theme="dark"] .lor-gpu--dark { background: var(--solid); }
.lor-gpu__vendor { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted-2); }
.lor-gpu__name { font-family: var(--serif); font-size: 44px; line-height: 1.1; color: var(--ink); }
.lor-gpu--dark .lor-gpu__name { color: var(--solid-ink); }

.lor-gpu__specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 18px 0 0;
  font-family: var(--sans);
  font-size: 13px;
}
.lor-gpu__specs dt { color: var(--lor-secondary); }
.lor-gpu__specs dd { margin: 0; color: var(--ink); }
.lor-gpu--dark .lor-gpu__vendor,
.lor-gpu--dark .lor-gpu__specs dt { color: color-mix(in srgb, var(--solid-ink) 62%, transparent); }
.lor-gpu--dark .lor-gpu__specs dd { color: var(--solid-ink); }
.lor-approve {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 22px rgba(0, 0, 0, 0.05);
  font-family: var(--sans);
  font-size: 13px;
}
.lor-approve__head { font-size: 14px; color: var(--ink); }
.lor-approve__rows { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 20px; margin: 0; justify-content: start; }
.lor-approve__rows dt { grid-row: 1; color: var(--lor-secondary); }
.lor-approve__rows dd { grid-row: 2; margin: 0; color: var(--ink); }
.lor-approve__actions { display: flex; gap: 8px; justify-content: flex-end; }
.lor-approve__btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  color: var(--ink);
}
.lor-approve__btn--go { background: var(--solid); border-color: var(--solid); color: var(--solid-ink); }

/* Elements of the real Compute page inside each GPU card: availability line,
   in-use bar, node map (8 GPUs per node). Colours follow the app: solid
   yellow = nonpreemptible in use, striped yellow = preemptible, teal = free. */
.lor-compute { --np: #f6c518; --free: #3aaebd; --pre: repeating-linear-gradient(135deg, #f6c518 0 2px, #fbe7a0 2px 4px); }
html[data-theme="dark"] .lor-compute { --pre: repeating-linear-gradient(135deg, #f6c518 0 2px, #6b5a1a 2px 4px); }
.lor-gpu__avail {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 14px;
  font-family: var(--sans); font-size: 12px; color: var(--lor-secondary);
}
.lor-gpu--dark .lor-gpu__avail { color: color-mix(in srgb, var(--solid-ink) 62%, transparent); }
.lor-gpu__bar { display: flex; height: 6px; margin-top: 6px; border-radius: 999px; overflow: hidden; }
.lor-gpu__bar b { display: block; height: 100%; }
.lor-gpu__nodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.lor-node {
  display: flex; gap: 1.5px; justify-content: center;
  padding: 5px 5px;
  border-radius: 5px;
  border: 1.5px solid color-mix(in srgb, var(--free) 35%, transparent);
}
.lor-node--np, .lor-node--pre { border-color: color-mix(in srgb, var(--np) 45%, transparent); }
.lor-node i { display: block; flex: 1; max-width: 3px; height: 14px; border-radius: 2px; }
.lor-compute i.is-np, .lor-compute b.is-np { background: var(--np); }
.lor-compute i.is-pre, .lor-compute b.is-pre { background: var(--pre); }
.lor-compute i.is-free, .lor-compute b.is-free { background: var(--free); }
.lor-gpu .lor-gpu__specs { margin-top: 14px; }



/* A sequence figure: time runs from top to bottom, each column is an actor. */
.lor-mechanism {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 32px clamp(32px, 5vw, 80px);
  align-items: start;
}
.lor-mechanism__intro .lor-block__title { margin: 0 0 20px; }
.lor-mechanism__intro p, .lor-mechanism__access p {
  margin: 0 0 12px;
  color: var(--lor-secondary);
  font: 400 16px/1.55 var(--sans);
}
.lor-mechanism__link {
  display: inline-block;
  margin-top: 4px;
  font: 400 14px/1.5 var(--sans);
  text-underline-offset: 3px;
}
.lor-sequence { margin: 0; }
.lor-sequence__plot { border-block: 1px solid var(--line); padding-bottom: 20px; }
.lor-sequence figcaption { margin: 0 0 12px; font: 400 13px/1.5 var(--sans); color: var(--lor-secondary); }
.lor-sequence figcaption span { margin-inline: 6px; }
.lor-sequence__actors { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 28px 0 12px; font: 400 20px/1.2 var(--serif); }
.lor-sequence__events {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 16px;
  margin-inline: calc(100% / 6);
  padding-block: 10px 17px;
}
.lor-sequence__axis { position: absolute; inset-block: 0; left: 0; border-left: 1px dotted var(--lor-secondary); opacity: 0.55; }
.lor-sequence__axis:nth-child(2) { left: 50%; }
.lor-sequence__axis:nth-child(3) { left: 100%; }
.lor-sequence__message {
  position: relative;
  grid-column: 1;
  margin: 0 1px;
  padding: 0 3px 7px;
  text-align: center;
  border-bottom: 1px solid currentColor;
  font: 400 13px/1.35 var(--sans);
}
.lor-sequence__message:nth-of-type(1) { grid-row: 1; }
.lor-sequence__message:nth-of-type(2) { grid-row: 2; }
.lor-sequence__message:nth-of-type(3) { grid-row: 3; }
.lor-sequence__message:nth-of-type(4) { grid-row: 4; }
.lor-sequence__message--right { grid-column: 2; }
.lor-sequence__message::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 6px; height: 6px;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}
.lor-sequence__message--return::after { left: 0; right: auto; transform: rotate(-135deg); }
.lor-mechanism__access { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; }
/* Same type as the paragraph above; chevron on the right; opening extends
   downward without moving anything above it. */
.lor-mechanism__access { position: relative; }
.lor-mechanism__access summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font: 400 16px/1.55 var(--sans);
  color: var(--lor-secondary);
}
.lor-mechanism__access summary::-webkit-details-marker { display: none; }
.lor-mechanism__access summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.lor-mechanism__access[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lor-mechanism__access summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
/* Expanded answer and link match the waitlist link style. */
.lor-mechanism__access p { max-width: 66ch; margin: 8px 0 10px; font: 400 13px/1.5 var(--sans); color: var(--lor-secondary); }
.lor-mechanism__access .lor-mechanism__link {
  margin-top: 0;
  font: 400 13px/1.5 var(--sans);
  color: var(--lor-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 861px) {
  .lor-story .lor-mechanism__body { position: absolute; left: 0; right: 0; top: 100%; }
}

/* Split blocks: title left, content right */
.lor-block--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
}
.lor-block--split .lor-block__title { margin: 0; }
.lor-posts { border-top: 1px solid var(--line); }
.lor-post {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.lor-post__title { font-family: var(--serif); font-size: 18px; line-height: 1.3; }
.lor-post:hover .lor-post__title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.lor-final { padding-top: 140px; padding-bottom: 120px; text-align: center; }
.lor-final__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
/* "Get Lor" has no descenders, so its line box adds ~11px of empty space
   below the letters; 19px makes the visible gap match the 30px icon-to-button
   gap at the top of the page. */
.lor-final .lor-intro__actions { margin-top: 19px; }
.lor-final__icon { margin: 0 auto 30px; }
.lor-access,
.lor-final__note {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--lor-secondary);
  margin: 18px 0 0;
}

.lor-access a { color: var(--lor-secondary); text-decoration: underline; text-underline-offset: 3px; }
.lor-access + .lor-final__note { margin-top: 8px; }

.lor-final + .footer { margin-top: 0; }

.lor-section-note {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  margin: 28px 0 0;
  color: color-mix(in srgb, var(--ink) 66%, transparent);
}
.lor-section-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.lor-section-note a:hover { opacity: 0.72; }

/* Hold the compact scene at center until the final text/visual pair. */
/* Natural-height scene; JS freezes the page while its pairs change. */
html { scrollbar-gutter: stable; }
html.lor-hold { overflow: hidden; }

.lor-story__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.lor-story__step { grid-column: 2; grid-row: 2; min-width: 0; }
.lor-story__step .lor-block__title { margin-bottom: 20px; }
.lor-story__step .lor-mechanism__access { margin-top: 20px; }
.lor-story__visual { grid-column: 1; grid-row: 2; min-width: 0; }
.lor-story__step, .lor-story__visual {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.lor-story__step.is-active, .lor-story__visual.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.lor-story__visual .lor-picker { margin-inline: auto; }
@media (max-width: 860px) {
  .lor-story { height: auto !important; }
  .lor-story__stage { display: block; position: static; }
  .lor-story__step { padding: 80px 0 28px; }
  .lor-story__step:first-child { padding-top: 0; }
  .lor-story__step, .lor-story__visual,
  .lor-story__step.is-active, .lor-story__visual.is-active {
    visibility: visible; opacity: 1; pointer-events: auto; transition: none;
  }
}

/* Feature modules reuse the same two-column rhythm as the sections below. */
.lor-demos {
  padding: 88px 0 96px;
  background: linear-gradient(115deg, #f3f3f3 0%, #f0f5f5 100%);
}
html[data-theme="dark"] .lor-demos {
  background: linear-gradient(115deg, #1c1c1c 0%, #1a1e1e 100%);
}
.lor-demos > .lor-demo:first-child { padding-top: 0; }
@media (max-width: 860px) {
  .lor-demos { padding-top: 64px; padding-bottom: 64px; }
}
/* Expand with the window, giving recordings 25% more width at desktop size. */
/* Double side padding (48px). The text column keeps the width it had in the
   original three-column grid with 24px padding; the video absorbs the change. */
.lor-demo {
  --demo-text: calc((min(100vw, 1315px) - 112px) / 3);
  width: 1315px;
  padding-left: 48px;
  padding-right: 48px;
  grid-template-columns: var(--demo-text) minmax(0, 1fr);
  column-gap: 32px;
  align-items: center;
}
.lor-demo > .lor-duo__text {
  grid-column: 1;
  grid-row: 1;
  width: calc(100% - 30px);
}
.lor-demo__media { min-width: 0; margin: 0; grid-column: 2; grid-row: 1; }
.lor-demo.lor-duo--flip { grid-template-columns: minmax(0, 1fr) var(--demo-text); }
.lor-demo.lor-duo--flip > .lor-duo__text { grid-column: 2; justify-self: end; }
.lor-demo.lor-duo--flip > .lor-demo__media { grid-column: 1; }
@media (max-width: 860px) {
  .lor-demos > .lor-demo, .lor-demos > .lor-demo.lor-duo--flip { grid-template-columns: minmax(0, 1fr); padding-left: 44px; padding-right: 44px; }
  .lor-demos > .lor-demo > .lor-duo__text { justify-self: start; width: 100%; }
  .lor-demo > .lor-duo__text,
  .lor-demo > .lor-demo__media,
  .lor-demo.lor-duo--flip > .lor-duo__text,
  .lor-demo.lor-duo--flip > .lor-demo__media { grid-column: 1; grid-row: auto; }
}
.lor-demo__video {
  display: block;
  width: 100%;
  /* Each frame takes its recording's own shape (from the width/height
     attributes), so there are no letterbox bars beside the video. */
  height: auto;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
}
.lor-player { position: relative; }
.lor-player__controls {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px;
  border-radius: 7px;
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(8px);
  color: #999995;
  opacity: 0;
  transition: opacity 160ms ease;
}
.lor-player:hover .lor-player__controls,
.lor-player:focus-within .lor-player__controls { opacity: 1; }
@media (hover: none) { .lor-player__controls { opacity: 1; } }
.lor-player__controls button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.lor-player__controls button:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.lor-player__controls svg { width: 16px; height: 16px; }
.lor-player__seek {
  flex: 1;
  min-width: 0;
  height: 3px;
  accent-color: #999995;
  cursor: pointer;
}
.lor-player__controls :focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.lor-player:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
  padding: 16px;
}
.lor-player:fullscreen .lor-demo__video { min-height: 0; flex: 1; border: 0; box-shadow: none; }
.lor-demo__caption {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--lor-secondary);
}

@media (max-width: 860px) {
  .lor-gpus { grid-template-columns: minmax(0, 1fr); }
  .lor-gpu__name { font-size: 36px; }
  .lor-approve__rows { grid-template-columns: repeat(2, auto); }
  .lor-approve__rows dt, .lor-approve__rows dd { grid-row: auto; }
  .lor-duo { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lor-duo--flip .lor-duo__text { order: 0; }
  .lor-section-note.lor-prompts__hint { margin: -16px 0 20px; }
  .lor-mechanism { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lor-mechanism__intro p { max-width: 54ch; }
  .lor-mechanism__access { border-top: 0; padding-top: 0; }
  .lor-sequence__actors { font-size: 17px; }

  .lor-intro { padding: 104px 22px 52px; }
  .lor-block, .lor-final { padding-left: 22px; padding-right: 22px; }
  .lor-block { padding-top: 80px; }
  .lor-block__title { margin-bottom: 32px; }
  .lor-prompts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lor-handoff { margin-top: 80px; }
  .lor-handoff__inner { padding-top: 64px; padding-bottom: 64px; }
  .lor-block--split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lor-post { grid-template-columns: 48px minmax(0, 1fr); }
  .lor-post__kind { display: none; }
  .lor-final { padding-top: 96px; padding-bottom: 80px; }
  .lor-final__title { font-size: 32px; }

  .lor-conns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lor-conn { padding: 16px 14px; }
}
@media (max-width: 520px) {
  .lor-intro__lede br { display: none; }
}

@media (prefers-reduced-motion: reduce) { .lor-story__step, .lor-story__visual { transition: none; } }

/* Final call to action repeats the app icon. */
.lor-final .lor-intro__icon { margin: 0 auto 30px; }

/* Scrollytelling: pairs simply cross-fade, without movement. */
.lor-story__step, .lor-story__visual { transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
.lor-story__step.is-active, .lor-story__visual.is-active { transition: opacity 0.6s ease, visibility 0s; }

/* How Lor works: three soft columns with request/response arrows. */
.lor-flow__caption { text-align: center; margin: 0 0 24px; font: 400 13px/1.45 var(--sans); color: var(--lor-secondary); }
.lor-flow__caption span { margin-inline: 6px; }
.lor-flow { position: relative; display: block; width: 100%; margin: 0; height: 392px; --flow-gap: 10px; }
.lor-flow__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--flow-gap);
  height: 100%;
}
.lor-flow__col {
  padding-top: 64px;
  border-radius: 14px;
  /* Neutral at the top-left, cooling to a light blue-gray, then fading out. */
  background: linear-gradient(165deg, #f5f5f5 0%, #f1f5f7 50%, rgba(241, 246, 248, 0) 100%);
  text-align: center;
  font: 400 16px/1.35 var(--sans);
  color: var(--lor-secondary);
}
html[data-theme="dark"] .lor-flow__col {
  background: linear-gradient(180deg, #1b1d1d 0%, #191b1b 55%, rgba(25, 27, 27, 0) 100%);
}
.lor-flow__icon { display: block; width: 39px; height: 39px; margin: 0 auto 1px; color: #ccdade; } /* arrow blue, a touch lighter */
html[data-theme="dark"] .lor-flow__icon { color: #5c5c5e; }
.lor-flow__icon { position: relative; top: -10px; }
.lor-flow__icon--app { transform: scale(0.765); }
.lor-flow__msgs { position: absolute; inset: 0; pointer-events: none; }
.lor-flow__msg {
  position: absolute;
  padding-bottom: 12px;
  text-align: center;
  font: 400 13px/1.45 var(--sans);
  color: var(--lor-secondary);
  /* Column centers: 1/6, 1/2 and 5/6 of the width (gap-corrected). */
  --c1: calc((100% - 2 * var(--flow-gap)) / 6);
  --c2: 50%;
  --c3: calc(100% - (100% - 2 * var(--flow-gap)) / 6);
}
.lor-flow__msg--a { left: var(--c1); right: calc(100% - var(--c2)); }
.lor-flow__msg--b { left: var(--c2); right: calc(100% - var(--c3)); }
.lor-flow__msg:nth-child(1) { top: 170px; }
.lor-flow__msg:nth-child(2) { top: 207px; }
.lor-flow__msg:nth-child(3) { top: 238px; }
.lor-flow__msg:nth-child(4) { top: 294px; }
.lor-flow__msg:nth-child(5) { top: 332px; }
/* Line fades in from its tail; a small triangle marks the head. */
.lor-flow__msg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 8px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(198, 213, 217, 0), #c6d5d9 35%);
}
.lor-flow__msg::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  border-left: 10px solid #d2dee1;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.lor-flow__msg--back::before { left: 8px; right: 0; background: linear-gradient(270deg, rgba(198, 213, 217, 0), #c6d5d9 35%); }
.lor-flow__msg--back::after { right: auto; left: 0; border-left: 0; border-right: 10px solid #d2dee1; }
/* Vertical step on the Lor Server column between the 1st and 2nd arrows. */
.lor-flow__msg--down {
  left: auto;
  right: calc(50% - 5px);
  height: 58px;
  padding: 0 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}
.lor-flow__msg--down::before {
  left: auto;
  right: 4px;
  top: 0;
  bottom: 8px;
  width: 2px;
  height: auto;
  background: linear-gradient(180deg, rgba(198, 213, 217, 0), #c6d5d9 35%);
}
.lor-flow__msg--down::after {
  left: auto;
  right: 0;
  bottom: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 10px solid #d2dee1;
  border-bottom: 0;
}
/* Dark mode: arrows recede instead of glowing. */
html[data-theme="dark"] .lor-flow__msg::before { background: linear-gradient(90deg, rgba(74, 74, 74, 0), #4a4a4a 35%); }
html[data-theme="dark"] .lor-flow__msg--back::before { background: linear-gradient(270deg, rgba(74, 74, 74, 0), #4a4a4a 35%); }
html[data-theme="dark"] .lor-flow__msg--down::before { background: linear-gradient(180deg, rgba(74, 74, 74, 0), #4a4a4a 35%); }
html[data-theme="dark"] .lor-flow__msg::after { border-left-color: #4a4a4a; }
html[data-theme="dark"] .lor-flow__msg--back::after { border-right-color: #4a4a4a; }
html[data-theme="dark"] .lor-flow__msg--down::after { border-left-color: transparent; border-right-color: transparent; border-top-color: #4a4a4a; }
@media (max-width: 860px) { .lor-flow { --flow-gap: 12px; } .lor-flow__col { font-size: 15px; } }

/* Arrows and labels appear one by one, in request order, each time the
   diagram is shown. */
@keyframes lor-flow-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes lor-flow-in-back {
  from { opacity: 0; transform: translateX(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes lor-flow-in-down {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.lor-flow .lor-flow__msg { opacity: 0; }
.lor-story__visual.is-active .lor-flow.is-in .lor-flow__msg { animation: lor-flow-in 0.2s ease-out forwards; }
.lor-story__visual.is-active .lor-flow.is-in .lor-flow__msg--back { animation-name: lor-flow-in-back; }
.lor-story__visual.is-active .lor-flow.is-in .lor-flow__msg--down { animation-name: lor-flow-in-down; }
.lor-story__visual.is-active .lor-flow.is-in .lor-flow__msg:nth-child(1) { animation-delay: 0s; }
.lor-story__visual.is-active .lor-flow.is-in .lor-flow__msg:nth-child(2) { animation-delay: 0.14s; }
.lor-story__visual.is-active .lor-flow.is-in .lor-flow__msg:nth-child(3) { animation-delay: 0.28s; }
.lor-story__visual.is-active .lor-flow.is-in .lor-flow__msg:nth-child(4) { animation-delay: 0.42s; }
.lor-story__visual.is-active .lor-flow.is-in .lor-flow__msg:nth-child(5) { animation-delay: 0.56s; }
@media (prefers-reduced-motion: reduce) {
  .lor-flow .lor-flow__msg { opacity: 1; animation: none !important; }
}

/* Video headings wrap naturally, balanced so two lines read evenly
   ("Run hundreds of / agents at once") without a forced break. */
.lor-demo .lor-block__title { text-wrap: balance; }

/* Segmented control above the scene, centered; dots on the right show position. */
.lor-story__stage { row-gap: 40px; }
.lor-story__tabs {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.lor-story__tab {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 400 14px/1.3 var(--sans);
  color: var(--lor-secondary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.lor-story__tab:hover { color: var(--ink); }
.lor-story__tab.is-active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
html[data-theme="dark"] .lor-story__tab.is-active { background: #2a2a2a; }
.lor-story__tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lor-story__stage { padding-right: 48px; }
.lor-story__dots {
  position: absolute;
  right: 0;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}
.lor-story__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  transition: background 0.25s ease, transform 0.25s ease;
}
.lor-story__dots i.is-active { background: color-mix(in srgb, var(--ink) 55%, transparent); }
@media (max-width: 860px) { .lor-story__tabs, .lor-story__dots { display: none; } }

/* The tabs added ~90px; trim the spacing above and below the scene so the
   white band stays the height it was before (about 694px). */
.lor-block.lor-story { padding-top: 33px; padding-right: 40px; }
.lor-story + .lor-handoff { margin-top: 66px; }
@media (max-width: 860px) { .lor-block.lor-story { padding-top: 80px; } .lor-story + .lor-handoff { margin-top: 80px; } }

/* Space below the divider matches the 72px above it. */
.lor-rule + .lor-final { padding-top: 72px; }

/* Wider diagram/visual column in the scrolling section. */
@media (min-width: 861px) {
  /* Same 48px live-area inset as the video sections above. */
  .lor-block.lor-story { width: 1315px; padding-left: 48px; padding-right: 48px; }
  .lor-story__stage { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 40px 56px; }
}

/* Diagram columns 15% narrower and twice as close (gap 20px -> 10px):
   width = 3 x 0.85 x (W - 40) / 3 + 2 x 10 = 85% - 14px. */


/* Line breaks that only apply on wider screens. */
@media (max-width: 860px) { .lor-br-desktop { display: none; } }

/* Phones: no room reserved for the (hidden) dots. */
@media (max-width: 860px) { .lor-block.lor-story { padding-right: 22px; } .lor-story__stage { padding-right: 0; } }
