@font-face {
  font-family: Manrope;
  src: url("/assets/work/manrope-latin.a30ddcd349703aff.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #252b22;
  --paper: #f4f3ed;
  --muted: #62695c;
  --line: #cdd2c5;
  --sage: #e2e7d9;
  --button-hover: #45523b;
  --field-bg: #fafaf6;
  --field-stroke: #b9c1b0;
  --accent: #657b51;
  --field-focus: var(--accent);
  --error: #9c3524;
  --success: #365b2c;
  --selection: #d9ee92;
  --page-ending-bg: var(--paper);
  --gutter: clamp(20px, 5vw, 80px);
  --section-space: clamp(64px, 8vw, 120px);
  --header-base-height: 96px;
  --header-height: var(--header-base-height);
  /* Keep section geometry stable while mobile browser controls retract. */
  --viewport-height: 100svh;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 540ms;
  --radius: 14px;
  --project-bg: #000000;
  --project-ink: #f4f2e9;
  --header-bg: var(--paper);
  --header-ink: var(--ink);
  font-family: Manrope, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  scrollbar-gutter: stable;
}
html[data-early-project-scroll] {
  overflow-anchor: none;
}
/* Wait for the compact header's final layout before allowing an initial snap.
   Keep tall sections in document flow so all their content stays reachable. */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-project-scroll-correction]):has(
      body[data-page="home"] .site-header[data-menu-ready]
    ) {
    scroll-snap-type: y proximity;
  }
  body[data-page="home"] :is(.agency-intro, .showcase, .studio-section) {
    scroll-snap-align: start;
  }
  body[data-page="home"] .site-footer {
    scroll-snap-align: end;
  }
}
body {
  margin: 0;
  min-width: 0;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: #7a8271 var(--paper);
}
body[data-page="home"] {
  --page-ending-bg: var(--sage);
}
.header-surface.is-over-showcase {
  --header-bg: var(--project-bg);
  --header-ink: var(--project-ink);
}
.header-surface.is-over-studio {
  --header-bg: var(--sage);
  --header-ink: var(--ink);
}
[data-project="futuwwa"] {
  --project-bg: #000000;
  --project-ink: #f4f2e9;
  --project-light: #e3e7d6;
}
[data-project="rawdah"] {
  --project-bg: #163c4c;
  --project-ink: #f3eee0;
  --project-light: #dae8e9;
  --rawdah-pattern-width: calc(790px / 2.4);
  --rawdah-pattern-height: calc(547px / 2.4);
}
[data-project="mosquehub"] {
  --project-bg: #e9ba48;
  --project-ink: #25291e;
  --project-light: #f4e7bf;
}
[data-project="pharmafly"] {
  --project-bg: #c8bdee;
  --project-ink: #24204c;
  --project-light: #eae4f6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
}
button,
input,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  image-rendering: auto;
}
p,
h1,
h2,
h3,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 550;
  text-wrap: balance;
}
h1 {
  font-size: clamp(52px, 6.6vw, 96px);
}
h2 {
  font-size: clamp(40px, 5vw, 72px);
}
h3 {
  font-size: 24px;
  font-weight: 650;
}
/* Shared type roles for studio pages and case-study sections. */
.page-title {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 500;
}
.section-title {
  font-size: clamp(38px, 4.4vw, 64px);
}
.text-lead {
  font-size: 24px;
  line-height: 1.5;
}
@media (max-width: 820px) {
  .text-lead {
    font-size: 22px;
  }
}
@media (max-width: 620px) {
  .page-title {
    font-size: clamp(32px, 9.9vw, 44px);
  }
  .section-title {
    font-size: 40px;
  }
  .text-lead {
    font-size: 19px;
    line-height: 1.55;
  }
}
::selection {
  background: var(--selection);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.sr-only,
.form-status[data-state="pending"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.container {
  width: min(1376px, calc(100% - var(--gutter) - var(--gutter)));
  margin-inline: auto;
}
.section {
  padding-block: var(--section-space);
}
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 12px 20px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 7px;
}
.skip-link:focus {
  transform: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition:
    background 220ms,
    color 220ms,
    border-color 220ms;
  text-align: center;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.button--outline {
  background: transparent;
  border-color: currentColor;
}
.button--outline:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.button--text:is(:hover, :active) {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.button--solid {
  background: var(--ink);
  color: var(--paper);
}
.button--solid:hover {
  background: var(--button-hover);
  border-color: var(--button-hover);
}
.button:disabled {
  background: #e3e6de;
  color: #5e6856;
  border-color: transparent;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  transition: background 200ms;
}
.icon-button:hover {
  background: var(--sage);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  color: var(--header-ink);
}
.header-surface {
  --header-bg: var(--paper);
  --header-ink: var(--ink);
  background: var(--header-bg);
  color: var(--header-ink);
}
.header-surface .header-contact {
  transition: none;
}
.header-incoming {
  position: absolute;
  inset: 0;
  isolation: isolate;
  pointer-events: none;
  clip-path: inset(var(--header-boundary, 100%) 0 0);
}
.site-header:has(> .header-inner .header-contact:hover) .header-contact {
  background: var(--header-ink);
  color: var(--header-bg);
  border-color: var(--header-ink);
}
.site-header:has(> .header-inner .brand:focus-visible) .header-incoming .brand,
.site-header:has(> .header-inner .header-services:focus-visible)
  .header-incoming
  .header-services,
.site-header:has(> .header-inner .header-contact:focus-visible)
  .header-incoming
  .header-contact {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
.header-inner {
  min-height: var(--header-base-height);
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
}
.header-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  max-width: 100%;
}
.menu-toggle,
.menu-icon-close {
  display: none;
}
.menu-toggle:hover {
  background: transparent;
}
.site-header[data-menu-open] {
  --header-bg: var(--paper);
  --header-ink: var(--ink);
}
.site-header[data-menu-open] .header-incoming,
.site-header[data-menu-open] .menu-icon-open {
  display: none;
}
.site-header[data-menu-open] .menu-icon-close {
  display: block;
}
.site-header[data-menu-open] .menu-toggle {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
body.menu-open {
  overflow: hidden;
}
@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .site-header:not([data-menu-ready]) .header-navigation {
    flex-basis: 100%;
    justify-content: flex-start;
    padding-bottom: 16px;
  }
  .site-header[data-menu-ready] .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    flex-shrink: 0;
  }
  .site-header[data-menu-ready] .header-navigation {
    display: none;
  }
  .site-header[data-menu-open] .header-navigation {
    display: flex;
    position: fixed;
    inset: var(--header-height) 0 0;
    max-width: none;
    margin: 0;
    padding: 24px var(--gutter) max(32px, env(safe-area-inset-bottom));
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    background: var(--paper);
    color: var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-header[data-menu-open] .header-services {
    justify-content: flex-start;
    text-align: left;
  }
  .site-header[data-menu-open] .header-navigation a {
    text-decoration: none;
  }
  .site-header[data-menu-open] .header-services:active {
    background: var(--sage);
  }
}
@media (hover: hover) and (pointer: fine) {
  .menu-toggle:hover {
    background: var(--sage);
  }
  .site-header[data-menu-open] .header-services:hover {
    background: var(--sage);
  }
}
.brand {
  --brand-width: 176px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}
.brand-now {
  fill: var(--accent);
}
.brand-wordmark {
  display: block;
  width: var(--brand-width);
  height: auto;
  flex-shrink: 0;
}
.header-contact {
  flex-shrink: 0;
}
.agency-intro {
  position: relative;
  isolation: isolate;
  /* The 44px playback target and its 12px inset need their own clear space. */
  padding-block: clamp(56px, 6vw, 88px) 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(var(--viewport-height) - var(--header-height));
  min-height: calc(var(--hero-viewport-height, 100dvh) - var(--header-height));
  color: var(--ink);
}
.agency-content {
  position: relative;
  z-index: 1;
}
/* Independent SVG roots let each patterned row move on its own layer. */
.agency-orbit {
  --orbit-size: 64px;
  --orbit-period: 640px;
  --orbit-focus-x: 50%;
  --orbit-focus-y: 50%;
  --orbit-focus-rx: 70%;
  --orbit-focus-ry: 65%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  mask-image: radial-gradient(
    ellipse var(--orbit-focus-rx) var(--orbit-focus-ry) at var(--orbit-focus-x)
      var(--orbit-focus-y),
    transparent 50%,
    #00000005 65%,
    #00000029 78%,
    #0000008c 90%,
    #000 100%
  );
}
.orbit-assets {
  position: absolute;
  width: 0;
  height: 0;
}
.orbit-canvas {
  position: relative;
  padding-block: 32px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.orbit-row {
  display: block;
  height: var(--orbit-size);
  margin-bottom: 32px;
  max-width: none;
  opacity: 0.32;
}
.js .orbit-row {
  position: absolute;
  left: 0;
  margin: 0;
}
/* Promote only the bounded set of rows while they are actually moving. */
[data-orbit-running] .orbit-row:not([hidden]) {
  will-change: transform;
}
.orbit-row:nth-of-type(n + 8) {
  display: none;
}
.orbit-row:nth-of-type(4n + 1) {
  transform: translateX(calc(var(--orbit-period) * -0.25));
}
.orbit-row:nth-of-type(4n + 2) {
  transform: translateX(calc(var(--orbit-period) * -0.65));
}
.orbit-row:nth-of-type(4n + 3) {
  transform: translateX(calc(var(--orbit-period) * -0.1));
}
.orbit-row:nth-of-type(4n) {
  transform: translateX(calc(var(--orbit-period) * -0.45));
}
.orbit-pattern--mobile {
  display: none;
}
.orbit-controls {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}
.orbit-toggle {
  min-width: 64px;
  min-height: 44px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  pointer-events: auto;
}
.orbit-toggle > span {
  width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: inherit;
  background: var(--paper);
}
@media (hover: hover) and (pointer: fine) {
  .orbit-toggle:hover > span {
    border-color: var(--ink);
  }
}
.agency-title {
  text-align: center;
}
.agency-title > span {
  display: block;
}
.agency-line-mask {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}
.agency-line-mask.is-revealing {
  clip-path: inset(-0.12em -0.05em -0.24em -0.05em);
}
.agency-line-text {
  display: block;
}
/* Armed only by the synchronous homepage bootstrap. Default/no-script CSS
   stays visible; script.js removes this state once WAAPI owns the first frame. */
@media (prefers-reduced-motion: no-preference) {
  .home-entering .agency-line-mask {
    clip-path: inset(-0.12em -0.05em -0.24em -0.05em);
  }
  .home-entering .agency-line-text {
    transform: translateY(130%);
  }
  .home-entering #hero-summary {
    opacity: 0;
    transform: translateY(8px);
  }
  .home-entering .agency-signature {
    clip-path: inset(-25% 100% -25% 0);
  }
  .home-entering .project-showcases,
  .home-entering #hero-link,
  .home-entering .site-header .brand,
  .home-entering .site-header .menu-toggle,
  .home-entering .site-header .header-services,
  .home-entering .site-header .header-contact,
  .home-entering .agency-orbit {
    opacity: 0;
  }
}
.agency-products {
  display: inline-block;
  max-width: 100%;
  position: relative;
  font-weight: 550;
}
.agency-signature {
  position: absolute;
  left: 0;
  bottom: -0.36em;
  width: 100%;
  height: 0.37em;
  overflow: visible;
  color: var(--accent);
  pointer-events: none;
}
.agency-signature-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.agency-signature-dot {
  fill: currentColor;
}
.agency-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}
.agency-details p {
  max-width: 640px;
  text-align: center;
}
.service-list a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.service-list a:hover {
  text-decoration-color: currentColor;
}
.agency-link {
  font-size: 16px;
}
@media (max-width: 620px) {
  .agency-intro {
    padding-block: 48px 72px;
  }
  .agency-orbit {
    --orbit-focus-rx: 100%;
    --orbit-focus-ry: 60%;
    --orbit-size: 48px;
    --orbit-period: 480px;
  }
  .orbit-pattern--desktop {
    display: none;
  }
  .orbit-pattern--mobile {
    display: block;
  }
  .orbit-row:nth-of-type(8),
  .orbit-row:nth-of-type(9) {
    display: block;
  }
  .agency-title {
    text-align: left;
  }
  .agency-details {
    align-items: flex-start;
  }
  .agency-details p {
    max-width: 430px;
    text-align: left;
  }
  .agency-link {
    font-size: 14px;
  }
}
/* Anchors carry the colour all the way to the viewport top. The equivalent
   header clearance lives inside each section, preserving the settled layout. */
.project-showcases,
.showcase,
.studio-section {
  scroll-margin-top: calc(-1 * var(--header-height));
}
.showcase {
  /* Reserve space for the project link beneath the artwork. */
  --showcase-art-height: clamp(
    300px,
    calc(var(--viewport-height) - var(--header-height) - 192px),
    650px
  );
  background: var(--project-bg);
  color: var(--project-ink);
  padding-block: calc(
      var(--header-height) +
        clamp(20px, calc(var(--viewport-height) * 0.04), 40px)
    )
    calc(12px + env(safe-area-inset-bottom, 0px));
  min-height: var(--viewport-height);
  display: flex;
  flex-direction: column;
}
.showcase[data-project="rawdah"] {
  position: relative;
  isolation: isolate;
  --rawdah-pattern-y: 0px;
}
.header-surface.is-over-showcase[data-project="rawdah"]::before,
.showcase[data-project="rawdah"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/assets/work/rawdah-pattern.60b8d08369af97de.webp") repeat;
  /* Original artwork, 25% larger than the app's iOS 3× repeat size. */
  background-size: var(--rawdah-pattern-width) var(--rawdah-pattern-height);
  background-position: 0 var(--rawdah-pattern-y, 0px);
  opacity: 0.1;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto 1fr auto;
  align-items: center;
  gap: 0 28px;
  flex: 1;
  min-height: min-content;
}
.showcase-body,
.showcase-actions {
  display: contents;
}
.hero-copy {
  grid-column: 1;
  grid-row: 2;
  padding: 24px 0 0;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.hero-copy .display {
  font-size: clamp(48px, 6.3vw, 90px);
  font-weight: 500;
  line-height: 1.07;
  max-width: 700px;
}
.hero-copy .hero-wordmark {
  width: 100%;
  min-width: 0;
  max-width: var(--wordmark-hero-width);
}
.project-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.project-pills > li {
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 999px;
}
.wordmark--futuwwa {
  --wordmark-hero-width: 600px;
  --wordmark-title-width: 440px;
  --wordmark-compact-width: clamp(230px, 48svh, 300px);
}
.wordmark--rawdah {
  --wordmark-hero-width: 500px;
  --wordmark-title-width: 360px;
  --wordmark-compact-width: clamp(190px, 36svh, 250px);
}
.wordmark--mosquehub {
  --wordmark-hero-width: 400px;
  --wordmark-title-width: 320px;
  --wordmark-compact-width: clamp(200px, 36svh, 260px);
}
.wordmark--pharmafly {
  --wordmark-hero-width: 560px;
  --wordmark-title-width: 400px;
  --wordmark-compact-width: clamp(220px, 45svh, 300px);
}
.wordmark-lockup {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
}
.wordmark-image {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
}
.wordmark-feather {
  display: block;
  width: 7.5%;
  height: auto;
  flex-shrink: 0;
}
.wordmark-lockup--pharmafly {
  gap: 5%;
}
.wordmark-emblem {
  display: block;
  width: 31%;
  height: auto;
  flex-shrink: 0;
}
.hero-link {
  margin-top: 40px;
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
}
.hero-link:hover {
  background: var(--project-ink);
  color: var(--project-bg);
  border-color: var(--project-ink);
}
.hero-visual {
  grid-column: 2;
  grid-row: 1 / 5;
  width: 100%;
  height: var(--showcase-art-height);
  min-width: 0;
}
.next-project {
  grid-column: 1 / -1;
  grid-row: 5;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.4;
}
.next-project .icon {
  width: 20px;
  height: 20px;
  transition: transform 180ms var(--ease);
}
.next-project:hover span {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.next-project:hover .icon {
  transform: translateY(3px);
}
.product-stage {
  position: relative;
  isolation: isolate;
  background: var(--project-bg);
  color: var(--project-ink);
  width: 100%;
  height: 100%;
  overflow: hidden;
  container-type: inline-size;
}
.product-stage--hero {
  background: transparent;
}
.product-stage--hero .device {
  box-shadow: none;
}
.stage-ground {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
  font-size: clamp(50px, 11cqw, 150px);
  font-weight: 500;
  letter-spacing: -0.035em;
  opacity: 0.065;
}
.stage-ground img {
  width: 40%;
  height: 75%;
  object-fit: contain;
  transform: rotate(-8deg);
}
.device {
  position: absolute;
  top: 50%;
  overflow: hidden;
  background: #141912;
  border: 3px solid #1d221a;
  border-radius: 30px;
  box-shadow: 8px 22px 36px #0003;
  z-index: 2;
  line-height: 0;
  width: 37%;
  max-width: 264px;
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}
.device--front {
  left: 68%;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.device--back {
  left: 32%;
  width: 34%;
  max-width: 240px;
  transform: translate(-50%, -49%) rotate(-4deg);
}
.product-stage--hero .device {
  max-width: min(285px, calc(var(--showcase-art-height) * 0.42));
}
.product-stage--hero .device--back {
  max-width: min(258px, calc(var(--showcase-art-height) * 0.38));
}
.product-stage--cover .device {
  width: 26%;
  max-width: 290px;
  border-radius: 34px;
}
.product-stage--cover .device img {
  border-radius: 30px;
}
.product-stage--cover .device--front {
  left: 62%;
}
.product-stage--cover .device--back {
  left: 37%;
  width: 24%;
  max-width: 270px;
}
.product-stage--related .device {
  width: 33%;
  max-width: 180px;
  border-radius: 22px;
}
.product-stage--related .device img {
  border-radius: 18px;
}
.product-stage--mosquehub {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-stage--hero.product-stage--mosquehub {
  container-type: size;
}
.dashboard-preview img,
.interface-capture-link img {
  display: block;
  height: auto;
  border: 1px solid #172c3b;
  border-radius: var(--radius);
}
.dashboard-preview {
  width: min(91%, 880px, 140cqh);
}
.dashboard-preview picture {
  display: block;
}
.dashboard-preview img {
  width: 100%;
  border-width: 2px;
}
.dashboard-preview figcaption {
  margin-top: 5px;
  text-align: right;
  font-size: 11px;
  line-height: 1.4;
}
@media (max-width: 620px),
  (min-width: 621px) and (max-width: 1024px) and (min-height: 900px) and (max-aspect-ratio: 4/5) {
  .product-stage--hero.product-stage--mosquehub {
    align-items: flex-end;
    padding-bottom: 8px;
  }
  .dashboard-preview {
    /* Fit the stacked 480 × 430 capture and homepage caption in the stage. */
    width: min(92%, 880px, calc((100cqh - 28px) * 480 / 430));
  }
}
@media (max-width: 620px) and (max-height: 740px) {
  .product-stage--hero .dashboard-preview {
    width: min(92%, 140cqh);
  }
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}
.section-heading > p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 330px;
  color: var(--muted);
}
.studio-section {
  /* Disclosure resizing must not pull the previous section back into view. */
  overflow-anchor: none;
  background: var(--page-ending-bg);
  min-height: var(--viewport-height);
  padding-block: calc(var(--header-height) + clamp(48px, 6vw, 80px))
    clamp(48px, 6vw, 80px);
  display: flex;
  align-items: center;
}
.faq-container {
  max-width: 1000px;
}
.faq-heading {
  margin-inline: auto;
  margin-bottom: 48px;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.15;
  text-align: center;
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-item {
  background: color-mix(in srgb, var(--paper) 65%, var(--sage));
  border-radius: var(--radius);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 22px 28px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms ease;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question:focus-visible {
  outline-offset: 3px;
}
@media (hover: hover) {
  .faq-question:hover {
    background: var(--paper);
  }
}
.faq-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
.faq-icon-vertical {
  transform-origin: 12px 12px;
  transition: transform 240ms var(--ease);
}
.faq-item[open] .faq-icon-vertical {
  transform: scaleY(0);
}
.faq-answer {
  padding: 0 72px 26px 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.faq-answer p {
  max-width: 72ch;
}
/* Native disclosures remain usable when animated intrinsic sizing is absent. */
@supports (interpolate-size: allow-keywords) and (content-visibility: hidden) {
  .faq-item {
    interpolate-size: allow-keywords;
  }
  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 320ms var(--ease),
      content-visibility 320ms allow-discrete;
  }
  .faq-item[open]::details-content {
    block-size: auto;
  }
}
.studio-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}
.site-footer {
  background: var(--page-ending-bg);
  color: var(--ink);
  padding-block: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.footer-brand .brand {
  --brand-width: 144px;
  margin-bottom: 4px;
}
.footer-email,
.footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.footer-email:hover,
.footer-phone:hover,
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.footer-copyright {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: stretch;
  justify-content: space-between;
  justify-self: end;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.5;
}
.footer-services {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.footer-services a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.5;
}
.footer-services a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.back-top .icon {
  width: 16px;
  height: 16px;
}
.site-footer--compact {
  padding-block: 32px;
}
@media (max-width: 620px) {
  .next-project {
    font-size: 14px;
  }
  .studio-actions {
    margin-top: 32px;
  }
  .site-footer {
    padding-block: 32px;
  }
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    justify-self: stretch;
    gap: 0 24px;
  }
  .footer-links .back-top {
    margin-inline-start: auto;
  }
  .footer-services {
    margin-block: 12px;
  }
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 42px;
}
.breadcrumbs > a {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.project-opening {
  padding-top: 34px;
  padding-bottom: 0;
}
.mosquehub-opening {
  --muted: #4c411f;
  --line: color-mix(in srgb, var(--project-ink) 30%, transparent);
  background: var(--project-bg);
}
.project-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 64px;
}
.project-intro > div {
  min-width: 0;
}
.project-identity {
  display: flex;
  align-items: center;
  gap: 20px;
}
.project-intro h1 {
  font-size: clamp(52px, 6.3vw, 90px);
}
.project-title--wordmark {
  width: var(--wordmark-title-width);
  max-width: 100%;
  min-width: 0;
  line-height: 1;
}
.project-kind {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 26px;
}
.project-description {
  font-size: 21px;
  line-height: 1.65;
  max-width: 570px;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  font-size: 12px;
  color: var(--muted);
}
.project-cover {
  --cover-art-height: 690px;
  height: var(--cover-art-height);
  border-radius: var(--radius);
  overflow: hidden;
}
.mosquehub-opening .project-cover {
  height: auto;
}
.mosquehub-opening .product-stage--cover {
  height: auto;
  padding-block: clamp(14px, 4vw, 52px);
}
.product-stage--cover .dashboard-preview {
  width: min(100%, 1100px);
}
.project-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 72px;
}
.project-story-copy p,
.services-solution-copy > p + p {
  font-size: 16px;
  line-height: 1.85;
}
.project-story-copy p {
  margin-bottom: 22px;
  max-width: 600px;
}
.project-story-copy .button {
  margin-top: 10px;
}
.feature-list {
  grid-column: 2;
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.feature-list .icon {
  width: 16px;
  height: 16px;
}
.project-gallery {
  border-top: 1px solid var(--line);
}
.project-gallery .section-heading h2 {
  font-size: clamp(40px, 4.7vw, 68px);
}
.screen-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 70px;
  background: var(--project-light);
  border-radius: var(--radius);
}
.screen-gallery-item {
  min-width: 0;
  text-align: center;
}
.screen-gallery-link {
  display: block;
  position: relative;
  max-width: 340px;
  margin: auto;
}
.gallery-device {
  display: block;
  border: 3px solid #1d221a;
  border-radius: 37px;
  overflow: hidden;
  box-shadow: 8px 20px 34px #0002;
  background: #1d221a;
}
.gallery-device > img {
  width: 100%;
  height: auto;
  border-radius: 33px;
}
.image-expand {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  min-height: 40px;
  box-shadow: 1px 3px 10px #20281820;
}
.image-expand .icon {
  width: 15px;
  height: 15px;
}
.screen-gallery-item figcaption {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  margin-top: 25px;
}
.media-caption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 24px;
}
.interface-gallery {
  background: var(--project-light);
  padding: clamp(12px, 3vw, 40px);
  border-radius: var(--radius);
}
.interface-capture {
  width: min(100%, 1060px);
  margin-inline: auto;
}
.interface-capture + .interface-capture,
.interface-view + .interface-view:not([hidden]) {
  margin-top: 32px;
}
.interface-capture figcaption {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 650;
}
.interface-capture-link {
  display: grid;
  justify-items: start;
  gap: 12px;
}
.interface-capture-link img {
  width: 100%;
}
.interface-capture-link:hover .button {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.segmented-control {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 5px;
  background: #e2dfcf;
  border-radius: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 32px;
}
.js .segmented-control {
  display: flex;
}
.segmented-control button {
  padding: 11px 16px;
  min-height: 44px;
  border-radius: 7px;
  background: transparent;
  color: #414a35;
  font-size: 13px;
  font-weight: 600;
}
.segmented-control button[aria-selected="true"] {
  background: #303d28;
  color: #f5f6ef;
}
.segmented-control button:focus-visible {
  outline-color: var(--ink);
}
.related-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  border-top: 1px solid var(--line);
}
.related-project h2 {
  margin: 20px 0;
}
.related-project h2 > a {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}
.related-project h2 .icon {
  width: 34px;
  height: 34px;
}
.related-project p {
  font-size: 14px;
  color: var(--muted);
  max-width: 350px;
}
.related-art {
  height: 380px;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}
.related-art:has(> .product-stage--mosquehub),
.product-stage--related.product-stage--mosquehub {
  height: auto;
}
.product-stage--related.product-stage--mosquehub {
  background: transparent;
}
.product-stage--related .dashboard-preview {
  width: 100%;
}
/* One services page, with distinct reading layouts at phone and desktop sizes. */
.services-opening {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: 0;
  text-align: center;
}
.services-opening h1 {
  max-width: 20ch;
  margin-inline: auto;
}
.services-introduction {
  max-width: 60ch;
  margin: 32px auto 0;
}
.services-reel {
  margin-top: 48px;
}
.services-reel-art {
  --services-art-height: clamp(320px, 40vw, 520px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(12px, 4vw, 56px);
  padding: 32px clamp(16px, 8vw, 112px);
  height: var(--services-art-height);
  border-radius: var(--radius);
  background: var(--sage);
}
.services-reel .services-device {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  max-width: min(224px, calc((var(--services-art-height) - 64px) * 0.44));
  transform: none;
}
.services-reel figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.services-jump {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 24px;
}
.services-jump a,
.services-projects a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--line);
}
.services-jump a:hover,
.services-projects a:hover {
  text-decoration-color: currentColor;
}
.services-jump .icon,
.services-projects .icon {
  width: 16px;
  height: 16px;
}
.services-solutions > h2 {
  max-width: 18ch;
  margin-bottom: 64px;
}
.services-solution {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px clamp(40px, 8vw, 128px);
  padding-block: 64px;
  border-top: 1px solid var(--line);
}
.services-solution:last-child {
  padding-bottom: 0;
}
.services-solution h3 {
  max-width: 13ch;
}
.services-capabilities {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}
.services-summary {
  max-width: 42ch;
}
.services-solution-copy > p + p {
  max-width: 65ch;
  margin-top: 22px;
  color: var(--muted);
}
.services-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 24px;
}
.services-practice {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius) var(--radius) 0 0;
}
.services-practice h2 {
  margin-bottom: 64px;
}
.services-practice dl {
  margin: 0;
}
.services-practice dl > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px clamp(40px, 8vw, 128px);
  padding-block: 40px;
  border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
}
.services-practice dl > div:last-child {
  padding-bottom: 0;
}
.services-practice dt {
  font-size: 16px;
  font-weight: 550;
  line-height: 1.5;
}
.services-practice dd {
  margin: 0;
  max-width: 42ch;
}
.services-closing {
  text-align: center;
}
.services-closing p {
  margin-top: 32px;
}
.services-closing .button {
  margin-top: 32px;
}
@media (max-width: 620px) {
  .services-introduction {
    margin-top: 24px;
  }
  .services-reel {
    margin-top: 32px;
  }
  .services-reel-art {
    --services-art-height: 300px;
    padding: 24px 16px;
    border-radius: 12px;
  }
  .services-reel .services-device {
    width: 100%;
    border-width: 2px;
    border-radius: 18px;
  }
  .services-reel .services-device img {
    border-radius: 16px;
  }
  .services-jump {
    gap: 0 20px;
  }
  .services-jump a {
    font-size: 13px;
  }
  .services-solutions > h2,
  .services-practice h2 {
    margin-bottom: 40px;
  }
  .services-solution,
  .services-practice dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 40px;
  }
  .services-solution h3 {
    max-width: 18ch;
  }
  .services-capabilities {
    margin-top: 16px;
    font-size: 13px;
  }
  .services-projects {
    gap: 4px 20px;
  }
  .services-closing p {
    margin-top: 24px;
  }
}
.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(64px, 10vw, 150px);
  align-items: start;
  min-height: calc(100svh - 200px);
  padding-top: clamp(60px, 8vw, 120px);
}
.contact-intro h1 {
  font-size: clamp(56px, 6.6vw, 94px);
}
.contact-intro > p {
  font-size: 18px;
  line-height: 1.8;
  max-width: 420px;
  margin-top: 32px;
}
.form-intro {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 32px;
}
.form-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px 24px;
}
.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 10px;
}
.field--full {
  grid-column: 1 / -1;
}
.field > label {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.required-mark {
  font-size: 13px;
  color: #56654b;
}
.optional-label {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--field-stroke);
  border-radius: 8px;
  padding: 13px 15px;
  background: var(--field-bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  caret-color: var(--ink);
  transition:
    background 180ms,
    border-color 180ms;
  min-height: 52px;
}
.field textarea {
  resize: vertical;
  min-height: 160px;
  max-height: 65svh;
}
.field input:hover,
.field textarea:hover {
  border-color: #7e8a70;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--field-focus);
  outline-offset: 2px;
  border-color: var(--field-focus);
  background: #fff;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #a73d2b;
}
.field-error {
  color: var(--error);
  font-size: 12px;
  line-height: 1.6;
  min-height: 0;
}
.field-error:empty {
  display: none;
}
.field-hint {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.form-note {
  font-size: 13px;
  line-height: 1.8;
  color: #5a6551;
  margin-top: 28px;
  max-width: 60ch;
}
.form-note a,
.form-status a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-form .button {
  margin-top: 28px;
  min-width: 175px;
  position: relative;
}
.contact-form[aria-busy="true"] .button {
  background: var(--button-hover);
  color: #fff;
}
.contact-form[aria-busy="true"] .button .icon {
  visibility: hidden;
}
.contact-form[aria-busy="true"] .button::after {
  content: "";
  position: absolute;
  right: 22px;
  width: 16px;
  height: 16px;
  border: 1.5px solid #a7b99b;
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spin 0.8s linear infinite;
}
@keyframes button-spin {
  to {
    rotate: 360deg;
  }
}
.form-status {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 18px;
}
.form-status[data-state="error"],
.form-status[data-state="verification"] {
  color: var(--error);
}
.form-status[data-state="success"] {
  color: var(--success);
}
.contact-verification {
  margin-top: 22px;
  min-height: 0;
}
.contact-form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.prose-page {
  max-width: 850px;
}
.prose-page h1 {
  font-size: clamp(46px, 6vw, 76px);
  margin-bottom: 30px;
}
.prose-intro {
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 35px;
}
.prose-page h2 {
  font-size: 28px;
  margin: 54px 0 20px;
  line-height: 1.3;
}
.prose-page p {
  line-height: 1.9;
  max-width: 72ch;
  margin-bottom: 20px;
}
.prose-page a {
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.prose-date {
  font-size: 13px;
  color: var(--muted);
  padding-top: 25px;
}
.not-found {
  min-height: 65svh;
}
.not-found h1 {
  margin-bottom: 30px;
}
.not-found p {
  margin-bottom: 30px;
}
.media-dialog {
  width: min(1000px, 94vw);
  max-width: none;
  max-height: 94svh;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--ink);
  padding: 24px;
  border: 0;
  border-radius: 15px;
  box-shadow: 12px 24px 70px #0004;
}
.media-dialog::backdrop {
  background: #14200fe6;
}
.media-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 18px;
}
.media-dialog-header h2 {
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.5;
}
.media-dialog-content {
  display: flex;
  justify-content: center;
  align-items: center;
}
.media-dialog-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(91svh - 110px);
  object-fit: contain;
}
.media-dialog--zoomable[open] {
  display: flex;
  flex-direction: column;
  width: min(1400px, 96vw);
  overflow: hidden;
}
.media-dialog--zoomable .media-dialog-header {
  flex-wrap: wrap;
  row-gap: 8px;
}
.media-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.media-dialog-actions [aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.media-dialog--zoomable .media-dialog-content {
  display: block;
  min-height: 0;
  overflow: auto;
}
.media-dialog--zoomable .media-dialog-content img {
  display: block;
  margin-inline: auto;
}
.media-zoom-hint {
  display: none;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}
.media-dialog[data-actual-size] .media-zoom-hint {
  display: block;
}
.media-dialog[data-actual-size] .media-dialog-content img {
  max-width: none;
  max-height: none;
}
body.has-media-dialog {
  overflow: hidden;
}
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: ease-out;
}
@media (min-width: 1700px) {
  .hero-layout {
    column-gap: 70px;
  }

  .hero-copy .display {
    font-size: 96px;
  }
}
@media (max-width: 1150px) {
  .hero-layout {
    column-gap: 20px;
  }
  .hero-copy .display {
    font-size: clamp(46px, 6.2vw, 73px);
  }
  .device {
    border-width: 2px;
    border-radius: 25px;
  }
  .device img {
    border-radius: 23px;
  }
  .product-stage--hero .device {
    width: 38%;
  }
  .product-stage--hero .device--back {
    width: 34%;
  }
  .section-heading {
    margin-bottom: 50px;
  }
  .project-cover {
    --cover-art-height: 630px;
  }
  .project-cover .device {
    max-width: 250px;
  }
  .project-cover .device--back {
    max-width: 230px;
  }
  .screen-gallery {
    padding: 55px;
    gap: 55px;
  }
  .contact-page {
    gap: 65px;
  }
  .contact-intro > p {
    font-size: 16px;
  }
}
@media (max-width: 820px) {
  :root {
    --header-base-height: 82px;
    --gutter: 28px;
  }
  .header-inner {
    gap: 20px;
  }
  .brand {
    --brand-width: 160px;
  }
  .hero-layout {
    grid-template-columns: 1fr 1fr;
  }
  .hero-copy .display {
    font-size: 47px;
  }
  .hero-link {
    font-size: 13px;
    margin-top: 32px;
  }
  .product-stage--hero .device {
    width: 40%;
    border-radius: 22px;
  }
  .product-stage--hero .device img {
    border-radius: 20px;
  }
  .product-stage--hero .device--back {
    width: 36%;
  }
  .project-intro {
    gap: 40px;
    margin-bottom: 50px;
  }
  .project-description {
    font-size: 18px;
  }
  .project-kind {
    font-size: 12px;
  }
  .project-cover {
    --cover-art-height: 570px;
  }
  .project-cover .device {
    max-width: 225px;
  }
  .project-cover .device--back {
    max-width: 210px;
  }
  .project-story {
    gap: 35px 40px;
  }
  .project-story-copy p {
    font-size: 14px;
  }
  .screen-gallery {
    padding: 45px 35px;
    gap: 35px;
  }
  .gallery-device {
    border-radius: 28px;
    border-width: 2px;
  }
  .gallery-device > img {
    border-radius: 26px;
  }
  .related-project {
    gap: 40px;
  }
  .related-art {
    height: 320px;
  }
  .contact-page {
    grid-template-columns: 1fr;
    gap: 50px;
    min-height: 0;
  }
  .contact-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px 35px;
  }
  .contact-intro h1 {
    grid-column: 1 / -1;
    font-size: 68px;
  }
  .contact-intro > p {
    margin: 0;
  }
  .contact-form-area {
    max-width: 680px;
    width: 100%;
  }
}
@media (max-width: 620px) {
  :root {
    --gutter: 22px;
    --header-base-height: 80px;
    --section-space: 64px;
  }
  :root:has(body[data-page="home"]) {
    /* Keep the header and project art budget steady as Safari's toolbar moves. */
    --header-base-height: clamp(64px, calc(64px + 100svh - 740px), 80px);
  }
  .header-inner {
    gap: 10px;
  }
  .brand {
    --brand-width: 152px;
  }
  .product-stage--hero .device {
    width: 39%;
    border-radius: 23px;
  }
  .product-stage--hero .device img {
    border-radius: 21px;
  }
  .product-stage--hero .device--back {
    width: 35%;
  }
  .section-heading {
    display: block;
    margin-bottom: 36px;
  }
  .section-heading h2 {
    font-size: 41px;
  }
  .section-heading > p {
    font-size: 13px;
    margin-top: 24px;
    max-width: 320px;
  }
  .faq-heading {
    margin-bottom: 32px;
    font-size: clamp(29px, 6.6vw, 40px);
    text-align: left;
  }
  .faq-heading br {
    display: none;
  }
  .faq-list {
    gap: 8px;
  }
  .faq-item,
  .faq-question {
    border-radius: 12px;
  }
  .faq-question {
    min-height: 76px;
    padding: 20px;
    gap: 20px;
    font-size: 16px;
  }
  .faq-answer {
    padding: 0 20px 24px;
    font-size: 14px;
  }
  .project-opening {
    padding-top: 18px;
  }
  .breadcrumbs {
    font-size: 12px;
    gap: 10px;
    margin-bottom: 28px;
  }
  .project-intro {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 36px;
  }
  .project-identity {
    gap: 14px;
  }
  .project-intro h1 {
    font-size: clamp(36px, 9.5vw, 56px);
  }
  .project-kind {
    margin-top: 20px;
  }
  .project-description {
    line-height: 1.7;
  }
  .service-list {
    font-size: 11px;
    gap: 8px 16px;
    margin-top: 20px;
  }
  .project-cover {
    --cover-art-height: clamp(260px, min(105vw, 65svh), 440px);
    border-radius: 12px;
  }
  .product-stage--cover .device {
    width: 38%;
    max-width: 195px;
    border-radius: 24px;
  }
  .product-stage--cover .device img {
    border-radius: 22px;
  }
  .product-stage--cover .device--back {
    left: 32%;
    width: 34%;
    max-width: 180px;
  }
  .product-stage--cover .device--front {
    left: 68%;
  }
  .project-story {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .project-story-copy p {
    max-width: 72ch;
  }
  .project-story-copy .button {
    font-size: 13px;
  }
  .feature-list {
    grid-column: 1;
  }
  .feature-list li {
    font-size: 13px;
    padding: 16px 0;
    gap: 15px;
  }
  .project-gallery .section-heading h2 {
    font-size: 40px;
  }
  .screen-gallery {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 45px 40px;
  }
  .screen-gallery-link {
    max-width: 280px;
  }
  .screen-gallery-item figcaption {
    margin-top: 20px;
  }
  .media-caption {
    font-size: 11px;
    margin-top: 22px;
  }
  .segmented-control {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 3px;
    padding: 4px;
    width: 100%;
    margin-bottom: 24px;
  }
  .segmented-control button {
    min-width: min-content;
    font-size: 12px;
    padding: 9px 7px;
    min-height: 44px;
    flex: 1 1 auto;
  }
  .related-project {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .related-project h2 {
    font-size: clamp(36px, 9.5vw, 48px);
    margin: 16px 0;
  }
  .related-project h2 > a {
    gap: 16px;
  }
  .related-project h2 .icon {
    width: 27px;
    height: 27px;
  }
  .related-project p {
    font-size: 13px;
  }
  .related-art {
    height: clamp(240px, min(90vw, 58svh), 340px);
  }
  .product-stage--related .device {
    width: 35%;
    max-width: 150px;
    border-width: 2px;
    border-radius: 21px;
  }
  .product-stage--related .device img {
    border-radius: 19px;
  }
  .contact-page {
    padding-top: 32px;
    gap: 32px;
  }
  .contact-intro {
    display: block;
  }
  .contact-intro h1 {
    font-size: clamp(36px, 10vw, 48px);
  }
  .contact-intro > p {
    font-size: 15px;
    margin-top: 20px;
  }
  .form-intro {
    font-size: 13px;
    margin-bottom: 28px;
  }
  .form-fields {
    gap: 24px 18px;
  }
  .field > label {
    font-size: 13px;
    line-height: 1.6;
  }
  .optional-label {
    font-size: 13px;
  }
  .field input,
  .field textarea {
    min-height: 50px;
    padding: 12px;
  }
  .field textarea {
    min-height: 165px;
  }
  .field-hint {
    font-size: 13px;
  }
  .form-note {
    font-size: 13px;
    margin-top: 25px;
    line-height: 1.85;
  }
  .form-status {
    font-size: 12px;
  }
  .contact-form .button {
    font-size: 13px;
    margin-top: 25px;
  }
  .prose-page h1 {
    font-size: 46px;
  }
  .prose-intro {
    font-size: 19px;
  }
  .prose-page p {
    font-size: 14px;
  }
  .prose-page h2 {
    font-size: 26px;
    margin-top: 40px;
  }
  .media-dialog {
    padding: 14px;
    border-radius: 12px;
    width: 96vw;
    max-height: 95svh;
  }
  .media-dialog-header {
    gap: 12px;
    margin-bottom: 14px;
  }
  .media-dialog-header h2 {
    font-size: 14px;
    line-height: 1.5;
  }
  .media-dialog-header .icon-button {
    flex-shrink: 0;
  }
  .media-dialog-content img {
    max-height: calc(93svh - 90px);
  }
}
@media (max-width: 360px) {
  :root {
    --gutter: 18px;
  }
  .brand {
    --brand-width: 140px;
  }
  .header-inner {
    gap: 7px;
  }
  .hero-copy .display {
    font-size: 39px;
  }
  .form-fields {
    grid-template-columns: 1fr;
  }
  .field {
    grid-column: 1;
  }
  .screen-gallery {
    padding-inline: 30px;
  }
  .segmented-control button {
    padding-inline: 5px;
  }
}
/* Width chooses the composition; height controls its spacing and art budget.
   Keep the stable viewport so browser-toolbar movement cannot resize sections. */
@media (max-width: 1024px) and (max-height: 740px) {
  :root {
    --header-base-height: 64px;
  }
  .agency-intro {
    padding-block: 24px 72px;
  }
  .agency-details {
    margin-top: 24px;
    gap: 20px;
  }
  .showcase {
    --showcase-art-height: clamp(
      200px,
      calc(var(--viewport-height) - var(--header-height) - 80px),
      320px
    );
    padding-top: calc(var(--header-height) + 16px);
  }
  .hero-copy {
    padding-block: 8px 0;
  }
  .hero-copy .hero-wordmark,
  .project-title--wordmark {
    max-width: min(100%, var(--wordmark-compact-width));
  }
  .hero-link {
    margin-top: 20px;
  }
  .next-project {
    margin-top: 12px;
  }
  .studio-section {
    padding-block: calc(var(--header-height) + 24px) 32px;
  }
  .faq-heading {
    margin-bottom: 24px;
  }
  .faq-question {
    padding: 16px;
    gap: 12px;
    min-height: 68px;
  }
  .faq-answer {
    padding: 0 16px 20px;
  }
  .studio-actions {
    margin-top: 24px;
  }
  .project-cover {
    --cover-art-height: clamp(240px, min(105vw, 65svh), 440px);
  }
  .product-stage--cover .device {
    max-width: min(195px, calc(var(--cover-art-height) * 0.42));
  }
  .product-stage--cover .device--back {
    max-width: min(180px, calc(var(--cover-art-height) * 0.38));
  }
  .related-art {
    --related-art-height: clamp(240px, 60svh, 340px);
    height: var(--related-art-height);
  }
  .product-stage--related .device {
    max-width: min(150px, calc(var(--related-art-height) * 0.42));
  }
  .product-stage--related .device--back {
    max-width: min(140px, calc(var(--related-art-height) * 0.38));
  }
  .contact-page {
    padding-top: 32px;
    gap: 32px;
  }
  .contact-intro {
    display: block;
  }
  .contact-intro h1 {
    font-size: clamp(36px, 6vw, 52px);
  }
  .contact-intro > p {
    margin-top: 20px;
  }
}
@media (max-width: 620px) and (max-height: 740px) {
  .agency-details p {
    font-size: 17px;
  }
}
@media (min-width: 621px) and (max-width: 1024px) and (max-height: 480px) {
  .showcase {
    --showcase-art-height: clamp(
      128px,
      calc(var(--viewport-height) - var(--header-height) - 96px),
      240px
    );
    padding-top: calc(var(--header-height) + 12px);
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .hero-copy {
    padding: 0;
  }
  .hero-copy .hero-wordmark {
    max-width: min(100%, var(--wordmark-landscape-width));
  }
  .wordmark--futuwwa,
  .wordmark--pharmafly {
    --wordmark-landscape-width: 180px;
  }
  .wordmark--rawdah {
    --wordmark-landscape-width: 160px;
  }
  .wordmark--mosquehub {
    --wordmark-landscape-width: 200px;
  }
  .project-pills {
    margin-top: 16px;
    gap: 6px;
  }
  .project-pills > li {
    padding: 4px 8px;
  }
}
/* Stack portrait tablets when their height can support the full artwork.
   Keep copy intrinsic so enlarged content can still grow without clipping. */
@media (max-width: 620px),
  (min-width: 621px) and (max-width: 1024px) and (min-height: 900px) and (max-aspect-ratio: 4/5) {
  .showcase {
    --showcase-art-width: min(calc(100vw - 2 * var(--gutter)), 440px);
    --showcase-art-floor: 128px;
    --showcase-art-target: calc(var(--showcase-art-width) * 0.84 + 40px);
    display: grid;
    padding-inline: 0;
    padding-top: calc(
      var(--header-height) + clamp(16px, calc(4svh - 8px), 24px)
    );
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(min-content, 1fr);
    gap: 0;
    align-items: stretch;
    min-height: 0;
  }
  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    display: block;
    min-height: 0;
    padding: 0;
  }
  .hero-copy .display {
    font-size: clamp(42px, 8vw, 53px);
  }
  .hero-copy .hero-wordmark {
    max-width: min(100%, var(--wordmark-phone-width));
  }
  .wordmark--futuwwa {
    --wordmark-phone-width: clamp(220px, calc(100svh - 340px), 500px);
  }
  .wordmark--rawdah {
    --wordmark-phone-width: clamp(190px, calc(100svh - 430px), 300px);
  }
  .wordmark--mosquehub {
    --wordmark-phone-width: clamp(184px, calc(45svh - 64px), 280px);
  }
  .wordmark--pharmafly {
    --wordmark-phone-width: clamp(210px, calc(100svh - 340px), 380px);
  }
  .project-pills {
    margin-top: clamp(16px, calc(3svh - 1px), 24px);
    gap: clamp(6px, 1svh, 8px);
  }
  .project-pills > li {
    padding: clamp(4px, 0.6svh, 5px) clamp(8px, 1.2svh, 10px);
  }
  .showcase-body {
    display: flex;
    flex-direction: column;
  }
  /* Share the spare height above and below the artwork on taller screens. */
  .showcase-body::before {
    content: "";
    flex: 1 0 0px;
    max-height: clamp(0px, calc((100svh - 820px) * 0.5), 120px);
  }
  .hero-visual {
    max-width: 440px;
    /* The percentage resolves once the grid gives the body its height. Its
       intrinsic minimum can still grow the section around wrapped controls. */
    flex: 0 1 min(var(--showcase-art-target), 100%);
    height: auto;
    min-height: var(--showcase-art-floor);
    margin: clamp(12px, 2svh, 20px) auto 0;
  }
  .showcase-actions {
    display: flex;
    flex: 1 0 auto;
    flex-wrap: wrap;
    align-items: start;
    align-content: stretch;
    gap: 12px;
    margin-top: clamp(12px, calc(2svh - 1px), 16px);
  }
  .hero-link {
    font-size: 13px;
    margin: 0;
    padding-inline: clamp(14px, 4.6vw, 22px);
  }
  .next-project {
    align-self: end;
    min-height: 48px;
    max-width: 100%;
    margin-top: 0;
    margin-inline-start: auto;
  }
  .product-stage--hero {
    container-type: size;
  }
  .product-stage--hero .device {
    top: auto;
    bottom: 8px;
    max-width: min(285px, 40cqh);
    border-width: clamp(1px, 0.6cqh, 2px);
    border-radius: min(23px, 6cqh);
  }
  .product-stage--hero .device img {
    border-radius: min(21px, 5.4cqh);
  }
  .product-stage--hero .device--front {
    transform: translateX(-50%);
  }
  .product-stage--hero .device--back {
    bottom: 12px;
    max-width: min(258px, 36cqh);
    transform: translateX(-50%) rotate(-4deg);
  }
}
@media (max-width: 620px) and (min-height: 933px),
  (min-width: 621px) and (max-width: 1024px) and (min-height: 900px) and (max-aspect-ratio: 4/5) {
  .product-stage--hero .device {
    max-width: min(285px, calc((100cqh - 16px) * 0.46));
  }
  .product-stage--hero .device--back {
    max-width: min(258px, calc((100cqh - 24px) * 0.43));
  }
}
@media (max-width: 620px) and (min-height: 933px) {
  .product-stage--hero .device {
    width: clamp(39%, calc(39% + (100svh - 932px) * 0.05), 43%);
  }
  .product-stage--hero .device--back {
    width: clamp(35%, calc(35% + (100svh - 932px) * 0.05), 39%);
  }
}
@media (min-width: 621px) and (max-width: 1024px) and (min-height: 900px) and (max-aspect-ratio: 4/5) {
  .showcase {
    --showcase-art-width: min(calc(100vw - 2 * var(--gutter)), 600px);
    --showcase-art-floor: 260px;
  }
  .hero-visual {
    max-width: 600px;
  }
  .product-stage--hero .device {
    width: 40%;
  }
  .product-stage--hero .device--back {
    width: 36%;
  }
}
@media (min-width: 1025px) and (min-height: 1081px) {
  .showcase {
    --showcase-art-height: clamp(
      650px,
      calc(var(--viewport-height) - var(--header-height) - 192px),
      900px
    );
  }
  .product-stage--hero .device {
    width: 42%;
    max-width: min(340px, calc(var(--showcase-art-height) * 0.42));
  }
  .product-stage--hero .device--back {
    width: 38%;
    max-width: min(310px, calc(var(--showcase-art-height) * 0.38));
  }
}
/* Fit one composition, rather than independently resizing its two devices.
   The desktop reference fixes their relative width, angle and light overlap. */
.product-stage:has(.device-pair) {
  container-type: size;
}
.device-pair {
  --pair-width: 74cqw;
  --pair-max-width: 570px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(
    var(--pair-width),
    calc((100cqh - 16px) * 0.9),
    var(--pair-max-width)
  );
  aspect-ratio: 0.9;
  transform: translate(-50%, -50%);
  container-type: inline-size;
}
.product-stage .device-pair .device {
  top: auto;
  bottom: 0;
  left: 75%;
  width: 50%;
  max-width: none;
  border-width: clamp(1px, 0.5cqw, 3px);
  transform: translateX(-50%);
  box-shadow: none;
}
.product-stage .device-pair .device--back {
  bottom: 1.5%;
  left: 26.5%;
  width: 46%;
  transform: translateX(-50%) rotate(-4deg);
}
:is(.device, .gallery-device)[data-platform] {
  border-radius: 13% / 6%;
  border-color: #1d221a;
  box-shadow: none;
}
:is(.device, .gallery-device)[data-platform] > img {
  border-radius: 12% / 5.5%;
}
:is(.device, .gallery-device)[data-platform="android"] {
  border-radius: 9% / 4%;
}
:is(.device, .gallery-device)[data-platform="android"] > img {
  border-radius: 8% / 3.5%;
}
/* Captured iPhone islands stay untouched. The Android camera occupies only
   the original screenshot's empty status-bar space. */
:is(.device, .gallery-device)[data-platform="android"]::after {
  content: "";
  position: absolute;
  top: 1.35%;
  left: 50%;
  width: 3.4%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #101214;
  transform: translateX(-50%);
  pointer-events: none;
}
.screen-gallery-link,
.services-reel-art {
  container-type: inline-size;
}
.gallery-device[data-platform] {
  position: relative;
  border-width: clamp(1px, 1cqw, 3px);
}
.product-stage--cover .device-pair {
  --pair-width: 94cqw;
}
.product-stage--related .device-pair {
  --pair-width: 94cqw;
  --pair-max-width: 360px;
}
@media (max-width: 1024px) {
  .product-stage--hero .device-pair {
    --pair-width: 94cqw;
  }
}
@media (max-width: 620px),
  (min-width: 621px) and (max-width: 1024px) and (min-height: 900px) and (max-aspect-ratio: 4/5) {
  .showcase:has(.device-pair) {
    --showcase-art-floor: 240px;
    --showcase-art-target: max(
      clamp(288px, 88vw, 440px),
      min(
        calc(var(--showcase-art-width) * 1.08 + 40px),
        calc(100svh - var(--header-height) - 400px)
      )
    );
  }
  .product-stage--hero .device-pair {
    --pair-width: 100cqw;
    top: auto;
    bottom: 8px;
    transform: translateX(-50%);
  }
}
@media (min-width: 1025px) and (min-height: 1081px) {
  .product-stage--hero .device-pair {
    --pair-width: 84cqw;
    --pair-max-width: 680px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item::details-content {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}
