:root {
  color-scheme: light;
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --ink: #18181b;
  --muted: #71717a;
  --line: color-mix(in srgb, #a1a1aa 45%, transparent);
  --focus: #18181b;
  --btn: #18181b;
  --btn-ink: #fafafa;
  --btn-hover: #27272a;
  --link: #18181b;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b;
  --bg-elev: #0c0c0e;
  --ink: #fafafa;
  --muted: #a1a1aa;
  --line: color-mix(in srgb, #3f3f46 70%, transparent);
  --focus: #fafafa;
  --btn: #fafafa;
  --btn-ink: #09090b;
  --btn-hover: #e4e4e7;
  --link: #fafafa;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #09090b;
    --bg-elev: #0c0c0e;
    --ink: #fafafa;
    --muted: #a1a1aa;
    --line: color-mix(in srgb, #3f3f46 70%, transparent);
    --focus: #fafafa;
    --btn: #fafafa;
    --btn-ink: #09090b;
    --btn-hover: #e4e4e7;
    --link: #fafafa;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}

body {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--btn);
  color: var(--btn-ink);
  padding: 0.5rem 0.75rem;
  z-index: 20;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a,
.theme-toggle {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 120ms ease-out, color 120ms ease-out;
}

.nav a:hover,
.theme-toggle:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.theme-toggle {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  padding: 0;
}

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  max-width: 40rem;
}

.hero-product {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  max-width: none;
  padding: 3.5rem 0 2.5rem;
}

.hero-copy {
  max-width: 36rem;
}

.hero-shot {
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 1px rgba(0, 0, 0, 0.04);
  transition: box-shadow 120ms ease-out, transform 180ms cubic-bezier(0, 0, 0.2, 1);
}

.hero-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-shot figcaption {
  padding: 0.75rem 1rem 0.9rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  border-top: 1px solid var(--line);
}

.kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.lede {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 120ms ease-out, color 120ms ease-out;
}

.btn-primary {
  background: var(--btn);
  color: var(--btn-ink);
}

.btn-primary:hover {
  background: var(--btn-hover);
  text-decoration: none;
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  text-decoration: none;
}

.section {
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  margin: 0;
}

.steps strong {
  display: block;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
}

.steps p,
.prose p {
  margin: 0;
  color: var(--muted);
}

.product {
  max-width: 40rem;
}

.product-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.product h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.product p + p {
  margin-top: 0.9rem;
}

.product-shot {
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 1px rgba(0, 0, 0, 0.04);
  transition: box-shadow 120ms ease-out, transform 180ms cubic-bezier(0, 0, 0.2, 1);
}

.product-shot:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.product-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.product-shot figcaption {
  padding: 0.75rem 1rem 0.9rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  border-top: 1px solid var(--line);
}

.shot-open {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  border-radius: 0;
}

.shot-open img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.shot-open::after {
  content: "Full screen";
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  background: color-mix(in srgb, #09090b 78%, transparent);
  color: #fafafa;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  pointer-events: none;
}

.shot-open:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.shot-dialog {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #09090b;
  color: #fafafa;
}

.shot-dialog::backdrop {
  background: rgb(0 0 0 / 0.5);
}

.shot-dialog:modal {
  display: flex;
  flex-direction: column;
}

.shot-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  cursor: zoom-out;
}

.shot-full {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.shot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgb(63 63 70 / 0.7);
  flex-wrap: wrap;
}

.shot-caption {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.8125rem;
  line-height: 1.45;
  max-width: 48rem;
}

.shot-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.shot-actions button {
  appearance: none;
  border: 1px solid rgb(63 63 70 / 0.7);
  background: transparent;
  color: #fafafa;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 120ms ease-out, color 120ms ease-out;
}

.shot-actions button:hover {
  background: rgb(250 250 250 / 0.08);
}

.shot-actions .shot-close {
  background: #fafafa;
  color: #09090b;
  border-color: #fafafa;
}

.shot-actions .shot-close:hover {
  background: #e4e4e7;
  color: #09090b;
}

.shot-actions button:focus-visible {
  outline: 2px solid #fafafa;
  outline-offset: 2px;
}

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.outcomes article {
  padding: 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.outcomes h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.outcomes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.section-lead {
  margin: -0.5rem 0 1.5rem;
  color: var(--muted);
  max-width: 40rem;
}

.places {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.place {
  padding: 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.place-role {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.place h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.place p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.beats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.beats li {
  margin: 0;
}

.beat-n {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.55rem;
  font-variant-numeric: tabular-nums;
}

.beats strong {
  display: block;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
}

.beats p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.anatomy {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.anatomy article {
  padding: 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.anatomy h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.anatomy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.tabs {
  position: relative;
  display: flex;
  gap: 0.15rem;
  margin: 0 0 1.5rem;
  width: fit-content;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elev);
}

.tabs button {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: color 120ms ease-out;
}

.tabs button[aria-selected="true"] {
  color: var(--ink);
}

.tabs button:hover {
  color: var(--ink);
}

.tab-ink {
  position: absolute;
  z-index: 0;
  top: 0.2rem;
  left: 0;
  height: calc(100% - 0.4rem);
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  transition: transform 220ms cubic-bezier(0, 0, 0.2, 1), width 220ms cubic-bezier(0, 0, 0.2, 1);
}

.desk-panel {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.desk-panel[hidden] {
  display: none;
}

.desk-copy h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.desk-copy p {
  margin: 0;
  color: var(--muted);
}

.desk-panel figure {
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 1px rgba(0, 0, 0, 0.04);
  transition: box-shadow 120ms ease-out, transform 180ms cubic-bezier(0, 0, 0.2, 1);
}

.desk-panel figure:hover,
.hero-shot:hover,
.shots figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.desk-panel img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--line);
}

.desk-panel figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.flag-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.5rem;
}

.shots figure {
  transition: box-shadow 120ms ease-out, transform 180ms cubic-bezier(0, 0, 0.2, 1);
}

.flag-groups h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.flag-groups ul,
.not-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flag-groups li,
.not-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.flag-groups li:first-child,
.not-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.flag-groups li::before,
.not-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.4rem;
  height: 1px;
  background: var(--ink);
  opacity: 0.35;
}

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.shots figure {
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 1px rgba(0, 0, 0, 0.04);
}

.shots img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.shots figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.not-list {
  max-width: 40rem;
}

[data-theme="dark"] .shots figure,
[data-theme="dark"] .hero-shot,
[data-theme="dark"] .desk-panel figure,
[data-theme="dark"] .product-shot {
  box-shadow: none;
}

[data-theme="dark"] .desk-panel figure:hover,
[data-theme="dark"] .hero-shot:hover,
[data-theme="dark"] .shots figure:hover,
[data-theme="dark"] .product-shot:hover {
  box-shadow: none;
  background: color-mix(in srgb, var(--bg-elev) 70%, #fff 4%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shots figure,
  :root:not([data-theme="light"]) .hero-shot,
  :root:not([data-theme="light"]) .desk-panel figure,
  :root:not([data-theme="light"]) .product-shot {
    box-shadow: none;
  }

  :root:not([data-theme="light"]) .desk-panel figure:hover,
  :root:not([data-theme="light"]) .hero-shot:hover,
  :root:not([data-theme="light"]) .shots figure:hover,
  :root:not([data-theme="light"]) .product-shot:hover {
    box-shadow: none;
  }
}

.note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact p {
  margin: 0 0 0.75rem;
  max-width: 36rem;
  color: var(--muted);
}

.contact a[href^="mailto"] {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.95rem;
}

.legal {
  max-width: 40rem;
  padding: 2.5rem 0 4rem;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.legal .meta {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.legal h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--ink);
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.15rem;
}

.legal li {
  margin: 0.35rem 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8125rem;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 960px) {
  .beats,
  .anatomy {
    grid-template-columns: 1fr 1fr;
  }

  .hero-product,
  .desk-panel,
  .product-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .wrap {
    width: min(1120px, calc(100% - 2rem));
  }

  .hero {
    padding-top: 2.75rem;
  }

  .hero-product,
  .desk-panel,
  .product-split,
  .beats,
  .anatomy,
  .outcomes,
  .steps,
  .places,
  .flag-groups,
  .shots {
    grid-template-columns: 1fr;
  }

  .hero-product {
    gap: 1.75rem;
    padding-top: 2.25rem;
  }

  .nav-contact {
    display: none;
  }

  .nav a {
    padding: 0.35rem 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
