/* PyxRanch marketing site
   ---------------------------------------------------------------------------
   One stylesheet, no build step. The palette is the brand's: ink, bone, rust,
   and the warm grey off the lockup. Everything "loud" is rust; everything
   "data" is mono. The pixel motif is the steer mark, the pixel face on
   eyebrows and big numerals, and two canvases (hero resolve, closing field).
   --------------------------------------------------------------------------- */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Pixel";
  src: url("../fonts/GeistPixel-Square.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #0b0a08;
  --ink-2: #12100d;
  --ink-3: #1a1713;
  --ink-4: #221e19;
  --line: #2a2622;
  --line-2: #3b3630;

  --bone: #ede6da;
  --bone-2: #d9d1c3;
  --dust: #a39b8c;
  --dust-2: #8a8478;
  --dust-3: #5f5a51;

  --rust: #c0512f;
  --rust-soft: #d9754f;
  --rust-deep: #8f3a20;
  --wheat: #e2b96a;
  --signal: #8fd3a5;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pixel: "Geist Pixel", "Geist Mono", ui-monospace, monospace;

  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 18px;
  --radius-lg: 28px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
}

/* -- Reset ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--bone);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
::selection {
  background: var(--rust);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--rust-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -- Type ----------------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dust);
}
.eyebrow--rust {
  color: var(--rust-soft);
}
.eyebrow--pixel {
  font-family: var(--pixel);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--rust);
  margin-right: 0.75em;
  vertical-align: 1px;
}

.h-display {
  font-size: clamp(2.6rem, 8.2vw, 6.25rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h-1 {
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h-2 {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h-3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--dust);
  max-width: 40rem;
  text-wrap: pretty;
}
.body {
  color: var(--dust);
  line-height: 1.65;
  text-wrap: pretty;
}
.body strong,
.lede strong {
  color: var(--bone);
  font-weight: 560;
}
.rust {
  color: var(--rust-soft);
}
.mono {
  font-family: var(--mono);
}
.pixel {
  font-family: var(--pixel);
}

@media (max-width: 599px) {
  .hide-sm {
    display: none;
  }
}

/* -- Layout --------------------------------------------------------------- */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.section {
  padding-block: clamp(5rem, 11vw, 9rem);
  position: relative;
}
.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.section--line {
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 44rem;
}
.section-head .h-1,
.section-head .h-2 {
  margin-top: 1.25rem;
}
.section-head .lede {
  margin-top: 1.25rem;
}
.grid-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--line) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--line) 70%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.45;
  mask-image: radial-gradient(80% 60% at 50% 0%, black, transparent);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, black, transparent);
}

/* -- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.25s,
    border-color 0.25s,
    color 0.25s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: var(--rust);
  color: var(--ink);
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--rust-soft);
}
.btn--ghost {
  border-color: var(--line-2);
  color: var(--bone);
}
.btn--ghost:hover {
  border-color: var(--dust);
  background: color-mix(in oklab, var(--bone) 6%, transparent);
}
.btn--sm {
  padding: 0.7rem 1.15rem;
  font-size: 0.6875rem;
}
.btn .arrow {
  transition: transform 0.25s var(--ease-out);
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.link:hover {
  color: var(--bone);
}

/* -- Nav ------------------------------------------------------------------ */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}
.nav.is-scrolled,
.nav.is-open {
  background: color-mix(in oklab, var(--ink) 82%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--bone);
}
.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand__word {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  line-height: 1;
}
.brand__word span {
  color: var(--rust);
}
.nav__links {
  display: none;
  align-items: center;
  gap: 1.9rem;
}
.nav__links a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dust);
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--bone);
}
.nav__links a.is-active::after {
  transform: scaleX(1);
}
.nav__cta {
  display: none;
}
.nav__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  align-items: center;
}
.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bone);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav.is-open .nav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav__burger span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.sheet {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 55;
  background: var(--ink);
  padding: 1.5rem var(--gutter) 3rem;
  overflow-y: auto;
  display: none;
  flex-direction: column;
}
.sheet.is-open {
  display: flex;
}
.sheet a.sheet__link {
  display: block;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.5rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(10px);
  animation: sheet-in 0.5s var(--ease-out) forwards;
}
.sheet a.sheet__link:nth-child(1) { animation-delay: 0.03s; }
.sheet a.sheet__link:nth-child(2) { animation-delay: 0.06s; }
.sheet a.sheet__link:nth-child(3) { animation-delay: 0.09s; }
.sheet a.sheet__link:nth-child(4) { animation-delay: 0.12s; }
.sheet a.sheet__link:nth-child(5) { animation-delay: 0.15s; }
.sheet a.sheet__link:nth-child(6) { animation-delay: 0.18s; }
.sheet a.sheet__link:nth-child(7) { animation-delay: 0.21s; }
.sheet a.sheet__link:nth-child(8) { animation-delay: 0.24s; }
.sheet .btn {
  margin-top: 2rem;
}
@keyframes sheet-in {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 900px) {
  .nav__links,
  .nav__cta {
    display: inline-flex;
  }
  .nav__burger {
    display: none;
  }
}
body.is-locked {
  overflow: hidden;
}

