/*
 * deskeno.com — Deskeno.
 * Calm, light page for the people who ask for things and the people who get them done.
 * Corners stay restrained: 6px controls and icon tiles, 3px tags, 8px framed cards.
 * No pill buttons. Avatars are the only true circles.
 * Motion is CSS only (the CSP allows no scripts): one entrance for the hero, one short
 * sequence on the example card, a slow light drift, and sections that rise into view.
 * Everything holds still for people who ask their device to reduce motion.
 */

:root {
  --dk-canvas: #faf9f7;
  --dk-surface: #ffffff;
  --dk-ink: #172b4d;
  --dk-body: #4a5870;
  --dk-soft: #5d6b82;
  --dk-border: #e9e4dc;
  --dk-border-strong: #d6cec2;
  --dk-brand: #0c66e4;
  --dk-brand-hover: #0055cc;
  --dk-sky: #eef5ff;
  --dk-sky-border: #d3e4fd;
  --dk-sand: #fdf8f2;
  --dk-sand-border: #f0e4d2;
  --dk-sand-ink: #995a12;
  --dk-mint: #edf7f2;
  --dk-mint-border: #cfe8da;
  --dk-mint-ink: #216e4e;
  --dk-night: #10233f;
  --dk-night-text: #c7d3e6;
  --dk-radius-control: 6px;
  --dk-radius-tag: 3px;
  --dk-radius-frame: 8px;
  --dk-font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --dk-shell: 1160px;
  --dk-pad: 24px;
  --dk-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dk-lift: 0 1px 2px rgba(23, 43, 77, 0.05), 0 16px 40px -18px rgba(23, 43, 77, 0.22);
  --dk-lift-high: 0 2px 4px rgba(23, 43, 77, 0.04), 0 28px 60px -24px rgba(23, 43, 77, 0.32);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--dk-canvas);
  color: var(--dk-body);
  font-family: var(--dk-font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--dk-ink);
}

h1,
h2 {
  text-wrap: balance;
}

a {
  color: var(--dk-brand-hover);
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--dk-brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--dk-surface);
  border: 2px solid var(--dk-brand);
  border-radius: var(--dk-radius-control);
  color: var(--dk-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-240%);
}

.skip-link:focus {
  transform: none;
}

main:focus {
  outline: none;
}

.shell {
  width: 100%;
  max-width: var(--dk-shell);
  margin: 0 auto;
  padding: 0 var(--dk-pad);
}

/* Icons: verbatim Phosphor Duotone SVGs, painted with currentColor through an alpha mask. */
.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}

.icon-16 {
  width: 16px;
  height: 16px;
}

.icon-18 {
  width: 18px;
  height: 18px;
}

.icon-24 {
  width: 24px;
  height: 24px;
}

.icon-28 {
  width: 28px;
  height: 28px;
}

.i-arrow-right {
  --i: url("/icons/arrow-right-duotone.svg");
}

.i-bell-simple {
  --i: url("/icons/bell-simple-duotone.svg");
}

.i-buildings {
  --i: url("/icons/buildings-duotone.svg");
}

.i-calendar-check {
  --i: url("/icons/calendar-check-duotone.svg");
}

.i-chat-circle-text {
  --i: url("/icons/chat-circle-text-duotone.svg");
}

.i-check {
  --i: url("/icons/check-duotone.svg");
}

.i-device-mobile {
  --i: url("/icons/device-mobile-duotone.svg");
}

.i-envelope-simple {
  --i: url("/icons/envelope-simple-duotone.svg");
}

.i-hand-waving {
  --i: url("/icons/hand-waving-duotone.svg");
}

.i-package {
  --i: url("/icons/package-duotone.svg");
}

.i-seal-check {
  --i: url("/icons/seal-check-duotone.svg");
}

.i-user {
  --i: url("/icons/user-duotone.svg");
}

.i-users-three {
  --i: url("/icons/users-three-duotone.svg");
}

.i-wrench {
  --i: url("/icons/wrench-duotone.svg");
}

