@font-face {
  font-family: Inter;
  src: url('./assets/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --page: #ffffff;
  --ink: #171717;
  --muted: #616775;
  --action: #2563eb;
  --action-hover: #1d4ed8;
  --quiet: #f3f4f6;
  --diagram: #f8fafc;
  --radius: 6px;
  --gutter: clamp(18px, 4vw, 64px);
  --header-height: 72px;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  color: var(--ink);
  background: var(--page);
  font: 400 1rem / 1.6 Inter, Arial, sans-serif;
  font-optical-sizing: auto;
  font-synthesis: none;
  scroll-padding-top: 20px;
  scroll-behavior: smooth;
}

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

body, h1, h2, h3, p, dl, dd {
  margin: 0;
}

body {
  background:
    linear-gradient(#050810 var(--header-height), transparent var(--header-height)),
    radial-gradient(ellipse at 92% calc(88% + var(--page-glow-shift, 0px)), #dbe7ff, transparent 31%),
    linear-gradient(165deg, #e6ebf7 23%, #f5f7fc 62%, #edf2fb);
}

a {
  color: inherit;
}

img {
  display: block;
  max-inline-size: 100%;
}

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

.shell {
  width: min(calc(100% - 2 * var(--gutter)), 84rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  inset: 10px auto auto var(--gutter);
  translate: 0 calc(-100% - 16px);
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  translate: 0;
  outline-offset: 2px;
}

.site-header {
  position: relative;
  z-index: 5;
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
  color: #d2dcef;
  font-size: 0.8125rem;
  font-weight: 525;
  text-decoration: none;
}

.brand img {
  width: 140px;
  height: auto;
  filter: brightness(0) invert(1);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2.25vw, 34px);
}

.primary-nav a,
.footer-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: #f5f8ff;
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
}

.primary-nav a:hover,
.footer-nav a:hover {
  color: #a8c1ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.primary-nav .header-contact {
  color: #a8c1ff;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: #c8d8ff;
}

.hero {
  --hero-fade: clamp(22rem, 38vw, 38rem);
  --hero-end: calc(100% - var(--hero-fade));
  --hero-fade-mask: linear-gradient(
    #000 calc(var(--hero-end) - 1rem),
    #000d calc(100% - .72 * var(--hero-fade)),
    #0006 calc(100% - .37 * var(--hero-fade)),
    transparent
  );
  --hero-glow-x: 85%;
  --hero-glow-inset: 12rem;
  --hero-reveal-angle: 172deg;
  position: relative;
  display: grid;
  min-height: max(calc(34rem + var(--header-height)), 100svh);
  margin-block-start: calc(-1 * var(--header-height));
  padding-block-start: var(--header-height);
  isolation: isolate;
  align-content: center;
  color: #f5f8ff;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0 0 calc(-1 * var(--hero-fade));
  content: "";
  mask-image: var(--hero-fade-mask);
  pointer-events: none;
}

.hero::before {
  background:
    radial-gradient(
      ellipse at var(--hero-glow-x) calc(var(--hero-end) - var(--hero-glow-inset) + var(--hero-glow-shift, 0px)),
      #2458f5,
      transparent 46%
    ),
    linear-gradient(
      to bottom,
      transparent calc(var(--hero-end) - 12rem),
      #394fe0 var(--hero-end),
      #80b7ff calc(100% - .66 * var(--hero-fade)),
      #e6ebf7
    ),
    linear-gradient(132deg, #050810 18%, #091027 57%, #102674);
}

@media (prefers-reduced-motion: no-preference) {
  .hero::after {
    --reveal: var(--approach-reveal, 0);
    --reveal-edge: calc(var(--hero-end) + 3rem - var(--reveal) * clamp(16rem, 56svh, 34rem));
    z-index: 1;
    background: linear-gradient(
      var(--hero-reveal-angle),
      transparent calc(var(--reveal-edge) - 5rem),
      #2054ec80 calc(var(--reveal-edge) - 2rem),
      #4384ff calc(var(--reveal-edge) - .5rem),
      #91c3ff calc(var(--reveal-edge) + 2rem),
      #cedfff calc(var(--reveal-edge) + 6rem),
      #e6ebf7 calc(var(--reveal-edge) + 13rem)
    );
    opacity: min(1, var(--reveal) * 3);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(36px, 5.5vh, 72px);
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.45rem, 4.4vw, 5rem);
  font-weight: 580;
  letter-spacing: -0.054em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero h1 span + span {
  color: #a8c1ff;
}

.hero-inner p {
  max-width: 43ch;
  margin-block-start: 24px;
  color: #d2dcef;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.57;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-block-start: 28px;
}

.hero .button-text:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero :focus-visible {
  outline-color: #c8d8ff;
}

.hero-globe {
  position: relative;
  width: min(100%, 45rem, max(23rem, calc(100svh - var(--header-height) - 6.5rem)));
  min-width: 0;
  margin: 0;
  justify-self: center;
  aspect-ratio: 1;
}

.hero-globe img,
.hero-globe canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-globe [hidden] {
  display: none;
}

.hero-globe[tabindex] {
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.hero-globe[data-dragging] {
  cursor: grabbing;
}

.hero-globe:focus-visible {
  outline: none;
}

.hero-globe:focus-visible canvas {
  filter: drop-shadow(0 0 10px #a4c5ff);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 849px) {
  .hero {
    --hero-glow-x: 65%;
    --hero-glow-inset: 9rem;
    --hero-reveal-angle: 166deg;
    min-height: 100svh;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-block: clamp(36px, 7vw, 56px) 24px;
  }

  .hero-globe {
    width: min(100%, 31rem);
  }
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 17px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 620;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--action);
  color: white;
}

.button-primary:hover {
  background: var(--action-hover);
}

.inline-code span,
.workflow-code [data-function] {
  color: var(--action);
}

.approach,
.services,
.contact {
  padding-block: clamp(60px, 8.3vw, 120px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1fr);
  align-items: end;
  gap: 24px 48px;
}

.approach {
  position: relative;
}

.approach .section-heading p {
  color: #15253c;
}

h2 {
  font-size: clamp(2.375rem, 4.5vw, 4rem);
  font-weight: 635;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.section-heading p,
.story-step p,
.service-intro p,
.contact-panel p {
  max-width: 54ch;
  color: var(--muted);
}

.section-heading p {
  justify-self: end;
  width: 100%;
}

.story {
  margin-block-start: clamp(24px, 5vw, 64px);
}

.story[data-enhanced] {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(30px, 6.5vw, 100px);
}

.story-step {
  position: relative;
  padding-block: 27px 31px;
}

.story[data-enhanced] .story-step {
  display: flex;
  min-height: clamp(13.5rem, 30vh, 18rem);
  flex-direction: column;
  justify-content: center;
}

.story-step[data-active] h3 {
  color: var(--action-hover);
}

.story-step h3 {
  max-width: 24ch;
  font-size: clamp(1.5rem, 2.3vw, 2.1875rem);
  font-weight: 630;
  letter-spacing: -0.055em;
  line-height: 1.17;
}

.story-step p {
  margin-block-start: 13px;
}

.story-example {
  max-width: 27rem;
  margin-block-start: 18px;
  border-radius: var(--radius);
}

.mini-flow {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 16px);
  padding: 12px 10px;
  background: var(--diagram);
}

.mini-flow::before {
  position: absolute;
  z-index: -1;
  inset: 50% 12% auto;
  height: 1px;
  background: var(--action);
  content: '';
}

.mini-flow span {
  display: grid;
  min-height: 39px;
  place-items: center;
  padding: 5px 3px;
  border-radius: 5px;
  background: var(--page);
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.mini-flow span:nth-child(2) {
  background: #edf4ff;
  color: var(--action-hover);
}

.inline-code {
  display: block;
  padding: 8px 10px;
  color: var(--ink);
  font: 0.8125rem / 1.5 var(--mono);
  overflow-wrap: anywhere;
}

.story-visual {
  display: none;
}

.story[data-enhanced] .story-visual {
  position: sticky;
  top: calc(var(--header-height) + clamp(36px, 13vh, 110px));
  display: block;
}

.story[data-enhanced] .story-example {
  display: none;
}

.workflow {
  overflow: hidden;
  border-radius: var(--radius);
  background: #f6faff;
}

.workflow-header {
  display: flex;
  min-height: 44px;
  align-items: stretch;
  color: var(--muted);
}

.workflow-file {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-family: var(--mono);
}

.workflow-diagram {
  background-color: var(--diagram);
}

.workflow canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 292;
}

.workflow-code {
  display: block;
  padding: 16px 18px;
  color: var(--ink);
  font: 0.9375rem / 1.4 var(--mono);
}

.catalogue {
  display: grid;
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  margin-block-start: clamp(32px, 5vw, 68px);
}

.service-graphic {
  position: relative;
  min-height: clamp(90px, 10vw, 142px);
  background: radial-gradient(ellipse at 25% 54%, #c8daff 0%, transparent 70%);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 74%, transparent);
}

.service-graphic::before,
.service-graphic::after {
  position: absolute;
  content: '';
}

.service-graphic::before {
  inset: 0;
  background: radial-gradient(circle, #7297d6 0 1px, transparent 1.3px) 0 0 / 10px 10px;
  mask-image: radial-gradient(ellipse at 25% 52%, #0009, transparent 70%);
}

.service-graphic::after {
  top: 50%;
  left: min(24%, 112px);
  width: 72px;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: linear-gradient(145deg, #7bafff, #1745bc);
  mask-image: repeating-conic-gradient(#000 0% 25%, transparent 0% 100%);
  mask-size: 6px 6px;
}

.service-graphic[data-graphic='shield']::after {
  clip-path: polygon(0 17%, 25% 17%, 25% 8%, 50% 0, 75% 8%, 75% 17%, 100% 17%, 100% 58%, 92% 58%, 92% 75%, 75% 75%, 75% 83%, 50% 100%, 25% 83%, 25% 75%, 8% 75%, 8% 58%, 0 58%);
}

.service-graphic[data-graphic='workflow']::after {
  clip-path: polygon(0 0, 42% 0, 42% 33%, 58% 33%, 58% 25%, 100% 25%, 100% 58%, 58% 58%, 58% 50%, 42% 50%, 42% 67%, 50% 67%, 50% 100%, 8% 100%, 8% 67%, 25% 67%, 25% 33%, 0 33%);
}

.service-graphic[data-graphic='signal']::after {
  clip-path: polygon(0 67%, 17% 67%, 17% 50%, 33% 50%, 33% 17%, 50% 17%, 50% 58%, 67% 58%, 67% 33%, 83% 33%, 83% 67%, 100% 67%, 100% 83%, 0 83%);
}

.service-category h3 {
  font-size: clamp(1.75rem, 2.6vw, 2.75rem);
  font-weight: 635;
  letter-spacing: -0.06em;
  line-height: 1.13;
}

.service-intro {
  padding-block: 12px 18px;
}

.service-intro p {
  margin-block-start: 10px;
}

.service-group summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-block: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 590;
  line-height: 1.35;
  list-style: none;
}

.service-group summary::-webkit-details-marker {
  display: none;
}

.service-group summary:hover,
.service-group[open] summary {
  color: var(--action-hover);
}

.disclosure-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--action);
}

.disclosure-icon::before,
.disclosure-icon::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 1.5px;
  translate: -50% -50%;
  background: currentColor;
  content: '';
}

.disclosure-icon::after {
  rotate: 90deg;
}

.service-group[open] .disclosure-icon::after {
  scale: 0 1;
  opacity: 0;
}

.service-list {
  display: grid;
  gap: 16px;
  padding: 2px 0 24px;
}

.service-list > div {
  display: grid;
  gap: 4px;
}

.service-list dt {
  font-size: 0.9375rem;
  font-weight: 610;
  line-height: 1.42;
}

.service-list dd {
  max-width: 54ch;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.contact {
  padding-block-end: clamp(48px, 6.5vw, 94px);
}

.contact-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px 48px;
}

.contact-panel p {
  margin-block-start: 14px;
}

.contact-links {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px 16px;
  font-style: normal;
}

.contact-phone {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--action-hover);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-phone:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(106px, 13vw, 168px) clamp(30px, 5vw, 56px);
  background: linear-gradient(180deg, transparent, #556eaa 36%, #101f45 65%, #080e20);
  color: #d2dcef;
}

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 32px;
}

.footer-brand {
  display: grid;
  justify-items: start;
  gap: 8px;
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-brand img {
  width: clamp(96px, 12vw, 146px);
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(18px, 3vw, 34px);
}

.footer-signal,
.footer-signal::before,
.footer-signal::after {
  position: absolute;
  inset: 0;
}

.footer-signal {
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 73% 48%, #000, transparent 57%);
}

.footer-signal::before,
.footer-signal::after {
  content: '';
  background: radial-gradient(circle, #a4c5ff 1px, transparent 1.4px) 0 0 / 11px 11px;
}

.footer-signal::before {
  opacity: .24;
}

.footer-signal::after {
  opacity: 0;
  mask-image: linear-gradient(112deg, transparent 18%, #000 50%, transparent 82%);
  mask-repeat: no-repeat;
  mask-size: 48% 100%;
}

.privacy-page {
  min-height: 100vh;
}

.privacy-page .site-header {
  background: #080e20;
}

.privacy-content {
  max-width: 45rem;
  padding-block: clamp(42px, 7vw, 92px);
}

.privacy-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.privacy-content h2 {
  margin-block: 1.6em 0.45em;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: -0.035em;
}

.privacy-content p + p {
  margin-block-start: 1em;
}

.privacy-content a {
  color: var(--action-hover);
}

.privacy-status {
  margin-block-start: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .contact-panel {
    flex-direction: column;
    align-items: start;
  }
}

@media (min-width: 850px) {
  .catalogue {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0;
  }

  @supports (grid-template-rows: subgrid) {
    .service-category {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
      align-self: stretch;
    }
  }
}

@media (max-width: 740px) {
  .section-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-heading {
    align-items: start;
    gap: 12px;
  }

  .section-heading p {
    justify-self: start;
  }

}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .brand {
    position: relative;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 1px;
    font-size: 0.6875rem;
    line-height: 1.2;
  }

  .brand img {
    width: 100px;
  }

  .primary-nav {
    gap: clamp(6px, 2.5vw, 16px);
  }

  .primary-nav a {
    min-width: 44px;
    justify-content: center;
    padding-inline: 3px;
    font-size: 0.8125rem;
  }

  .hero h1 {
    max-width: 17ch;
    font-size: clamp(2.2rem, 8.7vw, 3.6rem);
    letter-spacing: -0.05em;
  }

  .hero-inner p {
    margin-block-start: 18px;
  }

  .hero-actions {
    gap: 8px;
    margin-block-start: 21px;
  }

  .hero-actions .button {
    gap: 6px;
    padding-inline: 11px;
    font-size: 0.8125rem;
  }


  .contact-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 368px) {
  :root {
    --header-height: 100px;
  }

  .header-inner {
    flex-wrap: wrap;
    align-content: space-between;
    gap: 0;
    padding-block-start: 6px;
  }

  .primary-nav {
    flex-basis: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .primary-nav a {
    flex: 1;
    padding-inline: 2px;
  }

  .hero h1 {
    font-size: clamp(1.875rem, 8.7vw, 2.1rem);
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  @supports selector(details::details-content) and (transition-behavior: allow-discrete) {
    .service-group::details-content {
      display: grid;
      grid-template-rows: 0fr;
      opacity: 0;
      transition:
        grid-template-rows 300ms cubic-bezier(.25, .7, .25, 1),
        content-visibility 300ms allow-discrete,
        opacity 200ms ease;
    }

    .service-group[open]::details-content {
      grid-template-rows: 1fr;
      opacity: 1;
    }

    .service-details {
      min-height: 0;
      overflow: clip;
    }
  }

  .disclosure-icon::after {
    transition: scale 220ms ease, opacity 160ms ease;
  }

  .site-footer[data-visible] .footer-signal::after {
    animation: footer-sweep 1.8s ease-out both;
  }

  .hero {
    --hero-glow-shift: calc(var(--hero-scroll, 0) * 4rem);
  }

  .hero-globe {
    translate: 0 calc(var(--hero-scroll, 0) * clamp(2.75rem, 8vw, 7rem));
    scale: calc(1 - var(--approach-reveal, 0) * .14);
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    translate: 0 calc(-1 * var(--approach-reveal, 0) * clamp(1.5rem, 7svh, 4rem));
  }

  .hero-copy:focus-within {
    translate: none;
  }

  .hero-globe:is(:focus-visible, [data-dragging]) {
    z-index: 2;
  }

  .approach > .section-heading {
    translate: 0 calc((1 - var(--approach-reveal, 1)) * clamp(2.5rem, 8svh, 5rem));
  }

  .approach > .section-heading h2 {
    opacity: min(1, .48 + var(--approach-reveal, 1) * .8);
  }
}

@keyframes footer-sweep {
  0% { mask-position: -100% 0; opacity: 0; }
  26% { opacity: .9; }
  78% { opacity: .72; }
  100% { mask-position: 210% 0; opacity: 0; }
}
