@font-face {
  font-family: "Inter Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-display-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Messina Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/MessinaSansCompleteWeb-VF-Upright_TESTFONT.woff2") format("woff2");
}

@font-face {
  font-family: "Messina Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/MessinaSansCompleteWeb-VF-Italic_TESTFONT.woff2") format("woff2");
}

:root {
  --font-body: "Messina Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-heading: "Inter Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color-scheme: light;
  --ink: #000000;
  --type-tag: clamp(0.75rem, 0.74rem + 0.046vw, 0.8125rem);
  --type-label: clamp(0.875rem, 0.8525rem + 0.0922vw, 1rem);
  --type-body: clamp(1rem, 0.9775rem + 0.0922vw, 1.125rem);
  --type-lead: clamp(1.125rem, 1.0575rem + 0.2765vw, 1.5rem);
  --type-list: clamp(1.125rem, 0.97rem + 0.645vw, 2rem);
  --type-heading: clamp(1.75rem, 1.525rem + 0.922vw, 3rem);
  --type-statement: clamp(1.75rem, 1.35rem + 1.65vw, 4rem);
  --type-hero: clamp(2rem, 1.55rem + 1.85vw, 4.5rem);
  --type-display: clamp(2rem, 1.3rem + 2.86vw, 5.875rem);
  --leading-heading: 1.1;
  --leading-body: 1.45;
  --grid-columns: 12;
  --grid-gutter: 16px;
  --grid-margin: 16px;
}

@media (min-width: 768px) {
  :root {
    --grid-gutter: 24px;
    --grid-margin: 32px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: #ffffff;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

/* page content shares the overlay's tracks */
h1,
h2,
h3,
.mission {
  font-family: var(--font-heading);
}

main {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  min-height: 100vh;
  min-height: 100dvh;
  padding-inline: var(--grid-margin);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  padding: calc(var(--grid-margin) - 12px) var(--grid-margin) 0;
  font-size: var(--type-label);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  grid-column: 1 / span 9;
  gap: 20px;
  /* cancels the P side bearing */
  margin-left: -0.072em;
}

/* Keep navigation targets comfortable at every type size. */
.site-header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 10px;
  color: inherit;
  text-decoration: none;
  transition: opacity 160ms ease-out;
}

.site-header a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (hover: hover) {
  .site-header a:hover {
    opacity: 0.5;
  }
}

.site-header__contact {
  grid-column: 10 / -1;
  justify-self: end;
  margin-right: -0.014em;
}

.site-header__tagline {
  grid-row: 2;
  grid-column: 1 / -1;
  max-width: 30ch;
  margin: 4px 0 0;
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .site-nav {
    grid-column: 1 / span 3;
  }

  .site-header__tagline {
    grid-row: 1;
    grid-column: 4 / span 6;
    max-width: none;
    margin: 10px 0 0;
    text-align: center;
  }
}

main > section {
  min-height: 100vh;
  min-height: 100dvh;
  align-content: center;
}

.hero {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  /* bleed past the page margins so the image can crop at the viewport edge */
  margin-inline: calc(var(--grid-margin) * -1);
  padding-inline: var(--grid-margin);
  overflow: hidden;
}

.mission {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  padding-block: 96px;
  border-top: 1px solid rgb(0 0 0 / 12%);
  font-size: var(--type-hero);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-align: center;
}

.mission p {
  grid-column: 1 / -1;
  margin: 0;
  text-wrap: balance;
}

.mission p + p {
  margin-top: 0.4em;
  color: rgb(0 0 0 / 55%);
}

.cases {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  row-gap: var(--grid-gutter);
  padding-bottom: 96px;
}

.case {
  position: relative;
  grid-column: 1 / -1;
  font-size: var(--type-label);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.case__media {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  aspect-ratio: 4 / 5;
  margin-bottom: 16px;
  padding: 24px;
  border-radius: 20px;
  background: #f3f3f3;
  overflow: hidden;
}

/* the work sits as an object in the box at its own ratio */
.case__media video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  border-radius: 8px;
  outline: 1px solid rgb(0 0 0 / 6%);
  outline-offset: -1px;
}

.case__media .arrow-link {
  position: absolute;
  top: 24px;
  right: 24px;
}

.case h3,
.case p {
  margin: 0;
  font: inherit;
}

.case p {
  color: rgb(0 0 0 / 55%);
}

@media (min-width: 768px) {
  .cases {
    padding-bottom: 200px;
  }

  .case {
    grid-column: span 4;
  }

  .case__media {
    border-radius: 24px;
  }
}

.arrow-link {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 4%),
    0 1px 2px rgb(0 0 0 / 6%);
  color: inherit;
  transition: transform 160ms ease-out;
}

