/* IDX landing v3. One family (Inter), mono only for code and versions. One accent. Flat dark grounds. */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Mono"; src: url("fonts/mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #181818;
  --raised: #1f1f1f;
  --raised-2: #272727;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #ededed;
  --ink-2: #b4b4b4;
  --ink-3: #8f8f8f;
  --accent: #86d6b0;        /* the one accent: a terminal prompt green */
  --accent-ink: #0f1a14;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --wrap: 80rem;
  --pad: 2rem;
  color-scheme: dark;
}
html { font-size: 16px; background: var(--bg); }
@media (min-width: 2400px) { html { font-size: 20px; } :root { --wrap: 96rem; } }
@media (min-width: 3200px) { html { font-size: 26px; } }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem; line-height: 1.5rem; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p, li { text-wrap: pretty; }
code, .mono { font-family: "Mono", ui-monospace, monospace; font-size: 0.875em; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: var(--bg);
  padding: 0.5rem 0.75rem; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* Text styles (landing-page-design B1 names) */
.heading-1 { font-size: 3.75rem; line-height: 3.75rem; letter-spacing: -0.025em; }
.heading-3 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.02em; }
.heading-5 { font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.01em; }
.title-2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.body-lg { font-size: 1.25rem; line-height: 1.75rem; color: var(--ink-2); }
.body-3 { font-size: 1rem; line-height: 1.5rem; color: var(--ink-2); }
.caption-2 { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-3); }
.caption-4 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; color: var(--ink-3); }

/* Nav: compact, floating, translucent */
.nav-bar { position: sticky; top: 0; z-index: 40; background: rgba(24, 24, 24, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 2rem; min-height: 4rem; }
.nav .btn { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 600; font-size: 1rem; }
.brand img { width: 1.5rem; height: 1.5rem; border-radius: 6px; }
.nav-links { display: flex; margin: 0; gap: 1.25rem; list-style: none; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
  transition: color 300ms var(--ease); }
.nav-links a:hover { color: var(--ink); }

/* Buttons: one pair */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; min-height: 2.75rem;
  border-radius: var(--r-sm); font-weight: 600; font-size: 1rem; line-height: 1.5rem; text-decoration: none;
  border: 1px solid transparent; transition: background-color 300ms var(--ease), transform 300ms var(--ease), border-color 300ms var(--ease); }
