:root {
  color-scheme: light;
  --page: #ffffff;
  --ink: #111318;
  --muted: #5d626c;
  --quiet: #838894;
  --line: #dfe1e6;
  --soft: #f5f6f8;
  --dark: #15181c;
  --max: 1440px;
  --gutter: clamp(1rem, 4.5vw, 4.5rem);
  --shadow-phone: 0 24px 54px rgba(18, 22, 29, 0.18), 0 4px 12px rgba(18, 22, 29, 0.12);
  --shadow-window: 0 30px 70px rgba(18, 22, 29, 0.14), 0 3px 12px rgba(18, 22, 29, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  background: var(--page);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  overflow-x: clip;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  min-width: 0;
  flex: 1;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #1769e0;
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: #111318;
  border-radius: 0.5rem;
  transform: translateY(-160%);
}

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

.site-header {
  width: min(calc(100% - (2 * clamp(1rem, 2vw, 2rem))), var(--max));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.85rem;
  font-weight: 740;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.5vw, 1.5rem);
}

.site-nav a,
.site-footer nav a {
  min-height: 44px;
  padding: 0.6rem 0.7rem;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 550;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-footer nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px var(--ink);
}

.portfolio-home {
  width: 100%;
  margin: 0;
  padding: clamp(6.5rem, 8vw, 7.2rem) var(--gutter) clamp(6.5rem, 8vw, 7.5rem);
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
}

.portfolio-intro {
  width: min(100%, 1268px);
  margin: 0 auto;
  text-align: center;
}

.portfolio-intro h1 {
  margin: 0;
  font-size: clamp(2.8rem, 4.2vw, 3.4rem);
  font-weight: 740;
  line-height: 1.05;
  letter-spacing: -0.047em;
}