/* -- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img,
.hero__media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
/* Wide screens: the headline owns the left half, so the frame is scaled up a
   touch and anchored left, which carries the subject to the right third. The
   canvas mirrors object-position by reading it from the img at runtime, and
   this transform applies to both. */
@media (min-aspect-ratio: 1/1) and (min-width: 900px) {
  .hero__media img,
  .hero__media canvas {
    object-position: 0% 30%;
    transform: scale(1.18);
    transform-origin: 0% 30%;
  }
}
.hero__media canvas {
  image-rendering: pixelated;
}
/* The <img> stays visible underneath the canvas at all times. The canvas
   paints over it when the script runs; if a frame never arrives (background
   tab at load, a stalled requestAnimationFrame) the photograph is still there
   and nobody sees a black hero. */
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--ink) 0%, color-mix(in oklab, var(--ink) 78%, transparent) 30%, transparent 62%),
    linear-gradient(to right, color-mix(in oklab, var(--ink) 55%, transparent), transparent 55%);
}
.hero__ember {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 40vh;
  pointer-events: none;
  background: radial-gradient(60% 100% at 30% 100%, color-mix(in oklab, var(--rust) 22%, transparent), transparent 70%);
  animation: pulse-slow 5s ease-in-out infinite;
}
.hero__body {
  position: relative;
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
  color: var(--bone-2);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
.hero__eyebrow .blink {
  width: 7px;
  height: 7px;
  background: var(--signal);
  animation: pulse-slow 3s ease-in-out infinite;
}
.hero h1 {
  max-width: 13ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
.hero h1 .rust {
  color: var(--rust-soft);
}
.hero .lede {
  margin-top: 1.5rem;
  color: var(--bone-2);
  max-width: 34rem;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.6);
}
.hero__cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
}
.hero__cta .closing__sub {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--bone) 18%, transparent);
  background: color-mix(in oklab, var(--ink) 55%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-2);
  transition: border-color 0.2s;
}
.hero__status:hover {
  border-color: var(--dust);
}
.hero__status .blink {
  width: 6px;
  height: 6px;
  background: var(--signal);
  animation: pulse-slow 3s ease-in-out infinite;
}
.hero__facts {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid color-mix(in oklab, var(--bone) 18%, transparent);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  max-width: 56rem;
}
.hero__facts dt {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dust);
}
.hero__facts dd {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--bone);
  line-height: 1.35;
}
@media (min-width: 720px) {
  .hero__facts {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* Phones: the portrait is scaled to the viewport's height, so a vertical
   object-position cannot move the face. Instead the frame is anchored left
   and scaled up from its bottom edge, which carries the subject into the
   right third and lifts the face above the eyebrow line; the shade runs
   higher so the copy always has contrast; and the fact strip goes, because
   the numbers section follows at once. */
@media (max-width: 599px) {
  .hero__media img,
  .hero__media canvas {
    object-position: 22% 50%;
    transform: scale(1.28);
    transform-origin: 0% 100%;
  }
  .hero__status {
    margin-top: 1rem;
    padding: 0.45rem 0.8rem;
  }
  .hero__cta {
    margin-top: 1.8rem;
  }
  .hero__shade {
    background:
      linear-gradient(to top, var(--ink) 0%, color-mix(in oklab, var(--ink) 88%, transparent) 38%, color-mix(in oklab, var(--ink) 35%, transparent) 62%, transparent 82%);
  }
  .hero__facts {
    display: none;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.4rem);
  }
  .hero__body {
    padding-bottom: 2.5rem;
  }
}
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 1.5rem;
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dust);
}
.hero__scroll i {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--dust), transparent);
  display: block;
  animation: drip 2.2s ease-in-out infinite;
}
@media (min-width: 900px) {
  .hero__scroll {
    display: flex;
  }
}
@keyframes drip {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
@keyframes pulse-slow {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.9;
  }
}

/* -- Ticker --------------------------------------------------------------- */

.ticker {
  position: relative;
  border-block: 1px solid var(--line);
  background: color-mix(in oklab, var(--ink-2) 70%, transparent);
  padding-block: 0.9rem;
  overflow: hidden;
}
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 6rem;
  z-index: 2;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--ink), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--ink), transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
.ticker ul {
  display: flex;
  flex: none;
}
.ticker li {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-inline: 1.4rem;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dust);
}
.ticker li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--rust);
  flex: none;
}
@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* -- Replace (manifesto) -------------------------------------------------- */