.btn svg { width: 1.125rem; height: 1.125rem; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--ink); color: var(--bg); padding: 0.5rem 1rem; }
.btn-primary:hover { background: #ffffff; transform: translateY(-1px); }
.btn-quiet { color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { background: var(--raised-2); }
.btn-sm { min-height: 2.25rem; font-size: 0.875rem; line-height: 1.25rem; padding: 0.375rem 0.75rem; }

.swipe-hint { display: none; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero { padding: 6rem 0 0; overflow: hidden; }
.hero-copy { max-width: 60rem; }
.hero h1 { margin-bottom: 1.5rem; max-width: 60rem; }
.hero .body-lg { max-width: 42.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.5rem; list-style: none; padding: 0; }
.hero-facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-facts .ico { color: var(--accent); }
.hero-shot { margin-top: 4rem; }
.frame { border-radius: var(--r-lg); border: 1px solid var(--line-2); overflow: hidden; background: var(--raised);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.6); }
.frame img { width: 100%; }
.hero .frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }

/* Sections */
section { padding: 6rem 0; }
.section-head { max-width: 42.5rem; margin-bottom: 3rem; }
.section-head .body-lg { margin-top: 1rem; }
.kicker { display: block; margin-bottom: 1rem; color: var(--accent); }
.band { background: var(--raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Why */
.why-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
.why-text p + p { margin-top: 1rem; }
.why-text p { font-size: 1.25rem; line-height: 1.75rem; color: var(--ink-2); }
.why-text strong { color: var(--ink); font-weight: 500; }
.evidence { list-style: none; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); }
.evidence li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1.25rem 1.5rem; align-items: baseline; }
.evidence li + li { border-top: 1px solid var(--line); }
.evidence .num { font-family: "Mono", monospace; font-size: 1.5rem; line-height: 2rem; color: var(--ink); font-weight: 500; }
.evidence a { color: var(--ink-2); text-decoration: none; }
.evidence a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.evidence-note { margin-top: 0.75rem; }

/* Features */
.features { padding-top: 6rem; }
.feature { display: grid; grid-template-columns: 4fr 8fr; gap: 4rem; align-items: center; padding: 3rem 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-of-type(even) { grid-template-columns: 8fr 4fr; }
.feature:nth-of-type(even) .feature-text { order: 2; }
.feature-text .num { color: var(--ink-3); display: block; margin-bottom: 1rem; }
.feature-text h3 { margin-bottom: 1rem; }
.feature-text .detail { margin-top: 1rem; color: var(--ink-2); font-size: 0.875rem; line-height: 1.25rem; }
.feature .frame { transition: transform 500ms var(--ease); }
.feature.phone { grid-template-columns: 4fr 8fr; }
.feature.tall, .feature.tall:nth-of-type(even) { grid-template-columns: 1fr 1fr; }
.feature.tall .frame { width: 100%; max-width: 36rem; justify-self: center; }
.feature[data-slot="limits"] .frame { max-width: 22rem; }
.feature.wide { grid-template-columns: 1fr; gap: 2.5rem; }
.feature.wide .feature-text { order: 0; display: grid; grid-template-columns: 4fr 8fr; gap: 0 4rem; align-items: start; }
.feature.wide .feature-text h3 { grid-row: span 2; }
.feature.phone .frame { max-width: 22rem; margin: 0 auto; border-radius: 2rem; }

.features-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: 3rem; border-top: 1px solid var(--line); }

/* Not great yet */
.honest { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.honest li { padding: 1.5rem; display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; }
.honest li:nth-child(n+3) { border-top: 1px solid var(--line); }
.honest li:nth-child(odd) { border-right: 1px solid var(--line); }
.honest .ico { color: var(--ink-3); margin-top: 0.25rem; }
.honest strong { display: block; font-weight: 500; color: var(--ink); }
.honest span { color: var(--ink-2); }

/* Building */
.build-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.stat { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem; }
.stat .n { font-family: "Mono", monospace; font-size: 2.25rem; line-height: 2.5rem; font-weight: 500; color: var(--ink); }
.next { list-style: none; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); }
.next li { padding: 1rem 1.5rem; display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; color: var(--ink); }
.next li + li { border-top: 1px solid var(--line); }
.next li span { color: var(--ink-2); }
.next .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 1.5px solid var(--accent); margin-top: 0.5rem; }
.next li.maybe { color: var(--ink-2); }
.next li.maybe .dot { border-color: var(--ink-3); border-style: dashed; }
.updates { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* How it works */
.reveal-line { max-width: 52rem; margin-bottom: 4rem; }
.reveal-line .w { transition: color 700ms var(--ease); color: rgba(237, 237, 237, 0.3); }
.reveal-line .w.on { color: var(--ink); }
.diagram { display: grid; grid-template-columns: 1fr 4rem 1fr; align-items: stretch; gap: 0; }
.box { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 1.5rem; background: var(--raised); }
.box h3 { margin-bottom: 0.25rem; }
.box .caption-2 { margin-bottom: 1.25rem; }
.mac { display: grid; gap: 0.75rem; }
.inner { border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem 1rem; background: var(--raised-2); }
.inner .title-2 { display: flex; align-items: center; gap: 0.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.chip { font-family: "Mono", monospace; font-size: 0.75rem; line-height: 1rem; padding: 0.25rem 0.5rem; border-radius: 4px; border: 1px solid var(--line); color: var(--ink-2); }
.pipe { position: relative; }
.pipe svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pipe line { stroke: var(--line-2); stroke-width: 1.5; }
.pipe line.flow { stroke: var(--accent); stroke-dasharray: 4 12; }
.pipe.run line.flow { animation: flow 1.6s linear 3; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.vendors { display: grid; gap: 0.5rem; }
.vendors li { list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.vendors li:last-child { border-bottom: 0; }
.vendors { padding: 0; margin: 0; gap: 0; }
.none { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--ink-2); }
.none .ico { color: var(--ink-3); font-size: 1.25rem; }
.how-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.how-notes p { color: var(--ink-2); }
.how-notes strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 0.25rem; }

/* Install */
.install-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 4rem; align-items: start; }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: baseline; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r-md); }
.steps li::before { content: counter(s); font-family: "Mono", monospace; color: var(--accent); font-size: 1.125rem; }
.steps strong { display: block; font-weight: 500; }
.steps span { color: var(--ink-2); }
.req { list-style: none; padding: 0; }
.req li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.req li span:first-child { color: var(--ink-3); }
.req li span:last-child { text-align: right; }
.install-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 3rem 0 4rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.foot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot a { color: var(--ink-2); text-decoration: none; font-size: 0.875rem; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal { margin-top: 1.5rem; max-width: 52rem; }

/* Links inside running text */
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color 300ms var(--ease); }
.link:hover { text-decoration-color: var(--ink); }

