.page {
  --gutter: clamp(20px, 5vw, 36px);
  --ink: #111619;
  --muted: #555b5e;
  --line: #d9dcdd;
  --section-gap: 56px;
}

.hero-frame, .design-section, #contact {
  display: flex;
  flex-direction: column;
  height: auto;
  padding: var(--section-gap) var(--gutter);
}
.design-section + .design-section { border-top: 1px solid var(--line); }
.design-section > h2 {
  position: static;
  translate: none;
  order: -10;
  width: auto;
  height: auto;
  margin: 0 0 24px;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.1;
  letter-spacing: -.045em;
  text-align: left;
}

/* The design export positions desktop elements individually. On phones the
   same content flows in reading order, with independent text and tap sizes. */
#home :is(.d9, .d38, .d41, .d44),
.phone-service > *,
.phone-story > *,
.phone-project > *,
#projects > :is(.d145, .d147),
#research > :is(.d174, .d175),
#team :is(article, .team-text) > *,
#contact .contact-content > :is(.d214, .d215, .d216, .d218, .d229),
#contact-form > :is(label, input, textarea, .form-status) {
  position: static;
  inset: auto;
  translate: none;
  width: auto;
  height: auto;
  min-width: 0;
  text-align: left;
  white-space: normal;
  letter-spacing: normal;
  font-size: 16px;
  line-height: 1.55;
}

#home {
  padding-top: 88px;
  padding-bottom: 40px;
  background: #f5f5f5;
}
#home > :is(.d2, .d11, .d16, .d20) { display: none; }
#home .d36 { top: 26px; left: var(--gutter); width: 94px; height: 27px; }
.menu-toggle { --toggle-top: 13px; --toggle-right: calc(clamp(20px, 5vw, 36px) - 4px); }
.site-menu { left: clamp(20px, 5vw, 36px); right: clamp(20px, 5vw, 36px); }
.site-menu a { display: grid; align-items: center; min-height: 44px; padding: 8px 12px; }
#home .d41 {
  order: 1;
  max-width: 15ch;
  color: var(--ink);
  font-size: clamp(33px, 9.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
#home .headline-line { display: inline; line-height: inherit; }
#home .d44 { order: 2; max-width: 36ch; margin-top: 18px; }
#home .d9 {
  order: 3;
  align-self: flex-start;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  margin: 24px 0;
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
}
#home .d9 p { line-height: inherit; }
#home .d38 {
  position: relative;
  order: 4;
  width: calc(100% + 2 * var(--gutter));
  margin-inline: calc(-1 * var(--gutter));
  aspect-ratio: 16 / 9;
}
#home .d39 { opacity: .68; object-position: center; }
.hero-why {
  position: static;
  order: 5;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 28px 0 0;
}
.hero-why .phone-story > :first-child { margin-bottom: 0; font-size: 20px; font-weight: 600; }
.hero-why .phone-story > :last-child { font-size: 16px; }

#use-cases > h2 { margin: 0 0 24px; }
.use-cases { gap: 48px; }
.use-case, .use-case:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
.use-case:nth-child(even) :is(.use-case-photo, .use-case-copy) { grid-column: auto; grid-row: auto; }
.use-case-photo { margin-bottom: 14px; }
.use-case-copy { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 12px; }
.use-case-copy > :not(.use-case-index) { grid-column: 1 / -1; }
.use-case-index { grid-row: 1; margin: 0; font-size: 56px; }
.use-case-domain { grid-row: 1; grid-column: 2 !important; margin-bottom: 8px; font-size: 11px; }
.use-case-domain::before { display: none; }
.use-case-title { margin: 8px 0; font-size: 22px; }
.use-case-text { color: var(--muted); font-size: 16px; }

#services .d84, #projects .d145 {
  position: static;
  width: auto;
  margin: -12px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .02em;
}
#services > :is(.d85, .d86),
#projects > :is(.d148, .d149, .d150, .d151),
#team > :is(.d177, .d179, .d182), #contact .contact-content > :is(.d219, .d222, .d231, .d232) {
  display: none;
}
.phone-service {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
}
.phone-service + .phone-service { margin-top: 12px; }
.phone-service:first-of-type { color: white; background: #151c22; border-color: #151c22; }
.phone-service > p { color: inherit; }
.phone-service > p:first-child { opacity: .72; font-size: 13px; }
.phone-service > p:nth-child(2), .phone-story > :first-child { color: inherit; font-size: 22px; font-weight: 600; line-height: 1.2; }
.phone-service > p:last-child { font-size: 16px; }

#services .video-slot {
  position: relative;
  inset: auto;
  width: calc(100% + 2 * var(--gutter));
  height: auto;
  margin: 0 calc(-1 * var(--gutter)) 24px;
  aspect-ratio: 16 / 9;
}
#services .d108 { order: 10; margin: 12px calc(-1 * var(--gutter)) calc(-1 * var(--section-gap)); }
#services .d108 video { object-fit: contain !important; }
.phone-story { display: grid; gap: 8px; margin-bottom: 26px; }
.phone-story:last-child { margin-bottom: 0; }
.phone-story > :nth-child(2) { color: var(--muted); }
.phone-story div > p { line-height: inherit; }
#projects .d147 > p:not(:first-child),
#team article :is(.d187, .d199, .d205) > p:not(:first-child),
#contact-form :is(.d249, .d250) { display: none; }
.video-play span { width: 48px; font-size: 18px; }

