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

:root {
  color-scheme: light;
  --bg: hsl(20, 14%, 96%);
  --fg: hsl(15, 67%, 10%);
  --muted: hsl(15, 30%, 40%);
  --muted-bg: hsl(20, 10%, 90%);
  --border: hsl(20, 10%, 85%);
  --accent: hsl(358, 82%, 49%);
  --surface: hsl(20 20% 99% / 0.72);
  --surface-subtle: hsl(20 18% 99% / 0.4);
  --surface-hover: hsl(20, 11%, 90%);
  --surface-strong: hsl(20 20% 99% / 0.88);
  --status-development: hsl(32, 40%, 88%);
  --radius-row: 0.75rem;
  --radius-panel: 1rem;
  --radius-media: 1.25rem;
  --radius-pill: 999px;
  --page-gutter: 0.75rem;
  --compact-page-gutter: 0.5rem;
}

@media (min-width: 768px) {
  :root {
    --page-gutter: 1.5rem;
  }
}

html[data-theme='dark'] {
  color-scheme: dark;
  --bg: hsl(18, 22%, 10%);
  --fg: hsl(28, 31%, 94%);
  --muted: hsl(27, 16%, 72%);
  --muted-bg: hsl(18, 18%, 17%);
  --border: hsl(20, 14%, 30%);
  --surface: hsl(18 19% 16% / 0.94);
  --surface-subtle: hsl(18 18% 15% / 0.82);
  --surface-hover: hsl(18, 17%, 22%);
  --surface-strong: hsl(18 20% 21% / 0.96);
  --status-development: hsl(31, 21%, 28%);
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.external-link-icon {
  display: inline-block;
  margin-left: 0.28em;
  font-size: 0.8em;
  line-height: 1;
  vertical-align: 0.12em;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ── Layout ── */
.px {
  padding-inline: var(--page-gutter);
}

/* ── Header ── */
header {
  padding: 1.5rem var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}

.logo {
  display: inline-flex;
}

.brand-logo-image {
  display: block;
}

header .logo .brand-logo-image {
  width: clamp(11rem, 18vw, 14.15rem);
  height: auto;
}

html[data-theme='dark'] .brand-logo-image,
html[data-theme='dark'] .footer-peek-mark img {
  filter: brightness(0) invert(93%) sepia(13%) saturate(313%) hue-rotate(344deg) brightness(101%) contrast(89%);
}

nav.desktop {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

@media (min-width: 768px) {
  nav.desktop {
    display: flex;
  }
}

nav a {
  font-size: 0.875rem;
  color: var(--fg);
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--fg);
  font-weight: 600;
}

.desktop-nav-group {
  position: relative;
  display: flex;
  align-items: center;
  margin: -0.35rem -0.45rem;
  padding: 0.35rem 0.45rem;
}

.desktop-submenu-trigger {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-left: 0;
  place-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.desktop-submenu-trigger:hover,
.desktop-nav-group.is-open .desktop-submenu-trigger {
  background: var(--muted-bg);
  color: var(--fg);
}

.desktop-nav-group.is-open .desktop-submenu-trigger svg {
  transform: rotate(180deg);
}

.desktop-submenu-trigger svg {
  transition: transform 180ms ease;
}

.desktop-submenu-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: -0.7rem;
  z-index: 1;
  width: min(20.5rem, calc(100vw - 6rem));
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface-strong);
  box-shadow: 0 18px 42px rgba(49, 24, 15, 0.12);
}

.desktop-submenu-panel::before {
  position: absolute;
  top: -1rem;
  right: -1rem;
  left: -1rem;
  height: 1rem;
  content: "";
}

.desktop-submenu-panel-apps {
  width: min(42rem, calc(100vw - 6rem));
  padding: 1rem;
  border-radius: var(--radius-media);
}

.desktop-submenu-eyebrow {
  margin: 0.25rem 0.45rem 0.65rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.desktop-work-submenu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
}

.desktop-work-submenu-list a,
.desktop-submenu-empty,
.desktop-app-submenu-item,
.desktop-submenu-footer-link {
  border-radius: var(--radius-row);
  transition: background-color 180ms ease, color 180ms ease;
}

.desktop-work-submenu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 0.75rem;
  color: var(--fg);
  font-size: 0.8125rem;
  font-weight: 500;
}

.desktop-work-submenu-list a:first-child {
  grid-column: 1 / -1;
}