/* Entrance, once */
[data-enter] > * { animation: enter 800ms var(--ease) both; }
[data-enter] > *:nth-child(2) { animation-delay: 80ms; }
[data-enter] > *:nth-child(3) { animation-delay: 160ms; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  [data-enter] > * { animation: none; }
  .reveal-line .w { color: var(--ink); transition: none; }
  .pipe.run line.flow { animation: none; }
  * { transition: none !important; }
}

/* Laptop and below */
@media (max-width: 1100px) {
  .feature, .feature:nth-of-type(even), .feature.phone { grid-template-columns: 1fr; gap: 2rem; }
  .feature:nth-of-type(even) .feature-text { order: 0; }
  .feature.tall, .feature.tall:nth-of-type(even) { grid-template-columns: 1fr; }
  .feature.wide .feature-text { grid-template-columns: 1fr; }
  .feature.tall .frame { max-width: 22rem; }
  .why-grid, .build-grid, .install-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 760px) {
  :root { --pad: 1.25rem; }
  .heading-1 { font-size: 2.25rem; line-height: 2.5rem; }
  .heading-3 { font-size: 1.875rem; line-height: 2.25rem; }
  .body-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .why-text p { font-size: 1.125rem; }
  .nav-links { display: none; }
  .nav { gap: 1rem; }
  .features-cta .btn { width: 100%; justify-content: center; }
  .hero { padding-top: 4rem; }
  .hero-actions .btn, .install-cta .btn, .updates .btn { width: 100%; justify-content: center; }
  .feature.phone .frame { max-width: 16rem; }
  section { padding: 5rem 0; }
  .honest { grid-template-columns: 1fr; }
  .honest li:nth-child(odd) { border-right: 0; }
  .honest li:nth-child(n+2) { border-top: 1px solid var(--line); }
  .diagram { grid-template-columns: 1fr; grid-template-rows: auto 3rem auto; }
  .pipe svg { display: none; }
  .pipe::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1.5px dashed var(--accent); }
  .how-notes { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .evidence li { grid-template-columns: 4.5rem 1fr; padding: 1rem; }
  .feature { padding: 2.5rem 0; }
  .feature.wide .frame { overflow-x: auto; }
  .feature.wide .frame img { width: 260%; max-width: none; }
  .swipe-hint { display: inline; }
  .hero-shot.frame picture img { max-height: 70vh; width: auto; margin: 0 auto; }
}
.frame picture { display: block; }

