/* apps.bitmesh.ai — "I want to…"
   Colours come from the Bitmesh logo: its blue (#17a2ff) and white, plus a pale blue tint (#ceeafd), on deep navy.
   The app screenshots carry every other colour. */

@property --tint { syntax: "<color>"; inherits: true; initial-value: #17a2ff; }

:root {
  --ground: #050d1c;
  --ground-2: #0a172b;
  --ground-3: #0f2140;
  --line: #172b49;
  --blue: #17a2ff;       /* logo blue: the accent */
  --pale: #ceeafd;       /* soft highlight */
  --ink: #f3f8fe;
  --ink-2: #8da2bf;

  --display: "Sora", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dwell: 9000ms;      /* how long each want stays before the next */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--blue); color: var(--ground); border-radius: 8px; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.eyebrow, .kicker {
  font: 500 12px/1.5 var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue);
}
h1.eyebrow { text-wrap: balance; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--body); text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--blue); color: #03101f; }
.btn--solid:hover { background: var(--pale); }
.btn--ghost { border: 1px solid rgba(206,234,253,.28); }
.btn--ghost:hover { border-color: var(--pale); color: var(--pale); }

/* ---------- Header ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; transition: background-color .3s; }
.nav.is-solid { background: rgba(5,13,28,.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links .nav__store { color: var(--ink); padding: 8px 16px; border: 1px solid rgba(206,234,253,.25); border-radius: 999px; }
.nav__links .nav__store:hover { border-color: var(--pale); color: var(--pale); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(600px, 100svh);
  display: flex; align-items: center;
  padding: clamp(84px, 11svh, 104px) 0 clamp(28px, 5svh, 56px);
  overflow: hidden;
}
.hero { --tint: #17a2ff; transition: --tint 1.2s ease; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(38% 55% at 76% 48%, color-mix(in srgb, var(--tint) 26%, transparent), transparent 70%),
    radial-gradient(30% 40% at 84% 78%, rgba(206,234,253,.07), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.hero__copy, .device { min-width: 0; }

.ask {
  margin-top: 22px;
  font: 700 clamp(2.3rem, 4.7vw, 4.4rem)/1.04 var(--display);
  letter-spacing: -.045em;
}
.ask__lead { display: block; }
.ask__want {
  display: block;
  min-height: 2.12em;               /* always two lines: site.js sizes the type so every want fits */
  margin-top: .04em;
  font-weight: 300;
  letter-spacing: -.05em;
  color: var(--pale);
}
#want {
  background: linear-gradient(95deg, var(--pale), var(--blue) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.caret {
  display: inline-block; width: .05em; height: .86em; margin-left: .07em;
  vertical-align: -.08em;
  background: var(--blue);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__lede { margin-top: 24px; max-width: 30rem; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18px); }

/* The dock: one icon per app. The one in use opens up to show its name and a timer line. */
.chips {
  display: flex; flex-wrap: nowrap; gap: 5px;
  width: fit-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
  margin-top: 30px; padding: 8px;
  border: 1px solid var(--line); border-radius: 24px;
  background: rgba(10,23,43,.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.chip {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center;
  flex: none;
  height: 40px; padding: 4px;
  border: 0; border-radius: 16px;
  background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: background-color .3s, transform .2s var(--ease);
}
.chips::-webkit-scrollbar { display: none; }
.chips li { flex: none; }
.chip img { width: 32px; height: 32px; border-radius: 9px; filter: saturate(.7) brightness(.82); transition: filter .3s, transform .3s var(--ease); }
.chip__label { max-width: 0; opacity: 0; white-space: nowrap; overflow: hidden; transition: max-width .45s var(--ease), opacity .3s, padding .45s var(--ease); }
.chip:hover img { filter: none; transform: translateY(-2px); }
.chip:active { transform: scale(.94); }
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--tint) 22%, transparent); }
.chip[aria-pressed="true"] img { filter: none; }
.chip[aria-pressed="true"] .chip__label { max-width: 9em; opacity: 1; padding: 0 10px 0 9px; }
.chip::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--tint); transform: scaleX(0); transform-origin: 0 50%;
}
.chip.is-timing::after { animation: fill var(--dwell) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* The logo's hexagon, large and slow, behind the phone. */
.halo {
  position: absolute; left: 50%; top: 44%; z-index: -1;
  width: min(150%, 620px); height: auto;
  translate: -50% -50%;
  fill: none; stroke: color-mix(in srgb, var(--tint) 55%, var(--pale)); stroke-width: 1.1; stroke-linecap: round;
  opacity: .28;
  animation: halo 80s linear infinite;
  pointer-events: none;
}
@keyframes halo { to { rotate: 360deg; } }

/* Device (the phone itself is styled in phone3d.css) */
.device { position: relative; display: grid; justify-items: center; gap: 22px; }
.phone { --pw: clamp(200px, min(21vw, 27svh), 300px); margin-bottom: calc(var(--pw) * .1); cursor: grab; touch-action: pan-y; }
.phone:active { cursor: grabbing; }
/* The script builds the phone; its space is held from the first paint so nothing below jumps. */
.phone { width: var(--pw); min-height: calc(var(--pw) * 2.06); }

.tag {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  width: min(100%, 440px);
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(10,23,43,.75);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.tag__icon { width: 44px; height: 44px; border-radius: 11px; }
.tag__name { font: 600 16px/1.2 var(--display); letter-spacing: -.02em; }
.tag__cat { margin-top: 2px; font: 400 11px/1.4 var(--mono); color: var(--ink-2); white-space: nowrap; }
.tag__links { display: flex; gap: 14px; font-size: 14px; font-weight: 600; }
.tag__links a { color: var(--blue); text-decoration: none; white-space: nowrap; }
.tag__links a:hover { color: var(--pale); }
.tag__text, .tag__icon { transition: opacity .25s; }
.tag.is-swap .tag__text, .tag.is-swap .tag__icon { opacity: 0; }

/* ---------- Section heads ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.head__title { font: 700 clamp(2rem, 4.2vw, 3.4rem)/1.02 var(--display); letter-spacing: -.05em; }
.head[data-reveal] { opacity: 1; transform: none; }
.head[data-reveal] .head__title { clip-path: inset(-10% 0 110% 0); transform: translateY(60%); transition: clip-path .9s var(--ease), transform .9s var(--ease); }
.head[data-reveal].is-in .head__title { clip-path: inset(-10% 0 -25% 0); transform: none; }
.head[data-reveal] > :not(.head__title) { opacity: 0; transition: opacity .8s .25s; }
.head[data-reveal].is-in > :not(.head__title) { opacity: 1; }
.head__link { color: var(--blue); text-decoration: none; font-weight: 600; }
.head__link:hover { color: var(--pale); }

/* ---------- All apps: the index ---------- */
.apps { padding: clamp(80px, 11vw, 150px) 0 clamp(72px, 9vw, 120px); }
.index { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.index__list { border-top: 1px solid var(--line); }
.entry { border-bottom: 1px solid var(--line); }
.entry > a {
  position: relative;
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 20px 14px 20px 18px;
  text-decoration: none;
  transition: background-color .3s;
}
.entry > a::before {                 /* the marker that follows the app in focus */
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px;
  background: var(--blue); transform: scaleY(0); transition: transform .35s var(--ease);
}
.entry__icon { width: 48px; height: 48px; border-radius: 12px; filter: saturate(.55) brightness(.8); transition: filter .3s; }
.entry__name { font: 600 clamp(1.15rem, 1.7vw, 1.45rem)/1.15 var(--display); letter-spacing: -.035em; color: var(--ink-2); transition: color .3s; }
.entry__line { margin-top: 5px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); opacity: .75; transition: opacity .3s; max-width: 34rem; }
.entry__meta { display: grid; gap: 2px; justify-items: end; font: 400 11px/1.4 var(--mono); color: var(--ink-2); white-space: nowrap; opacity: .7; }
.entry__thumb { display: none; }
.entry.is-on > a { background: linear-gradient(90deg, rgba(23,162,255,.1), transparent 70%); }
.entry.is-on > a::before { transform: none; }
.entry.is-on .entry__icon { filter: none; }
.entry.is-on .entry__name { color: var(--ink); }
.entry.is-on .entry__line { opacity: 1; }

/* The viewer: sticks beside the list and fans out the focused app's screens. */
.index__view {
  position: sticky; top: 92px;
  height: min(680px, calc(100svh - 124px));
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(23,162,255,.3), transparent 70%),
    linear-gradient(180deg, var(--ground-2), var(--ground-3));
  overflow: hidden;
}
.view__count { position: absolute; left: 22px; top: 18px; z-index: 2; font: 400 12px/1 var(--mono); color: var(--ink-2); letter-spacing: .06em; }
.view__count span { color: var(--pale); }
.fan { position: absolute; inset: 0; pointer-events: none; }
.fan img {
  position: absolute; left: 50%; top: 54%;
  height: min(78%, 520px); width: auto; aspect-ratio: 9 / 19; object-fit: cover; object-position: top;
  border-radius: 26px;
  border: 6px solid #070b12;
  box-shadow: 0 0 0 1px rgba(206,234,253,.22), 0 30px 60px -20px rgba(0,0,0,.7);
  opacity: 0;
  transform: translate(-50%, -44%) scale(.96);
  transition: opacity .3s, transform .5s var(--ease);
}
.fan.is-on img { opacity: 1; transition: opacity .45s .08s, transform .8s var(--ease) .04s; }
.fan.is-on img:nth-child(1) { transform: translate(-50%, -50%); z-index: 3; }
.fan.is-on img:nth-child(2) { transform: translate(-112%, -47%) rotate(-7deg) scale(.86); z-index: 2; filter: brightness(.72); }
.fan.is-on img:nth-child(3) { transform: translate(12%, -47%) rotate(7deg) scale(.86); z-index: 2; filter: brightness(.72); }

/* Pinned scene (wide screens, set by site.js): the section holds still and scroll drives the list. */
.apps.is-pinned { padding: 0; }
.apps.is-pinned > .wrap {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; flex-direction: column;
  padding-top: 92px; padding-bottom: 28px;
}
.apps.is-pinned .head { flex: none; margin-bottom: clamp(16px, 2.6vh, 32px); }
.apps.is-pinned .index { flex: 1; min-height: 0; align-items: stretch; }
.index__frame {
  position: relative; overflow: hidden; min-height: 0;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%);
          mask: linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%);
}
.apps.is-pinned .index__list { will-change: transform; border-top: 0; }
.apps.is-pinned .index__view { position: relative; top: auto; height: auto; }
.apps.is-pinned .entry > a { transition: background-color .45s; }
.apps.is-pinned .entry__name, .apps.is-pinned .entry__icon, .apps.is-pinned .entry__line { transition-duration: .45s; }

