@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-variable-latin.a0d054c4.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-400-latin.d3dcdccd.woff2") format("woff2");
}

:root {
  --bg: oklch(0.165 0.012 265);
  --surface: oklch(0.213 0.014 265);
  --surface2: oklch(0.253 0.016 265);
  --ink: oklch(0.965 0.004 85);
  --muted: oklch(0.70 0.014 265);
  --line: oklch(0.315 0.014 265);
  --stripe: oklch(0.30 0.014 265);
  --status-live: oklch(0.70 0.13 165);
  --status-dev: oklch(0.80 0.14 85);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body,
button {
  font-synthesis: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 40px;
  background: var(--bg);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(calc(-100% - 24px));
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

#work,
#about,
#journal {
  scroll-margin-top: 70px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mono-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
}

.site-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-brand-mark {
  opacity: 0.45;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav-link {
  color: var(--muted);
  transition: color 0.3s ease;
}

.home-hero {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(120px, 18vh, 200px) clamp(20px, 5vw, 56px) clamp(60px, 9vh, 110px);
}

.home-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.home-eyebrow-divider {
  opacity: 0.4;
}

.home-title {
  margin: clamp(24px, 4vh, 48px) 0 0;
  font-size: clamp(52px, 13.5vw, 230px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.86;
  text-transform: uppercase;
}

.home-title-line {
  display: inline-block;
}

.home-title-role {
  display: block;
  margin-top: clamp(16px, 2.4vh, 30px);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(11px, 0.95vw, 14px);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
  gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(40px, 7vh, 90px);
}

.home-lead,
.home-summary {
  margin: 0;
  text-wrap: pretty;
}

.home-lead {
  max-width: 22ch;
  font-size: clamp(19px, 2.1vw, 30px);
  letter-spacing: -0.015em;
  line-height: 1.32;
}

.home-summary {
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.contact-row-value {
  color: var(--muted);
  text-align: right;
}

.marquee-shell {
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface2);
}

.marquee-track {
  display: flex;
  width: max-content;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: marquee 34s linear infinite;
}

.marquee-half,
.marquee-sequence {
  display: flex;
  gap: 40px;
}

.marquee-half {
  padding-right: 40px;
}

.marquee-diamond {
  opacity: 0.4;
}

.work-section {
  padding: clamp(60px, 10vh, 120px) 0 clamp(70px, 11vh, 130px);
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto clamp(32px, 5vh, 56px);
  padding: 0 clamp(20px, 5vw, 56px);
}

.section-eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
}

.section-title {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(30px, 5vw, 66px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.section-hint {
  padding-bottom: 8px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.work-stack {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) 26vh;
}

.work-card {
  position: sticky;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  min-height: min(420px, 62vh);
  margin-bottom: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 -18px 50px -40px rgb(0 0 0 / 0.5);
  transition: border-color 0.35s ease;
}

.work-card-link {
  cursor: pointer;
}

.work-card-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 3.4vw, 48px);
}

.work-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.status-dot--live {
  background: var(--status-live);
}

.status-dot--development {
  background: var(--status-dev);
}

.status-dot--works {
  background: var(--muted);
}

.work-card-title {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.96;
}

.work-card-heading {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
}

.work-card-heading .work-card-title {
  min-width: 0;
  margin: 0;
  font-size: clamp(24px, 3vw, 48px);
}

.work-card-brand {
  display: block;
  flex-shrink: 0;
  width: clamp(48px, 6vw, 80px);
  max-width: 100%;
  height: auto;
  border-radius: 22%;
}

.work-card-subtitle {
  display: block;
  max-width: 24ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.work-card-tagline {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  text-wrap: pretty;
}

.work-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
}

.card-cta {
  display: inline-flex;
  padding: 13px 24px;
  border-radius: 40px;
  background: var(--ink);
  color: var(--bg);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-kicker {
  color: var(--card-accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-art {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: var(--surface2);
}

.stripe-field,
.accent-field,
.card-shot-stage {
  position: absolute;
  inset: 0;
}

.stripe-field {
  background: repeating-linear-gradient(135deg, var(--stripe) 0 2px, transparent 2px 11px);
  opacity: 0.85;
}

.accent-field {
  background: radial-gradient(110% 100% at 70% 10%, color-mix(in oklch, var(--card-accent) 32%, transparent) 0%, transparent 62%);
}

.card-shot-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 34px;
}

.card-shot,
.card-shot-placeholder {
  border: 1px solid var(--line);
  border-radius: 18px;
  background-color: var(--bg);
}

.card-shot {
  /* Fit the entire screen inside the padded stage at every card width. */
  flex: none;
  width: auto;
  height: auto;
  max-width: calc((100% - 14px) / 2);
  max-height: 100%;
  aspect-ratio: auto 640 / 1293;
  object-fit: contain;
  box-shadow: 0 18px 40px -26px rgb(0 0 0 / 0.6);
}

.card-shot:first-child,
.card-shot-placeholder:first-child {
  transform: translateY(-14px);
}

.card-shot:nth-child(2),
.card-shot-placeholder:nth-child(2) {
  transform: translateY(14px);
}

.card-shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: calc(100% - 4px);
  max-width: 40%;
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* iPhone Duo: closed outer portrait, then open inner landscape. */
.card-shot-stage--duo {
  display: grid;
  grid-template-columns: minmax(0, 466fr) minmax(0, 951fr);
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(18px, 3vw, 34px);
}

.card-shot-stage--duo > .card-shot,
.card-shot-stage--duo > .card-shot-placeholder {
  width: 100%;
  height: auto;
  min-width: 0;
  max-width: none;
  object-fit: contain;
}

.card-shot-stage--duo > :first-child {
  aspect-ratio: 466 / 678;
}

.card-shot-stage--duo > :nth-child(2) {
  aspect-ratio: 951 / 669;
}

.about-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 5vw, 80px);
}

.about-title {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: pretty;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 52ch;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.journal-home-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) 0 clamp(70px, 11vh, 130px);
  border-top: 1px solid var(--line);
}

.journal-home-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

.journal-home-group {
  --journal-accent: var(--muted);
  display: flex;
  min-width: 0;
  min-height: 440px;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 8%, color-mix(in oklch, var(--journal-accent) 18%, transparent), transparent 48%),
    var(--surface);
}