/* Buttons: 6px corners, never pills. A soft sheen crosses the button on hover. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--dk-radius-control);
  background-image: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.26) 50%,
    transparent 65%
  );
  background-position: 120% 0;
  background-repeat: no-repeat;
  background-size: 250% 100%;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    background-position 0.7s var(--dk-ease),
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    color 0.2s ease,
    translate 0.25s var(--dk-ease);
}

.btn:hover {
  background-position: -20% 0;
  translate: 0 -1px;
}

.btn .i-arrow-right {
  transition: translate 0.25s var(--dk-ease);
}

.btn:hover .i-arrow-right {
  translate: 3px 0;
}

.btn-large {
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--dk-brand);
  box-shadow: 0 8px 22px -12px rgba(12, 102, 228, 0.7);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--dk-brand-hover);
  box-shadow: 0 12px 28px -12px rgba(12, 102, 228, 0.8);
}

.btn-light {
  background-color: #ffffff;
  color: var(--dk-ink);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.6);
}

.btn-light:hover {
  background-color: #e9f2ff;
}

.btn-light:focus-visible {
  outline-color: #ffffff;
}

/* Header: frosted and pinned on wider screens. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--dk-border);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dk-ink);
  text-decoration: none;
}

.lockup-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--dk-radius-control);
  color: var(--dk-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--dk-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero: a soft wash with slowly drifting light and a faint dot texture. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 88px 0 112px;
  background: linear-gradient(180deg, #f1f7ff 0%, #f6f9fd 55%, var(--dk-canvas) 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
}

.hero-glow::before {
  top: -420px;
  right: -260px;
  background: radial-gradient(closest-side, rgba(12, 102, 228, 0.2), rgba(12, 102, 228, 0));
  animation: dk-drift 22s ease-in-out infinite alternate;
}

.hero-glow::after {
  bottom: -520px;
  left: -340px;
  background: radial-gradient(closest-side, rgba(54, 179, 126, 0.14), rgba(54, 179, 126, 0));
  animation: dk-drift 26s ease-in-out -8s infinite alternate-reverse;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 43, 77, 0.1) 1px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 78% 40%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 78% 40%, #000 0%, transparent 72%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: center;
}

.eyebrow,
.kicker {
  color: var(--dk-brand-hover);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 22px;
  max-width: 13ch;
  font-size: clamp(2.5rem, 1.3rem + 3.8vw, 4rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

/* "Someone’s on it." gets a highlighter stroke that draws in once. */
.mark {
  color: var(--dk-brand-hover);
  background-image: linear-gradient(#d6e6ff, #d6e6ff);
  background-position: 0 88%;
  background-repeat: no-repeat;
  background-size: 100% 0.24em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lead {
  max-width: 31em;
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 34px;
}

.hero-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 22em;
  color: var(--dk-soft);
  font-size: 15px;
  line-height: 1.45;
}

.hero-note .icon {
  margin-top: 1px;
  color: var(--dk-mint-ink);
}

/* Example request card, with a second card peeking out behind it. */
.preview-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--dk-soft);
  font-size: 14px;
}

.preview-stage {
  position: relative;
}

.preview-ghost {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius-frame);
  box-shadow: var(--dk-lift);
  transform: translate(14px, 14px) rotate(2.2deg);
}

.preview-card {
  position: relative;
  padding: 28px;
  background: var(--dk-surface);
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius-frame);
  box-shadow: var(--dk-lift-high);
}

.message {
  display: flex;
  gap: 14px;
}

.message-body {
  min-width: 0;
  flex: 1;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.avatar-sky {
  background: #dbe9ff;
  color: #0047b3;
}

.avatar-mint {
  background: #d6efe2;
  color: #1b5e42;
}

.message-meta {
  color: var(--dk-soft);
  font-size: 14px;
}

.message-meta strong {
  color: var(--dk-ink);
  font-weight: 600;
}

.message-title {
  margin: 4px 0;
  color: var(--dk-ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}

.message-text {
  font-size: 15px;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  padding: 14px 0;
  border-top: 1px solid var(--dk-border);
  border-bottom: 1px solid var(--dk-border);
  font-size: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: var(--dk-radius-tag);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.tag-progress {
  background: #e9f2ff;
  border-color: #cce0ff;
  color: var(--dk-brand-hover);
}

/* A small live dot: a 6px square with 3px corners, so it reads as round. */
.tag-progress::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--dk-radius-tag);
  background: var(--dk-brand);
}

.tag-plain {
  background: var(--dk-sand);
  border-color: var(--dk-sand-border);
  color: #7a4a10;
}

.reply-bubble {
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--dk-mint);
  border: 1px solid var(--dk-mint-border);
  border-radius: var(--dk-radius-control);
  color: var(--dk-ink);
  font-size: 16px;
  font-weight: 500;
}

.preview-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--dk-border);
  color: var(--dk-soft);
  font-size: 14px;
}

.preview-foot .icon {
  color: var(--dk-brand);
}