/* stretches the hit area over the whole box */
.arrow-link::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
}

.arrow-link svg {
  transition: transform 200ms ease-out;
}

.arrow-link:active {
  transform: scale(0.96);
}

.arrow-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (hover: hover) {
  .case:hover .arrow-link svg {
    transform: translateX(2px);
  }
}

/* -45% centers the figure's head, not the file */
.hero__image {
  position: absolute;
  bottom: 0;
  left: 50%;
  /* height cap keeps the figure clear of the title on short screens */
  width: min(130vw, 66vh);
  max-width: none;
  height: auto;
  transform: translate(-45%, 4%);
  user-select: none;
  pointer-events: none;
}

.hero__title {
  display: contents;
  font-size: var(--type-hero);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero__title span {
  position: relative;
  grid-row: 1;
  align-self: start;
  margin-top: 18vh;
}

/* margins cancel the H and r side bearings so the ink sits on the column line */
.hero__title span:first-child {
  grid-column: 1 / span 6;
  margin-left: -0.072em;
}

.hero__title span:last-child {
  grid-column: 7 / -1;
  margin-right: 0.02em;
  text-align: right;
}

/* words flank the figure only when the viewport is wide enough */
@media (min-width: 768px) and (min-aspect-ratio: 5/4) {
  .hero__image {
    width: auto;
    height: 111%;
  }

  .hero__title span {
    align-self: center;
    margin-top: 0;
  }

  .hero__title span:first-child {
    grid-column: 3 / span 3;
  }

  .hero__title span:last-child {
    grid-column: 8 / span 3;
  }

  .mission {
    padding-block: 200px;
  }

  .mission p {
    grid-column: 3 / span 8;
  }
}

/* projects page */
.page-projects {
  align-content: start;
  padding-top: 160px;
  font-size: var(--type-label);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.projects-bar {
  grid-column: 1 / -1;
  margin-bottom: 40px;
  margin-left: -0.072em;
}

.view-toggle button {
  padding: 10px 0;
  border: 0;
  background: none;
  color: rgb(0 0 0 / 45%);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 160ms ease-out;
}

.view-toggle button[aria-pressed="true"] {
  color: var(--ink);
}

.view-toggle button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.projects {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  row-gap: 64px;
  padding-bottom: 160px;
}

.project {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: start;
}

.project__text {
  grid-column: 1 / -1;
  color: inherit;
  text-decoration: none;
}

.project__text h2 {
  margin: 0 0 8px -0.072em;
  font-size: var(--type-label);
  font-weight: 400;
  line-height: 1.35;
}

.project__text p {
  margin: 0;
  color: rgb(0 0 0 / 55%);
  text-wrap: pretty;
}

.project__thumbs {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: start;
  margin-top: 16px;
}

.project__thumb {
  border-radius: 4px;
  background: #f3f3f3;
}

@media (min-width: 768px) {
  .projects[data-view="list"] .project__text {
    grid-column: 1 / span 2;
  }

  .projects[data-view="list"] .project__thumbs {
    grid-column: 3 / -1;
    margin-top: 0;
  }
}

/* grid view: four per row, one thumbnail each */
.projects[data-view="grid"] {
  row-gap: 48px;
}

.projects[data-view="grid"] .project {
  display: flex;
  flex-direction: column;
  grid-column: span 6;
  align-items: stretch;
}

.projects[data-view="grid"] .project__thumbs {
  order: -1;
  display: block;
  margin: 0 0 16px;
}

.projects[data-view="grid"] .project__thumb {
  aspect-ratio: 4 / 3 !important;
  border-radius: 12px;
}

.projects[data-view="grid"] .project__thumb ~ .project__thumb {
  display: none;
}

@media (min-width: 768px) {
  .projects[data-view="grid"] .project {
    grid-column: span 3;
  }
}

/* projects v2: one full-width card per project */
.page-features {
  align-content: start;
  padding-top: 120px;
}

.features {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  row-gap: 16px;
  padding-bottom: 160px;
}

/* card sits 16px from the viewport; its padding puts content back on the columns */
.feature {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  row-gap: 32px;
  margin-inline: calc(16px - var(--grid-margin));
  padding: 32px calc(var(--grid-margin) - 16px);
  border-radius: 24px;
  background: #f3f3f3;
}

.feature__text {
  display: flex;
  grid-column: 1 / -1;
  flex-direction: column;
  color: inherit;
  font-size: var(--type-label);
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.feature__eyebrow {
  margin: 0 0 16px;
  color: rgb(0 0 0 / 55%);
}

.feature__text h2 {
  margin: 0 0 32px -0.072em;
  font-size: var(--type-heading);
  font-weight: 400;
  line-height: var(--leading-heading);
  letter-spacing: -0.04em;
}

.feature__body {
  max-width: 44ch;
  margin: auto 0 0;
  font-size: var(--type-lead);
  line-height: var(--leading-body);
  text-wrap: pretty;
}

.feature__media {
  grid-column: 1 / -1;
  aspect-ratio: 5 / 4;
  border-radius: 16px;
  background: #e4e4e4;
}

@media (min-width: 768px) {
  .feature__text {
    grid-column: 1 / span 5;
  }

  .feature__media {
    grid-column: 7 / -1;
  }
}

.carousel {
  --carousel-gap: 20px;
  --carousel-margin: var(--grid-margin);
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  padding-block: 96px;
}

.carousel__title {
  grid-column: 1 / -1;
  margin: 0 0 40px calc(var(--carousel-margin) - var(--grid-margin) - 0.072em);
  font-size: var(--type-heading);
  font-weight: 400;
  line-height: var(--leading-heading);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* track bleeds to the viewport edge; scroll padding keeps snaps on the column line */
.carousel__track {
  display: flex;
  grid-column: 1 / -1;
  gap: var(--carousel-gap);
  margin: 0 calc(var(--grid-margin) * -1);
  padding: 0 var(--carousel-margin);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--carousel-margin);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 85%;
  scroll-snap-align: start;
  font-size: var(--type-label);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.carousel__media {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  aspect-ratio: 1250 / 918;
  padding: 24px;
  border-radius: 20px;
  background: #f3f3f3;
  overflow: hidden;
}

.carousel__media video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  border-radius: 8px;
  outline: 1px solid rgb(0 0 0 / 6%);
  outline-offset: -1px;
}

.carousel__caption {
  margin-top: 20px;
  padding-inline: 16px;
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.carousel__caption p {
  max-width: 48ch;
  margin: 0;
  color: rgb(0 0 0 / 55%);
  text-wrap: pretty;
}

.carousel__caption strong {
  color: var(--ink);
  font-weight: 400;
}

.carousel__caption .tags {
  margin-bottom: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f3f3;
  font-size: var(--type-tag);
  line-height: 1.35;
  letter-spacing: 0;
}

.carousel__controls {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.carousel__controls button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 160ms ease-out,
    opacity 160ms ease-out;
}

.carousel__controls button:active {
  transform: scale(0.96);
}

.carousel__controls button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.carousel__controls button:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (min-width: 768px) {
  .carousel {
    padding-block: 200px 160px;
  }

  .carousel__slide {
    flex-basis: calc((100% + var(--grid-gutter)) * 5 / 12 - var(--grid-gutter));
  }

  .carousel__media {
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header a,
  .view-toggle button,
  .carousel__controls button,
  .arrow-link,
  .arrow-link svg {
    transition: none;
  }
}

.capabilities {
  align-content: start;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  row-gap: 40px;
  padding-block: 24px clamp(80px, 8vw, 160px);
}

.capabilities > h2 {
  grid-column: 1 / -1;
  margin: 0 0 0 -0.04em;
  font-size: var(--type-statement);
  font-weight: 400;
  line-height: var(--leading-heading);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.capabilities__group {
  grid-column: span 6;
  min-width: 0;
}

.capabilities__group h3 {
  margin: 0 0 16px;
  color: rgb(0 0 0 / 55%);
  font-size: var(--type-label);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.capabilities__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--type-list);
  line-height: 1.35;
  letter-spacing: -0.045em;
}

.capabilities__group li {
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .capabilities__group {
    grid-column: span 4;
  }
}

@media (min-width: 1200px) {
  .capabilities > h2 {
    grid-column: 1 / span 6;
  }

  .capabilities__group {
    grid-column: span 2;
  }
}

.founders {
  background: oklch(.945 0 0);
  margin-inline: calc(var(--grid-margin) * -1);
  padding-inline: var(--grid-margin);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  grid-column: 1 / -1;
  justify-items: center;
  padding-block: clamp(64px, 8vw, 144px);
  text-align: center;
}

.founders--gradient {
  isolation: isolate;
  color: oklch(1 0 0);
  background: linear-gradient(0deg in oklab,
    oklch(0.9245 0.0161 99.2) 0%,
    oklch(0.9235 0.0161 99.1) 3%,
    oklch(0.9231 0.0160 99.8) 6%,
    oklch(0.9220 0.0156 102.0) 9%,
    oklch(0.9201 0.0152 100.7) 12%,
    oklch(0.9177 0.0141 100.7) 15%,
    oklch(0.9150 0.0140 103.4) 18%,
    oklch(0.9110 0.0141 103.8) 21%,
    oklch(0.9071 0.0145 105.0) 24%,
    oklch(0.9028 0.0142 103.9) 27%,
    oklch(0.8973 0.0145 107.9) 30%,
    oklch(0.8891 0.0150 111.4) 33%,
    oklch(0.8785 0.0147 112.8) 36%,
    oklch(0.8648 0.0120 112.7) 39%,
    oklch(0.8471 0.0097 113.0) 42%,
    oklch(0.8257 0.0095 117.1) 45%,
    oklch(0.8011 0.0101 129.7) 48%,
    oklch(0.7746 0.0100 140.7) 51%,
    oklch(0.7457 0.0103 144.8) 54%,
    oklch(0.7111 0.0105 145.4) 57%,
    oklch(0.6676 0.0105 149.4) 60%,
    oklch(0.6142 0.0105 156.3) 63%,
    oklch(0.5518 0.0115 154.0) 66%,
    oklch(0.4855 0.0129 149.8) 69%,
    oklch(0.4238 0.0135 149.0) 72%,
    oklch(0.3698 0.0146 147.6) 75%,
    oklch(0.3222 0.0163 143.3) 78%,
    oklch(0.2804 0.0166 138.5) 81%,
    oklch(0.2447 0.0175 135.4) 84%,
    oklch(0.2167 0.0201 127.8) 87%,
    oklch(0.2030 0.0210 121.0) 90%,
    oklch(.187 .017 126) 94%,
    oklch(.174 .016 123) 97%,
    oklch(.163 .015 121) 100%);
}

.founders h2 {
  max-width: 26ch;
  margin: 0;
  font-size: var(--type-display);
  font-weight: 400;
  line-height: var(--leading-heading);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

/* A shallow horizontal water plane beneath the real headline. */
.founders__visual {
  width: calc(100% + var(--grid-margin) * 2);
  mask-image: linear-gradient(to bottom, #000 0%, #000 12%, rgb(0 0 0 / 65%) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 12%, rgb(0 0 0 / 65%) 45%, transparent 100%);
  height: clamp(200px, 23vw, 380px);
  margin-top: clamp(40px, 5vw, 80px);
  margin-bottom: 16px;
  position: relative;
}

.founders__body {
  display: grid;
  justify-items: center;
  gap: 28px;
  max-width: 48ch;
}

.founders__body p {
  margin: 0;
  color: oklch(0 0 0 / 65%);
  font-size: var(--type-lead);
  line-height: var(--leading-body);
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.founders__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: oklch(1 0 0);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  text-decoration: none;
  transition: transform 160ms ease-out, background-color 160ms ease-out;
}

.founders__cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (hover: hover) {
  .founders__cta:hover { background-color: oklch(.321 0 0); }
  .founders--gradient .founders__cta:hover { background-color: oklch(.321 0 0); }
}

.founders--gradient .founders__body p {
  color: oklch(.55 0 0);
  mix-blend-mode: multiply;
}
.founders--gradient .founders__cta {
  background: oklch(.183 .027 119);
  color: oklch(1 0 0);
}
.founders--gradient .founders__cta:focus-visible { outline-color: oklch(.183 .027 119); }

.founders__cta:active { transform: scale(0.96); }

@media (prefers-reduced-motion: reduce) {
  .founders__cta { transition: none; }
}

.founders h2 span { display: block; }
.founders__water { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

.founders__water[hidden] { display: none; }
.founders__visual--orb,
.founders__visual--empty {
  width: min(100%, 860px);
  height: clamp(320px, 35vw, 500px);
  margin-top: clamp(32px, 4vw, 64px);
  margin-bottom: 24px;
  mask-image: none;
  -webkit-mask-image: none;
}

.founders__orb-still {
  position: absolute;
  inset: 16% 18% 20%;
  border-radius: 46% 54% 59% 41% / 48% 42% 58% 52%;
  background: radial-gradient(ellipse at 32% 22%, #fff 8%, transparent 40%),
    radial-gradient(ellipse at 72% 75%, oklch(0 0 0 / 14%), transparent 54%), oklch(.978 0 0);
  box-shadow: inset 3px 6px 8px rgb(255 255 255 / 90%),
    inset -6px -8px 6px oklch(0 0 0 / 65%), 0 24px 28px -22px oklch(0 0 0 / 8%);
}

.founders .founders__reflection {
  margin-inline: auto;
  transform: scaleY(-1);
  opacity: .3;
  mask-image: linear-gradient(to top, #000, transparent);
}