/* ---------- Updates: the three most recent, sized by recency ---------- */
.pace { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 11vw, 150px); }
.rail { --gap: 16px; display: grid; grid-template-columns: 5fr 3fr 2fr; gap: var(--gap); }
.rel {
  --tint: var(--blue);
  min-width: 0; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s, transform .8s var(--ease);
  transition-delay: calc(var(--i) * 70ms + 150ms);
}
.rail.is-in .rel { opacity: 1; transform: none; }

/* The date sits on a hairline that runs across all three, one dot per release. */
.rel__when {
  position: relative; margin: 0 calc(var(--gap) * -1) 18px 0; padding: 0 0 14px 1px;
  border-bottom: 1px solid var(--line);
  font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.rel:last-child .rel__when { margin-right: 0; }
.rel__when b { font-weight: 400; }
.rel__when span { color: var(--blue); margin-right: 8px; }
.rel__when span::after { content: ""; display: inline-block; width: 1px; height: 10px; margin-left: 10px; background: var(--line); }
.rel__when::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 7px; height: 7px; border-radius: 50%;
  background: color-mix(in srgb, var(--tint) 70%, var(--pale)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint) 26%, transparent);
}
.rel--latest .rel__when { color: var(--pale); }
.rel--latest .rel__when::after { background: var(--pale); box-shadow: 0 0 0 4px rgba(23,162,255,.35), 0 0 18px 4px rgba(23,162,255,.6); }

