@charset "UTF-8";

:root {
  color-scheme: light;
  --brand: #336699;
  --ink: #111111;
  --paper: #ffffff;
  --viewport: 100vh;
  --copy-size: clamp(18px, 3.4vw, 32px);
  --logo-duration: 2.4s;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

@supports (height: 100dvh) {
  :root {
    --viewport: 100dvh;
  }
}

/* Browser toolbars must not resize the whole story during a touch gesture. */
@supports (height: 100svh) {
  @media (any-pointer: coarse) {
    :root {
      --viewport: 100svh;
    }
  }
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  background: #336699;
}

body {
  margin: 0;
  color: var(--ink);
  font-size: var(--copy-size);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: clip;
}

button,
a {
  font: inherit;
}

::selection {
  color: white;
  background: var(--brand);
}

.story-background {
  position: fixed;
  top: calc(var(--viewport) * -0.5);
  left: 0;
  width: 100%;
  height: calc(var(--viewport) * 2);
  background: radial-gradient(
    ellipse at 50% 5%,
    #477eae 0%,
    #336699 28%,
    #122f4d 65%,
    #020710 100%
  );
  transform: translate3d(0, var(--background-offset, 0px), 0);
  pointer-events: none;
  will-change: transform;
}

main {
  position: relative;
}

.panel {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  height: var(--viewport);
  overflow: clip;
  background: var(--paper);
}

.hero__identity {
  position: absolute;
  inset: 0;
  transform: translate3d(0, var(--hero-offset, 0px), 0);
  will-change: transform;
}

.hero__logo-position {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(80%, 1000px);
  perspective: 1200px;
  perspective-origin: 50% 50%;
  transform: translate(-50%, -50%);
}

.hero__logo {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center;
  backface-visibility: visible;
  animation: logo-land var(--logo-duration) cubic-bezier(0.16, 0.8, 0.22, 1)
    both;
}

.hero__slogan {
  position: absolute;
  right: 5%;
  bottom: 10%;
  left: 5%;
  margin: 0;
  font: inherit;
  text-align: center;
  animation: slogan-arrive 1.5s var(--logo-duration)
    cubic-bezier(0.22, 1, 0.36, 1) both;
}

.story {
  position: relative;
  z-index: 1;
  height: var(--viewport);
}

.has-story .story {
  height: calc(var(--viewport) * 4);
}

.story__pin {
  position: sticky;
  top: 0;
  height: var(--viewport);
  overflow: hidden;
}

.word-flight-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.story-word {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  color: #fff;
  font: inherit;
  font-style: italic;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(-200vw, 0, 0);
  will-change: transform, opacity;
}

.has-story .philosophy__content {
  opacity: var(--context-opacity, 1);
}

.has-story .keyword[data-concept] {
  opacity: var(--words-landed, 1);
}

.philosophy__content {
  position: relative;
  width: 80%;
  text-align: center;
  transform: translate3d(0, var(--philosophy-offset, 0px), 0);
  will-change: transform;
}

.philosophy__copy {
  margin: 0;
  font: inherit;
  text-wrap: pretty;
}

.philosophy__copy + .philosophy__copy {
  margin-top: 1em;
}

.keyword {
  position: relative;
  display: inline-block;
  color: var(--ink);
  font-style: italic;
  white-space: nowrap;
}

.keyword__color {
  --fill-origin: -44%;
  --keyword-fill-mask: linear-gradient(
    90deg,
    rgb(0 0 0 / 100%) var(--fill-origin),
    rgb(0 0 0 / 95.7%) calc(var(--fill-origin) + 5.5%),
    rgb(0 0 0 / 84.4%) calc(var(--fill-origin) + 11%),
    rgb(0 0 0 / 68.4%) calc(var(--fill-origin) + 16.5%),
    rgb(0 0 0 / 50%) calc(var(--fill-origin) + 22%),
    rgb(0 0 0 / 31.6%) calc(var(--fill-origin) + 27.5%),
    rgb(0 0 0 / 15.6%) calc(var(--fill-origin) + 33%),
    rgb(0 0 0 / 4.3%) calc(var(--fill-origin) + 38.5%),
    rgb(0 0 0 / 0%) calc(var(--fill-origin) + 44%)
  );
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(
    110deg,
    var(--pigment),
    var(--glow),
    var(--pigment),
    var(--flare),
    var(--pigment)
  );
  background-size: 260% 180%;
  background-clip: text;
  -webkit-background-clip: text;
  clip-path: none;
  mask-image: var(--keyword-fill-mask);
  -webkit-mask-image: var(--keyword-fill-mask);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  visibility: hidden;
  pointer-events: none;
  animation: keyword-spectrum 6.8s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.keyword--tech {
  --pigment: #336699;
  --glow: #3b93d1;
  --flare: #47c8f0;
}
.keyword--design {
  --pigment: #7354aa;
  --glow: #a06bc9;
  --flare: #be8feb;
}
.keyword--usability {
  --pigment: #167d7c;
  --glow: #189b86;
  --flare: #26c5a7;
}
.keyword--value {
  --pigment: #b3543c;
  --glow: #d66c4c;
  --flare: #f29064;
}

.contact {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: var(--viewport);
  overflow: hidden;
  background: #e7e7cf;
  isolation: isolate;
}

.contact__map {
  position: absolute;
  inset: -25% 0;
  z-index: -1;
  background: #e7e7cf url('assets/gothenburg1888.jpg') center 48% / cover
    no-repeat;
  transform: translate3d(0, var(--map-offset, 0px), 0);
  will-change: transform;
}

.contact__strip {
  width: 100%;
  padding: 24px max(24px, env(safe-area-inset-right)) 24px
    max(24px, env(safe-area-inset-left));
  color: #fff;
  background: #000;
}

.contact__address {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.6em;
  margin: 0;
  font: inherit;
  text-align: center;
}

.contact__company {
  font: inherit;
}
.contact__separator {
  opacity: 0.7;
}

.contact__email {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  height: 1.5em;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.contact__email::before {
  position: absolute;
  inset: -8px 0;
  content: '';
}
.contact__email:hover {
  color: #c3e1ff;
}
.contact__email:focus-visible {
  outline: 2px solid #b9dcff;
  outline-offset: 7px;
}
.email-art {
  display: block;
  height: 1.5em;
  width: var(--email-width, 9.6em);
}
.contact__noscript {
  margin: 0;
  font: inherit;
  text-align: center;
}

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

@keyframes logo-land {
  from {
    opacity: 0;
    transform: translateZ(750px) rotateX(180deg) scale(4);
  }
  8% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translateZ(0) rotateX(0) scale(1);
  }
}

@keyframes slogan-arrive {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes keyword-spectrum {
  from {
    background-position: 0% 20%;
    filter: saturate(1.1);
  }
  to {
    background-position: 100% 80%;
    filter: saturate(1.35);
  }
}

@media (max-width: 1300px) {
  .contact__address {
    flex-direction: column;
    gap: 0.65em;
  }
  .contact__separator {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero__logo-position {
    width: 86%;
  }
  .hero__slogan {
    right: 4%;
    left: 4%;
  }
  .philosophy__content {
    width: 84%;
  }
  .contact__strip {
    padding: 24px 12px;
  }
  .contact__address {
    gap: 0.85em;
  }
  .contact__map {
    background-position: 47% center;
  }
}

@media (max-height: 400px) {
  :root {
    --copy-size: clamp(16px, 2.6vw, 24px);
  }
  .hero__logo-position {
    width: min(60%, 700px);
  }
  .contact__strip {
    padding-block: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
  .hero__identity,
  .philosophy__content,
  .contact__map,
  .story-background {
    transform: none;
  }
  .hero__logo,
  .hero__slogan {
    opacity: 1;
  }
}

@media (forced-colors: active) {
  .keyword__color {
    display: none;
  }
}

.concept-graphics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(12px, 4vw, 64px);
  width: min(900px, 88vw);
  margin-inline: auto;
  pointer-events: none;
}

.concept-graphic {
  width: 100%;
  height: clamp(140px, 24vw, 240px);
  opacity: 0;
  transform: translateY(18px);
}

.concept-graphic svg,
.concept-graphic__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.concept-checkbox__frame {
  fill: #999;
  fill-opacity: 0;
  stroke: #999;
  stroke-width: 1.8;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.concept-checkbox__check {
  fill: none;
  stroke: #65afe5;
  stroke-width: 10.2267;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 2px rgb(101 175 229 / 35%));
}

.concept-pencil,
[data-design-paper],
[data-usability-interface],
[data-usability-control],
[data-usability-action],
[data-usability-cursor],
[data-usability-click] {
  opacity: 0;
}

.concept-design__paper {
  fill: #fff;
  filter: drop-shadow(0 4px 5px rgb(2 7 16 / 18%));
}

.concept-interface__window {
  fill: #f8fbff;
  stroke: #d2e2ef;
  stroke-width: 1.5;
}

.concept-interface__divider,
.concept-interface__field rect {
  stroke: #c7d9e8;
}

.concept-interface__chrome {
  fill: #9cb5cb;
}

.concept-interface__field rect {
  fill: #edf3f9;
}

.concept-interface__field path,
.concept-interface__field circle,
.concept-interface__setting path {
  stroke: #6687a5;
  stroke-width: 2;
  stroke-linecap: round;
}

.concept-interface__setting rect {
  fill: #82c8bc;
}

.concept-interface__setting circle {
  fill: #fff;
}

.concept-interface__button {
  fill: #e3f5ef;
  stroke: #499c8c;
  stroke-width: 1.5;
}

.concept-interface__button-label,
.concept-interface__check {
  stroke: #167d7c;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.concept-interface__check {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.concept-interface__click {
  stroke: #82d6c5;
  stroke-width: 2;
}

.concept-interface__cursor {
  fill: #fff;
  stroke: #183d5d;
  stroke-width: 1.8;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 2px rgb(2 7 16 / 15%));
}

@media (max-width: 560px) {
  .concept-graphics {
    width: 92vw;
    gap: 7px;
  }

  .concept-graphic {
    height: 150px;
  }
}

@media (max-height: 500px) and (min-width: 561px) {
  .concept-graphic {
    height: 130px;
  }
}

.concept-graphics {
  position: absolute;
  top: 43%;
  left: 50%;
  margin: 0;
  opacity: var(--art-opacity, 1);
  transform: translate3d(-50%, calc(-50% + var(--art-offset, 0px)), 0);
  will-change: transform, opacity;
}

.keyword[data-concept] .keyword__color {
  visibility: visible;
  mask-image: none;
  -webkit-mask-image: none;
  animation-play-state: var(--value-animation, paused);
}