.desktop-work-submenu-list a:hover,
.desktop-submenu-empty:hover,
.desktop-app-submenu-item:hover,
.desktop-submenu-footer-link:hover {
  background: var(--muted-bg);
  color: var(--fg);
}

.desktop-work-submenu-list a span,
.desktop-submenu-footer-link span,
.desktop-submenu-arrow {
  transition: transform 180ms ease;
}

.desktop-work-submenu-list a:hover span,
.desktop-submenu-footer-link:hover span,
.desktop-submenu-empty:hover .desktop-submenu-arrow {
  transform: translateX(3px);
}

.desktop-submenu-empty {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: 7rem;
  padding: 1.1rem;
}

.desktop-submenu-empty-content {
  min-width: 0;
  flex: 1;
}

.desktop-submenu-empty-title,
.desktop-app-submenu-name {
  display: block;
  color: var(--fg);
  font-size: 1rem;
  font-weight: 600;
}

.desktop-submenu-empty-copy,
.desktop-app-submenu-tagline {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.desktop-submenu-arrow {
  color: var(--muted);
}

.desktop-submenu-empty .desktop-submenu-arrow {
  flex: 0 0 auto;
  margin-left: auto;
}

.desktop-app-submenu-empty-mark {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 1rem;
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 8px 18px rgba(49, 24, 15, 0.16);
}

.desktop-app-submenu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
}

.desktop-app-submenu-item {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  min-height: 4.75rem;
  min-width: 0;
  padding: 0.75rem;
}

.desktop-app-submenu-item img,
.desktop-app-submenu-mark {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  object-fit: cover;
}

.desktop-app-submenu-item img {
  border-radius: 0;
}

.desktop-app-submenu-mark {
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--muted-bg);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.desktop-app-submenu-copy {
  min-width: 0;
  flex: 1;
}

.desktop-app-submenu-tagline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-app-submenu-item .native-app-status {
  flex: 0 0 auto;
  min-height: 1.4rem;
  padding: 0.25rem 0.45rem;
  font-size: 0.62rem;
}

.desktop-submenu-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  margin-top: 0.75rem;
  padding: 1rem 0.75rem 0.25rem;
  border-top: 1px solid var(--border);
  color: var(--fg);
  font-size: 1rem;
  font-weight: 600;
}

.desktop-nav-group > a:focus-visible,
.desktop-submenu-trigger:focus-visible,
.desktop-submenu-panel a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.hamburger {
  display: flex;
  background: none;
  border: none;
  padding: 0;
  color: var(--fg);
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

nav.mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

nav.mobile.open {
  display: flex;
}

nav.mobile a {
  font-size: 0.875rem;
}

@media (max-width: 767px) {
  .hamburger {
    width: 2.75rem;
    height: 2.75rem;
    margin: -0.625rem;
    align-items: center;
    justify-content: center;
  }

  nav.mobile a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
  }
}

/* ── Hero ── */
.hero {
  padding: 2rem var(--page-gutter) 4rem;
  max-width: 48rem;
}

@media (min-width: 768px) {
  .hero {
    margin-inline: auto;
    text-align: center;
  }
}

.hero h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.hero .cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.hero .cta:hover {
  color: var(--muted);
  border-color: var(--muted);
}

/* ── Project Grid ── */
.filters {
  padding: 0 var(--page-gutter) 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filters .label {
  font-size: 0.875rem;
  font-weight: 500;
}

.filter-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
}

.filter-btn {
  font-size: 0.875rem;
  background: none;
  border: none;
  border-radius: var(--radius-pill);
  color: var(--fg);
  transition: background-color 180ms ease, color 180ms ease;
  padding: 0.5rem 0.75rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
}

@media (max-width: 767px) {
  .filter-btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
}

.filter-btn:focus-visible,
.footer-links-column a:focus-visible,
.project-card:focus-visible,
.project-button:focus-visible,
.document-section a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .filters {
    display: flex;
    justify-content: center;
  }

  .filter-btns {
    justify-content: center;
    border-radius: var(--radius-panel);
  }
}

.grid-section {
  padding: 0 var(--page-gutter) 4rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 1.25rem;
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project-card {
  display: block;
}

.project-card .thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0;
  background: var(--muted-bg);
}

.project-card-protected .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}

.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.project-card:hover .thumb img {
  transform: scale(1.02);
}