.replace {
  display: grid;
  gap: 3rem;
}
@media (min-width: 960px) {
  .replace {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
  }
}
.strike-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.strike-list li {
  font-size: clamp(1.6rem, 4.6vw, 3.1rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--dust-3);
  position: relative;
  width: max-content;
  max-width: 100%;
  transition: color 0.4s;
}
.strike-list li::after {
  content: "";
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  top: 55%;
  height: 0.12em;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.strike-list.is-shown li::after {
  transform: scaleX(1);
}
.strike-list li.strike-list__keep {
  color: var(--bone);
  margin-top: 0.6rem;
}
.strike-list li.strike-list__keep::after {
  display: none;
}
.strike-list li.strike-list__keep b {
  color: var(--rust-soft);
  font-weight: inherit;
}

/* -- Stats ---------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}
@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stat {
  background: var(--ink-2);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  transition: background-color 0.3s;
}
.stat:hover {
  background: var(--ink-3);
}
.stat__n {
  font-family: var(--pixel);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.stat__n small {
  font-size: 0.5em;
  color: var(--rust-soft);
  margin-left: 0.15em;
}
.stat__l {
  margin-top: 0.9rem;
  color: var(--dust);
  font-size: 0.95rem;
  line-height: 1.45;
  text-wrap: pretty;
}

/* -- Feature pillars ------------------------------------------------------ */

.pillar {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .pillar {
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
  }
  .pillar__copy {
    grid-column: span 5;
  }
  .pillar__media {
    grid-column: span 7;
  }
  .pillar--flip .pillar__copy {
    order: 2;
  }
  .pillar--flip .pillar__media {
    order: 1;
  }
}
.pillar__copy .h-1 {
  margin-top: 1.25rem;
}
.pillar__copy .lede {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}
.pillar__points {
  margin-top: 1.9rem;
  display: grid;
  gap: 0.9rem;
}
.pillar__points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.85rem;
  color: var(--dust);
  font-size: 0.95rem;
  line-height: 1.5;
}
.pillar__points li b {
  color: var(--bone);
  font-weight: 560;
}
.pillar__points .cell {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  background: var(--rust);
  box-shadow:
    -4px -4px 0 -1px color-mix(in oklab, var(--rust) 45%, transparent),
    4px 4px 0 -1px color-mix(in oklab, var(--rust) 45%, transparent);
}
.pillar__more {
  margin-top: 1.75rem;
}

/* Media frames */
.frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame--photo {
  aspect-ratio: 3 / 2;
}
.frame--photo img {
  transition: transform 1.4s var(--ease-out);
}
.frame--photo:hover img {
  transform: scale(1.03);
}
.frame__cap {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: color-mix(in oklab, var(--ink) 75%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-2);
  border: 1px solid color-mix(in oklab, var(--bone) 12%, transparent);
}