.journal-home-app {
  color: var(--journal-accent);
  line-height: 1.55;
}

.journal-home-group-title {
  margin: 20px 0 24px;
  font-size: clamp(27px, 2.8vw, 38px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}

.journal-home-group-title a,
.journal-home-row,
.journal-home-all {
  transition: color 0.3s ease;
}

.journal-home-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.journal-home-row {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.journal-home-row-title {
  font-size: 15.5px;
  line-height: 1.42;
  text-wrap: pretty;
}

.journal-home-row-date {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.journal-home-empty {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.journal-home-all {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 24px;
  color: var(--journal-accent);
  line-height: 1.5;
}

.pill-primary,
.pill-secondary {
  display: inline-flex;
  align-items: center;
  padding: 15px 26px;
  border-radius: 40px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pill-primary {
  gap: 10px;
  align-self: flex-start;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  transition: transform 0.3s ease;
}

.pill-secondary {
  border: 1px solid var(--line);
  color: var(--muted);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.store-badge-link {
  display: inline-flex;
  align-self: center;
  border-radius: 8px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.store-badge {
  display: block;
  width: auto;
  height: 52px;
}

.pill-disabled {
  cursor: default;
}

.page-main {
  padding-top: 74px;
}

.app-hero {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) clamp(20px, 5vw, 56px) clamp(36px, 6vh, 64px);
}

.back-link {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(26px, 4vh, 44px) 0 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.app-meta-text {
  color: var(--muted);
}

.app-meta-divider {
  color: var(--line);
}

.app-title {
  margin: 0;
  font-size: clamp(44px, 8.5vw, 132px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.app-subtitle {
  display: block;
  max-width: 24ch;
  margin: clamp(10px, 1.2vh, 18px) 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2.6vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.app-title--branded {
  max-width: 760px;
}

.app-brand-logo {
  display: block;
  width: clamp(88px, 9vw, 112px);
  height: auto;
  margin-bottom: 24px;
  border-radius: 22%;
}

.app-brand-banner {
  display: block;
  width: 100%;
  height: auto;
}

.journal-brand {
  display: block;
  width: min(100%, 480px);
  margin: 28px 0;
}

.app-tagline {
  max-width: 24ch;
  margin: clamp(20px, 3vh, 34px) 0 0;
  font-size: clamp(20px, 2.4vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.28;
  text-wrap: pretty;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 4vh, 40px);
}

.app-hero-message {
  max-width: 780px;
  margin-top: clamp(24px, 3vh, 34px);
}

.app-hero-headline {
  margin: 0;
  color: var(--app-accent);
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: pretty;
}

.app-hero-headline strong {
  font-weight: 600;
}

.app-hero-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  text-wrap: pretty;
}

.shot-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) clamp(50px, 8vh, 90px);
}

.shot-rail {
  display: flex;
  gap: clamp(22px, 3vw, 48px);
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shot-rail::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.app-shot {
  position: relative;
  flex: 0 0 auto;
  width: clamp(230px, 24vw, 320px);
  margin: 0;
  aspect-ratio: 1000 / 2100;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface2);
  scroll-snap-align: start;
}

.app-shot-stripes,
.app-shot-image,
.app-shot-placeholder {
  position: absolute;
  inset: 0;
}

.app-shot-stripes {
  background: repeating-linear-gradient(135deg, var(--stripe) 0 2px, transparent 2px 11px);
  opacity: 0.8;
}

.app-shot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-align: center;
  text-transform: uppercase;
}

.app-detail-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(50px, 8vh, 96px) clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  align-items: start;
  gap: clamp(28px, 5vw, 80px);
}

.detail-eyebrow {
  color: var(--muted);
}

.story-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 56ch;
}

.story-copy p {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}

.story-copy--split {
  max-width: 118ch;
}

.story-part {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-part p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

@media (min-width: 980px) {
  .story-copy--split {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 4.5vw, 68px);
    align-items: start;
  }

  .story-part + .story-part {
    padding-left: clamp(40px, 4.5vw, 68px);
    border-left: 1px solid var(--line);
    margin-left: calc(clamp(40px, 4.5vw, 68px) * -0.5);
  }
}

.feature-eyebrow {
  margin-bottom: clamp(24px, 4vh, 44px);
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 190px;
  padding: clamp(24px, 3vw, 38px);
  background: var(--bg);
  transition: background 0.3s ease;
}

.feature-number {
  color: var(--app-accent, var(--muted));
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.feature-title {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-body {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  text-wrap: pretty;
}

.app-shop-title {
  margin-bottom: 0;
}

.app-shop-intro {
  max-width: 72ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.app-shop-disclosure {
  max-width: 72ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.app-shop-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  column-gap: clamp(36px, 5vw, 80px);
  row-gap: clamp(28px, 4vh, 44px);
  align-items: start;
  max-width: 1100px;
  margin-top: clamp(32px, 5vh, 52px);
}

.app-shop-group-title {
  margin: 0 0 4px;
  color: var(--app-accent);
}

.app-shop-grid {
  display: flex;
  flex-direction: column;
}

.app-shop-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.app-shop-card-title {
  grid-column: 1;
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.app-shop-card-blurb {
  grid-column: 1;
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-wrap: pretty;
}

.app-shop-card-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--app-accent);
  font-size: 10px;
  white-space: nowrap;
}

.next-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(50px, 8vh, 96px) clamp(20px, 5vw, 56px) clamp(70px, 10vh, 120px);
  border-top: 1px solid var(--line);
}

.next-eyebrow {
  margin-bottom: 24px;
  color: var(--muted);
}

.next-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.next-name {
  font-size: clamp(32px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.94;
}

.next-cta {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-hero,
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding-right: clamp(20px, 5vw, 56px);
  padding-left: clamp(20px, 5vw, 56px);
}

.legal-hero {
  padding-top: clamp(48px, 8vh, 90px);
  padding-bottom: clamp(30px, 5vh, 50px);
}

.legal-title {
  margin: clamp(26px, 4vh, 44px) 0 0;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-meta-divider {
  color: var(--line);
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.legal-content > .legal-actions {
  margin: 0 0 clamp(30px, 5vh, 48px);
}

.legal-actions .pill-secondary {
  padding: 12px 20px;
  font-size: 11px;
}

.legal-content {
  padding-top: 0;
  padding-bottom: clamp(70px, 10vh, 120px);
}

.legal-intro {
  margin: 0 0 clamp(30px, 5vh, 48px);
  padding-bottom: clamp(30px, 5vh, 48px);
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.legal-sections {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 44px);
}

.legal-section {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 16px;
}

.legal-section-number {
  padding-top: 5px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.legal-section-title {
  margin: 0 0 12px;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-section-copy,
.legal-section-copy-continued {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.68;
  text-wrap: pretty;
}

.legal-section-copy {
  margin: 0;
}

.legal-section-copy-continued {
  margin: 14px 0 0;
}

.legal-section-subs {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 24px;
}

.legal-section-subtitle {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.legal-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.legal-bullet {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: start;
  gap: 10px;
}

.legal-bullet-mark {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.legal-bullet-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
  text-wrap: pretty;
}

.legal-contact {
  margin: clamp(40px, 6vh, 64px) 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.legal-contact a {
  border-bottom: 1px solid var(--line);
}

.journal-index-lede {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.journal-index-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) clamp(70px, 10vh, 120px);
}

.journal-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) clamp(70px, 10vh, 96px);
}

.journal-category-card {
  --journal-accent: var(--muted);
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  min-height: 310px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 8%, color-mix(in oklch, var(--journal-accent) 18%, transparent), transparent 48%),
    var(--surface);
  transition: border-color 0.3s ease;
}

.journal-category-card--safepath,
.journal-home-group--safepath {
  --journal-accent: oklch(0.64 0.17 45);
}

.journal-category-card--flick,
.journal-home-group--flick {
  --journal-accent: oklch(0.64 0.17 350);
}

.journal-category-card--scenicshift,
.journal-home-group--scenicshift {
  --journal-accent: oklch(0.60 0.15 165);
}

.journal-category-card-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
}

.journal-category-card-title {
  max-width: 10ch;
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}

.journal-category-card-blurb {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

.journal-category-card-count {
  margin-top: auto;
  color: var(--journal-accent);
}

.journal-category-card-related {
  margin: -16px 0 28px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.journal-category-card-arrow {
  align-self: flex-end;
  color: var(--journal-accent);
  font-size: 26px;
  transition: transform 0.3s ease;
}

.journal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.journal-breadcrumb a {
  border-bottom: 1px solid var(--line);
}

.journal-category-content .journal-post-list {
  margin-bottom: clamp(50px, 8vh, 82px);
}

.journal-category-empty {
  margin: 0 0 clamp(50px, 8vh, 82px);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.journal-upcoming {
  padding-top: clamp(32px, 5vh, 52px);
  border-top: 1px solid var(--line);
}

.journal-upcoming ol {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.journal-upcoming li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.journal-category-crosslink {
  margin-top: clamp(42px, 7vh, 72px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.journal-category-crosslink p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

.journal-category-crosslink a,
.app-journal-link {
  border-bottom: 1px solid var(--line);
}

.app-journal-section .journal-post-list {
  max-width: 900px;
}

.app-journal-title {
  margin-bottom: 0;
}

.app-journal-lede {
  margin-bottom: clamp(30px, 5vh, 48px);
}

.app-journal-link {
  display: inline-block;
  margin-top: clamp(30px, 5vh, 48px);
}

.journal-post-list {
  border-top: 1px solid var(--line);
}

.journal-post-card {
  display: block;
  padding: clamp(28px, 5vh, 48px) 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.journal-post-meta,
.journal-post-hero .journal-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}

.journal-pinned {
  display: block;
  margin-bottom: 12px;
  color: oklch(0.78 0.14 350);
  font-size: 10px;
  line-height: 1.5;
}

.journal-home-row .journal-pinned {
  margin-bottom: 0;
}

.journal-post-title {
  margin: 18px 0 12px;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.journal-post-blurb {
  max-width: 64ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

.journal-post-app {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journal-post-app--safepath {
  color: oklch(0.64 0.17 45);
}

.journal-post-app--flick {
  color: oklch(0.64 0.17 350);
}

.journal-post-app--scenicshift {
  color: oklch(0.60 0.15 165);
}

.journal-post-hero .legal-title {
  max-width: 15ch;
}

.journal-featured-image {
  width: 100%;
  margin: 0 0 clamp(30px, 5vh, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.journal-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
}

.stream-series-intro {
  margin: clamp(34px, 6vh, 56px) 0 0;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.stream-coverage {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.stream-coverage .mono-label,
.stream-verified {
  color: oklch(0.72 0.20 335);
}

.stream-disclaimer {
  max-width: 68ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.stream-verified {
  margin: 12px 0 0;
}

.stream-secondary-cta {
  margin: 20px 0 clamp(46px, 7vh, 72px);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.stream-secondary-cta a,
.stream-card-trailer a,
.stream-month-nav a,
.stream-archive a {
  border-bottom: 1px solid var(--line);
}

.stream-glance {
  margin-bottom: clamp(48px, 8vh, 78px);
}

.stream-glance h2,
.stream-week-summary h2 {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.stream-glance ol,
.stream-archive ol {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.stream-glance li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.stream-week {
  margin-top: 16px;
}

.stream-glance-copy {
  min-width: 0;
}

.stream-glance-title {
  color: var(--ink);
  font-weight: 500;
}

.stream-glance-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 8px;
  font-size: 12.5px;
}

.stream-glance-ratings a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stream-glance-audience,
.stream-glance-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.stream-glance-audience {
  margin: 8px 0 0;
}

.stream-glance-note {
  margin: 16px 0 0;
}

.stream-week-summary {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 24px 58px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
}

.stream-week-summary::-webkit-details-marker {
  display: none;
}

.stream-week-summary:focus-visible {
  outline: 2px solid var(--journal-accent);
  outline-offset: 4px;
}

.stream-week-summary h2 {
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.25;
}

.stream-week-count,
.stream-week-preview {
  color: var(--muted);
}

.stream-week-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}

.stream-week-indicator {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--journal-accent);
  font-size: 24px;
  line-height: 1;
}

.stream-week[open] > .stream-week-summary .stream-week-indicator {
  transform: rotate(180deg);
}

.stream-week[open] {
  margin-bottom: 32px;
}

.stream-card-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.stream-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 94% 4%, oklch(0.64 0.17 350 / 0.10), transparent 34%),
    var(--surface);
}

.stream-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
}

.stream-card-meta span + span,
.stream-card-meta time + span {
  position: relative;
}

.stream-card-meta span + span::before,
.stream-card-meta time + span::before {
  content: "/";
  position: absolute;
  left: -11px;
  color: var(--muted);
}

.stream-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 18px;
}

.stream-card h3 {
  margin: 0;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.stream-card-label {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid color-mix(in oklch, var(--muted) 58%, var(--line));
  border-radius: 999px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.stream-card-label--pick {
  border-color: oklch(0.64 0.17 350 / 0.58);
  color: oklch(0.76 0.16 350);
  background: oklch(0.64 0.17 350 / 0.08);
}

.stream-card-genre {
  margin: 12px 0 0;
  color: oklch(0.76 0.16 350);
  font-size: 13px;
}

.stream-card-about,
.stream-card-worth {
  max-width: 69ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
  text-wrap: pretty;
}

.stream-card-detail,
.stream-card-trailer,
.stream-card-service {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.stream-card-detail strong {
  color: var(--ink);
  font-weight: 500;
}

.stream-card-worth {
  color: var(--ink);
}

.stream-card-service {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.stream-month-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(50px, 8vh, 82px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.stream-month-nav a:last-child {
  justify-self: end;
  text-align: right;
}

.stream-archive {
  margin-bottom: clamp(50px, 8vh, 82px);
  padding-top: clamp(32px, 5vh, 52px);
  border-top: 1px solid var(--line);
}

.stream-archive li {
  border-bottom: 1px solid var(--line);
}

.stream-archive a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.journal-post-meta a,
.journal-post-lede a,
.journal-post-content .legal-section-copy a,
.journal-sources a,
.journal-author a {
  border-bottom: 1px solid var(--line);
}

.journal-cta {
  margin-top: clamp(42px, 7vh, 72px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.journal-cta p {
  max-width: 62ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.journal-cta-heading {
  max-width: 18ch;
  margin: 0 0 14px;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.journal-cta .journal-cta-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.journal-sources {
  margin-top: clamp(42px, 7vh, 72px);
  padding-top: clamp(30px, 5vh, 48px);
  border-top: 1px solid var(--line);
}

.journal-sources h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.journal-sources ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.journal-sources li {
  padding-left: 6px;
  font-size: 14.5px;
  line-height: 1.85;
}

.journal-continue {
  margin-top: clamp(42px, 7vh, 72px);
  padding-top: clamp(30px, 5vh, 48px);
  border-top: 1px solid var(--line);
}

.journal-continue .feature-eyebrow {
  margin-bottom: 16px;
}

.journal-continue h2 {
  margin: 0 0 24px;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.journal-continue-link {
  display: inline-block;
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
}

.journal-author {
  margin: clamp(40px, 6vh, 64px) 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer {
  padding: clamp(50px, 8vh, 90px) clamp(20px, 5vw, 56px) 34px;
  border-top: 1px solid var(--line);
  background: var(--surface2);
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
}

.footer-title {
  max-width: 20ch;
  margin: 0 0 clamp(36px, 6vh, 64px);
  font-size: clamp(26px, 4.4vw, 62px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: pretty;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-heading {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-link {
  color: var(--muted);
  font-size: 14.5px;
  transition: color 0.3s ease;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 22px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 74px);
  place-items: center;
  padding: 120px 20px 80px;
  text-align: center;
}

.not-found-code {
  margin: 0;
  color: var(--muted);
}

.not-found-title {
  margin: 18px 0 12px;
  font-size: clamp(42px, 10vw, 110px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.not-found-copy {
  max-width: 42ch;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .app-shop-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shop-card-link {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    margin-top: 7px;
  }

  .journal-category-grid,
  .journal-home-board {
    grid-template-columns: 1fr;
  }

  .journal-category-card {
    min-height: 250px;
  }

  .journal-home-group {
    min-height: 0;
    padding: 26px 22px;
  }

  .stream-glance li {
    grid-template-columns: 76px 1fr;
    gap: 10px;
  }

  .stream-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .stream-card-meta {
    gap: 7px 16px;
  }

  .stream-month-nav {
    grid-template-columns: 1fr;
  }

  .stream-month-nav a:last-child {
    justify-self: start;
    text-align: left;
  }
}

@media (hover: hover) {
  .site-nav-link:hover,
  .back-link:hover,
  .footer-link:hover {
    color: var(--ink);
  }

  .section-hint:hover {
    color: var(--ink);
  }

  .store-badge-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
  }

  .pill-secondary:hover {
    border-color: var(--ink);
    color: var(--ink);
  }

  .contact-row:hover {
    border-color: var(--ink);
  }

  .work-card-link:hover,
  .work-card:has(.work-card-brand):hover {
    border-color: var(--card-accent);
  }

  .pill-primary:hover {
    color: var(--bg);
    transform: translateY(-3px);
  }

  .feature-card:hover {
    background: var(--surface);
  }

  .app-shop-card:hover {
    border-color: var(--app-accent);
  }

  .app-shop-card:hover .app-shop-card-title {
    color: var(--app-accent);
  }

  .journal-post-card:hover .journal-post-title,
  .journal-post-meta a:hover,
  .journal-post-lede a:hover,
  .journal-post-content .legal-section-copy a:hover,
  .stream-secondary-cta a:hover,
  .stream-card-trailer a:hover,
  .stream-month-nav a:hover,
  .stream-archive a:hover,
  .journal-sources a:hover,
  .journal-author a:hover {
    color: var(--ink);
  }

  .journal-post-card:hover {
    border-color: var(--ink);
  }

  .journal-category-card:hover {
    border-color: var(--journal-accent);
  }

  .journal-category-card:hover .journal-category-card-arrow {
    transform: translateX(4px);
  }

  .journal-home-group-title a:hover,
  .journal-home-row:hover,
  .journal-home-all:hover {
    color: var(--journal-accent);
  }

  .journal-breadcrumb a:hover,
  .journal-category-crosslink a:hover,
  .app-journal-link:hover {
    color: var(--ink);
  }
}

.pill-disabled,
.pill-disabled:hover {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.pill-primary:focus-visible,
.pill-secondary:focus-visible {
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }

  .marquee-track {
    animation: none !important;
  }

  .pill-primary:hover {
    transform: none;
  }
}

/* Descriptive headings on the homepage and launched app pages. */
.home-title--descriptive {
  max-width: 23ch;
  font-size: clamp(38px, 6vw, 96px);
  line-height: 1.06;
  text-transform: none;
  text-wrap: balance;
}

.app-title--descriptive {
  max-width: 24ch;
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 1.08;
  text-wrap: balance;
}

.app-product-name {
  margin: 0 0 16px;
  color: var(--app-accent);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 600;
}

.app-creator {
  max-width: 65ch;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Author identity, editorial policies, and source transparency. */
.trust-page .legal-title { max-width: 26ch; line-height: 1.08; text-wrap: balance; }
.trust-page .legal-intro { max-width: 72ch; }
.trust-page .legal-content > .legal-intro { padding-bottom: 0; border-bottom: 0; }
.about-profile-grid { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-portrait { margin: 0; }
.about-portrait img, .portrait-placeholder { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); border-radius: 16px; }
.portrait-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; background: var(--surface2); color: var(--muted); }
.portrait-placeholder > span:first-child { font-size: clamp(64px, 8vw, 120px); letter-spacing: -0.08em; }
.about-portrait figcaption { margin-top: 12px; font-size: 12px; color: var(--muted); }
.trust-prose p:first-child { margin-top: 0; }
.trust-prose p, .trust-section p { max-width: 75ch; line-height: 1.7; color: var(--muted); }
.trust-section { padding: 38px 0; border-top: 1px solid var(--line); margin-top: 28px; }
.trust-section h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 500; letter-spacing: -0.025em; }
.trust-section a, .journal-byline a, .research-note a { text-decoration: underline; text-underline-offset: 4px; }
.about-app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 26px; }
.about-app { padding: 22px; border: 1px solid var(--line); border-radius: 12px; }
.about-app h3 { margin-top: 0; font-size: 22px; }
.trust-link-list { padding-left: 20px; line-height: 1.9; }
.author-article-list { list-style: none; padding: 0; }
.author-article-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.author-article-list time { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.journal-byline { margin-top: 24px; color: var(--muted); }
.research-note { margin-top: 36px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); line-height: 1.6; }
.research-note h2 { color: var(--ink); font-size: 22px; font-weight: 500; margin-top: 0; }
@media (max-width: 760px) {
  .about-profile-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 300px; }
  .author-article-list li { flex-direction: column; gap: 8px; }
}

/* App sections retain their existing URLs and share a focused navigation. */
.app-section-nav {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.app-section-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 56px);
}
.app-section-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.app-section-brand img { flex: 0 0 36px; border-radius: 9px; }
.app-section-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.app-section-nav li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  text-underline-offset: 6px;
}
.app-section-nav a[aria-current] { color: var(--ink); text-decoration: underline; }
.app-section-nav a:hover { color: var(--ink); }
.article-app-context {
  margin: 32px 0;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}
.article-app-context a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.release-summary { padding-left: 22px; color: var(--muted); line-height: 1.7; }
.release-summary li + li { margin-top: 12px; }

/* Product landing pages: real screens, readable explanations and clear next steps. */
.app-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: clamp(36px, 6vw, 100px);
  margin-top: 32px;
}
.app-landing .app-title--descriptive { max-width: 21ch; font-size: clamp(36px, 4.7vw, 68px); line-height: 1.04; }
.app-landing .app-product-name { margin-top: 28px; }
.app-summary { max-width: 56ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--muted); }
.app-quick-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink); }
.app-quick-facts li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.app-small-note { max-width: 80ch; color: var(--muted); font-size: 13px; line-height: 1.6; }
.app-small-note a, .app-usecase-grid a, .app-practical-grid a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.app-hero-preview { width: min(100%, 280px); margin: 0 auto; }
.app-preview-image { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 26px; }
.app-hero-preview figcaption { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.app-prelaunch-panel { padding: clamp(24px, 3vw, 42px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.app-prelaunch-panel h2 { margin-top: 32px; font-size: 28px; font-weight: 500; }
.app-prelaunch-panel p { color: var(--muted); line-height: 1.65; }
.app-section-intro { max-width: 80ch; margin: 20px 0 28px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.app-demo-video { display: block; width: 100%; max-width: 1040px; height: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.app-transcript { max-width: 1040px; margin-top: 24px; padding: 22px 0; border-block: 1px solid var(--line); }
.app-transcript summary, .app-story summary { cursor: pointer; font-size: clamp(20px, 2vw, 28px); font-weight: 500; }
.app-transcript ol { display: grid; gap: 24px; list-style: none; padding: 0; margin: 32px 0 0; }
.app-transcript li { max-width: 76ch; }
.app-transcript h3 { margin: 10px 0; font-size: 20px; font-weight: 500; }
.app-transcript p { margin: 0; color: var(--muted); line-height: 1.6; }
.app-landing .shot-section { padding-top: clamp(50px, 8vh, 96px); border-top: 1px solid var(--line); }
.app-landing .shot-rail { padding-bottom: 24px; scrollbar-width: thin; scrollbar-color: var(--muted) var(--surface); }
.app-landing .shot-rail::-webkit-scrollbar { height: 8px; }
.app-landing .shot-rail::-webkit-scrollbar-thumb { border-radius: 4px; background: var(--muted); }
.app-landing .app-shot { aspect-ratio: auto; overflow: visible; border: 0; background: none; }
.app-shot-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--surface2); }
.app-shot-frame--safepath { aspect-ratio: 640 / 1293; }
.app-shot-frame--flick { aspect-ratio: 618 / 1344; }
.app-shot-frame .app-shot-image { object-fit: contain; }
.app-shot figcaption { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.app-usecase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: 38px; }
.app-usecase-grid article { border-top: 1px solid var(--line); padding-top: 24px; }
.app-usecase-grid h3, .app-workflow h3 { font-size: clamp(21px, 2vw, 28px); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }
.app-usecase-grid p, .app-workflow p { color: var(--muted); line-height: 1.65; }
.app-workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding-left: 24px; margin-top: 40px; }
.app-workflow li { padding-left: 8px; }
.app-workflow li::marker { color: var(--app-accent); font-family: "JetBrains Mono", monospace; }
.app-practical-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 90px); }
.app-practical-grid p { color: var(--muted); line-height: 1.7; }
.app-availability { margin: 30px 0; }
.app-availability > div { display: grid; grid-template-columns: minmax(90px, 0.6fr) minmax(0, 1.6fr); gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.app-availability dt { font-weight: 500; }
.app-availability dd { margin: 0; color: var(--muted); line-height: 1.6; }
.app-whats-new .release-summary { max-width: 80ch; }
.app-story .story-copy { margin-top: 32px; max-width: 76ch; }
.app-final-action { background: var(--surface); }
#product-tour, #app-features { scroll-margin-top: 92px; }
@media (max-width: 900px) {
  .app-hero-layout { grid-template-columns: 1fr; }
  .app-hero-preview { width: min(76%, 280px); }
  .app-usecase-grid, .app-workflow, .app-practical-grid { grid-template-columns: 1fr; }
  .app-usecase-grid, .app-workflow { gap: 24px; }
  .app-landing .app-title--descriptive { max-width: 24ch; }
}
@media (max-width: 600px) {
  .app-landing .app-section-nav-inner { padding-block: 12px; gap: 8px; }
  .app-landing .app-section-nav ul { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .app-landing .app-section-nav li { flex-shrink: 0; }
  .app-landing .app-section-nav li a { white-space: nowrap; }
  .app-landing .app-hero { padding-top: 28px; }
  .app-hero-layout { margin-top: 24px; }
  .app-landing .app-meta { margin-top: 0; gap: 10px; font-size: 10px; }
  .app-landing .app-product-name { margin-top: 12px; }
  .app-landing .app-actions { margin-top: 24px; }
}

/* Durable planning resources: readable without scripts, enhanced locally when useful. */
[hidden] { display: none !important; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 32px 0 48px; }
.resource-card { display: block; position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; }
.resource-card:hover { border-color: var(--muted); }
.resource-card h3 { margin: 0 28px 14px 0; font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; }
.resource-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.resource-card > span { position: absolute; top: 26px; right: 22px; }
.article-asset { margin: 40px 0; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.article-asset h2 { margin: 16px 0; font-size: clamp(24px, 3vw, 34px); font-weight: 500; letter-spacing: -0.03em; }
.article-asset p, .planning-tool p, .resource-links, .tool-result li { line-height: 1.7; }
.planning-tool { margin: 28px 0 44px; }
.planning-tool fieldset { margin: 36px 0; padding: 28px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.planning-tool legend { padding: 0 10px; font-size: 21px; font-weight: 500; }
.planning-tool legend .mono-label { color: var(--muted); }
.tool-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
.tool-field { min-width: 0; }
.tool-field label { display: block; margin: 0 0 10px; font-weight: 500; line-height: 1.45; }
.field-hint { color: var(--muted); font-size: 14px; line-height: 1.6; }
.tool-field .field-hint { min-height: 3.2em; margin: 0 0 10px; }
.tool-field input, .tool-field textarea, .tool-field select { width: 100%; box-sizing: border-box; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; }
.tool-field textarea { min-height: 126px; resize: vertical; }
.tool-field input:focus, .tool-field textarea:focus, .tool-field select:focus { outline: 2px solid currentColor; outline-offset: 3px; }
.planning-tool button, .article-asset button { cursor: pointer; }
.planning-tool button.pill-secondary, .article-asset button.pill-secondary { background: transparent; color: var(--ink); }
.tool-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.tool-actions p { margin: 0; }
.tool-privacy, .tool-disclosure { border-left: 3px solid var(--muted); padding: 18px 22px; background: var(--surface); margin: 24px 0; }
.tool-disclosure h2 { font-size: 20px; }
.tool-disclosure p { margin: 0; line-height: 1.7; }
.tool-result { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-top: 28px; }
.tool-result h2, .tool-result h3 { margin-top: 0; font-size: 24px; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.result-grid dt { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.result-grid dd { margin: 0; font-size: 20px; line-height: 1.4; }
[data-kit-error] { border: 1px solid currentColor; padding: 16px; }
.asset-checklist { margin: 28px 0; }
.asset-checklist label { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); line-height: 1.65; cursor: pointer; }
.asset-checklist input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 4px; accent-color: var(--ink); }
.asset-checklist input:checked + span { text-decoration: line-through; color: var(--muted); }
.comparison-scroll { max-width: 100%; overflow-x: auto; margin: 36px 0; }
.asset-comparison { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
.asset-comparison th, .asset-comparison td { border-bottom: 1px solid var(--line); padding: 20px 18px; vertical-align: top; text-align: left; }
.asset-comparison th { font-weight: 500; }
.asset-comparison td { color: var(--muted); }
.asset-comparison th:first-child { width: 25%; min-width: 150px; }
.asset-comparison td { min-width: 210px; }
.route-facts { margin: 36px 0; }
.route-facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.route-facts dt { font-weight: 500; }
.route-facts dd { margin: 0; color: var(--muted); line-height: 1.6; }
.route-map { margin: 40px 0; }
.route-map img { display: block; width: 100%; height: auto; max-height: 850px; object-fit: contain; border-radius: 10px; background: #fff; }
.route-map figcaption { font-size: 14px; line-height: 1.6; margin-top: 14px; color: var(--muted); }
.route-stops article { padding: 12px 0; border-bottom: 1px solid var(--line); }
.print-value { display: none; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .resource-grid, .tool-field-grid, .result-grid { grid-template-columns: 1fr; }
  .planning-tool fieldset { padding: 18px 14px; }
  .planning-tool legend { font-size: 18px; }
  .tool-field .field-hint { min-height: 0; }
  .tool-actions > * { max-width: 100%; }
  .route-facts > div { grid-template-columns: 1fr; gap: 8px; }
}
@media print {
  :root { color-scheme: light; --bg: #fff; --ink: #000; --muted: #333; --line: #aaa; --surface: #fff; }
  body { color: #000; background: #fff; font-size: 11pt; }
  header, .site-footer, .app-section-nav, .skip-link, .journal-breadcrumb, .tool-actions, [data-print], [data-calculate], .tool-privacy, noscript { display: none !important; }
  .page-main, .legal-hero, .legal-content { padding: 0 !important; max-width: none !important; margin: 0 !important; }
  .legal-title { font-size: 24pt !important; line-height: 1.2; margin: 0 0 12pt; }
  .legal-meta, .journal-byline { font-size: 9pt; margin: 6pt 0; }
  .planning-tool { margin: 14pt 0; }
  .planning-tool fieldset { break-inside: avoid; padding: 10pt; margin: 14pt 0; }
  .planning-tool legend { font-size: 13pt; }
  .tool-field-grid { gap: 12pt; margin: 8pt 0; }
  .tool-field label { font-size: 10pt; margin-bottom: 4pt; }
  .field-hint { font-size: 8pt; line-height: 1.3; }
  .tools-enhanced .planning-tool textarea, .tools-enhanced .planning-tool input[type="number"] { display: none; }
  .tools-enhanced .print-value { display: block; min-height: 38pt; font-size: 10pt; border-bottom: 1px solid #aaa; padding: 4pt 0; }
  .tool-result, .asset-checklist, .article-asset { break-inside: avoid; }
  body:has([data-tool="plan"]) .legal-content > :not(.planning-tool) { display: none !important; }
  body:has([data-tool="plan"]) .journal-byline { display: none; }
}


/* Sharing controls and the same calculator in a narrow external iframe. */
.share-resource { padding: 1.5rem; margin-block: 2rem; border: 1px solid var(--line); border-radius: 18px; }
.embed-code { display: block; width: 100%; box-sizing: border-box; margin-top: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); font: .85rem/1.65 monospace; overflow-wrap: anywhere; }
.embed-only { display: none; }
.calculator-embed > header, .calculator-embed > footer, .calculator-embed .app-section-nav, .calculator-embed .journal-breadcrumb, .calculator-embed .journal-byline, .calculator-embed .legal-meta { display: none; }
.calculator-embed .legal-content > :not(.planning-tool), .calculator-embed [data-print] { display: none; }
.calculator-embed .embed-only { display: block; }
.calculator-embed .page-main { padding: 1.25rem; max-width: 720px; margin: 0 auto; }
.calculator-embed .legal-hero { padding: 0; margin: 0; }
.calculator-embed .legal-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.calculator-embed .legal-content { margin-top: 1rem; }
.calculator-embed .planning-tool { margin-top: 0; padding: 1rem; }
@media print { .share-resource { display: none; } }
