:root {
  color-scheme: dark;
  --bg: #030303;
  --text: #f3f4f6;
  --muted: #aaa;
  --line: #282828;
  --surface: #111;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Geist,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
button {
  font: inherit;
}
img,
video {
  max-width: 100%;
  display: block;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #e64400;
  outline-offset: 5px;
}
p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.16;
  margin: 0;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.25rem;
}
main {
  min-width: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: #fff;
  color: #000;
  padding: 0.75rem;
  z-index: 100;
}
.skip-link:focus {
  top: 1rem;
}
.site-shell {
  width: min(1120px, calc(100% - 64px));
  margin: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
}
.brand-link {
  display: block;
  flex-shrink: 0;
}
.brand-link img {
  width: 150px;
  height: auto;
}
.nav-menu {
  position: relative;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.875rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
}
.site-nav a:hover {
  color: #fff;
}
.nav-social {
  display: inline-flex;
}
.nav-social img {
  width: 18px;
  height: 18px;
  opacity: 0.75;
}
.nav-toggle {
  display: none;
}
.home-intro {
  padding: 68px 0 72px;
  max-width: 880px;
}
.home-intro h1 {
  font-size: clamp(2.75rem, 5.2vw, 4.4rem);
  line-height: 1.08;
  margin-bottom: 24px;
}
.home-intro p {
  font-size: 1.125rem;
  max-width: 610px;
  margin: 0;
}
.project {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.65fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 76px;
  border-top: 1px solid var(--line);
}
.project--reverse {
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
}
.project--reverse .project-copy {
  grid-column: 2;
  grid-row: 1;
}
.project--reverse .project-media {
  grid-column: 1;
  grid-row: 1;
}
.app-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
}
.app-heading img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.app-heading h2 {
  font-size: 1.5rem;
}
.app-heading p {
  font-size: 0.875rem;
  margin: 6px 0 0;
}
.project-copy h3 {
  font-size: clamp(1.6rem, 2.35vw, 2rem);
  margin-bottom: 20px;
}
.project-copy > p {
  font-size: 1rem;
}
.feature-list {
  padding: 0;
  margin: 24px 0 28px;
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 0.875rem;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-list i {
  font-size: 20px;
  color: #aaa;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.875rem;
}
.project-links a {
  font-weight: 500;
}
.store-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.project-media {
  margin: 0;
  min-width: 0;
}
.project-media > img,
.video-stage {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.project-media > img {
  height: auto;
}
.project-media figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.875rem;
}
.video-stage {
  position: relative;
  background: #0b0b0b;
  aspect-ratio: 16/9;
}
.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-toggle {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #0a0a0aeb;
  border: 1px solid #555;
  border-radius: 4px;
  color: #fff;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 0.875rem;
}
.preview-toggle i {
  font-size: 18px;
}
.principles {
  padding: 56px 0 64px;
  border-top: 1px solid var(--line);
}
.principle-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 32px;
}
.principle-columns h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.principle-columns p {
  font-size: 1rem;
  margin: 0;
}
.journal {
  padding: 56px 0 64px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.section-heading a {
  font-size: 0.875rem;
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.journal-entry {
  text-decoration: none;
}
.journal-entry img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 18px;
}
.journal-entry time {
  color: var(--muted);
  font-size: 0.875rem;
}
.journal-entry h2,
.journal-entry h3 {
  margin: 10px 0 12px;
  font-size: 1.4rem;
  line-height: 1.3;
}
.journal-entry p {
  margin: 0;
}
.journal-entry:hover h2,
.journal-entry:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.other-apps {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.other-apps > h2 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  color: var(--muted);
  margin-bottom: 26px;
}
.other-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}
.other-grid > a {
  display: flex;
  gap: 16px;
  text-decoration: none;
  align-items: start;
}
.other-grid img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.other-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.other-grid p {
  font-size: 0.875rem;
  margin: 0;
  max-width: 360px;
}
.other-grid a:hover h3 {
  text-decoration: underline;
}
.site-footer {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  font-size: 0.875rem;
}
.site-footer p {
  margin: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
}
.blog-intro {
  padding: 52px 0;
}
.blog-intro h1 {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}
.blog-intro p {
  max-width: 640px;
  font-size: 1.125rem;
}
.featured-posts {
  margin-bottom: 64px;
}
.archive-title {
  border-top: 1px solid var(--line);
  padding: 36px 0 24px;
  font-size: 1.5rem;
}
.post-list {
  display: grid;
  gap: 0;
}
.post-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.post-card img {
  width: 180px;
  height: 120px;
  object-fit: contain;
  background: #111;
  border-radius: 4px;
}
.post-card time,
.post-meta {
  font-size: 0.875rem;
  color: var(--muted);
}
.post-card h2 {
  font-size: 1.35rem;
  margin: 8px 0 12px;
}
.post-card p {
  margin: 0;
  font-size: 1rem;
}
.post-card:hover h2 {
  text-decoration: underline;
}
.post-header {
  max-width: 850px;
  padding: 48px 0 32px;
}
.post-header h1 {
  font-size: clamp(2.3rem, 4.7vw, 3.6rem);
  line-height: 1.12;
  margin: 18px 0 24px;
}
.post-header .post-subtitle {
  font-size: 1.125rem;
  max-width: 760px;
}
.post-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-image {
  margin: 0 0 48px;
}
.hero-image img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.hero-image figcaption,
article figcaption {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 12px;
}
.post-content {
  max-width: 760px;
  margin: 0 auto 72px;
  font-size: 1.0625rem;
}
.post-content h2 {
  font-size: 1.75rem;
  margin: 42px 0 18px;
}
.post-content p {
  color: #d1d1d1;
  line-height: 1.8;
}
.post-content figure {
  margin: 36px 0;
}
.post-content figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.mobile-screens {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr);
  gap: 24px;
  align-items: start;
}
.mobile-screens figure {
  margin: 24px 0;
}
.mobile-screens figure img {
  max-height: 650px;
  object-fit: contain;
  border: 0;
}
.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}
.back-link {
  font-size: 0.875rem;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .project {
    gap: 28px;
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.4fr);
  }
  .project--reverse {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.85fr);
  }
  .site-nav {
    gap: 20px;
  }
}
@media (max-width: 760px) {
  .site-shell {
    width: calc(100% - 40px);
  }
  .site-header {
    padding: 24px 0;
  }
  .brand-link img {
    width: 132px;
  }
  .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #444;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
  }
  .nav-toggle span:before,
  .nav-toggle span:after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
  }
  .nav-toggle span:before {
    top: -6px;
  }
  .nav-toggle span:after {
    top: 6px;
  }
  .nav-menu .site-nav {
    display: none;
    position: absolute;
    right: 0;
    top: 54px;
    min-width: 220px;
    padding: 20px;
    background: #111;
    border: 1px solid #444;
    z-index: 20;
    flex-direction: column;
    align-items: start;
    gap: 18px;
  }
  .nav-menu[data-open="true"] .site-nav {
    display: flex;
  }
  .nav-menu .site-nav a {
    min-height: 28px;
    display: flex;
    align-items: center;
  }
  .home-intro {
    padding: 42px 0 48px;
  }
  .home-intro h1 {
    font-size: clamp(2.3rem, 7.8vw, 3.5rem);
  }
  .project,
  .project--reverse {
    grid-template-columns: 1fr;
    padding: 36px 0 48px;
    gap: 28px;
  }
  .project--reverse .project-copy,
  .project--reverse .project-media {
    grid-column: auto;
    grid-row: auto;
  }
  .app-heading {
    margin-bottom: 22px;
  }
  .project-copy h3 br {
    display: none;
  }
  .project-copy h3 {
    font-size: 1.8rem;
  }
  .project-media figcaption {
    line-height: 1.5;
  }
  .principles,
  .journal {
    padding: 36px 0 44px;
  }
  .principle-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .journal-grid {
    gap: 28px;
  }
  .journal-entry h2,
  .journal-entry h3 {
    font-size: 1.15rem;
  }
  .journal-entry p {
    font-size: 0.9375rem;
  }
  .other-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .site-footer {
    flex-direction: column;
    align-items: start;
    gap: 16px;
  }
  .post-card {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 20px;
  }
  .post-card img {
    width: 120px;
    height: 100px;
  }
  .post-card h2 {
    font-size: 1.15rem;
  }
  .post-card p {
    font-size: 0.9375rem;
  }
  .post-header {
    padding: 32px 0;
  }
  .post-content {
    font-size: 1rem;
  }
  .mobile-screens {
    gap: 16px;
  }
  .blog-intro {
    padding: 36px 0;
  }
}
@media (max-width: 480px) {
  .journal-grid {
    grid-template-columns: 1fr;
  }
  .post-card {
    grid-template-columns: 1fr;
  }
  .post-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
  }
  .mobile-screens {
    grid-template-columns: 1fr;
  }
  .mobile-screens img {
    max-height: 560px;
  }
  .mobile-screens figure:last-child img {
    width: auto;
    max-width: 100%;
    margin: auto;
  }
  .post-meta {
    gap: 10px;
  }
  .footer-links {
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Match navigation and type on the older articles and company pages. */
.site-shell {
  padding: 0;
}
.site-header {
  margin-bottom: 0;
}
.site-nav {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.nav-social {
  width: 24px;
  height: 28px;
  align-items: center;
  justify-content: center;
}
.site-footer {
  margin-top: 0;
}
.blog-hero {
  padding: 48px 0 32px;
  margin-bottom: 20px;
}
.blog-hero h1 {
  font-size: clamp(2.3rem, 4.7vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
}
.blog-hero p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}
.post-header h1 {
  font-weight: 500;
  line-height: 1.12;
}
.about-page {
  max-width: 850px;
}
.about-page h2 {
  margin: 42px 0 18px;
}
.about-products > a {
  color: inherit;
  text-decoration: none;
}
.about-products > a:hover strong {
  text-decoration: underline;
}
.about-actions {
  gap: 24px;
}
.about-actions a {
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  font-size: 0.875rem;
  border-radius: 0;
}
.post-content img {
  border-radius: 4px;
}
.post-content blockquote {
  border-radius: 0;
}
.post-content ol,
.post-content ul {
  line-height: 1.8;
}
.post-content h3 {
  margin: 28px 0 12px;
}
.journal-entry h2,
.journal-entry h3 {
  margin: 12px 0;
  font-size: 1.5rem;
}
.site-footer p {
  margin: 0;
}
@media (max-width: 760px) {
  .site-header {
    gap: 16px;
  }
  .blog-hero {
    padding: 32px 0;
  }
  .journal-entry h2,
  .journal-entry h3 {
    font-size: 1.2rem;
  }
  .nav-menu .site-nav a {
    min-height: 36px;
  }
  .nav-menu .site-nav .nav-social {
    width: 36px;
    height: 36px;
  }
  .nav-menu .site-nav {
    flex-direction: row;
    flex-wrap: wrap;
    width: 240px;
    gap: 12px;
  }
  .nav-menu .site-nav > a:not(.nav-social) {
    width: 100%;
  }
}

/* Article demonstrations use native controls and load only when requested. */
.article-demo video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0b0b0b;
}
.post-content .portrait-demo {
  max-width: 350px;
  margin-inline: auto;
}