.project-card .info {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.project-card .info strong {
  font-weight: 600;
}

.grid-section--home .project-grid {
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .grid-section--home .project-card {
    aspect-ratio: 1;
  }

  .grid-section--home .project-card .thumb {
    height: 100%;
    aspect-ratio: auto;
  }

  .grid-section--home .project-card--mosaic {
    grid-row: span 2;
  }

  .grid-section--home .project-card--mosaic-left {
    grid-column: 1 / span 2;
  }

  .grid-section--home .project-card--mosaic-right {
    grid-column: 3 / span 2;
  }
}

.project-lock-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--fg);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.load-more {
  padding: 0.875rem;
  text-align: center;
  background: var(--bg);

}

.load-more button {
  font-size: 0.875rem;
  background: none;
  border: none;
  color: var(--fg);
  transition: color 0.3s;
}

.load-more button:hover {
  color: var(--muted);
}

@media (max-width: 767px) {
  .hero .cta,
  .load-more button {
    min-height: 2.75rem;
  }

  .hero .cta {
    display: inline-flex;
    align-items: center;
  }

  .load-more button {
    min-width: 2.75rem;
    padding: 0 0.75rem;
  }
}

/* ── Footer ── */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: clamp(4rem, 8vw, 7rem) var(--page-gutter) clamp(8rem, 13vw, 12rem);
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 72rem);
  margin: 0 auto;
}

.footer-layout {
  display: grid;
  gap: 2.5rem 1.5rem;
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  max-width: 21rem;
}

.footer-brand-logo {
  display: block;
  width: min(100%, 17rem);
}

.footer-brand-logo .brand-logo-image {
  width: 100%;
  height: auto;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.theme-switcher {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
}

.theme-switcher-option {
  position: relative;
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: var(--muted);
  cursor: pointer;
}

.theme-switcher-option input {
  position: absolute;
  inset: 0;
  appearance: none;
  cursor: pointer;
}

.theme-switcher-icon {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 50%;
  transition: background-color 180ms ease, color 180ms ease;
}

.theme-switcher-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.theme-switcher-option input:checked + .theme-switcher-icon {
  background: var(--fg);
  color: var(--bg);
}

.theme-switcher-option input:focus-visible + .theme-switcher-icon {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.footer-links-column h2 {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links-column ul {
  display: grid;
  gap: 0.1rem;
  list-style: none;
}

.footer-links-column a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2rem;
  padding: 0.2rem 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: color 180ms ease;
}

.footer-links-column a:hover,
.footer-bottom a:hover {
  color: var(--fg);
}

.footer-bottom {
  display: grid;
  gap: 0.85rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.footer-bottom p:last-child {
  color: var(--muted);
}

.footer-bottom a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 180ms ease;
}

.footer-peek-mark {
  position: absolute;
  z-index: 0;
  bottom: clamp(-6.5rem, -5vw, -4rem);
  left: 50%;
  width: max(68rem, 110vw);
  aspect-ratio: 1824 / 240;
  overflow: hidden;
  opacity: 0.065;
  pointer-events: none;
  transform: translateX(-50%);
}

.footer-peek-mark img {
  position: absolute;
  top: 0;
  left: -16.45%;
  display: block;
  width: 120%;
  max-width: none;
  height: auto;
}

@media (min-width: 640px) {
  .site-footer {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .footer-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
  }

  .footer-bottom p:last-child {
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .footer-layout {
    grid-template-columns: minmax(16rem, 1.6fr) repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 639px) {
  .footer-links-column a {
    min-height: 2.75rem;
  }

  .footer-bottom {
    margin-top: 3rem;
    text-align: left;
  }

  .footer-peek-mark {
    bottom: -2.6rem;
    width: 245vw;
  }
}

/* ── Page sections ── */
.page-hero {
  padding: 2rem var(--page-gutter) 3rem;
  max-width: 48rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 2rem var(--page-gutter) 3rem;
  }
}

.page-hero h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.2;
}

/* ── Native Apple apps ── */
.native-apps-heading {
  width: min(100%, 66rem);
  padding-bottom: clamp(2.5rem, 7vw, 6rem);
}

.native-apps-eyebrow {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
}

.native-apps-heading .native-apps-eyebrow {
  margin-bottom: 1rem;
}

.native-apps-heading h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 7vw, 6rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.native-apps-heading > p:last-child {
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.5;
}

.native-app-catalog,
.native-app-empty,
.native-app-detail {
  width: min(calc(100% - (var(--page-gutter) * 2)), 88rem);
  margin: 0 auto;
}

.native-app-catalog {
  display: grid;
  gap: 1.25rem;
  padding-bottom: clamp(5rem, 12vw, 11rem);
}

.native-app-card {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  min-height: 22rem;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--muted-bg);
  transition: background-color 220ms ease, transform 220ms ease;
}

.native-app-card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.native-app-card:focus-visible,
.native-app-action:focus-visible,
.native-app-section-nav a:focus-visible,
.native-app-breadcrumb a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

.native-app-card-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 3.75rem);
}