/* Device mockups */
.tablet {
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: #000;
  padding: 10px;
  box-shadow:
    0 0 0 1px #000,
    0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.tablet img {
  border-radius: 12px;
  width: 100%;
}
.phone {
  width: 100%;
  max-width: 300px;
  border-radius: 44px;
  border: 1px solid var(--line-2);
  background: #000;
  padding: 10px;
  box-shadow:
    0 0 0 1px #000,
    0 40px 90px -30px rgba(0, 0, 0, 0.85);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 0;
  margin-top: 7.4%;
  padding-top: 8.7%;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
.phone img {
  border-radius: 34px;
  width: 100%;
}
.phone--framed {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.phone--framed::before {
  display: none;
}
.phone--framed img {
  border-radius: 40px;
}

/* Herd media composition: tablet with a phone overlapping. */
.herd-media {
  position: relative;
  padding-bottom: 3rem;
}
.herd-media .tablet {
  width: 92%;
}
.herd-media .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  max-width: 220px;
  border-radius: 34px;
  padding: 7px;
}
.herd-media .phone img {
  border-radius: 28px;
}
@media (max-width: 600px) {
  .herd-media .phone {
    width: 40%;
  }
}

/* Harvest media: phone in front of a landscape. */
.harvest-media {
  position: relative;
  aspect-ratio: 4 / 3;
}
.harvest-media .frame--photo {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}
.harvest-media .phone {
  position: absolute;
  left: 50%;
  bottom: -2rem;
  transform: translateX(-50%);
  width: 46%;
  max-width: 250px;
}
@media (min-width: 960px) {
  .harvest-media {
    aspect-ratio: 5 / 4;
    margin-bottom: 3rem;
  }
  .harvest-media .phone {
    left: auto;
    right: 8%;
    transform: none;
    bottom: -3rem;
  }
}
@media (max-width: 959px) {
  /* The phone stands inside a squarer frame on narrow screens so it never
     climbs over the copy above it. */
  .harvest-media {
    aspect-ratio: 1 / 1;
    margin-top: 1rem;
    margin-bottom: 3rem;
  }
  .harvest-media .phone {
    width: 44%;
    bottom: -1.5rem;
  }
}

/* The sunset harvest frame has its subjects centre-right, so the phone stands
   on the left over the corn and the caption moves to the right corner. */
.harvest-media--phone-left .phone {
  left: 6%;
  right: auto;
  transform: none;
}
@media (min-width: 960px) {
  .harvest-media--phone-left .phone {
    left: 5%;
    right: auto;
  }
}
.frame__cap--right {
  left: auto;
  right: 1rem;
}
@media (max-width: 959px) {
  /* Narrow screens: the phone fills the bottom half of the frame, so the
     caption goes to the top corner instead. */
  .harvest-media--phone-left .frame__cap {
    top: 1rem;
    bottom: auto;
  }
  .harvest-media--phone-left .phone {
    width: 38%;
  }
}

/* Verdict card for PIT MODE */
.verdict {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: min(46%, 220px);
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: color-mix(in oklab, var(--ink) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in oklab, var(--bone) 12%, transparent);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--dust);
}
.verdict__word {
  font-family: var(--pixel);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.06em;
  color: var(--signal);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.verdict__word--amber {
  color: var(--wheat);
}
.verdict__word--red {
  color: var(--rust-soft);
}
.verdict dl {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.25rem 0.75rem;
}
.verdict dd {
  text-align: right;
  color: var(--bone);
}

/* -- Compliance grid ------------------------------------------------------ */

.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: var(--ink-2);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  transition: background-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.card:hover {
  background: var(--ink-3);
}
.card__icon {
  width: 34px;
  height: 34px;
  color: var(--rust-soft);
}
.card__icon svg {
  width: 100%;
  height: 100%;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--dust);
  font-size: 0.925rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.card .tag {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dust-2);
}
.card .tag b {
  color: var(--wheat);
  font-weight: 500;
}

/* -- Companion app (sticky scrollytelling) -------------------------------- */

.app {
  background: linear-gradient(to bottom, var(--ink), var(--ink-2) 50%, var(--ink));
}
.app__grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 960px) {
  .app__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.app__stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
@media (min-width: 960px) {
  .app__stage {
    position: sticky;
    top: calc(var(--nav-h) + 3rem);
    height: calc(100vh - var(--nav-h) - 6rem);
    align-items: center;
  }
}
.app__phone {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1206 / 2622;
}
.app__phone .phone {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.97) translateY(12px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.app__phone .phone.is-active {
  opacity: 1;
  transform: none;
}
.app__glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in oklab, var(--rust) 25%, transparent), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.app__steps {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .app__steps {
    gap: 0;
  }
  .app__step {
    min-height: 70vh;
    display: flex;
    align-items: center;
  }
}
.app__step-inner {
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--ink) 70%, transparent);
  transition:
    border-color 0.3s,
    background-color 0.3s;
}
.app__step.is-active .app__step-inner {
  border-color: color-mix(in oklab, var(--rust) 55%, var(--line));
  background: var(--ink-2);
}
.app__step .n {
  font-family: var(--pixel);
  color: var(--rust-soft);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}
.app__step h3 {
  margin-top: 0.7rem;
  font-size: 1.35rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}
.app__step p {
  margin-top: 0.7rem;
  color: var(--dust);
  line-height: 1.6;
  text-wrap: pretty;
}
/* Wide screens: the scene wrapper is invisible and the per-step device is
   not rendered; the sticky stage on the left does the showing. */
.app__scene {
  display: contents;
}
.app__step-media {
  display: none;
}

/* Narrow screens: no stage. Each step is a scene of its own. Without the
   script (or under reduced motion) the device simply sits above its card;
   with it, the section gets .app--scenes and every step becomes a tall
   track with a pinned scene: the device appears, then as you scroll the
   card slides in from the right and the device slides off to the right.
   --p runs 0 to 1 per step and is written by the script. */
