:root {
  --paper: #f3f5f7;
  --ink: #0b1220;
  --ink-soft: #4b5768;
  --rule: #d5dbe3;
  --cobalt: #2348c7;
  --cobalt-deep: #16307f;
  --sky: #e1e8fa;
  --yellow: #ffc531;
  --pale: #dfe6f0;
  --pale-dim: #8b99ad;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

/* ---------- colour wash behind the hero ---------- */

body { position: relative; }
.aurora {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(120vh, 1100px);
  overflow: hidden;
  z-index: -1;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.aurora i {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { background: #8fb0ff; left: 48%; top: -18%; }
.aurora i:nth-child(2) { background: #c9a8ff; left: 68%; top: 22%; animation-duration: 27s; animation-delay: -6s; }
.aurora i:nth-child(3) { background: #ffb8d4; left: 30%; top: 42%; width: 34vmax; height: 34vmax; opacity: .4; animation-duration: 31s; animation-delay: -12s; }
.aurora i:nth-child(4) { background: #ffdca8; left: -12%; top: -22%; width: 36vmax; height: 36vmax; opacity: .45; animation-duration: 25s; animation-delay: -3s; }
@keyframes drift {
  from { transform: translate3d(-6%, -4%, 0) scale(1); }
  to { transform: translate3d(8%, 7%, 0) scale(1.18); }
}

/* ---------- hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 12fr) minmax(0, 9fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "top top" "text art";
}
.topbar {
  grid-area: top;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) 0;
  font-size: .9375rem;
}
.home { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; padding: 6px 0; letter-spacing: -.01em; }
.home svg { width: 30px; height: 26px; }
.foot-mark { display: inline-flex; align-items: center; gap: 10px; }
.foot-mark svg { width: 24px; height: 21px; }
.links { display: flex; gap: clamp(14px, 2.4vw, 32px); align-items: baseline; }
.links a, .lang { white-space: nowrap; text-decoration: none; padding: 6px 0; }
.links a:hover, .lang:hover, .home:hover { text-decoration: underline; text-underline-offset: 5px; }
.lang { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; cursor: pointer; }

.hero-text {
  grid-area: text;
  align-self: center;
  padding: 24px var(--gutter) max(clamp(28px, 6vh, 64px), env(safe-area-inset-bottom));
}
h1 {
  max-width: 11.5em;
  font-size: clamp(2.25rem, 5.1vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  padding-bottom: .08em;
  background: linear-gradient(100deg, var(--ink) 0%, #1c3cb4 42%, #6f3fe0 72%, #e2477d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin-top: clamp(20px, 3vh, 32px);
  max-width: 30em;
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3.4vh, 36px); }
.btn {
  display: inline-block;
  padding: 14px 24px 15px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn-solid:hover { background: linear-gradient(100deg, var(--cobalt), #6f3fe0); }

/* the stack */
.art { grid-area: art; position: relative; min-height: 0; }
.stage {
  --s: min(29vw, 44vh, 400px);
  position: absolute;
  left: 48%;
  top: 50%;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
}
.stack {
  --open: 0;
  --gap: calc(var(--s) * .3 * var(--open));
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(57deg + var(--tx, 0deg))) rotateZ(calc(45deg + var(--tz, 0deg)));
}
.stack.open { --open: 1; }
.plate {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc((var(--i) - 1.5) * var(--gap)));
  transition: transform 1.3s cubic-bezier(.2, .9, .25, 1) calc(.25s + var(--i) * .11s);
}
.live .plate { transition: none; animation: bob 5.5s ease-in-out calc(var(--i) * -1.1s) infinite alternate; }
@keyframes bob {
  from { translate: 0 0 calc(var(--s) * -.012); }
  to { translate: 0 0 calc(var(--s) * .022); }
}
.pulse {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--s) * .035);
  height: calc(var(--s) * .035);
  margin: calc(var(--s) * -.0175);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 calc(var(--s) * .03) calc(var(--s) * .012) #7aa2ff, 0 0 calc(var(--s) * .09) calc(var(--s) * .03) rgba(201, 168, 255, .8);
  opacity: 0;
}
.live .pulse { animation: fall 3.6s cubic-bezier(.5, 0, .5, 1) var(--d) infinite; }
@keyframes fall {
  0% { transform: translateZ(calc(1.5 * var(--gap) + 2px)); opacity: 0; }
  12% { opacity: 1; }
  78% { opacity: 1; }
  100% { transform: translateZ(calc(-1.5 * var(--gap) + 2px)); opacity: 0; }
}
.chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.open .chart-line { animation: draw 1.6s ease-out 1.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.blink rect { animation: blink 2.8s ease-in-out infinite alternate; }
.blink rect:nth-child(2) { animation-delay: -1.4s; }
.blink-b rect { animation-duration: 3.6s; animation-delay: -.7s; }
@keyframes blink { from { opacity: .35; } to { opacity: 1; } }
.face, .slab, .shade { position: absolute; inset: 0; border-radius: 5%; }
.face {
  background: var(--col);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%);
  color: var(--on);
  overflow: hidden;
}
.face svg { width: 100%; height: 100%; }
.slab { background: var(--edge); transform: translateZ(calc(var(--k) * -1.5px)); }
.shade {
  inset: 4%;
  background: rgba(5, 10, 25, .5);
  filter: blur(calc(var(--s) * .05));
  opacity: var(--open);
  transform: translateZ(calc(-1 * var(--gap) + 1px));
}
.face b {
  position: absolute;
  left: 6%;
  bottom: 4.2%;
  font-weight: 700;
  font-size: calc(var(--s) * .068);
  letter-spacing: -.02em;
  line-height: 1;
}
.p-ui { --col: #fff; --edge: #c3ccd8; --on: var(--ink); }
.p-api { --col: #3a4fe0; --edge: #17338f; --on: #fff; }
.p-api .face { background-image: linear-gradient(135deg, #5b7bff, #3a4fe0 45%, #6a3fd6); }
.p-data .face { background-image: linear-gradient(135deg, #24409f, #16307f 50%, #3a2a8f); }
.p-data { --col: var(--cobalt-deep); --edge: #0d1f57; --on: #fff; }
.p-infra { --col: var(--ink); --edge: #000; --on: #fff; }
.ground {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(60, 90, 220, .45), rgba(150, 80, 220, .4));
  filter: blur(calc(var(--s) * .09));
  transform: translateZ(calc(-1.5 * var(--gap) - var(--s) * .22));
}

@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(42svh, 1fr) auto;
    grid-template-areas: "top" "art" "text";
  }
  .stage { --s: min(54vw, 28svh, 340px); left: 50%; top: 53%; }
  .wide-only { display: none; }
  h1 { font-size: clamp(2.125rem, 9.6vw, 4rem); }
}

/* ---------- sections ---------- */

.band {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 128px) var(--gutter) 0;
}
.band-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 64px); }
.band h2, .contact h2 {
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.band-head p { margin-top: 16px; font-size: 1.1875rem; color: var(--ink-soft); max-width: 34em; }

/* case studies */
.case {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(28px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 104px);
}
.case:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.case:nth-of-type(even) .shot { order: 2; }
.shot {
  background: var(--bg);
  border-radius: clamp(12px, 1.6vw, 20px);
  overflow: hidden;
}
.shot svg { width: 100%; height: auto; }
.case h3 {
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.kind { margin-top: 8px; color: var(--cobalt); font-weight: 700; font-size: .9375rem; }
.case-text > p:not(.kind):not(.tech) { margin-top: 16px; max-width: 34em; }
.case:last-of-type { margin-bottom: 0; }
.case-text a { color: var(--cobalt); text-underline-offset: 3px; }
.tech {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
  color: var(--ink-soft);
}
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.case-small { grid-template-columns: minmax(0, 1fr); align-items: start; margin-bottom: 0; }
.case.case-small .shot { order: 0; }
.case-small h3 { font-size: 1.5rem; }

.shot-ai { position: relative; }
.ai-layer { opacity: 0; transition: opacity .35s; }
.ai-on .ai-layer { opacity: .95; }
.ai-toggle {
  position: absolute;
  left: 7.5%;
  bottom: 11.5%;
  padding: 9px 16px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.ai-toggle:hover { background: #fff; }

.sites { position: relative; aspect-ratio: 800 / 520; container-type: inline-size; }
.win {
  position: absolute;
  margin: 0;
  border-radius: 1.4cqw;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2.2cqw 5cqw rgba(30, 30, 90, .22);
}
.win figcaption {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  height: 3.6cqw;
  padding: 0 1.4cqw;
  background: #eef1f6;
  font-size: 1.55cqw;
  line-height: 1;
  color: #6b778a;
}
.win figcaption i {
  width: .9cqw;
  height: .9cqw;
  border-radius: 50%;
  background: #c3cbd6;
  box-shadow: 1.5cqw 0 #c3cbd6, 3cqw 0 #c3cbd6;
  margin-right: 3cqw;
}
.win figcaption span { background: #fff; border-radius: 99px; padding: .45cqw 1.6cqw; }
.win img { display: block; width: 100%; height: auto; }
.win-a { left: 5%; top: 8%; width: 52%; }
.win-b { left: 45%; top: 17%; width: 50%; }
.win-c { left: 12%; top: 35%; width: 55%; }

/* services */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 5vw, 72px);
}
.services > div { padding: 28px 0 36px; border-top: 1.5px solid var(--ink); }
.services h3 { font-size: 1.375rem; line-height: 1.15; letter-spacing: -.02em; }
.services p { margin-top: 10px; color: var(--ink-soft); max-width: 30em; }

/* about */
.about {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 24px clamp(28px, 5vw, 72px);
  padding-bottom: clamp(56px, 9vw, 128px);
}
.about p { font-size: 1.1875rem; max-width: 32em; }
.about p + p { margin-top: 1em; color: var(--ink-soft); }

@media (max-width: 820px) {
  .case, .pair, .services, .about { grid-template-columns: minmax(0, 1fr); }
  .case:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
  .case:nth-of-type(even) .shot { order: 0; }
  .pair { gap: 48px; }
}
/* ---------- contact ---------- */

.contact {
  background:
    radial-gradient(70% 90% at 85% 115%, rgba(226, 71, 125, .5), transparent 60%),
    radial-gradient(80% 100% at 10% 120%, rgba(74, 110, 255, .6), transparent 60%),
    linear-gradient(180deg, var(--ink) 30%, #131a4a);
  color: #fff;
  padding: clamp(64px, 10vw, 144px) max(var(--gutter), calc((100vw - var(--max)) / 2)) max(28px, env(safe-area-inset-bottom));
}
.contact h2 {
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  padding-bottom: .08em;
  width: fit-content;
  background: linear-gradient(100deg, #fff 20%, #b9c9ff 60%, #ffb8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.recommend { margin-top: clamp(20px, 3vw, 32px); max-width: 30em; font-size: 1.1875rem; color: var(--pale); }
.mail {
  display: inline-block;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 6px 0;
  font-size: clamp(1.25rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: .22em;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--yellow); }
.foot {
  margin-top: clamp(64px, 10vw, 140px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  font-size: .9375rem;
  color: var(--pale-dim);
}
.foot a { color: #fff; padding: 4px 0; }

/* ---------- imprint page ---------- */

.legal { max-width: 46rem; margin: 0 auto; padding: 40px var(--gutter) 80px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin: 40px 0 24px; }
.legal p + h1 { margin-top: 72px; }
.legal h2 { font-size: 1.125rem; margin: 36px 0 8px; }
.legal p + p { margin-top: 1em; }
.legal a { color: var(--cobalt); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate, .btn, .ai-layer { transition: none !important; }
  .aurora i, .live .plate, .live .pulse, .blink rect { animation: none !important; }
  .chart-line { stroke-dashoffset: 0; animation: none !important; }
}