.native-app-card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.native-app-category {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.native-app-status,
.native-app-platforms li {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.75rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  line-height: 1;
}

.native-app-status-released {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.native-app-status-in-development {
  background: var(--status-development);
}

.native-app-status-concept {
  background: transparent;
}

.native-app-card h2 {
  margin: auto 0 0.75rem;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.native-app-tagline {
  max-width: 32rem;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.35;
}

.native-app-summary {
  max-width: 32rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.native-app-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
  list-style: none;
}

.native-app-platforms li {
  min-height: 1.6rem;
  padding: 0.3rem 0.55rem;
  background: var(--surface);
  font-size: 0.7rem;
}

.native-app-card-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.native-app-card-link span {
  transition: transform 180ms ease;
}

.native-app-card:hover .native-app-card-link span {
  transform: translateX(4px);
}

.native-app-card-art {
  display: grid;
  min-height: 20rem;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #e9e2db, #d9cec4);
}

.native-app-art-label {
  color: rgba(49, 24, 15, 0.35);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.07em;
}

.native-app-media {
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: var(--native-media-ratio, 16 / 10);
  background: var(--muted-bg);
}

.native-app-media img,
.native-app-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.native-app-card-image {
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 0;
}

.native-app-card-image img {
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.native-app-card:hover .native-app-card-image img {
  transform: scale(1.025);
}

.native-app-empty {
  display: grid;
  grid-template-columns: minmax(5rem, 0.22fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  min-height: 18rem;
  margin-bottom: clamp(5rem, 12vw, 11rem);
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-media);
  background: var(--surface-subtle);
}

.native-app-empty-mark {
  display: grid;
  width: clamp(4.5rem, 10vw, 8rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-media);
  color: var(--muted);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.1em;
}

.native-app-empty .native-apps-eyebrow {
  margin-bottom: 0.75rem;
}

.native-app-empty h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.native-app-empty p:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.native-app-detail {
  padding-bottom: clamp(5rem, 12vw, 10rem);
}

.native-app-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.native-app-breadcrumb a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.native-app-hero {
  display: grid;
  grid-template-columns: minmax(18rem, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 3rem) 0 clamp(4rem, 9vw, 8rem);
}

.native-app-hero-copy > .native-app-card-topline {
  margin-bottom: 1.5rem;
}

.native-app-icon {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0;
  object-fit: cover;
}

.native-app-hero h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.5rem, 6.5vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.native-app-hero .native-app-tagline {
  margin-bottom: 1rem;
}

.native-app-intro {
  display: grid;
  gap: 0.75rem;
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.native-app-hero-media {
  min-width: 0;
  background: transparent;
}

.native-app-hero-media img,
.native-app-hero-media video {
  object-fit: contain;
}

.native-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.native-app-action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid var(--fg);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease;
}

.native-app-action.is-primary,
.native-app-action:hover {
  background: var(--fg);
  color: var(--bg);
}

.native-app-action.is-primary:hover {
  background: transparent;
  color: var(--fg);
}

.native-app-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.5rem;
  margin-top: 2rem;
}

.native-app-facts div {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.native-app-facts dt {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.native-app-facts dd {
  font-size: 0.875rem;
  line-height: 1.4;
}

.native-app-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.native-app-section-nav a {
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.native-app-features,
.native-app-gallery,
.native-app-pricing,
.native-app-faq,
.native-app-related,
.native-app-closing {
  margin-top: clamp(4rem, 9vw, 8rem);
}

.native-app-section-heading {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.native-app-section-heading .native-apps-eyebrow {
  margin-bottom: 0.75rem;
}

.native-app-section-heading h2,
.native-app-pricing h2,
.native-app-closing h2 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1;
}

.native-app-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--border);
}

.native-app-feature.is-reversed .native-app-feature-copy {
  order: 2;
}

.native-app-feature-copy h3 {
  margin: 0.6rem 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.native-app-feature-copy > p:last-child {
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.6;
}

.native-app-feature > .native-app-media {
  min-width: 0;
  background: transparent;
}

.native-app-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.native-app-gallery figure {
  min-width: 0;
}

.native-app-gallery figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.native-app-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.75fr);
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-media);
  background: var(--muted-bg);
}

.native-app-pricing .native-apps-eyebrow {
  margin-bottom: 0.75rem;
}

.native-app-pricing-copy {
  align-self: center;
  line-height: 1.5;
}

.native-app-price {
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.native-app-pricing-note {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.native-app-faq-list details {
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-row);
  background: var(--surface-subtle);
}

.native-app-faq-list summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
}

.native-app-faq-list details p {
  max-width: 48rem;
  padding: 0.8rem 2rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.native-app-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.native-app-related-grid .native-app-card {
  grid-template-columns: 1fr;
}

.native-app-related-grid .native-app-card-art {
  grid-row: 1;
  min-height: 14rem;
}

.native-app-related-grid .native-app-card-copy {
  min-height: 16rem;
}

.native-app-closing {
  padding-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}

@media (max-width: 700px) {
  .native-app-catalog,
  .native-app-empty,
  .native-app-detail {
    width: min(calc(100% - (var(--compact-page-gutter) * 2)), 88rem);
  }

  .native-app-card,
  .native-app-hero,
  .native-app-feature,
  .native-app-pricing {
    grid-template-columns: 1fr;
  }

  .native-app-card-copy {
    min-height: 19rem;
  }

  .native-app-card-art {
    min-height: 16rem;
  }

  .native-app-empty {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .native-app-hero {
    gap: 2rem;
  }

  .native-app-hero-media {
    grid-row: 1;
  }

  .native-app-feature.is-reversed .native-app-feature-copy {
    order: initial;
  }

  .native-app-feature > .native-app-media {
    grid-row: 1;
  }

  .native-app-gallery,
  .native-app-related-grid {
    grid-template-columns: 1fr;
  }

  .native-app-related-grid .native-app-card {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-submenu-trigger,
  .desktop-submenu-trigger svg,
  .desktop-work-submenu-list a,
  .desktop-submenu-empty,
  .desktop-app-submenu-item,
  .desktop-submenu-footer-link,
  .native-app-card,
  .native-app-card-link span,
  .native-app-card-image img,
  .native-app-action {
    transition: none;
  }

  .native-app-card:hover,
  .native-app-card:hover .native-app-card-image img {
    transform: none;
  }
}

/* ── Legal and directory pages ── */
.document-page {
  padding-bottom: 2rem;
}

.document-heading {
  max-width: 58rem;
  padding-bottom: 2rem;
}

.document-heading .document-eyebrow {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.document-heading h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.055em;
}

.document-heading > p:last-child {
  max-width: 42rem;
  color: var(--muted);
}

.document-updated {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-content,
.sitemap-content {
  width: min(calc(100% - (var(--page-gutter) * 2)), 58rem);
  margin: 0 auto;
}

.document-section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 0.75rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface-subtle);
}

.document-section-number {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.document-section-copy {
  min-width: 0;
}

.document-section h2,
.sitemap-group h2 {
  font-size: 1rem;
  font-weight: 600;
}

.document-section p {
  margin-top: 0.55rem;
  color: var(--fg);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.document-section a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.sitemap-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 4rem;
}

.sitemap-group {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.sitemap-group h2 {
  margin-bottom: 1rem;
}

.sitemap-list {
  list-style: none;
}

.sitemap-list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
}

.sitemap-list li:first-child {
  border-top: 0;
}

.sitemap-list a {
  font-size: 0.9375rem;
  font-weight: 500;
}

.sitemap-list a:hover {
  color: var(--muted);
}

.sitemap-list li span,
.sitemap-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.sitemap-note {
  padding-top: 0.75rem;
}

.sitemap-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
}

@media (max-width: 640px) {
  .document-section {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .sitemap-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* About */
.studio-photos {
  padding: 0 var(--page-gutter) 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .studio-photos {
    padding: 0 var(--page-gutter) 3rem;
    grid-template-columns: repeat(3, 1fr);
  }
}

.studio-photos img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

@media (min-width: 768px) {
  .studio-photos img {
    height: 14rem;
  }
}

.about-text {
  padding: 0 var(--page-gutter) 4rem;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .about-text {
    padding: 0 var(--page-gutter) 4rem;
  }
}

.about-text p {
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--fg);
}

.leadership {
  padding: 0 var(--page-gutter) 4rem;
}

@media (min-width: 768px) {
  .leadership {
    padding: 0 var(--page-gutter) 4rem;
  }
}

.leadership h2 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .leaders-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.leader img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.leader p {
  font-size: 0.875rem;
  font-weight: 600;
}

.leader button {
  font-size: 0.875rem;
  color: var(--muted);
  background: none;
  border: none;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s;
}

.leader button:hover {
  color: var(--fg);
}

/* Contact */
.contact-grid {
  padding: 3rem var(--page-gutter) 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    padding: 5rem var(--page-gutter);
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.contact-block .bold {
  font-weight: 600;
}

.contact-block a {
  color: var(--fg);
  transition: color 0.2s;
}

.contact-block a:hover {
  color: var(--fg);
}

.contact-block span {
  color: var(--fg);
}

.contact-art img {
  width: 100%;
  height: auto;
}

/* Project Detail */
.project-detail {
  padding-bottom: 0rem;
}

.project-detail-locked {
  padding-bottom: 4rem;
}

.project-title {
  padding: 0 var(--page-gutter) 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .project-title {
    padding: 0 var(--page-gutter) 2rem;
  }
}

.project-title h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
}

.project-eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-lock-panel {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem;
  border: 2px solid var(--fg);
  border-radius: var(--radius-media);
  background: var(--surface-strong);
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .project-lock-panel {
    padding: 2rem;
  }
}

.project-lock-copy {
  display: grid;
  gap: 0.75rem;
}

.project-lock-copy p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fg);
}

.project-request-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.project-img {
  padding: 0 var(--page-gutter) 2rem;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .project-img {
    padding: 0 var(--page-gutter) 2rem;
  }
}

.project-feature-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .project-feature-image {}
}

.project-feature-image .project-img {
  padding: 0;
  margin-bottom: 0rem;
}

.image-caption {
  max-width: 48rem;
  width: 100%;
  text-align: center;
  padding: .875rem;
}

.image-caption p {
  font-size: clamp(0.67rem, 2vw, 0.67rem);
  font-weight: 300;
  margin: 0;
}

.project-img picture {
  display: block;
  max-width: 56rem;
  width: 100%;
}

.project-img img {
  max-width: 56rem;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.project-desc {
  padding: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .project-desc {
    padding: 2rem;
  }
}

.project-desc p {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--fg);
}

.project-desc .label {
  font-size: 0.67rem;
  color: var(--fg);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.project-button-wrapper {
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 48rem;
}

@media (min-width: 768px) {
  .project-button-wrapper {
    padding: 4rem;
  }
}

.project-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 2px solid var(--fg);
  border-radius: var(--radius-pill);
  background-color: var(--fg);
  color: var(--bg);
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

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

.project-embed-wrapper {
  padding: 4rem;
  max-width: 56rem;
  width: 100%;
  margin: 0 auto;
}

.project-embed-wrapper iframe {
  display: block;
  border-radius: 0;
}

@media (min-width: 768px) {
  .project-embed-wrapper {
    padding: 4rem;
  }
}

.project-quote {
  padding: 4rem var(--page-gutter);
  margin: 0 0 3rem 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .project-quote {
    padding: 6rem var(--page-gutter);
  }
}

.project-quote blockquote {
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-weight: 300;
  line-height: 1.4;
  max-width: 48rem;
  margin: 0;
  width: 100%;
}

.project-quote cite {
  display: block;
  margin-top: 2rem;
  font-size: 0.875rem;
  font-style: normal;
  opacity: 0.9;
  max-width: 48rem;
  width: 100%;
}

.project-meta {
  padding: 3rem var(--page-gutter);
  font-size: 0.875rem;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-meta-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-next-project {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  color: var(--fg);
  font-weight: 600;
  transition: background-color 180ms ease, transform 180ms ease;
}

.project-next-project:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateX(0.2rem);
}

.project-next-project:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.project-next-project-arrow {
  font-size: 1rem;
  transition: transform 180ms ease;
}

.project-next-project:hover .project-next-project-arrow {
  transform: translateX(0.15rem);
}

@media (min-width: 640px) {
  .project-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 1.5rem;
  }

  .project-next-project {
    flex: 0 0 auto;
  }
}

/* 404 */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--muted-bg);
}

.not-found h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.not-found p {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.not-found a {
  color: var(--accent);
  text-decoration: underline;
}

/* Scroll to top */
#scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scroll-top:hover {
  opacity: 0.85;
}

@media (max-width: 767px) {
  #scroll-top {
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* Hidden utility */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Scroll fade animation ── */
.scroll-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-fade.hidden-below {
  opacity: 0;
  transform: translateY(24px);
}