@media (max-width: 959px) {
  .app__stage {
    display: none;
  }
  .app__scene {
    display: block;
  }
  .app__step-media {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 1.25rem;
  }
  .app__step-media .phone {
    width: 58%;
    max-width: 260px;
  }
  .app__step-media--pair {
    width: 100%;
    aspect-ratio: 1600 / 1240;
  }
  .app__step-media--pair .tablet {
    position: absolute;
    left: 0;
    top: 0;
    width: 84%;
  }
  .app__step-media--pair .phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 34%;
    max-width: 200px;
    border-radius: 30px;
    padding: 6px;
  }
  .app__step-media--pair .phone img {
    border-radius: 24px;
  }

  .app--scenes .app__steps {
    gap: 0;
  }
  .app--scenes .app__step {
    --p: 0;
    height: 165svh;
  }
  .app--scenes .app__scene {
    position: sticky;
    top: var(--nav-h);
    height: calc(100svh - var(--nav-h));
    display: grid;
    align-items: center;
    overflow: hidden;
  }
  .app--scenes .app__step-media {
    grid-area: 1 / 1;
    margin: 0;
    max-height: 78%;
    will-change: transform, opacity;
    transform: translateX(calc(var(--p) * 72%)) scale(calc(1 - var(--p) * 0.12));
    opacity: calc(1 - var(--p) * 0.6);
  }
  .app--scenes .app__step-media .phone {
    max-height: 100%;
  }
  .app--scenes .app__step-media .phone img,
  .app--scenes .app__step-media--pair {
    max-height: calc(78svh - 78px);
  }
  .app--scenes .app__step-media .phone img {
    width: auto;
    max-width: 100%;
  }
  .app--scenes .app__step-inner {
    grid-area: 1 / 1;
    align-self: end;
    margin-bottom: 1.5rem;
    z-index: 2;
    will-change: transform;
    transform: translateX(calc((1 - var(--p)) * 115%));
    background: color-mix(in oklab, var(--ink) 88%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  }
  .app--scenes .app__step.is-active .app__step-inner {
    background: color-mix(in oklab, var(--ink-2) 92%, transparent);
  }
}

/* -- Address / tenancy ---------------------------------------------------- */

.tenancy {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ink-2), var(--ink));
  padding: clamp(1.6rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 800px) {
  .tenancy {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.tenancy .h-2 {
  margin-top: 1rem;
}
.tenancy .body {
  margin-top: 0.9rem;
  max-width: 34rem;
}
.tenancy__addr {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--ink);
  white-space: nowrap;
}
.tenancy__addr .you {
  color: var(--wheat);
}
.tenancy__addr .rest {
  color: var(--dust-2);
}
.tenancy__addr .caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  background: var(--rust);
  vertical-align: -0.2em;
  margin-left: 2px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* -- Gallery -------------------------------------------------------------- */

.gallery {
  padding-block: clamp(2rem, 5vw, 4rem);
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  position: relative;
}
.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.gallery__nav {
  display: flex;
  gap: 0.5rem;
}
.gallery__nav button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--bone);
  transition: border-color 0.2s, background-color 0.2s;
}
.gallery__nav button:hover {
  border-color: var(--dust);
  background: color-mix(in oklab, var(--bone) 6%, transparent);
}
.gallery__track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.gallery__track::-webkit-scrollbar {
  display: none;
}
.gallery__item {
  flex: 0 0 min(78vw, 520px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--ink-3);
  position: relative;
}
.gallery__item--tall {
  flex-basis: min(60vw, 346px);
  aspect-ratio: 2 / 3;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.gallery__item:hover img {
  transform: scale(1.04);
}

/* The film: a wide, quiet loop above the photo track. 16:9 on phones, a
   cinematic 21:9 crop of the same frame on anything wider. */
.film {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-3);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
@media (min-width: 900px) {
  .film {
    aspect-ratio: 21 / 9;
  }
}
.film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink-3) center / cover no-repeat;
}
.film__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, color-mix(in oklab, var(--ink) 70%, transparent), transparent 45%);
}
.film__cap {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  margin: 0;
}
.film__cap .eyebrow {
  color: var(--bone-2);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}
.film__toggle {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--bone) 18%, transparent);
  background: color-mix(in oklab, var(--ink) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-2);
  transition: border-color 0.2s, color 0.2s;
}
.film__toggle:hover {
  border-color: var(--dust);
  color: var(--bone);
}
.film__toggle[hidden] {
  display: none;
}

/* -- Story ---------------------------------------------------------------- */

