@font-face {
  font-family: "BDO Grotesk";
  src: url("./assets/bdo-grotesk.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 900;
  font-display: optional;
}

:root {
  color-scheme: dark;
  --paper: #f8f7f3;
  --muted: #bcbbba;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --gutter: clamp(24px, 4.2vw, 76px);
  font-family: "BDO Grotesk", "Helvetica Neue", Arial, sans-serif;
  background: #000;
  color: var(--paper);
}
* { box-sizing: border-box; }
html, body { overscroll-behavior: none; }
body { margin: 0; }
/* Only the language banner and the page share the viewport height. */
.landing {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}
.page {
  --page-max-width: 1920px;
  --end-gutter: max(var(--gutter), env(safe-area-inset-right));
  width: min(100%, var(--page-max-width));
  flex: 1 0 auto;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) var(--end-gutter);
  padding-block: max(clamp(10px, 3dvh, 40px), env(safe-area-inset-top)) max(clamp(12px, 2.8dvh, 36px), env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.masthead, footer { position: relative; z-index: 1; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: block; width: clamp(116px, 11vw, 168px); height: auto; }
.launch-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: clamp(16px, 1.6vw, 24px);
  font-size: clamp(.8125rem, 1.04vw, 1rem);
  line-height: 1.45;
  color: var(--muted);
}
.launch-status strong {
  padding: .18em .55em;
  border-radius: 7px;
  background: #e8e5de;
  color: #201f1d;
  font-size: .9em;
  font-weight: 500;
  line-height: 1.4;
}
.launch-status span { white-space: nowrap; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
}
.intro { z-index: 1; width: min(52%, 54rem); padding-block: clamp(14px, 3dvh, 40px); }
@media (min-width: 701px) {
  :dir(rtl) .artwork { width: 52%; }
}
h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(3rem, min(6.7vw, 12dvh), 7.8rem);
  font-weight: 550;
  letter-spacing: -.052em;
  line-height: .96;
}
h1 span { display: block; }
.intro p {
  max-width: 33ch;
  margin: clamp(22px, 2.8vw, 44px) 0 0;
  font-size: clamp(1.05rem, min(1.95vw, 3.4dvh), 1.875rem);
  line-height: 1.42;
  letter-spacing: -.018em;
  color: var(--muted);
}
.artwork {
  z-index: -1;
  pointer-events: none;
  overflow-x: clip;
  overflow-y: visible;
  position: absolute;
  inset-block: 0;
  inset-inline-end: calc(-1 * (var(--end-gutter) + max(0px, (100vw - var(--page-max-width)) / 2)));
  width: 57%;
}
/* Bring the fold into the frame while letting the open ends pass the side. */
.folded-ribbon {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  scale: 1.25 1.09;
  translate: 11% 0;
}
.folded-ribbon:dir(rtl) {
  translate: -11% 0;
  transform: scaleX(-1);
}
.related-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  column-gap: clamp(12px, 2vw, 24px);
  font-size: clamp(.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.5;
  color: var(--muted);
}
.disclosure {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .8125rem;
  line-height: 1.45;
  color: #a7a7a5;
}
:lang(ar) .disclosure { line-height: 1.55; }
.legal-link {
  color: var(--muted);
  text-underline-offset: .2em;
  white-space: nowrap;
}
.machine-link { margin-inline-start: .5em; }
.legal-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.brand-link {
  display: inline-flex;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
  min-height: 44px;
  align-items: center;
  gap: .55em;
  font-size: inherit;
  color: var(--muted);
  text-decoration: none;
}
.brand-link bdi { color: var(--paper); font-weight: 550; }
.brand-link svg { flex: none; width: .9em; height: .9em; color: var(--paper); }
:lang(ar) h1 { line-height: 1.23; letter-spacing: 0; font-weight: 500; }
:lang(ar) .intro p { line-height: 1.65; letter-spacing: 0; }
:dir(rtl) .brand-link svg { scale: -1 1; }
.linkedin-link {
  display: inline-grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  color: var(--paper);
}
.linkedin-link img { display: block; height: 20px; width: auto; opacity: .78; }
@media (hover: hover) {
  .linkedin-link:hover img { opacity: .92; }
}
@media (prefers-reduced-motion: no-preference) {
  .linkedin-link img { transition: opacity 180ms ease; }
}
.brand-link:focus-visible, .linkedin-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
@media (hover: hover) {
  .brand-link:hover { text-decoration: underline; text-underline-offset: .22em; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes financial-intro-enter { from { opacity: .85; } to { opacity: 1; } }
  @keyframes financial-art-enter { from { opacity: 0; } to { opacity: 1; } }
  :root[data-animate-entry] .intro > * { animation: financial-intro-enter 240ms cubic-bezier(.22, 1, .36, 1); }
  :root[data-animate-entry] .folded-ribbon { animation: financial-art-enter 180ms ease-out; }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .brand-link svg { transition: translate 160ms var(--ease-out); }
  .brand-link:hover:not(:focus-visible) svg { translate: 2px -2px; }
  .brand-link:dir(rtl):hover:not(:focus-visible) svg { translate: -2px -2px; }
  .brand-link:focus-visible svg { transition: none; }
}

/* Portrait phones give the artwork the space left after the copy and footer. */
@media (max-width: 700px) and (orientation: portrait) {
  :root { --gutter: clamp(18px, 5.2vw, 28px); }
  .page { padding-block-start: max(clamp(8px, 2.5dvh, 24px), env(safe-area-inset-top)); }
  .hero { grid-template-rows: auto minmax(24px, 1fr); align-items: stretch; }
  .intro { width: 100%; padding-block: clamp(12px, 4dvh, 40px) 0; }
  h1 { font-size: clamp(2.4rem, min(10.2vw, 9.2dvh), 4.5rem); }
  .intro p { font-size: 1.0625rem; margin-block-start: clamp(12px, 2dvh, 20px); max-width: 32ch; }
  .artwork {
    position: relative;
    inset: auto;
    inline-size: calc(100% + var(--end-gutter));
    margin-block: clamp(6px, 1.6dvh, 18px);
  }
  .related-service { font-size: .9375rem; }
}

@media (max-width: 450px) {
  .related-service .brand-link svg { display: none; }
}

@media (max-width: 700px) and (max-height: 680px) and (orientation: portrait) {
  .intro { padding-block-start: 10px; }
  .launch-status { margin-block-end: 8px; }
  .intro p { font-size: 1rem; line-height: 1.38; }
  .related-service { font-size: .875rem; line-height: 1.35; }
  .disclosure { font-size: .75rem; }
}

/* On a short portrait viewport, the ribbon sits beside the headline. */
@media (max-width: 700px) and (max-height: 580px) and (orientation: portrait) {
  :root { --gutter: clamp(14px, 4vw, 22px); }
  .page { padding-block: max(4px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-bottom)); }
  .hero {
    grid-template-columns: minmax(0, 1fr) min(23vw, 120px);
    grid-template-rows: auto auto auto;
    align-content: center;
    column-gap: 6px;
    padding-block: 8px;
  }
  .intro { display: contents; }
  .launch-status { grid-column: 1 / -1; margin-block-end: 6px; font-size: .75rem; }
  h1 { grid-column: 1; grid-row: 2; align-self: center; font-size: clamp(1.875rem, 8.8vw, 3.25rem); }
  .artwork { grid-column: 2; grid-row: 2; margin: 0; min-height: min(20vw, 84px); }
  .intro p { grid-column: 1 / -1; grid-row: 3; margin-block-start: 10px; font-size: 1rem; }
}

