:root {
  color-scheme: light dark;
  --background: #f5f5f3;
  --surface: #ffffff;
  --ink: #101010;
  --muted: #6b6b68;
  --line: #d9d9d5;
  --dark-surface: #101010;
  --dark-ink: #f7f7f4;
  --focus: #0067d8;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--ink);
  font-size: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--background);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.page-shell {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.site-name,
.quiet-link {
  font-size: 0.95rem;
  text-decoration: none;
}

.site-name {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.quiet-link {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.quiet-link:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.home-main {
  flex: 1;
  padding-block: clamp(72px, 11vw, 148px) 96px;
}

.intro {
  max-width: 820px;
  margin-bottom: clamp(68px, 10vw, 124px);
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 18px 0 0;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 610;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.app-card {
  min-height: 360px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.app-card:hover {
  transform: translateY(-3px);
}

.app-card--scene {
  min-height: 500px;
  color: var(--dark-ink);
  background: var(--dark-surface);
  border-color: var(--dark-surface);
}

.app-card--scene .card-kicker,
.app-card--scene .card-copy p,
.app-card--scene .card-link {
  color: #b8b8b5;
}

.app-card--secondary {
  background: var(--surface);
}

.card-copy {
  margin-top: auto;
}

.card-copy h2 {
  margin: 10px 0 6px;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  font-weight: 610;
  letter-spacing: -0.045em;
  line-height: 1;
}

.card-copy p:not(.card-kicker) {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.card-link {
  margin-top: 32px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 5px;
}

.app-icon {
  display: block;
  border-radius: 22%;
}

.app-icon--card {
  width: 88px;
  height: 88px;
  margin-bottom: 56px;
}

.app-icon--hero {
  width: 104px;
  height: 104px;
  margin-bottom: 34px;
}

.scene-mark {
  display: flex;
  align-items: center;
  gap: 18px;
}

.scene-mark--large {
  min-height: 160px;
  justify-content: center;
}

.shape {
  display: block;
  width: 42px;
  height: 42px;
  background: currentColor;
}

.shape--circle {
  border-radius: 50%;
  transform: translateY(-30px);
}

.shape--square {
  transform: translateY(25px);
}

.shape--triangle {
  width: 0;
  height: 0;
  background: transparent;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 43px solid currentColor;
  transform: translateY(-5px);
}

.site-footer {
  min-height: 116px;
  padding-block: 36px;
  display: flex;
  align-items: flex-end;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer p {
  margin: 0;
}

/* Scene */
.scene-main,
.policy-main {
  flex: 1;
}

.scene-hero {
  min-height: min(760px, calc(100vh - 92px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 56px;
  align-items: center;
  padding-block: 80px;
}

.scene-title {
  margin: 18px 0 24px;
  font-size: clamp(4.3rem, 12vw, 9rem);
  font-weight: 610;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.scene-lede {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.45;
}

.scene-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.button-link {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--background);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
}

.text-link {
  font-size: 0.95rem;
  font-weight: 600;
  text-underline-offset: 5px;
}

.scene-stage {
  aspect-ratio: 1 / 1;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
}

.scene-stage .shape {
  position: absolute;
}

.scene-stage .shape--circle {
  width: 19%;
  height: 19%;
  top: 16%;
  left: 19%;
  transform: none;
}

.scene-stage .shape--square {
  width: 15%;
  height: 15%;
  top: 51%;
  right: 17%;
  transform: rotate(8deg);
}

.scene-stage .shape--triangle {
  width: 0;
  height: 0;
  left: 25%;
  bottom: 14%;
  border-left-width: clamp(30px, 5vw, 58px);
  border-right-width: clamp(30px, 5vw, 58px);
  border-bottom-width: clamp(52px, 8.65vw, 100px);
  transform: rotate(-6deg);
}

.mode-section {
  padding-block: clamp(84px, 12vw, 148px);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin: 16px 0 56px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  font-weight: 610;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.mode-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.mode-row {
  padding-block: 26px;
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.mode-row dt {
  font-weight: 650;
}

.mode-row dd {
  margin: 0;
  color: var(--muted);
}

.scene-contact {
  padding-block: 72px 96px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.scene-contact h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.scene-contact p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
}

.scene-contact nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 18px 26px;
}

/* Since Then */
.since-hero {
  min-height: min(720px, calc(100vh - 92px));
  padding-block: clamp(72px, 10vw, 128px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 72px;
  align-items: center;
}

.since-title {
  margin: 18px 0 24px;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 610;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.since-lede {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.45;
}

.counter-panel {
  min-height: 390px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
}

.counter-label,
.counter-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.counter-value {
  margin: 0;
  font-size: clamp(4.5rem, 11vw, 8rem);
  font-weight: 560;
  letter-spacing: -0.08em;
  line-height: 0.82;
}

.counter-value span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.support-grid {
  margin-block: clamp(84px, 12vw, 140px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.support-item {
  min-height: 230px;
  padding: clamp(28px, 4vw, 46px);
  background: var(--background);
}

.support-item h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.support-item p {
  margin: 0;
  color: var(--muted);
}

.support-item .text-link {
  display: inline-block;
  margin-top: 22px;
}

.support-item:last-child {
  grid-column: 1 / -1;
  min-height: 210px;
}

/* Privacy */
.policy-main {
  padding-block: clamp(64px, 10vw, 124px) 112px;
}

.policy-header,
.policy-body {
  width: min(100%, 760px);
}

.policy-header {
  margin-bottom: 72px;
}

.policy-header h1 {
  margin-top: 16px;
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.policy-summary {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.policy-date {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.policy-body section {
  padding-block: 32px;
  border-top: 1px solid var(--line);
}

.policy-body h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.policy-body p,
.policy-body li {
  color: #353533;
}

.policy-body p {
  margin: 0 0 14px;
}

.policy-body p:last-child {
  margin-bottom: 0;
}

.policy-body ul {
  margin: 0;
  padding-left: 1.25rem;
}

.policy-body li + li {
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    min-height: 76px;
  }

  .home-main {
    padding-block: 64px 72px;
  }

  .app-grid,
  .scene-hero,
  .since-hero {
    grid-template-columns: 1fr;
  }

  .app-card,
  .app-card--scene {
    min-height: 390px;
  }

  .app-card--secondary {
    min-height: 300px;
  }

  .scene-hero {
    min-height: auto;
    gap: 64px;
    padding-block: 72px;
  }

  .scene-stage {
    width: min(100%, 520px);
  }

  .mode-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .scene-contact {
    flex-direction: column;
  }

  .since-hero {
    min-height: auto;
    gap: 56px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0c0c0c;
    --surface: #161616;
    --ink: #f2f2ef;
    --muted: #aaa9a4;
    --line: #353532;
    --dark-surface: #f2f2ef;
    --dark-ink: #111111;
    --focus: #69aaff;
  }

  .app-card--scene .card-kicker,
  .app-card--scene .card-copy p,
  .app-card--scene .card-link {
    color: #5c5c59;
  }

  .policy-body p,
  .policy-body li {
    color: #d0d0cc;
  }
}