.portfolio-intro p {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: clamp(1.16rem, 1.8vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: -0.022em;
}

.app-index {
  width: min(100%, 1268px);
  margin: clamp(4.25rem, 5.5vw, 5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.app-index-entry {
  min-width: 0;
}

.app-index-item {
  min-height: 270px;
  height: 100%;
  padding: clamp(2rem, 2.6vw, 2.4rem);
  display: grid;
  grid-template-columns: clamp(140px, 12vw, 180px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.6rem, 2.4vw, 2.4rem);
  color: inherit;
  background: #ffffff;
  border: 1px solid #d5d8de;
  border-radius: 1.15rem;
  box-shadow: 0 10px 30px rgba(17, 19, 24, 0.06), 0 2px 8px rgba(17, 19, 24, 0.035);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.app-index-item:hover {
  background: color-mix(in srgb, var(--accent) 2.5%, #ffffff);
  border-color: color-mix(in srgb, var(--accent) 24%, #d5d8de);
  box-shadow: 0 16px 38px rgba(17, 19, 24, 0.09), 0 3px 10px rgba(17, 19, 24, 0.045);
  transform: translateY(-2px);
}

.app-index-item:focus-visible {
  outline-offset: 4px;
  border-radius: 1.15rem;
}

.app-index-icon {
  width: 100%;
  aspect-ratio: 1;
  align-self: center;
  border-radius: 22.5%;
  box-shadow: 0 14px 32px rgba(17, 19, 24, 0.13), 0 2px 8px rgba(17, 19, 24, 0.08);
  object-fit: cover;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-index-item:hover .app-index-icon {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(17, 19, 24, 0.16), 0 3px 10px rgba(17, 19, 24, 0.09);
}

.app-index-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 0.15rem 0;
}

.app-index-copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.5vw, 2.15rem);
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.app-index-summary {
  max-width: 22em;
  margin: 0.9rem 0 0;
  color: #383d45;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.48;
  letter-spacing: -0.017em;
}

.app-index-meta {
  min-height: 44px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 540;
}

.app-index-platform {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.platform-icon {
  width: 1.08rem;
  height: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.app-index-meta .link-arrow {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--ink);
  stroke-width: 1.45;
  transition: transform 180ms ease;
}

.app-index-item:hover .app-index-meta .link-arrow {
  transform: translateX(4px);
}

.home-hero {
  width: min(calc(100% - (2 * var(--gutter))), var(--max));
  min-height: 710px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(560px, 1.22fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  padding: clamp(4.5rem, 8vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 4;
}

.hero-copy h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(3.75rem, 5.7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.072em;
  font-weight: 740;
}

.hero-copy p {
  max-width: 590px;
  margin: 2rem 0;
  color: #3e434c;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.48;
  letter-spacing: -0.025em;
}

.button {
  width: fit-content;
  max-width: 100%;
  min-height: 52px;
  padding: 0.8rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.58rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--dark {
  color: #ffffff;
  background: var(--dark);
}

.button--dark:hover {
  background: #292d33;
}

.button--accent {
  color: #ffffff;
  background: var(--accent, var(--dark));
}

.button--outline {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.74);
}

.button--outline:hover {
  background: #ffffff;
  color: var(--dark);
}

.link-arrow {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero-stage {
  position: relative;
  min-width: 0;
  height: 560px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 84%;
  height: 76%;
  right: 1%;
  top: 12%;
  background:
    radial-gradient(circle at 22% 28%, rgba(79, 110, 43, 0.18), transparent 55%),
    radial-gradient(circle at 78% 72%, rgba(10, 132, 255, 0.16), transparent 55%),
    #f4f5f7;
  border: 1px solid var(--line);
  border-radius: 2.25rem;
  box-shadow: var(--shadow-window);
}

.hero-phone {
  position: absolute;
  z-index: 2;
  width: 36%;
  overflow: hidden;
  background: #05070a;
  border: 7px solid #121418;
  border-radius: 2.4rem;
  box-shadow: var(--shadow-phone);
}

.hero-phone--1 {
  left: 11%;
  top: 1%;
  transform: rotate(-2.5deg);
}

.hero-phone--2 {
  z-index: 3;
  right: 8%;
  top: 14%;
  transform: rotate(2.5deg);
}

.hero-phone-image {
  width: 100%;
  aspect-ratio: 904 / 1966;
  object-fit: cover;
}

.hero-stage--1 .hero-phone {
  width: 39%;
  left: 30%;
  right: auto;
  top: 5%;
}

.catalog-section {
  width: min(calc(100% - (2 * var(--gutter))), var(--max));
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}

.catalog-section > h2 {
  margin: 0 0 2rem;
  font-size: clamp(2.6rem, 4.3vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.catalog-row {
  min-height: 600px;
  padding: clamp(3.75rem, 7vw, 6.5rem) 0;
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(480px, 1.22fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 8rem);
  border-top: 1px solid var(--line);
}

.catalog-row--reverse .catalog-copy {
  order: 2;
}

.catalog-row--reverse .product-media {
  order: 1;
}

.catalog-copy {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: start;
  gap: 1.6rem;
}

.app-icon {
  width: 108px;
  height: 108px;
  border-radius: 24.5%;
  box-shadow: 0 11px 26px rgba(18, 22, 29, 0.13);
}

.catalog-copy h3 {
  margin: -0.15rem 0 0.7rem;
  font-size: clamp(2.15rem, 3.15vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.catalog-copy > div > p:not(.product-meta) {
  max-width: 440px;
  margin: 0;
  color: #3f444d;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.48;
  letter-spacing: -0.02em;
}

.product-meta {
  margin: 1.25rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 540;
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.15rem;
}

.catalog-site-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 560;
  text-decoration-thickness: 1px;
}

.text-link {
  min-height: 44px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 650;
  text-decoration-color: var(--accent, var(--ink));
  text-decoration-thickness: 2px;
}

.text-link:hover {
  color: var(--accent, var(--ink));
}

.product-media {
  position: relative;
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media-placeholder {
  width: min(420px, 80%);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: color-mix(in srgb, var(--accent) 11%, #f7f7f9);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, #d9dbe1);
  border-radius: 2rem;
}

.product-media-placeholder-icon {
  width: 132px;
  height: 132px;
  border-radius: 24.5%;
  box-shadow: 0 16px 36px rgba(18, 22, 29, 0.16);
}

.product-media-placeholder span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.product-media .device-frame,
.gallery-item .device-frame {
  position: relative;
  overflow: hidden;
}

.product-media--phone .device-frame {
  width: min(320px, 72%);
  padding: 7px;
  background: #111318;
  border-radius: 2.45rem;
  box-shadow: var(--shadow-phone);
  transform: rotate(1.2deg);
}

.catalog-row--reverse .product-media--phone .device-frame {
  transform: rotate(-1.2deg);
}

.product-media--phone .product-screenshot {
  width: 100%;
  border-radius: 2rem;
}

.product-media--mac .device-frame {
  width: min(780px, 100%);
  background: #f3f3f6;
  border: 1px solid #cdd0d8;
  border-radius: 1.15rem;
  box-shadow: var(--shadow-window);
}

.product-media--mac .product-screenshot {
  width: 100%;
}

.studio-section {
  width: min(calc(100% - (2 * var(--gutter))), var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8.5rem) 0 clamp(4.5rem, 8vw, 7.5rem);
  border-top: 1px solid var(--line);
}

.studio-intro {
  max-width: 980px;
}

.studio-intro h2 {
  margin: 0;
  font-size: clamp(3.25rem, 6.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.studio-intro p {
  max-width: 850px;
  margin: 2.2rem 0 0;
  color: #333841;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.principle-rail {
  margin-top: clamp(4rem, 8vw, 7.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.principle-rail article {
  min-height: 180px;
  padding: 2.5rem 2.5rem 2.5rem 0;
}

.principle-rail article + article {
  padding-left: 2.5rem;
  border-left: 1px solid var(--line);
}

.principle-rail h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.principle-rail p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.closing-band {
  min-height: 210px;
  padding: 3rem max(var(--gutter), calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: #ffffff;
  background: var(--dark);
}

.closing-band h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.site-footer {
  width: min(calc(100% - (2 * var(--gutter))), 1324px);
  min-height: 150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2.5rem;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.studio-credit {
  justify-self: end;
  text-align: right;
}

.product-page {
  overflow: hidden;
}

.product-hero {
  width: min(calc(100% - (2 * var(--gutter))), var(--max));
  min-height: 720px;
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(500px, 1.2fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.app-icon--large {
  width: 132px;
  height: 132px;
  margin-bottom: 2rem;
  border-radius: 24.5%;
}

.product-hero-copy h1 {
  margin: 0;
  font-size: clamp(3.8rem, 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.product-tagline {
  margin: 1rem 0 0;
  color: var(--accent);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.product-summary {
  max-width: 570px;
  margin: 1.5rem 0 0;
  color: #3e434c;
  font-size: clamp(1.18rem, 1.65vw, 1.45rem);
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.product-actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.2rem;
}

.coming-soon {
  margin: 0;
  padding: 0.75rem 0;
  color: var(--muted);
  font-weight: 620;
}

.product-media--hero.product-media--phone .device-frame {
  width: min(375px, 72%);
}

.product-media--hero.product-media--mac .device-frame {
  width: min(880px, 100%);
}

.capability-section {
  width: min(calc(100% - (2 * var(--gutter))), var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 9rem) 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(450px, 1.2fr);
  gap: clamp(3rem, 8vw, 10rem);
}

.capability-section h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.capability-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.capability-list li {
  min-height: 76px;
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.capability-list span {
  color: var(--accent);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.capability-list strong {
  font-size: clamp(1.08rem, 1.4vw, 1.3rem);
  line-height: 1.35;
}

.product-gallery {
  width: min(calc(100% - (2 * var(--gutter))), var(--max));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 5rem) 0 clamp(5rem, 9vw, 9rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.gallery-item {
  min-width: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.gallery-item--phone .device-frame {
  width: min(315px, 92%);
  padding: 7px;
  background: #111318;
  border-radius: 2.35rem;
  box-shadow: var(--shadow-phone);
}

.gallery-item--phone .gallery-image {
  border-radius: 1.95rem;
}

.gallery-item--mac {
  grid-column: span 3;
}

.gallery-item--mac .device-frame {
  width: min(1100px, 100%);
  background: #f3f3f6;
  border: 1px solid #cdd0d8;
  border-radius: 1.15rem;
  box-shadow: var(--shadow-window);
}

.privacy-band {
  width: min(calc(100% - (2 * var(--gutter))), var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto;
  align-items: end;
  gap: 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.privacy-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.privacy-band h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.8vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.privacy-band p {
  max-width: 800px;
  margin: 1.25rem 0 0;
  color: #3e434c;
  font-size: clamp(1.12rem, 1.55vw, 1.4rem);
}

.more-section {
  width: min(calc(100% - (2 * var(--gutter))), var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.more-section h2 {
  margin: 0 0 2rem;
  font-size: clamp(2.4rem, 4vw, 4rem);
  letter-spacing: -0.055em;
}

.more-apps {
  border-top: 1px solid var(--line);
}

.more-app,
.directory-row {
  min-height: 116px;
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 1.4rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.more-app img,
.directory-row img {
  width: 76px;
  height: 76px;
  border-radius: 23%;
  box-shadow: 0 7px 18px rgba(18, 22, 29, 0.12);
}

.more-app span,
.directory-row span {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.more-app strong,
.directory-row strong {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.more-app small,
.directory-row small {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.4;
}

.more-app:hover strong,
.directory-row:hover strong {
  color: var(--accent);
}

.directory-page {
  width: min(calc(100% - (2 * var(--gutter))), 1040px);
  min-height: 68vh;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 10rem) 0;
}

.directory-page h1,
.prose-page > h1,
.not-found h1 {
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.directory-intro,
.prose-lead {
  max-width: 760px;
  margin: 2rem 0 clamp(3rem, 6vw, 5rem);
  color: #3e434c;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.5;
  letter-spacing: -0.025em;
}

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

.directory-row {
  grid-template-columns: 84px 1fr auto;
  min-height: 140px;
}

.directory-row img {
  width: 84px;
  height: 84px;
}

.directory-row small {
  max-width: 690px;
}

.prose-page {
  width: min(calc(100% - (2 * var(--gutter))), 820px);
  min-height: 68vh;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.prose-page > h1 {
  margin-bottom: 2rem;
}

.prose-page h2 {
  margin: 3.5rem 0 1rem;
  padding-top: 0.2rem;
  font-size: clamp(1.7rem, 2.7vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.prose-page h3 {
  margin: 2.3rem 0 0.65rem;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose-page p,
.prose-page li {
  color: #373c45;
}

.prose-page p {
  margin: 0.8rem 0;
}

.prose-page ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.35rem;
}

.prose-page li {
  margin: 0.55rem 0;
  padding-left: 0.2rem;
}

.prose-page a:not(.button) {
  font-weight: 600;
}

.not-found {
  width: min(calc(100% - (2 * var(--gutter))), 980px);
  min-height: 68vh;
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 12rem) 0;
}

.error-code {
  margin: 0 0 1rem;
  color: var(--quiet);
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.not-found > p:not(.error-code) {
  max-width: 620px;
  margin: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: 1.25rem;
}

@media (max-width: 1050px) {
  .app-index-item {
    min-height: 250px;
    padding: 1.75rem;
    grid-template-columns: clamp(112px, 13vw, 132px) minmax(0, 1fr);
    gap: 1.6rem;
  }

  .home-hero,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-stage {
    width: min(820px, 100%);
    height: 570px;
    margin: 0 auto;
  }

  .catalog-row,
  .capability-section {
    grid-template-columns: 1fr;
  }

  .catalog-row {
    min-height: auto;
    gap: 4rem;
  }

  .catalog-row .catalog-copy {
    order: 1;
  }

  .catalog-row .product-media {
    order: 2;
  }

  .product-hero {
    min-height: auto;
  }

  .product-media--hero {
    min-height: 540px;
  }

  .privacy-band {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 1rem;
  }

  .site-header,
  .home-hero,
  .catalog-section,
  .studio-section,
  .site-footer,
  .product-hero,
  .capability-section,
  .product-gallery,
  .privacy-band,
  .more-section,
  .directory-page,
  .prose-page,
  .not-found {
    width: auto;
    margin-right: var(--gutter);
    margin-left: var(--gutter);
  }

  .portfolio-home {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 68px;
    padding: 0.35rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .wordmark {
    font-size: 1.3rem;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    font-size: 0.86rem;
  }

  .portfolio-home {
    padding: 4.5rem var(--gutter) 5rem;
  }

  .portfolio-intro h1 {
    font-size: clamp(2.55rem, 12vw, 3.15rem);
  }

  .portfolio-intro p {
    max-width: 22rem;
    margin-right: auto;
    margin-left: auto;
    margin-top: 1.2rem;
    font-size: 1.12rem;
  }

  .app-index {
    margin-top: 3.25rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .app-index-item {
    min-height: 190px;
    padding: 1.25rem;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 1.25rem;
    border-radius: 1rem;
  }

  .app-index-copy h2 {
    font-size: 1.8rem;
  }

  .app-index-summary {
    margin-top: 0.65rem;
    font-size: 1rem;
    line-height: 1.4;
  }

  .app-index-meta {
    min-height: 32px;
    margin-top: 0.7rem;
  }

  .home-hero {
    padding-top: 4.2rem;
  }

  .home-hero > *,
  .hero-copy {
    min-width: 0;
  }

  .button {
    width: auto;
    white-space: normal;
  }

  .hero-copy h1 {
    font-size: clamp(3.15rem, 15vw, 4.8rem);
  }

  .hero-copy p {
    font-size: 1.16rem;
  }

  .hero-stage {
    height: 455px;
  }

  .hero-stage::before {
    width: 94%;
    height: 72%;
    top: 15%;
    right: 3%;
  }

  .hero-phone {
    width: 39%;
    border-width: 5px;
    border-radius: 1.7rem;
  }

  .hero-phone--1 {
    left: 7%;
  }

  .hero-phone--2 {
    right: 6%;
    top: 20%;
  }

  .catalog-section {
    padding-top: 4.5rem;
  }

  .catalog-row {
    padding: 4rem 0;
  }

  .catalog-copy {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 1rem;
  }

  .app-icon {
    width: 78px;
    height: 78px;
  }

  .catalog-copy h3 {
    font-size: 2.15rem;
  }

  .product-media--phone .device-frame {
    width: min(300px, 78%);
  }

  .product-media--mac .device-frame {
    width: 100%;
  }

  .studio-intro h2 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .studio-intro p {
    font-size: 1.26rem;
  }

  .principle-rail {
    grid-template-columns: 1fr;
  }

  .principle-rail article,
  .principle-rail article + article {
    min-height: 0;
    padding: 1.75rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .closing-band {
    padding-top: 3rem;
    padding-bottom: 3rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    padding: 2.5rem 0;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .studio-credit {
    justify-self: start;
    text-align: left;
  }

  .site-footer nav {
    margin-left: -0.7rem;
    flex-wrap: wrap;
  }

  .product-hero {
    padding-top: 4.5rem;
  }

  .app-icon--large {
    width: 104px;
    height: 104px;
  }

  .product-hero-copy h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
  }

  .product-media--hero {
    min-height: 440px;
  }

  .product-media--hero.product-media--phone .device-frame {
    width: min(315px, 82%);
  }

  .capability-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    gap: 2.5rem;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item--mac {
    grid-column: auto;
  }

  .gallery-item--phone .device-frame {
    width: min(300px, 78%);
  }

  .privacy-band {
    gap: 1.5rem;
  }

  .more-app,
  .directory-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 1rem;
  }

  .more-app img,
  .directory-row img {
    width: 64px;
    height: 64px;
  }

  .directory-page h1,
  .prose-page > h1,
  .not-found h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }
}

@media (max-width: 390px) {
  .site-nav a {
    padding-right: 0.35rem;
    padding-left: 0.35rem;
    font-size: 0.8rem;
  }

  .app-index-item {
    min-height: 176px;
    padding: 1.1rem;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 1.05rem;
  }

  .app-index-copy h2 {
    font-size: 1.65rem;
  }

  .app-index-summary {
    font-size: 0.94rem;
  }

  .app-index-meta {
    font-size: 0.84rem;
  }

  .hero-stage {
    height: 390px;
  }

  .catalog-copy {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .app-icon {
    width: 64px;
    height: 64px;
  }

  .catalog-copy h3 {
    font-size: 1.9rem;
  }

  .more-app,
  .directory-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }

  .more-app img,
  .directory-row img {
    width: 56px;
    height: 56px;
  }
}

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

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