/* The card: the app's first screen fading into its tint, with icon, name and the want below. */
.rel__card {
  flex: 1; position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  height: 100%; min-height: clamp(400px, 33vw, 440px); border-radius: 24px;
  color: var(--ink); text-decoration: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tint) 26%, #0b1830), color-mix(in srgb, var(--tint) 8%, #071020) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 30%, rgba(255,255,255,.07));
  transition: transform .3s var(--ease), box-shadow .2s;
}
.rel__card:hover, .rel__card:focus-visible {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 70%, rgba(255,255,255,.3)), 0 26px 40px -26px color-mix(in srgb, var(--tint) 60%, #000);
}
.rel__card:focus-visible { outline: 2px solid var(--pale); outline-offset: 3px; }
.rel__shot {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 0;
  transition: transform .5s var(--ease);
}
.rel__card:hover .rel__shot { transform: scale(1.04); }
.rel__card::before {                 /* the wash that carries the words */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 12%, color-mix(in srgb, var(--tint) 20%, rgba(7,14,28,.92)) 46%, color-mix(in srgb, var(--tint) 16%, #070e1c) 62%);
}
.rel__body { padding: 20px; }
.rel__icon { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 8px 18px -6px rgba(0,0,0,.7); }
.rel__name { margin-top: 12px; font: 600 19px/1.15 var(--display); letter-spacing: -.02em; }
.rel__ver { margin-top: 6px; font: 400 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--tint) 45%, var(--pale)); }
.rel__changes { margin-top: 14px; display: grid; gap: 8px; font-size: 14px; line-height: 1.4; color: color-mix(in srgb, var(--tint) 14%, var(--pale)); text-wrap: pretty; }
.rel__changes li { position: relative; padding-left: 14px; }
.rel__changes li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--tint) 60%, var(--pale)); }
.rel__changes li:only-child { padding-left: 0; }
.rel__changes li:only-child::before { content: none; }