/* ---- v4: iPhone device frame (drawn in CSS, no product imagery). Sizes in cqi of the wrapper, so it stays exact at any width. ---- */
.phone-wrap { container-type: inline-size; margin: 0; }
.device { position: relative; padding: 3.5cqi; border-radius: 15cqi; background: #0b0b0b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 0 0 0.9cqi #161616, inset 0 0 0 1.2cqi rgba(255, 255, 255, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 80px -24px rgba(0, 0, 0, 0.75); }
.device::before, .device::after { content: ""; position: absolute; width: 0.9cqi; border-radius: 1cqi; background: #2a2a2a; }
.device::before { right: -0.7cqi; top: 26%; height: 15%; }                 /* side button */
.device::after { left: -0.7cqi; top: 20%; height: 9%; box-shadow: 0 calc(12cqi + 18%) 0 #2a2a2a; } /* volume */
.device img { width: 100%; border-radius: 11.5cqi; background: #000; }
.island { position: absolute; left: 50%; transform: translateX(-50%); top: 6.6cqi; width: 27cqi; height: 7.6cqi; border-radius: 4cqi;
  background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }

/* Three phones at slight depth */
.feature.phones { grid-template-columns: 4fr 8fr; }
.trio { display: flex; justify-content: center; align-items: center; padding: 1rem 0; }
.trio .front { width: 20rem; position: relative; z-index: 2; }
.trio .side { width: 16.5rem; position: relative; z-index: 1; }
.trio .left { margin-right: -0.5rem; transform: translateY(2rem); }
.trio .right { margin-left: -0.5rem; transform: translateY(2rem); }

/* ---- v4: the catalogue ---- */
.catalogue .section-head { margin-bottom: 2rem; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 3rem; }
.cat-nav a { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 0.5rem 0.75rem; border: 1px solid var(--line-2); border-radius: 999px; min-height: 2.75rem; display: inline-flex; align-items: center;
  transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.cat-nav a:hover { background: var(--raised-2); color: var(--ink); }
.cat-group { scroll-margin-top: 5rem; }
.cat-group + .cat-group { margin-top: 4rem; }
.heading-6 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.cat-head { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.5rem; }
.cat-count { font-family: "Mono", monospace; font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; color: var(--ink-3); }
.cat-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.5rem; }
.cat-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; width: 100%; height: 100%;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); overflow: hidden;
  transition: transform 500ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease); }
.cat-card:hover { transform: translateY(-2px); border-color: var(--line-2); background: #1c1c1c; }
.cat-card:active { transform: translateY(1px) scale(0.98); }
.cat-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cat-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #111; border-bottom: 1px solid var(--line); position: relative; }
.cat-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.cat-card:hover .cat-media > img { transform: scale(1.03); }
.cat-text { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.25rem 1.25rem; }
.title-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; color: var(--ink); }
.body-6 { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }
/* Phone cards: a mini device rising from the bottom of the tile */
.cat-media .mini-phone { position: absolute; left: 50%; top: 1.25rem; width: 42%; transform: translateX(-50%);
  padding: 0.25rem; border-radius: 1.25rem; background: #0b0b0b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 20px 40px -16px rgba(0, 0, 0, 0.8);
  transition: transform 500ms var(--ease); }
.cat-media .mini-phone img { width: 100%; border-radius: 1rem; }
.cat-card:hover .mini-phone { transform: translateX(-50%) translateY(-4px); }

/* Lightbox */
.lightbox { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 0; background: var(--raised); color: var(--ink);
  width: min(96vw, 110rem); max-height: 94vh; overflow: auto; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.lightbox[open] { animation: lb-in 500ms var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lb-inner { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; }
.lb-media { background: #111; display: flex; align-items: center; justify-content: center; padding: 1.5rem; min-height: 50vh; }
.lb-media a { display: contents; }
.lb-media img { max-height: calc(94vh - 3rem); width: auto; max-width: 100%; border-radius: var(--r-md); border: 1px solid var(--line); }
.lightbox.is-phone .lb-media img { max-height: min(80vh, 56rem); border-radius: 2rem; border: 0;
  padding: 0.5rem; background: #0b0b0b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.lb-text { padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; border-left: 1px solid var(--line); }
#lb-group { color: var(--accent); }
.lb-actions { margin-top: auto; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lb-close { margin-left: auto; }
.lb-count { font-family: "Mono", monospace; align-self: center; margin-right: 0.5rem; }

@media (max-width: 1100px) {
  .feature.phones { grid-template-columns: 1fr; }
  .lb-inner { grid-template-columns: 1fr; }
  .lb-text { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .trio .left { display: none; }
  .trio .front { width: 54%; }
  .trio .side { width: 46%; }
  .trio .right { margin-left: -2%; transform: translateY(1.5rem); }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .cat-text { padding: 0.75rem; }
  .cat-text .body-6 { display: none; }
  .cat-group + .cat-group { margin-top: 3rem; }
  .lb-media { padding: 0.75rem; min-height: 0; }
  .lightbox.is-phone .lb-media img { max-height: 52vh; }
  .lb-media img { max-height: 52vh; }
  .lb-text { gap: 0.5rem; }
  .lb-text { padding: 1.25rem; }
  .lb-actions .btn { flex: 1; justify-content: center; }
  .lb-close { margin-left: 0; }
  .cat-nav { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); padding: 0 var(--pad); scrollbar-width: none; }
  .cat-nav a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox[open] { animation: none; }
  .cat-card:hover, .cat-card:hover .cat-media > img { transform: none; }
}
