/* ONE PAGE SITE. Rides on /websites/websites.css (carbon, paper, canary, pink, carbon-blue ink, Archivo + Inter).
   This file adds only what the $900 page needs: the live sample on its bench, the ticket with its canary copy,
   and the case study. Same rule as the parent page: one bold thing (the live sample), the rest quiet paper. */

/* ---------- hero ---------- */
.op-hero { max-width: 1180px; margin: 0 auto; padding: clamp(1rem, 3vh, 2.2rem) 16px clamp(2.4rem, 6vh, 4rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.op-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); max-width: 13ch; }
.op-crumb { margin: 0 0 1rem; font-size: .92rem; color: var(--muted); }
.op-crumb a { color: var(--muted); text-underline-offset: 3px; }
.op-crumb a:hover { color: var(--yellow); }
.op-crumb span { margin: 0 .35rem; opacity: .6; }
@media (max-width: 920px) { .op-hero { grid-template-columns: minmax(0, 1fr); } }

/* the bench: the sample running on the screen it ships on */
.bench { margin: 0; position: relative; isolation: isolate; display: grid; justify-items: center; gap: 14px; }
.bench::before { content: ""; position: absolute; inset: 8% -6% 4%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 199, 106, .22), rgba(255, 199, 106, .06) 60%, transparent); filter: blur(10px); }
.bench__switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--carbon-2); box-shadow: inset 0 0 0 1px var(--line); }
.bench__switch button { font: 700 .9rem/1 "Inter", system-ui, sans-serif; color: var(--muted); background: transparent; border: 0; border-radius: 999px;
  padding: 10px 16px; min-height: 40px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.bench__switch button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.bench__switch button[aria-checked="true"] { color: #0a0a12; background: var(--yellow); box-shadow: 0 0 14px rgba(255, 238, 0, .3); }
.bench__screen { width: 100%; display: grid; place-items: center; }
.bench__device { position: relative; overflow: hidden; background: #050a1c; transition: width .45s cubic-bezier(.2, .8, .2, 1), height .45s cubic-bezier(.2, .8, .2, 1), border-radius .45s; }
.bench__device iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #0f2125; }
/* phone: a handset with a notch, tilted a hair toward the reader */
.bench[data-view="phone"] .bench__device { width: min(300px, 78vw); aspect-ratio: 390 / 780; border-radius: 34px; padding: 10px;
  box-shadow: 0 0 0 2px rgba(196, 204, 255, .3), 0 40px 70px rgba(5, 6, 30, .6); transform: rotate(-1.2deg); }
.bench[data-view="phone"] .bench__device::after { content: ""; position: absolute; top: 16px; left: 50%; width: 60px; height: 7px; margin-left: -30px; border-radius: 4px; background: #050a1c; z-index: 2; pointer-events: none; }
.bench[data-view="phone"] iframe { left: 10px; top: 10px; border-radius: 24px; }
/* computer: a monitor with a stand */
.bench[data-view="desk"] .bench__device { width: 100%; aspect-ratio: 1280 / 800; border-radius: 12px; padding: 10px 10px 10px;
  box-shadow: 0 0 0 2px rgba(196, 204, 255, .3), 0 40px 70px rgba(5, 6, 30, .6); }
.bench[data-view="desk"] .bench__screen::after { content: ""; width: 30%; height: 14px; margin-top: -2px; border-radius: 0 0 10px 10px; background: linear-gradient(#2a2f6e, #1a1d4a); box-shadow: 0 10px 20px rgba(5, 6, 30, .4); }
.bench[data-view="desk"] iframe { left: 10px; top: 10px; border-radius: 4px; }
.bench figcaption { font-size: .92rem; color: var(--muted); text-align: center; max-width: 34ch; }
.bench__live { display: inline-block; vertical-align: middle; margin: -2px 8px 0 0; width: 9px; height: 9px; border-radius: 50%; background: #ffc76a; box-shadow: 0 0 10px 2px rgba(255, 199, 106, .75); animation: live 2.4s ease-in-out infinite; }
@keyframes live { 50% { opacity: .45; } }

/* ---------- the ticket and its canary copy ---------- */
.ticket-stack { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; }
@media (max-width: 920px) { .ticket-stack { grid-template-columns: minmax(0, 1fr); } }
.op-gets li:last-child { font-weight: 600; color: var(--ink); }
.item__not a { color: var(--ink); font-weight: 600; }
.canary { position: relative; background: var(--canary); color: #3b3510; border-radius: 4px; padding: 22px 22px 20px; transform: rotate(1.4deg);
  box-shadow: 0 24px 50px rgba(5, 6, 30, .45); transition: transform .3s; }
.canary:hover { transform: rotate(0deg) translateY(-3px); }
.canary::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 8px; pointer-events: none;
  background: radial-gradient(circle at 6px 0, transparent 4px, var(--canary) 4.5px) 0 0 / 12px 8px repeat-x; }
.canary p { margin: 0 0 .7rem; }
.canary__label { font-family: var(--display); font-weight: 600; font-size: .95rem; border-bottom: 2px solid rgba(59, 53, 16, .55); padding-bottom: 6px; }
.canary__big { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--ink); margin-top: .4rem !important; }

/* ---------- case study ---------- */
.cs__head { max-width: 62ch; }
.cs__tag { display: inline-block; margin: 0 0 .8rem; padding: 4px 12px; border-radius: 4px; background: var(--yellow); color: #0a0a12; font-weight: 700; font-size: .9rem; transform: rotate(-1.5deg); }
.cs__note { color: var(--muted); font-size: 1.06rem; margin: 1rem 0 0; }
.brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin: 2.2rem 0; }
@media (max-width: 760px) { .brief { grid-template-columns: minmax(0, 1fr); } }
.brief__card { background: var(--carbon-2); border-radius: 8px; padding: 22px 24px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, transform .25s; }
.brief__card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(246, 230, 140, .45), 0 18px 40px rgba(5, 6, 30, .4); }
.brief__card h3 { color: var(--yellow); margin-bottom: .6rem; }
.brief__card p { margin: 0; color: var(--text); }

.shot { margin: 0 0 clamp(2.4rem, 6vh, 4rem); }
.shot img { width: 100%; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px rgba(5, 6, 30, .55); }
.shot figcaption { margin-top: 1rem; color: var(--muted); max-width: 70ch; }

.compare-block { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(2.4rem, 6vh, 4rem); }
@media (max-width: 860px) { .compare-block { grid-template-columns: minmax(0, 1fr); } }
.compare { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 80px rgba(5, 6, 30, .55); touch-action: pan-y; }
.compare img { width: 100%; display: block; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: var(--paper); box-shadow: 0 0 12px rgba(255, 199, 106, .8); pointer-events: none; }
.compare__line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 0 0 3px var(--yellow), 0 6px 18px rgba(0, 0, 0, .4); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__range:focus-visible + .compare__tag, .compare:focus-within { outline: 3px solid var(--yellow); outline-offset: 3px; }
.compare__tag { position: absolute; top: 12px; padding: 5px 10px; border-radius: 4px; font-size: .85rem; font-weight: 700; pointer-events: none; }
.compare__tag--a { left: 12px; background: var(--paper); color: var(--ink); }
.compare__tag--b { right: 12px; background: var(--canary); color: #3b3510; }
.compare__words h3 { margin-bottom: .7rem; }
.compare__words p { color: var(--muted); margin: 0 0 .8rem; }
.compare__hint { font-family: var(--hand); color: var(--yellow) !important; font-size: 1.25rem; transform: rotate(-1deg); transform-origin: left; }

.built { list-style: none; margin: 0 0 clamp(2.4rem, 6vh, 4rem); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 4vw, 3rem); }
@media (max-width: 760px) { .built { grid-template-columns: minmax(0, 1fr); } }
.built img { width: 100%; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(5, 6, 30, .5); transition: transform .4s; }
.built li:hover img { transform: translateY(-4px) rotate(-.4deg); }
.built h3 { margin: 1.1rem 0 .5rem; }
.built p { margin: 0; color: var(--muted); }

.phones { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 230px) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.4rem); align-items: center; }
.phones .phone { margin: 0; }
.phones .phone img { aspect-ratio: 390 / 844; object-fit: cover; }
.phones .phone:nth-child(1) { transform: rotate(-2deg); }
.phones .phone:nth-child(2) { transform: rotate(1.5deg) translateY(18px); }
.phones .phone:hover { transform: rotate(0) translateY(-4px); }
.phones__words h3 { margin-bottom: .7rem; }
.phones__words p { color: var(--muted); margin: 0 0 .9rem; }
.phones__words .btn { margin-top: .6rem; }
@media (max-width: 860px) {
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones__words { grid-column: 1 / -1; }
}

/* ---------- how it goes: a real sequence, so it is numbered ---------- */
.op-steps__list { list-style: none; counter-reset: s; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
@media (max-width: 900px) { .op-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .op-steps__list { grid-template-columns: minmax(0, 1fr); } }
.op-steps__list li { position: relative; background: var(--paper); color: var(--ink); border-radius: 4px; padding: 52px 18px 18px 30px;
  background-image: linear-gradient(90deg, transparent 18px, var(--margin) 18px, var(--margin) 19.5px, transparent 19.5px); transition: transform .2s, box-shadow .2s; }
.op-steps__list li:nth-child(odd) { transform: rotate(-.6deg); }
.op-steps__list li:nth-child(even) { transform: rotate(.5deg); }
.op-steps__list li:hover { transform: rotate(0) translateY(-3px); box-shadow: 8px 8px 0 var(--canary); }
.op-steps__list li::before { counter-increment: s; content: counter(s); position: absolute; top: 12px; left: 30px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--margin); }
.op-steps__list h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: .4rem; }
.op-steps__list p { margin: 0; color: #2a2f5c; font-size: .98rem; }

@media (prefers-reduced-motion: reduce) {
  .bench__device, .canary, .brief__card, .built img, .phones .phone, .op-steps__list li { transition: none; }
  .bench__live { animation: none; }
}

/* LAB GLASS, NOT PAPER (2026-11-24). See the block of the same name at the end of /websites/websites.css. This sheet
   loads after that one, so the paper-only details set above are undone here. */
.canary, .op-steps__list li {
  background-image: linear-gradient(158deg, rgba(160, 210, 255, 0.12) 0%, rgba(10, 28, 68, 0.1) 60%);
  border: 1px solid rgba(160, 210, 255, 0.28); border-top-color: rgba(200, 235, 255, 0.5); border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 30px 60px rgba(0, 3, 15, 0.55);
  transform: none; color: var(--text);
}
.canary { border-color: rgba(255, 238, 0, 0.5); }
.canary::before { display: none; }
.canary:hover { transform: translateY(-3px); }
.canary__label { border-bottom-color: rgba(127, 208, 255, 0.4); }
.canary__big { color: var(--yellow); }
.cs__tag, .compare__hint { transform: none; }
.op-steps__list li { padding-left: 18px; }
.op-steps__list li::before { left: 18px; }
.op-steps__list li:nth-child(odd), .op-steps__list li:nth-child(even) { transform: none; }
.op-steps__list li:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--yellow), 0 22px 44px -18px rgba(0, 0, 0, 0.8); }
.op-steps__list p { color: rgba(226, 235, 255, 0.86); }
