:root {
  --color-pale-blue: #5294EB;
  --color-deep-blue: #252D42;
  --color-white: #FDFCFC;
  --color-accessible-blue: #247AC5;
  --color-web-pale-blue: #F4F7FF;
  --color-palest-blue: #E1EBF8;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--color-deep-blue);
  background:
    radial-gradient(circle at top right, rgb(82 148 235 / 22%), transparent 24rem),
    linear-gradient(180deg, var(--color-white) 0%, var(--color-web-pale-blue) 56%, var(--color-palest-blue) 100%);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, 1140px);
  margin-inline: auto;
}

.page-shell {
  flex: 1;
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.5rem;
  border-radius: 1.5rem;
  background: var(--color-white);
  border: 1px solid rgb(82 148 235 / 22%);
  box-shadow: 0 1rem 2.5rem rgb(37 45 66 / 10%);
}

.brand-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgb(253 252 252 / 88%), rgb(253 252 252 / 52%)),
    url("assets/ai-flow-background.png") center / cover no-repeat;
}

.brand-panel__logo-stack {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 2.35rem 0 0 3.15rem;
}

.brand-panel__partner-logo {
  position: absolute;
  top: 0;
  left: 0.25rem;
  width: min(9rem, 34vw);
  height: auto;
  display: block;
}

.brand-panel__logo {
  width: min(13rem, 34vw);
  max-width: 100%;
  height: auto;
  display: block;
}

.brand-panel__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.brand-panel__title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 700;
}

.brand-panel__credit {
  margin: 0;
  color: var(--color-accessible-blue);
  font-size: 0.98rem;
  line-height: 1.35;
}

.brand-panel__credit--lead {
  margin-top: 0.35rem;
}

.brand-panel__name {
  font-weight: 700;
  color: var(--color-deep-blue);
}

.brand-panel__name--lead {
  font-size: 1.22em;
}

.intro-panel,
.projects-section {
  padding: 1.5rem;
  border-radius: 1.5rem;
  color: var(--color-deep-blue);
  background: var(--color-white);
  border: 1px solid rgb(82 148 235 / 28%);
  box-shadow: 0 1rem 2.5rem rgb(37 45 66 / 10%);
}

.intro-panel {
  margin-bottom: 1.25rem;
}

.section-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--color-accessible-blue);
}

.intro-panel h1,
.section-heading h2 {
  margin: 0;
  font-weight: 700;
}

.intro-panel h1 {
  max-width: 54rem;
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
}

.intro-panel p:last-child {
  max-width: 54rem;
  margin: 0.75rem 0 0;
  color: var(--color-accessible-blue);
  font-size: 1rem;
  line-height: 1.65;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 2.3vw, 2rem);
}

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

.project-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgb(82 148 235 / 22%);
  border-radius: 0.75rem;
  background: rgb(244 247 255 / 46%);
}

.project-card__logo-frame {
  height: 8rem;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border-radius: 0.65rem;
  background: var(--color-white);
  border: 1px solid rgb(82 148 235 / 22%);
}

.project-card__logo {
  max-width: 100%;
  max-height: 6.5rem;
  object-fit: contain;
}

.project-card__logo-frame--wide .project-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-card__logo-frame--placeholder {
  align-content: center;
  color: var(--color-deep-blue);
  text-align: center;
}

.project-card__logo-frame--placeholder span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

.project-card__logo-frame--placeholder small {
  display: block;
  margin-top: 0.15rem;
  color: var(--color-accessible-blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.project-card__body h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.project-card__body p {
  margin: 0;
  color: var(--color-deep-blue);
  line-height: 1.58;
}

.project-card__accent {
  color: var(--color-accessible-blue);
  font-weight: 700;
}

.project-card__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-height: 2.55rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--color-deep-blue);
  border: 1px solid var(--color-deep-blue);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
}

.project-card__link:hover,
.project-card__link:focus-visible {
  background: var(--color-accessible-blue);
  border-color: var(--color-accessible-blue);
}

.project-card__link--disabled {
  background: var(--color-palest-blue);
  border-color: var(--color-palest-blue);
  color: var(--color-deep-blue);
  cursor: default;
}

.onterris-cta-button {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  justify-content: center;
  gap: 1rem;
  width: fit-content;
  max-width: max-content;
  height: 45px;
  padding: 0 0.5rem 0 1rem;
  border: 1px solid var(--color-deep-blue);
  border-radius: 40px;
  background: var(--color-deep-blue);
  color: var(--color-white);
  font-family: "Inter Tight", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.5s, border 0.5s, color 0.5s;
}

.onterris-cta-button svg {
  width: 29px;
  height: 29px;
  padding: 8px;
  border-radius: 50%;
  background: var(--color-pale-blue);
  color: var(--color-white);
  flex: 0 0 auto;
}

.onterris-cta-button:hover,
.onterris-cta-button:focus-visible,
.onterris-cta-button:active,
.onterris-cta-button--pressed {
  background: var(--color-pale-blue);
  border-color: var(--color-pale-blue);
  color: var(--color-deep-blue);
}

.onterris-cta-button:hover svg,
.onterris-cta-button:focus-visible svg,
.onterris-cta-button:active svg,
.onterris-cta-button--pressed svg {
  background: var(--color-deep-blue);
  color: var(--color-white);
}

.footer {
  padding: 1rem 0 1.5rem;
  color: var(--color-accessible-blue);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .brand-panel {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }

  .brand-panel__logo-stack {
    align-self: flex-start;
    padding: 2.15rem 0 0 1.35rem;
  }

  .brand-panel__partner-logo {
    left: 0.5rem;
    width: min(7.75rem, 50vw);
  }

  .brand-panel__logo {
    width: min(11rem, 60vw);
  }

  .intro-panel,
  .projects-section {
    padding: 1.25rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}