.preview-chip {
  position: absolute;
  left: -32px;
  bottom: -26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  background: var(--dk-surface);
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius-frame);
  box-shadow: var(--dk-lift-high);
  color: var(--dk-body);
  font-size: 14px;
  white-space: nowrap;
}

.preview-chip strong {
  color: var(--dk-mint-ink);
}

.chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--dk-mint);
  border: 1px solid var(--dk-mint-border);
  border-radius: var(--dk-radius-control);
  color: var(--dk-mint-ink);
}

/* Sections */
.band {
  padding: 104px 0;
}

.band-white {
  background: var(--dk-surface);
  border-top: 1px solid var(--dk-border);
  border-bottom: 1px solid var(--dk-border);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  margin-top: 10px;
}

.section-head h2,
.closing h2 {
  font-size: clamp(1.875rem, 1.25rem + 1.8vw, 2.625rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-head > p:last-child {
  margin-top: 16px;
  font-size: 18px;
}

/* What it's for: six everyday kinds of request. */
.uses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.use {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--dk-surface);
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius-frame);
  transition:
    border-color 0.25s ease,
    box-shadow 0.3s ease,
    translate 0.3s var(--dk-ease);
}

.use:hover {
  border-color: var(--dk-sky-border);
  box-shadow: var(--dk-lift);
  translate: 0 -3px;
}

.use-icon,
.person-icon,
.closing-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
  border-radius: var(--dk-radius-control);
}

.use-icon {
  width: 48px;
  height: 48px;
  background: var(--dk-sky);
  border-color: var(--dk-sky-border);
  color: var(--dk-brand);
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.use:hover .use-icon {
  background-color: var(--dk-brand);
  color: #ffffff;
}

.use h3 {
  margin: 2px 0 4px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
}

.use p {
  font-size: 15.5px;
  line-height: 1.55;
}

/* How it works: what each person gets, in a two-by-two grid. */
.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.person {
  padding: 32px 28px;
  background: var(--dk-surface);
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius-frame);
  box-shadow: 0 1px 2px rgba(23, 43, 77, 0.04);
  transition:
    box-shadow 0.3s ease,
    translate 0.3s var(--dk-ease);
}

.person:hover {
  box-shadow: var(--dk-lift);
  translate: 0 -3px;
}

.person-icon {
  width: 56px;
  height: 56px;
}

.person-icon-sky {
  background: var(--dk-sky);
  border-color: var(--dk-sky-border);
  color: var(--dk-brand);
}

.person-icon-mint {
  background: var(--dk-mint);
  border-color: var(--dk-mint-border);
  color: var(--dk-mint-ink);
}

.person-icon-sand {
  background: var(--dk-sand);
  border-color: var(--dk-sand-border);
  color: var(--dk-sand-ink);
}

.person h3 {
  margin: 22px 0 16px;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.3;
}

.checks {
  display: grid;
  gap: 12px;
}

.checks li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.checks .icon {
  margin-top: 3px;
  color: var(--dk-mint-ink);
}

/* Closing invitation: a deep night panel with its own slow light. */
.band-closing {
  padding-top: 0;
  padding-bottom: 112px;
}

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 40px;
  background: var(--dk-night);
  border-radius: var(--dk-radius-frame);
  box-shadow: var(--dk-lift-high);
  text-align: center;
}

.closing-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.closing-glow::before,
.closing-glow::after {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
}

.closing-glow::before {
  top: -360px;
  left: -160px;
  background: radial-gradient(closest-side, rgba(12, 102, 228, 0.55), rgba(12, 102, 228, 0));
  animation: dk-drift 20s ease-in-out infinite alternate;
}

.closing-glow::after {
  right: -200px;
  bottom: -380px;
  background: radial-gradient(closest-side, rgba(54, 179, 126, 0.28), rgba(54, 179, 126, 0));
  animation: dk-drift 24s ease-in-out -6s infinite alternate-reverse;
}

.closing-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.closing h2 {
  margin: 22px 0 14px;
  color: #ffffff;
}

.closing p {
  max-width: 34em;
  margin: 0 auto 32px;
  color: var(--dk-night-text);
  font-size: 18px;
}

/* Footer */
.site-footer {
  padding: 48px 0 32px;
  background: var(--dk-surface);
  border-top: 1px solid var(--dk-border);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dk-body);
  font-size: 15px;
}

.footer-credit a {
  font-weight: 600;
  text-underline-offset: 3px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dk-body);
  font-size: 15px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--dk-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--dk-border);
  color: var(--dk-soft);
  font-size: 14px;
}