.story {
  display: grid;
  gap: 3rem;
}
@media (min-width: 960px) {
  .story {
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
    align-items: start;
  }
  .story__media {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
  }
}
.story__media .frame {
  aspect-ratio: 4 / 5;
}
.story__text {
  display: grid;
  gap: 1.4rem;
}
.story__text p {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--bone-2);
  text-wrap: pretty;
}
.story__text p.first {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.35;
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.story__text p.first .rust {
  color: var(--rust-soft);
}
.story__sig {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.story__sig svg {
  width: 36px;
  height: 36px;
}
.story__sig .who {
  font-size: 0.95rem;
}
.story__sig .who span {
  display: block;
  color: var(--dust);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.promise {
  margin-top: 1rem;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 640px) {
  .promise {
    grid-template-columns: repeat(3, 1fr);
  }
}
.promise div {
  background: var(--ink-2);
  padding: 1.2rem 1.3rem;
}
.promise b {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}
.promise span {
  display: block;
  margin-top: 0.4rem;
  color: var(--dust);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* -- Rollout / modules ---------------------------------------------------- */

.phases {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .phases {
    grid-template-columns: repeat(3, 1fr);
  }
}
.phase {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.phase__n {
  font-family: var(--pixel);
  color: var(--rust-soft);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
}
.phase h3 {
  font-size: 1.3rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}
.phase p {
  color: var(--dust);
  font-size: 0.925rem;
}
.phase ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.phase li {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--bone-2);
}
.phase li.off {
  color: var(--dust);
  border-style: dashed;
}
.phase__foot {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--dust-2);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* -- Closing CTA ---------------------------------------------------------- */

.closing {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
}
.closing canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.closing__shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 70% at 50% 40%, transparent, color-mix(in oklab, var(--ink) 85%, transparent));
  pointer-events: none;
}
.closing .wrap {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.closing .h-display {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  max-width: 14ch;
}
.closing .lede {
  margin-top: 1.4rem;
  text-align: center;
}
.closing__cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
}
/* The invitation button with a quieter line tight beneath it, so nobody
   reads the button as the only kind of message welcome here. */
.closing__stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.closing__sub {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dust);
  transition: color 0.2s;
}
.closing__sub:hover {
  color: var(--bone);
}

/* -- Footer --------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--ink-2) 60%, transparent);
}
.footer__top {
  padding-block: 3rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .footer__top {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}
.footer__blurb {
  margin-top: 1rem;
  color: var(--dust);
  font-size: 0.9rem;
  max-width: 24rem;
  line-height: 1.55;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dust-2);
  margin-bottom: 1rem;
}
.footer li + li {
  margin-top: 0.55rem;
}
.footer li a {
  color: var(--dust);
  font-size: 0.925rem;
  transition: color 0.2s;
}
.footer li a:hover {
  color: var(--bone);
}
.footer__bottom {
  border-top: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--dust-2);
}

/* -- Reveal --------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-shown {
  opacity: 1;
  transform: none;
}

/* -- Features page ---------------------------------------------------------- */

.page-head {
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.page-head .lede {
  margin-top: 1.25rem;
}
.jump {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: color-mix(in oklab, var(--ink) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.jump__track {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-block: 0.7rem;
  scrollbar-width: none;
}
.jump__track::-webkit-scrollbar {
  display: none;
}
.jump a {
  flex: none;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--dust);
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.jump a:hover,
.jump a.is-active {
  color: var(--bone);
  border-color: var(--line-2);
}
.phase-block {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.phase-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}
.phase-block__head .count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--dust-2);
  letter-spacing: 0.1em;
}
.module {
  scroll-margin-top: calc(var(--nav-h) + 4.5rem);
  display: grid;
  gap: 1.25rem;
  padding-block: 2.25rem;
  border-top: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}
@media (min-width: 900px) {
  .module {
    grid-template-columns: 18rem 1fr;
    gap: 3rem;
  }
}
.module__head h3 {
  font-size: 1.5rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}
.module__head p {
  margin-top: 0.5rem;
  color: var(--dust);
  font-size: 0.95rem;
}
.module__head .off {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wheat);
  border: 1px dashed color-mix(in oklab, var(--wheat) 50%, transparent);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}
.tasks {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 1100px) {
  .tasks {
    grid-template-columns: repeat(2, 1fr);
  }
}
.task {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.task h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.task p {
  color: var(--dust);
  font-size: 0.9rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.task .role {
  margin-top: auto;
  padding-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dust-2);
}
.task .role b {
  font-weight: 500;
  color: var(--rust-soft);
}
.newer {
  border: 1px solid color-mix(in oklab, var(--rust) 45%, var(--line));
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: linear-gradient(135deg, color-mix(in oklab, var(--rust) 8%, var(--ink-2)), var(--ink-2));
}
.newer ul {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.6rem;
}
@media (min-width: 800px) {
  .newer ul {
    grid-template-columns: repeat(2, 1fr);
  }
}
.newer li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0.75rem;
  color: var(--dust);
  font-size: 0.925rem;
  line-height: 1.5;
}
.newer li b {
  color: var(--bone);
  font-weight: 560;
}
.newer li i {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  background: var(--rust);
}

/* -- 404 ------------------------------------------------------------------ */
.lost {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gutter);
}
.lost .pixel {
  font-size: clamp(4rem, 18vw, 9rem);
  color: var(--rust);
  line-height: 1;
}

/* -- Browser frame (web app screenshots) ---------------------------------- */

.browser {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #0a0908;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.browser__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}
.browser__bar em {
  margin-left: 10px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--dust-2);
}
.browser img {
  width: 100%;
  display: block;
}

