:root {
  --cream: #fff3d6;
  --paper: #fffcf5;
  --ink: #17213a;
  --muted: #5f6878;
  --cobalt: #2347c8;
  --cobalt-light: #dde6ff;
  --coral: #f05a47;
  --line: rgba(23, 33, 58, 0.22);
  --line-light: rgba(255, 252, 245, 0.28);
  --shell: 1180px;
  --sans: "Arial Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 4px solid var(--coral);
  outline-offset: 4px;
}

::selection {
  background: var(--coral);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

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

.shell {
  width: min(calc(100% - 64px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
}

.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
}

.wordmark {
  width: max-content;
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.9;
  text-decoration: none;
}

.brand-end {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: var(--coral);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a,
.footer-bottom a {
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover,
.footer-bottom a:hover {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.header-inner > .button {
  justify-self: end;
}

.button {
  min-height: 52px;
  width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  background: var(--cobalt);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--paper);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition: box-shadow 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.button:hover {
  background: #18359d;
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(3px, 3px);
}

.button-small {
  min-height: 43px;
  padding-inline: 16px;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero {
  padding-top: 84px;
  overflow: hidden;
  background: var(--cream);
}

.hero-layout {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  gap: 86px;
  align-items: center;
  padding-block: 82px;
}

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

.eyebrow {
  margin: 0 0 28px;
  color: var(--cobalt);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 7px;
  margin: 0 12px 1px 0;
  display: inline-block;
  background: var(--cobalt);
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(4.2rem, 7.4vw, 6.6rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.86;
  text-wrap: balance;
}

.hero h1 strong {
  color: var(--cobalt);
  font-weight: inherit;
}

.hero h1 > span {
  margin-top: 18px;
  display: block;
  color: var(--coral);
  font-size: 0.54em;
  letter-spacing: -0.045em;
  line-height: 1;
}

.hero-lead {
  max-width: 650px;
  margin: 38px 0 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.62;
}

.actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.text-link,
.footer-product {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 3px solid var(--coral);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.flow-figure {
  position: relative;
  margin: 0;
}

.flow-figure figcaption {
  position: absolute;
  z-index: 2;
  top: -22px;
  right: -18px;
  max-width: 210px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
  transform: rotate(2deg);
}

.flow-map {
  min-height: 525px;
  padding: 54px 42px;
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) minmax(160px, 1fr);
  grid-template-rows: 1fr auto;
  gap: 34px 42px;
  align-items: center;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--cobalt);
}

.flow-channels {
  position: relative;
  margin: 0;
  padding: 0 32px 0 0;
  display: grid;
  gap: 20px;
  list-style: none;
}

.flow-channels::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 0;
  bottom: 20px;
  width: 8px;
  background: var(--cobalt);
}

.flow-channels li {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.flow-channels li::after {
  content: "";
  position: absolute;
  left: 100%;
  width: 32px;
  height: 8px;
  background: var(--cobalt);
}

.flow-engine {
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  background: var(--cobalt);
  color: var(--paper);
  text-align: center;
}

.flow-engine::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 42px;
  height: 8px;
  background: var(--cobalt);
  transform: translateY(-50%);
}

.flow-engine::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 8px;
  height: 38px;
  background: var(--cobalt);
  transform: translateX(-50%);
}

.flow-engine span,
.flow-human strong {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.flow-engine small {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.flow-human {
  position: relative;
  grid-column: 2;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  background: var(--coral);
  color: var(--ink);
  text-align: center;
}

.flow-human span {
  font-size: 0.76rem;
  font-weight: 800;
}

.proof-strip {
  border-block: 3px solid var(--ink);
  background: var(--cobalt);
  color: var(--paper);
}

.proof-strip-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: 0.55fr 1.3fr 1fr;
  align-items: stretch;
}

.proof-strip-inner span {
  display: flex;
  align-items: center;
  padding: 16px 28px;
  font-size: 0.78rem;
  font-weight: 800;
}

.proof-strip-inner span + span {
  border-left: 2px solid var(--paper);
}

.section {
  padding-block: 128px;
}

.solutions-section {
  background: var(--cobalt);
  color: var(--paper);
}

.solutions-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.55fr);
  gap: 90px;
  align-items: end;
}

.eyebrow-light {
  color: var(--cobalt-light);
}

.eyebrow-light::before {
  background: var(--coral);
}

.solutions-heading h2,
.method-intro h2,
.project-heading h2,
.contact-copy h2,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(3.7rem, 7vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
  text-wrap: balance;
}

.solutions-heading h2 strong,
.method-intro h2 strong {
  color: var(--coral);
  font-weight: inherit;
}

.solutions-heading > p {
  margin: 0;
  color: #edf1ff;
  font-size: 1.04rem;
  line-height: 1.65;
}

.solution-grid {
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 3px solid var(--paper);
}

.solution-grid article {
  min-height: 355px;
  padding: 34px 34px 38px;
  display: flex;
  flex-direction: column;
  border-bottom: 3px solid var(--paper);
}

.solution-grid article + article {
  border-left: 3px solid var(--paper);
}

.solution-grid article > p {
  margin: 0;
  color: var(--cobalt-light);
  font-size: 0.75rem;
  font-weight: 800;
}

.solution-grid h3 {
  margin: auto 0 20px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.solution-grid article > span {
  max-width: 300px;
  color: #edf1ff;
  line-height: 1.65;
}

.button-inverse {
  background: var(--coral);
  color: var(--ink);
}

.button-inverse:hover {
  background: #d94836;
}

.projects-section {
  border-top: 3px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
}

.project-heading > div {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(330px, 0.55fr);
  gap: 90px;
  align-items: end;
}

.project-heading > div > p {
  max-width: 460px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.project-card {
  margin-top: 76px;
  display: grid;
  grid-template-columns: minmax(300px, 0.6fr) minmax(0, 1.4fr);
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 13px 13px 0 var(--cobalt);
}

.project-copy {
  padding: 42px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.otello-logo {
  width: 155px;
  height: auto;
}

.project-copy > p {
  margin: 42px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-proof {
  width: 100%;
  margin: 42px 0;
}

.project-proof > div {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 20px;
  border-top: 2px solid var(--ink);
}

.project-proof > div:last-child {
  border-bottom: 2px solid var(--ink);
}

.project-proof dt {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.project-proof dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.project-visual {
  min-width: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 3px solid var(--ink);
  background: var(--cobalt);
}

.project-visual > p {
  margin: 0 0 22px;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-screen {
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--ink);
}

.product-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.method-section {
  background: var(--paper);
  color: var(--ink);
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1fr);
  gap: 110px;
}

.method-intro {
  align-self: start;
}

.method-steps {
  border-top: 4px solid var(--cobalt);
}

.method-steps article {
  min-height: 190px;
  padding: 30px 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  grid-template-rows: auto auto;
  column-gap: 30px;
  align-content: center;
  border-bottom: 2px solid var(--ink);
}

.method-steps article > p {
  grid-row: 1 / 3;
  margin: 7px 0 0;
  color: var(--cobalt);
  font-size: 0.78rem;
  font-weight: 850;
}

.method-steps h3 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.method-steps article > span {
  max-width: 490px;
  margin-top: 13px;
  color: var(--muted);
}

.contact-section {
  border-top: 3px solid var(--ink);
  background: var(--coral);
  color: var(--ink);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.55fr);
  gap: 110px;
  align-items: end;
}

.eyebrow-human {
  color: var(--ink);
}

.eyebrow-human::before {
  background: var(--ink);
}

.contact-copy > p:not(.eyebrow) {
  margin: 30px 0 0;
  font-size: 1.06rem;
}

.contact-email {
  width: max-content;
  max-width: 100%;
  min-height: 68px;
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-bottom: 5px solid var(--ink);
  font-size: clamp(1.8rem, 4.6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  text-decoration: none;
}

.contact-copy > .contact-address {
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 800;
}

.company-details {
  padding: 28px;
  border: 3px solid var(--ink);
  background: var(--cream);
  box-shadow: 9px 9px 0 var(--ink);
  font-style: normal;
}

.company-details > p {
  margin: 0 0 38px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.company-details dl {
  margin: 0;
}

.company-details dl > div {
  padding: 16px 0;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 22px;
  border-top: 2px solid var(--ink);
}

.company-details dt {
  font-size: 0.74rem;
  font-weight: 850;
}

.company-details dd {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer {
  padding-block: 72px 28px;
  background: var(--ink);
  color: var(--paper);
}

.footer-main {
  min-height: 175px;
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 55px;
  align-items: start;
}

.wordmark-footer {
  color: var(--paper);
  font-size: 2.3rem;
}

.footer-main > p {
  max-width: 470px;
  margin: 0;
  color: var(--paper);
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.footer-product {
  border-color: var(--coral);
  color: var(--paper);
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 2px solid var(--line-light);
  color: #c8cedc;
  font-size: 0.74rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  gap: 26px;
}

.legal-main {
  background: var(--paper);
}

.legal-hero {
  padding: 190px 0 90px;
  border-bottom: 3px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
}

.legal-hero h1 {
  max-width: 850px;
}

.legal-hero .legal-meta {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.legal-layout {
  padding-block: 90px 140px;
  display: grid;
  grid-template-columns: 250px minmax(0, 720px);
  gap: 110px;
  justify-content: space-between;
}

.legal-index {
  position: sticky;
  top: 30px;
  align-self: start;
  padding: 24px;
  border: 3px solid var(--ink);
  background: var(--cream);
  box-shadow: 7px 7px 0 var(--cobalt);
}

.legal-index p {
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 850;
}

.legal-index ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.legal-index a {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  text-decoration-color: var(--coral);
  text-underline-offset: 4px;
}

.legal-content section {
  padding: 42px 0 46px;
  border-top: 2px solid var(--ink);
  scroll-margin-top: 20px;
}

.legal-content section:first-child {
  border-top: 8px solid var(--cobalt);
}

.legal-content h2 {
  margin: 0 0 24px;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.legal-content p,
.legal-content li {
  color: #3f485b;
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 22px;
}

@media (max-width: 1020px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 75px;
  }

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

  .flow-figure {
    max-width: 680px;
  }

  .solutions-heading,
  .project-heading > div,
  .method-layout,
  .contact-layout {
    gap: 70px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 34px), var(--shell));
  }

  .header-inner {
    min-height: 72px;
  }

  .wordmark {
    font-size: 1.75rem;
  }

  .brand-end {
    width: 12px;
    height: 12px;
  }

  .header-inner > .button {
    min-height: 42px;
    padding-inline: 12px;
    box-shadow: 2px 2px 0 var(--ink);
    font-size: 0.69rem;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-layout {
    min-height: auto;
    gap: 65px;
    padding-block: 72px 70px;
  }

  .hero h1 {
    font-size: clamp(3.75rem, 18vw, 5.25rem);
  }

  .hero h1 > span {
    margin-top: 16px;
    font-size: 0.52em;
  }

  .hero-lead {
    margin-top: 30px;
    font-size: 1rem;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-top: 34px;
  }

  .flow-figure figcaption {
    position: relative;
    top: auto;
    right: auto;
    width: max-content;
    max-width: calc(100% - 10px);
    margin: 0 0 -2px 10px;
    transform: rotate(-1deg);
  }

  .flow-map {
    min-height: auto;
    padding: 35px 24px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 42px;
    box-shadow: 8px 8px 0 var(--cobalt);
  }

  .flow-channels {
    padding: 0 0 32px;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .flow-channels::after {
    top: auto;
    right: 20px;
    bottom: 0;
    left: 20px;
    width: auto;
    height: 8px;
  }

  .flow-channels li::after {
    top: 100%;
    left: 50%;
    width: 8px;
    height: 32px;
    transform: translateX(-50%);
  }

  .flow-engine {
    min-height: 130px;
  }

  .flow-engine::before {
    top: auto;
    right: auto;
    bottom: 100%;
    left: 50%;
    width: 8px;
    height: 42px;
    transform: translateX(-50%);
  }

  .flow-human {
    grid-column: 1;
  }

  .proof-strip-inner {
    grid-template-columns: 1fr;
  }

  .proof-strip-inner span {
    min-height: 57px;
    padding-inline: 0;
  }

  .proof-strip-inner span + span {
    border-top: 2px solid var(--paper);
    border-left: 0;
  }

  .section {
    padding-block: 90px;
  }

  .solutions-heading,
  .project-heading > div,
  .method-layout,
  .contact-layout,
  .footer-main,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .solutions-heading,
  .project-heading > div {
    gap: 34px;
  }

  .solutions-heading h2,
  .method-intro h2,
  .project-heading h2,
  .contact-copy h2,
  .legal-hero h1 {
    font-size: clamp(3.35rem, 16vw, 4.8rem);
  }

  .solution-grid {
    margin-top: 62px;
    grid-template-columns: 1fr;
  }

  .solution-grid article {
    min-height: 290px;
    padding: 28px 0 34px;
  }

  .solution-grid article + article {
    border-top: 0;
    border-left: 0;
  }

  .project-card {
    margin-top: 58px;
    grid-template-columns: 1fr;
    box-shadow: 8px 8px 0 var(--cobalt);
  }

  .project-copy {
    padding: 28px 24px 34px;
  }

  .project-visual {
    padding: 18px;
    border-top: 3px solid var(--ink);
    border-left: 0;
  }

  .product-screen {
    overflow-x: auto;
  }

  .product-screen img {
    width: 700px;
    max-width: none;
  }

  .method-layout {
    gap: 58px;
  }

  .method-steps article {
    min-height: 175px;
    grid-template-columns: 72px 1fr;
    column-gap: 20px;
  }

  .contact-layout {
    gap: 72px;
  }

  .contact-email {
    overflow-wrap: anywhere;
  }

  .company-details {
    padding: 22px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .footer-main {
    min-height: 270px;
    gap: 36px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-hero {
    padding: 150px 0 70px;
  }

  .legal-layout {
    gap: 58px;
    padding-block: 60px 100px;
  }

  .legal-index {
    position: static;
  }
}

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

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