@media (max-width: 700px) and (max-height: 495px) and (orientation: portrait) {
  .hero { padding-block: 4px; }
  .intro p { font-size: .9375rem; margin-block-start: 7px; }
  .disclosure { line-height: 1.4; }
}

@media (max-width: 360px) and (max-height: 450px) and (orientation: portrait) {
  :lang(fr) .bv-language-suggestion:not([hidden]) ~ .page .hero { padding-block: 2px; }
}

/* A phone held horizontally has room for two columns even at 568px wide. */
@media (max-height: 510px) and (orientation: landscape) {
  :root { --gutter: clamp(16px, 3.5vw, 40px); }
  .page { padding-block: max(4px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-bottom)); }
  .intro { width: 57%; padding-block: 8px; }
  .artwork, :dir(rtl) .artwork { width: 44%; }
  .folded-ribbon { scale: 1.25 1; }
  h1 { font-size: clamp(2rem, min(5.5vw, 10.5dvh), 3.2rem); }
  .launch-status { margin-block-end: 6px; font-size: .8125rem; }
  .intro p { margin-block-start: 8px; font-size: 1rem; line-height: 1.36; }
  :lang(ar) .intro p { line-height: 1.5; }
  .related-service { font-size: .875rem; line-height: 1.35; }
  .disclosure { font-size: .75rem; line-height: 1.4; }
}

@media (max-width: 1024px) and (max-height: 430px) and (orientation: landscape) {
  :root { --gutter: 16px; }
  .intro { width: 70%; padding-block: 3px; }
  .artwork, :dir(rtl) .artwork { width: 30%; }
  h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); }
  h1 span { display: inline; }
  .launch-status { margin-block-end: 3px; }
  .intro p { max-width: 100%; margin-block-start: 4px; font-size: .9375rem; }
}