/* -- Harvest: the scrubbed crossfade ---------------------------------------- */

.harvest-stage {
  --p: 0;
  display: grid;
  gap: 2.5rem;
}
.harvest-stage__cap {
  margin-top: 1rem;
  color: var(--dust);
  font-size: 0.925rem;
  line-height: 1.55;
  max-width: 34rem;
}
.harvest-stage__cap .eyebrow {
  display: block;
  margin-bottom: 0.5rem;
}
/* Pinned mode, switched on by the script on wide screens only. */
.harvest__scrub.is-scrub {
  height: 210vh;
}
.harvest__scrub.is-scrub .harvest__pin {
  position: sticky;
  top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
}
.harvest__scrub.is-scrub .harvest__pin > .wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
}
.is-scrub .harvest-stage {
  gap: 0;
  align-items: center;
}
.is-scrub .harvest-stage__a,
.is-scrub .harvest-stage__b {
  grid-area: 1 / 1;
  will-change: opacity, transform;
}
.is-scrub .harvest-stage__a {
  opacity: calc(1 - var(--p));
  transform: translateY(calc(var(--p) * -28px)) scale(calc(1 - var(--p) * 0.03));
}
.is-scrub .harvest-stage__b {
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * 32px)) scale(calc(0.97 + var(--p) * 0.03));
}
.is-scrub .harvest-media {
  margin-bottom: 0;
}

/* -- Maps: two web screens and the Pit Mode phone --------------------------- */

.maps-media {
  position: relative;
}
@media (min-width: 960px) {
  .maps-media {
    padding-bottom: 30%;
    padding-right: 4%;
  }
  .maps-media__second {
    position: absolute;
    left: -4%;
    bottom: 0;
    width: 58%;
  }
  .maps-media__phone {
    position: absolute;
    right: 0;
    bottom: -6%;
    width: 27%;
    max-width: 190px;
    border-radius: 34px;
    padding: 7px;
  }
  .maps-media__phone img {
    border-radius: 28px;
  }
}
@media (max-width: 959px) {
  .maps-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .maps-media__row {
    display: contents;
  }
  .maps-media__second {
    grid-column: 1;
  }
  .maps-media__phone {
    justify-self: center;
    width: 52%;
  }
}

/* -- Compliance: the pre-trip showcase ------------------------------------- */

.pretrip {
  margin-top: 4rem;
}
.pretrip-media {
  position: relative;
  padding-right: 26%;
  padding-bottom: 2.5rem;
}
.pretrip-media .tablet--portrait {
  width: 100%;
}
.pretrip-media .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  max-width: 240px;
}
@media (min-width: 960px) {
  .pretrip .pillar__media {
    grid-column: span 6;
  }
  .pretrip .pillar__copy {
    grid-column: span 6;
  }
}

/* -- Companion app: slides with an optional tablet -------------------------- */

.app__slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: calc(100vh - var(--nav-h) - 6rem);
}
.app__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.97) translateY(12px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.6s var(--ease-out);
  pointer-events: none;
}
.app__slide.is-active {
  opacity: 1;
  transform: none;
}
.app__slide .phone {
  width: 44%;
  max-width: 280px;
}
.app__slide--pair .tablet {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 82%;
}
.app__slide--pair .phone {
  position: absolute;
  right: 0;
  bottom: 4%;
  width: 34%;
  max-width: 220px;
  border-radius: 34px;
  padding: 7px;
}
.app__slide--pair .phone img {
  border-radius: 28px;
}

/* -- Motion preferences --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) {
    scroll-behavior: auto;
  }
  html:not(.force-motion) *,
  html:not(.force-motion) *::before,
  html:not(.force-motion) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html:not(.force-motion) .reveal,
  html:not(.force-motion) .strike-list li::after,
  html:not(.force-motion) .app__phone .phone {
    opacity: 1;
    transform: none;
  }
  html:not(.force-motion) .strike-list li::after {
    transform: scaleX(1);
  }
  /* A static strip: one copy of the list, wrapping, instead of a marquee. */
  html:not(.force-motion) .ticker__track {
    animation: none;
    width: auto;
  }
  html:not(.force-motion) .ticker ul {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
  html:not(.force-motion) .ticker ul + ul {
    display: none;
  }
}

/* -- Support page ----------------------------------------------------------- */
/* pyxranch.com/support: the same words as pyxel-ai.com/support, the page the
   App Store points at. A narrow column, a hand-off strip naming both marks,
   five answers, and a plain form that posts to pyxel-ai.com's sender. */