/* Motion. Played once, except the slow drift of light, and never for reduced motion. */
@keyframes dk-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dk-step {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dk-mark {
  from {
    background-size: 0% 0.24em;
  }

  to {
    background-size: 100% 0.24em;
  }
}

@keyframes dk-ghost {
  from {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg);
  }

  to {
    opacity: 1;
    transform: translate(14px, 14px) rotate(2.2deg);
  }
}

@keyframes dk-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(12, 102, 228, 0.45);
  }

  100% {
    box-shadow: 0 0 0 7px rgba(12, 102, 228, 0);
  }
}

@keyframes dk-drift {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(-90px, 60px);
  }
}

@keyframes dk-reveal {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: dk-rise 0.9s var(--dk-ease) both;
  }

  .rise-1 {
    animation-delay: 0.05s;
  }

  .rise-2 {
    animation-delay: 0.15s;
  }

  .rise-3 {
    animation-delay: 0.3s;
  }

  .rise-4 {
    animation-delay: 0.45s;
  }

  .mark {
    animation: dk-mark 0.9s var(--dk-ease) 0.85s both;
  }

  .preview-ghost {
    animation: dk-ghost 1.1s var(--dk-ease) 0.5s both;
  }

  .preview-card {
    animation: dk-rise 0.9s var(--dk-ease) 0.25s both;
  }

  .step-in {
    animation: dk-step 0.7s var(--dk-ease) both;
  }

  .step-1 {
    animation-delay: 0.55s;
  }

  .step-2 {
    animation-delay: 1.25s;
  }

  .step-3 {
    animation-delay: 1.95s;
  }

  .step-4 {
    animation-delay: 2.6s;
  }

  .step-5 {
    animation-delay: 3.2s;
  }

  .tag-progress::before {
    animation: dk-pulse 1.4s ease-out 1.4s 4;
  }
}

/* Sections rise into view as you scroll, where the browser supports scroll-linked motion. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: dk-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }

    .uses .reveal:nth-child(3n + 2),
    .people .reveal:nth-child(2n) {
      animation-range: entry 8% entry 63%;
    }

    .uses .reveal:nth-child(3n) {
      animation-range: entry 16% entry 71%;
    }
  }
}

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

  .hero-glow::before,
  .hero-glow::after,
  .closing-glow::before,
  .closing-glow::after {
    animation: none;
  }

  .btn,
  .use,
  .person,
  .btn .i-arrow-right {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .preview {
    width: 100%;
    max-width: 560px;
  }

  .preview-chip {
    left: -12px;
  }

  .uses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin: 0 auto;
  }

  /* Rows of two: the second card follows a little behind the first. */
  .uses .reveal:nth-child(n) {
    animation-range: entry 0% entry 55%;
  }

  .uses .reveal:nth-child(2n) {
    animation-range: entry 8% entry 63%;
  }

  .people .reveal:nth-child(n) {
    animation-range: entry 0% entry 55%;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 0;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 16px;
    padding-top: 10px;
  }

  /* The hero repeats this button right below; hiding it keeps tab order matching the layout. */
  .header-cta {
    display: none;
  }

  .nav {
    justify-content: center;
    width: 100%;
    margin: 6px 0 0;
    padding: 2px 0;
    border-top: 1px solid var(--dk-border);
  }

  .nav a {
    padding: 0 10px;
  }
}

@media (max-width: 600px) {
  :root {
    --dk-pad: 20px;
  }

  .hero {
    padding: 44px 0 80px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Extra room at the bottom so the "Done" note never covers the last line. */
  .preview-card {
    padding: 20px 20px 44px;
  }

  .preview-ghost {
    transform: translate(8px, 10px) rotate(1.6deg);
  }

  .preview-chip {
    left: 12px;
    bottom: -24px;
  }

  .band {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .section-head > p:last-child,
  .closing p {
    font-size: 17px;
  }

  .uses {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .use {
    padding: 20px;
  }

  .uses .reveal:nth-child(n) {
    animation-range: entry 0% entry 55%;
  }

  .person {
    padding: 26px 22px;
  }

  .band-closing {
    padding-bottom: 72px;
  }

  .closing {
    padding: 52px 22px;
  }

  .closing .btn {
    width: 100%;
  }

  .footer-nav {
    gap: 0 20px;
  }
}

@media (max-width: 380px) {
  .nav a {
    padding: 0 7px;
    font-size: 14px;
  }
}