:is(#research, #contact) :is(.d170, .d225, .d258) {
  position: static;
  display: grid;
  align-self: flex-start;
  width: max-content;
  min-width: 144px;
  min-height: 46px;
}
:is(#research, #contact) :is(.d170, .d225, .d258) > * {
  grid-area: 1 / 1;
  position: static;
  translate: none;
  width: auto;
  height: auto;
}
:is(#research, #contact) .action-surface {
  border-radius: 6px;
  background: #4a4a4a;
}
:is(#research, #contact) .action-caption {
  place-self: center;
  padding: 8px 16px;
  color: white;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
}

#projects .d147 { margin: 8px 0 0; color: var(--muted); }
#projects .d147 > p { line-height: inherit; }
#projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.phone-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  gap: 6px 8px;
  align-items: end;
  margin-bottom: 20px;
}
.phone-project > p:first-child { grid-area: 1 / 2; color: var(--muted); font-size: 13px; }
.phone-project > p:nth-child(2) { grid-area: 1 / 1; font-size: 15px; font-weight: 600; line-height: 1.25; }
.phone-project > div {
  position: relative;
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

#research .d174 { order: -9; margin-bottom: 10px; font-size: 22px; font-weight: 600; line-height: 1.25; }
#research .d175 { order: -8; margin-bottom: 18px; color: var(--muted); }
.research-papers { position: static; order: -7; width: auto; margin-bottom: 24px; }
.research-papers-count { font-size: 16px; }
.research-papers ul { gap: 18px 16px; margin-top: 20px; padding-top: 20px; }
.paper-venue { font-size: 16px; }
.paper-title { margin-top: 2px; font-size: 13px; }

#team article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px 10px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
#team article:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
#team :is(article, .team-text) > :not(a) { grid-column: 1 / -1; }
#team :is(article, .team-text) > div:first-child {
  position: relative;
  width: min(100%, 410px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ececee;
}
#team article img { object-position: center 35%; }
#team .team-text .team-area { margin-top: 4px; font-size: 12px; }
#team article .team-text h3 { font-size: 24px; font-weight: 700; line-height: 1.2; }
#team :is(article, .team-text) > div p { line-height: inherit; }
#team :is(article, .team-text) > a:not(.email-link) { position: relative; width: 48px; height: 48px; }
#team article .team-text .email-link { display: flex; align-items: center; overflow-wrap: anywhere; }

#contact > h2 { text-align: center; }
#contact .contact-content {
  position: static;
  inset: auto;
  width: auto;
  translate: none;
  display: flex;
  flex-direction: column;
}
#contact-form { order: -5; display: grid; gap: 8px; margin-bottom: 32px; }
#contact-form label { color: var(--ink); font-size: 15px; font-weight: 600; }
#contact-form label .label-line { font: inherit; }
#contact-form :is(input, textarea) {
  width: 100%;
  min-height: 48px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #828688;
  border-radius: 8px;
  font-size: 16px;
}
#contact-form textarea { min-height: 144px; resize: vertical; }
#contact .d214 { display: none; }
#contact .d215 { order: -4; margin-bottom: 12px; }
#contact .d216 { order: -3; }
#contact .d229 { order: -2; }
#contact .d218 { order: 1; }
#contact .contact-content > .d216 { display: block; margin-top: 12px; }
#contact .contact-content > :is(.d229, .d218) { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; min-height: 44px; }
#contact .d229 br { display: none; }
#contact .d225 { order: 2; margin-top: 16px; }
.contact-socials {
  --u: .68px;
  position: relative;
  display: block;
  order: 3;
  width: calc(382.17 * var(--u));
  height: calc(51 * var(--u));
  margin-top: 24px;
}
.contact-socials-art {
  position: absolute;
  display: block;
  top: calc(-1626 * var(--u));
  left: calc(-758 * var(--u));
}
#footer { align-items: center; padding-block: 28px; }
#footer .d261 { position: relative; inset: auto; width: 100px; height: 30px; }
#team .team-text { display: contents; }