.wrap--narrow {
  max-width: 44rem;
}
.support .page-head .h-1 {
  max-width: 14ch;
}
.support__h {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.support .body {
  margin-top: 0.8rem;
}

.handoff {
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--ink-2) 70%, transparent);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  text-align: center;
}
.handoff__marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}
.handoff__by {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--dust-2);
}
.handoff p {
  margin-top: 0.85rem;
  color: var(--dust);
  font-size: 0.925rem;
  line-height: 1.55;
}
.brand--static {
  cursor: default;
}
.pyxel {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--bone);
}
.pyxel svg {
  width: 20px;
  height: 20px;
}
.pyxel__word {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.pyxel__word span {
  color: #ff6a1f;
}

.support-note {
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--ink-2) 60%, transparent);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}

.qa {
  margin-top: 0.4rem;
}
.qa > div {
  padding-block: 1.2rem;
  border-top: 1px solid var(--line);
}
.qa > div:first-child {
  border-top: 0;
}
.qa dt {
  font-weight: 560;
}
.qa dd {
  margin: 0.4rem 0 0;
  color: var(--dust);
  line-height: 1.6;
  text-wrap: pretty;
}
.qa dd a,
.support__foot a,
.notice a {
  color: var(--rust-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Form fields, the same as the partnerships portal's. */
.form {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
.form__row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.field-label {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dust-2);
}
.field-label b {
  color: var(--rust-soft);
  font-weight: 500;
}
.field {
  width: 100%;
  height: 3rem;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--ink) 70%, transparent);
  color: var(--bone);
  padding: 0 1rem;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.field--area {
  height: auto;
  padding: 0.85rem 1rem;
  resize: vertical;
  line-height: 1.5;
}
.field::placeholder {
  color: var(--dust-3);
}
.field:hover {
  border-color: var(--dust-3);
}
.field:focus {
  border-color: var(--rust-soft);
  background: var(--ink);
  outline: none;
}
.form__send {
  margin-top: 0.8rem;
  width: 100%;
}
.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.notice {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.925rem;
  line-height: 1.55;
}
.notice--ok {
  border: 1px solid color-mix(in oklab, var(--signal) 35%, transparent);
  background: color-mix(in oklab, var(--signal) 7%, transparent);
  color: var(--dust);
  text-align: center;
  padding: 2.2rem 1.5rem;
}
.notice__big {
  color: var(--bone);
  font-size: 1.15rem;
  font-weight: 560;
  margin-bottom: 0.5rem;
}
.notice--error {
  border: 1px solid color-mix(in oklab, var(--rust) 45%, transparent);
  background: color-mix(in oklab, var(--rust) 10%, transparent);
  color: var(--rust-soft);
}
.support__foot {
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--dust);
  line-height: 1.6;
}
/* The sent notice replaces the form; the grid display must not beat the hidden attribute. */
.form[hidden],
.notice[hidden] {
  display: none;
}

/* -- The gate ----------------------------------------------------------------- */
/* gate.html: the code screen nginx shows until the browser carries the cookie.
   One card, centred, on the grid texture with a slow rust glow behind it. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.gate {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.gate__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 42%, color-mix(in oklab, var(--rust) 16%, transparent), transparent 70%);
  animation: gate-glow 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gate-glow {
  50% { opacity: 0.55; }
}
.gate__card {
  position: relative;
  width: 100%;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gate__mark {
  width: clamp(72px, 14vw, 104px);
  height: auto;
  color: var(--bone);
  animation: gate-breathe 3.2s ease-in-out infinite;
}
.gate__pixel {
  animation: gate-pixel 1.6s steps(2, start) infinite;
}
@keyframes gate-breathe {
  50% { transform: translateY(-5px); }
}
@keyframes gate-pixel {
  50% { opacity: 0.25; }
}
.gate__word {
  margin-top: 1rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.gate__eyebrow {
  margin-top: 1.4rem;
}
.gate__eyebrow .blink {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--signal);
  border-radius: 50%;
  margin-right: 0.7em;
  vertical-align: 1px;
  animation: gate-pixel 1.6s steps(2, start) infinite;
}
.gate__h {
  margin-top: 1.2rem;
  max-width: 15ch;
}
.gate__lede {
  margin-top: 1.1rem;
  text-align: center;
  max-width: 32rem;
}
.gate__wrong {
  margin-top: 1.6rem;
  width: 100%;
}
.gate__form {
  margin-top: 1.8rem;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.gate__form .field {
  flex: 1 1 15rem;
  height: 3.25rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.gate__form .field::placeholder {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.gate__form .btn {
  height: 3.25rem;
  padding-inline: 1.6rem;
}
.gate__sub {
  margin-top: 1.6rem;
}
@media (prefers-reduced-motion: reduce) {
  .gate__glow,
  .gate__mark,
  .gate__pixel,
  .gate__eyebrow .blink {
    animation: none;
  }
}