/* The newest release gets the wide card: words on the left, its screen as a phone on the right. */
.rel--latest .rel__card::before { background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tint) 34%, transparent), transparent 62%); }
.rel--latest .rel__shot {
  inset: 34px 8% auto auto; z-index: 0; width: 38%; height: auto; aspect-ratio: 540 / 1103;
  border-radius: 20px; transform: rotate(4deg);
  box-shadow: 0 0 0 4px #050a14, 0 0 0 5px rgba(255,255,255,.2), 0 30px 50px -20px rgba(0,0,0,.9);
}
.rel--latest .rel__card:hover .rel__shot { transform: rotate(2deg) translateY(-8px); }
.rel--latest .rel__body { max-width: 52%; padding: 28px; }
.rel--latest .rel__icon { width: 58px; height: 58px; border-radius: 15px; }
.rel--latest .rel__name { font-size: clamp(24px, 2.4vw, 32px); margin-top: 16px; }
.rel--latest .rel__changes { font-size: 15px; gap: 9px; }

/* ---------- Studio + contact ---------- */
.closing { padding-bottom: clamp(72px, 10vw, 130px); }
.closing__panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: end;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 36px;
  border: 1px solid rgba(23,162,255,.28);
  background:
    radial-gradient(70% 120% at 100% 100%, rgba(23,162,255,.34), transparent 60%),
    linear-gradient(160deg, var(--ground-3), var(--ground-2));
}
.closing__mark { position: absolute; right: -60px; top: -70px; width: 400px; height: auto; pointer-events: none; fill: none; stroke: var(--pale); stroke-width: 3; stroke-linecap: round; opacity: .2; }
.closing__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.5, 0, .2, 1) .3s; }
.is-in .closing__mark path { stroke-dashoffset: 0; }
.closing__text { margin-top: 18px; font: 400 clamp(1.4rem, 2.5vw, 2.1rem)/1.22 var(--display); letter-spacing: -.04em; }
.closing__about, .closing__contact { position: relative; z-index: 1; }
.closing__mail { display: inline-block; margin-top: 12px; font: 600 clamp(1.3rem, 2.3vw, 1.9rem)/1.15 var(--display); letter-spacing: -.04em; text-decoration: none; overflow-wrap: anywhere; }
.closing__mail:hover { color: var(--pale); }
.closing__note { margin-top: 14px; color: var(--ink-2); max-width: 30rem; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Powered by the Bitmesh AI proxy ---------- */
.proxy { padding-bottom: clamp(72px, 10vw, 130px); }
.proxy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.proxy__title { margin-top: 14px; font: 700 clamp(2.2rem, 5vw, 4rem)/1 var(--display); letter-spacing: -.05em; }
.proxy__text { margin-top: 20px; max-width: 32rem; color: var(--ink-2); font-size: clamp(1.02rem, 1.25vw, 1.15rem); }
.proxy__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.proxy__more { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.proxy__more a { color: var(--blue); text-decoration: none; font-weight: 600; }
.proxy__more a:hover { color: var(--pale); }
.proxy__route { position: relative; padding-left: 26px; border-left: 1px solid var(--line); }
.proxy__step { position: relative; color: var(--ink-2); font-size: 15px; }
.proxy__step span { display: block; color: var(--ink); font: 600 17px/1.3 var(--display); letter-spacing: -.02em; }
.proxy__step::before { content: ""; position: absolute; left: -31px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(23,162,255,.22); }
.proxy__url { display: block; margin: 18px 0 30px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(23,162,255,.28); background: linear-gradient(160deg, var(--ground-3), var(--ground-2));
  font: 400 clamp(13px, 1.25vw, 16px)/1.5 var(--mono); color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; transition: border-color .25s; }
.proxy__url:hover, .proxy__url:focus-visible { border-color: var(--pale); }
.proxy__url b { display: inline-block; font-weight: 500; color: var(--blue); transition: opacity .25s, transform .25s var(--ease); }
.proxy__url b.is-swap { opacity: 0; transform: translateY(6px); }
.proxy__providers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.proxy__providers li { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--pale); transition: border-color .25s, background-color .25s; }
.proxy__providers li.is-on { border-color: var(--blue); background: rgba(23,162,255,.14); }
@media (max-width: 860px) { .proxy__grid { grid-template-columns: minmax(0, 1fr); } }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1.6fr .9fr; gap: 40px; }
.foot__brand img { height: 48px; width: auto; }
.foot__brand p { margin-top: 14px; color: var(--ink-2); }
.foot__col ul { margin-top: 16px; display: grid; gap: 8px; }
.foot__apps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.foot__col a { color: var(--ink-2); text-decoration: none; }
.foot__col a:hover { color: var(--ink); }
.foot__base { margin-top: 48px; color: var(--ink-2); font: 400 12px/1.4 var(--mono); }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  /* Updates: the newest takes the full width, the other two share the row below. */
  .rail { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .rel--latest { grid-column: 1 / -1; }
  .rel--latest .rel__when { margin-right: 0; }
  .rel__card { min-height: 340px; }
  .rel--latest .rel__card { min-height: 400px; }
  .rel--latest .rel__shot { width: 30%; inset: 30px 9% auto auto; }
  .rel--latest .rel__body { max-width: 56%; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ask { font-size: clamp(2rem, 7vw, 3.6rem); }
  .hero { display: block; min-height: 0; }
  .device { margin-top: 8px; }
  .closing__panel { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }

  /* No room for a viewer: each entry carries its own screenshot instead. */
  .index { grid-template-columns: minmax(0, 1fr); }
  .index__view { display: none; }
  .entry > a { grid-template-columns: 44px minmax(0, 1fr) 58px; gap: 14px; padding: 16px 4px 16px 14px; }
  .entry__icon { width: 44px; height: 44px; filter: none; }
  .entry__name { color: var(--ink); }
  .entry__line { opacity: 1; }
  .entry__meta { display: none; }
  .entry__thumb { display: block; width: 58px; height: 104px; object-fit: cover; object-position: top; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
  .entry.is-on > a { background: none; }
  .entry.is-on > a::before { transform: scaleY(0); }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .nav__opt { display: none; }
  /* Phones show one store button: App Store, or Google Play on Android (set by the page script). */
  .nav__play { display: none; }
  .is-android .nav__play { display: inline-block; }
  .is-android .nav__store:not(.nav__play) { display: none; }
  .nav__logo img { height: 30px; }
  .hero { display: block; min-height: 0; padding: 96px 0 48px; }
  .ask { font-size: clamp(2rem, 9.4vw, 2.9rem); }
  /* Order on phones: sentence, phone, dock, card. The phone has to be seen without scrolling. */
  .hero__grid { display: flex; flex-direction: column; gap: 0; }
  .hero__copy, .device { display: contents; }
  .hero__lede { display: none; }
  .ask { order: 1; }
  .phone { order: 2; align-self: center; margin-top: 18px; }
  .halo { order: 2; top: 0; left: 50%; width: 130%; }
  .chips { order: 3; align-self: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; margin-top: 10px; }
  .chips::-webkit-scrollbar { display: none; }
  .chips li { flex: none; }
  .tag { order: 4; margin-top: 14px; align-self: center; }
  .phone { --pw: min(58vw, 240px, 30svh); }
  .hero { position: relative; }
  .hero__grid { position: relative; }
  .tag { grid-template-columns: 40px 1fr; }
  .tag__icon { width: 40px; height: 40px; }
  .tag__links { grid-column: 1 / -1; justify-content: center; border-top: 1px solid var(--line); padding-top: 10px; }

  .rail { grid-template-columns: 1fr; row-gap: 26px; }
  .rel__when { margin-right: 0; }
  .rel__card { height: auto; min-height: 330px; }
  .rel--latest .rel__card { min-height: 380px; }
  .rel--latest .rel__shot { inset: 22px 16px auto auto; width: 118px; border-radius: 14px; }
  .rel--latest .rel__body { max-width: 62%; padding: 20px; }
  .closing__panel { border-radius: 26px; }
  .closing__mark { width: 260px; right: -90px; top: -90px; opacity: .14; }
  .halo { opacity: .16; }
  .foot__grid { grid-template-columns: 1fr; }
}

/* ---------- Small phones: three links and a store button share the bar with the logo ---------- */
@media (max-width: 440px) {
  .nav__links { gap: 10px; }
  .nav__links .nav__store { padding: 8px 12px; }
}

/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
  .nav__links a:not(.nav__store) { display: none; }
  .nav__links .nav__store { padding: 8px 11px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  [data-reveal], .rel, .head__title { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .closing__mark path { stroke-dashoffset: 0; }
}
