
/* Global */
:root {
  --purple: #714D91;
  --purple-dark: #57366f;
  --green: #7FA85A;
  --green-light: #b7d58e;
  --ink: #4D4959;
  --paper: #F5F1E8;
  --cream: #FFFDF7;
  --black: #25232B;
  --line: rgba(77, 73, 89, .18);
  --font-display: "LT Sould", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(58px, 8vw, 120px);
  line-height: .88;
  letter-spacing: -.065em;
  margin: 0 0 34px;
  color: var(--ink);
}

h1 em,
h2 em {
  font-style: normal;
  color: var(--purple);
}

/* Grid background */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/fiBromeliandeer%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

/* Header */

.site-header {
  height: 88px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: min-content;
  margin-top: 50px;
  height: 60px;
  color: white;
}

/* First section */

.hero {
  min-height: 100svh;
  padding: 145px 5vw 80px;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow,
.section-label {
  font-size: 10px;
  letter-spacing: .18em;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--purple);
}

.dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 5px rgba(127, 168, 90, .15);
}

.hero-lede {
  max-width: 530px;
  font-size: 18px;
  line-height: 1.65;
  color: #686473;
}

/* Mascot */
.hero-art {
  height: 620px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-img {
  position: relative;
  animation: float 6s ease-in-out infinite;
  width: 450px;
}

.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 520px;
  height: 520px;
}

.orbit-b {
  width: 400px;
  height: 400px;
  border-color: rgba(113, 77, 145, .25);
}

.pixel {
  width: 9px;
  height: 9px;
  background: var(--ink);
  position: absolute;
  animation: orbit-spin 22s linear infinite;
}

.pixel-1 {
  top: 17%;
  left: 12%;
}

.pixel-2 {
  bottom: 24%;
  right: 13%;
  background: var(--purple)
}

.pixel-3 {
  top: 28%;
  right: 2%;
  background: var(--green)
}

/* Other Sections */ 

.statement,
.work,
.services,
.manifesto,
.contact {
  padding: 130px 8vw;
}

.statement {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 7vw;
  background: var(--paper);
}

.section-label {
  color: var(--purple);
  padding-top: 8px;
}

.giant {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 92px);
  line-height: .92;
  letter-spacing: -.055em;
  margin: 0 0 35px;
}

.giant span {
  color: var(--green);
}

.body-copy {
  max-width: 550px;
  font-size: 18px;
  line-height: 1.7;
  color: #706c78;
}

.work {
  background: var(--cream);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 55px;
}

.section-heading h2,
.service-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(55px, 7vw, 100px);
  line-height: .88;
  letter-spacing: -.06em;
  margin: 20px 0 0;
}

.section-heading>p {
  max-width: 380px;
  line-height: 1.65;
  color: #706c78;
  margin-bottom: 4px;
}

/* What we do section */

.services-cards {
  align-items: stretch;
}

.services-cards .work-card {
  display: flex;
  flex-direction: column;
}

.services-cards .card-visual {
  flex-shrink: 0;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 4px 8px;
}

.card-tags span {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .6;
}

/* Porting Card */

.visual-portal {
  background: var(--green);
  overflow: hidden;
}

.portal-circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--purple);
  display: grid;
  place-items: center;
  color: white;
  font: 900 65px var(--font-display);
  box-shadow: 15px 15px 0 rgba(77, 73, 89, .28);
  transform: rotate(-8deg);
  z-index: 2;
  animation: orbit-spin-reversed 22s linear infinite;
}

.platform-orbit {
  position: absolute;
  width: 290px;
  height: 290px;
  border: 1px dashed rgba(77, 73, 89, .45);
  border-radius: 50%;
  animation: orbit-spin 22s linear infinite;
}

.platform-orbit span {
  position: absolute;
  padding: 6px 9px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}

.platform-orbit span:nth-child(1) {
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
}

.platform-orbit span:nth-child(2) {
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
}

.platform-orbit span:nth-child(3) {
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
}

.platform-orbit span:nth-child(4) {
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-spin-reversed {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

/* Dev Card */

.visual-spark {
  background: var(--purple);
  color: white;
}

.dev-shapes {
  position: relative;
  width: 220px;
  height: 220px;
}

.dev-shape {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
}

.shape-1 {
  font-size: 125px;
  left: 20px;
  top: 25px;
  color: var(--green-light);
  transform: rotate(-12deg);
  animation: dev-float 3s ease-in-out infinite;
}

.shape-2 {
  font-size: 70px;
  right: 15px;
  top: 0;
  color: white;
  transform: rotate(12deg);
  animation: dev-float 3s ease-in-out .6s infinite;
}

.shape-3 {
  font-size: 60px;
  right: 35px;
  bottom: 15px;
  color: var(--green);
  transform: rotate(20deg);
  animation: dev-float 3s ease-in-out 1.1s infinite;
}

@keyframes dev-float {

  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }

  50% {
    transform: translateY(-10px) rotate(4deg);
  }
}


/* QA Card */

.visual-tools {
  background: #34313d;
}

.qa-console {
  width: 76%;
  min-height: 58%;
  border: 2px solid #77727f;
  border-radius: 12px;
  background: #25232b;
  overflow: hidden;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, .2);
}

.qa-top {
  height: 32px;
  border-bottom: 1px solid #4d4959;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 12px;
}

.qa-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.qa-top i:nth-child(2) {
  background: #d8b66c;
}

.qa-top i:nth-child(3) {
  background: #b97991;
}

.qa-lines {
  padding: 17px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: monospace;
  font-size: 8px;
  letter-spacing: .05em;
  color: #8d8994;
}

.qa-lines span {
  opacity: .8;
}

.qa-lines .ok {
  color: var(--green-light);
}

.qa-lines .warning {
  color: #e1bd68;
}


.services-cards .work-card h3 {
  margin-top: 2px;
}

.services-cards .work-card p {
  min-height: 61px;
}


@media (max-width: 640px) {
  .platform-orbit {
    width: 240px;
    height: 240px;
  }

  .portal-circle {
    width: 145px;
    height: 145px;
  }

  .services-cards .work-card p {
    min-height: 0;
  }

  .card-tags {
    margin-bottom: 12px;
  }
}


.work-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 18px;
}

.work-card {
  padding: 14px;
  border-radius: 22px;
  background: var(--paper);
  overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}

.work-card:hover {
  transform: translateY(-7px) rotate(-.4deg);
  box-shadow: 0 20px 50px rgba(77, 73, 89, .13);
}

.work-card-main {
  background: #eee8f3;
}

.work-card-green {
  background: #e5edd9;
}

.work-card-dark {
  background: var(--ink);
  color: var(--cream);
}

.card-visual {
  height: 340px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.visual-portal {
  background: var(--green);
}

.portal-circle {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--purple);
  display: grid;
  place-items: center;
  color: white;
  font: 900 80px var(--font-display);
  box-shadow: 18px 18px 0 rgba(77, 73, 89, .3);
  transform: rotate(8deg);
}

.mini-label {
  position: absolute;
  left: 17px;
  top: 16px;
  font-size: 9px;
  letter-spacing: .15em;
  font-weight: 800;
}

.visual-spark {
  background: var(--purple);
  color: white;
}

.spark {
  font-size: 150px;
  line-height: 1;
  animation: twinkle 2.2s ease-in-out infinite;
}

.spark.s2 {
  position: absolute;
  font-size: 32px;
  top: 20%;
  right: 18%;
  animation-delay: .4s
}

.spark.s3 {
  position: absolute;
  font-size: 50px;
  bottom: 14%;
  left: 17%;
  animation-delay: .8s
}

.visual-tools {
  background: #34313d;
}

.window {
  width: 76%;
  height: 52%;
  border: 2px solid #9c98a6;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  position: absolute;
  top: 13px;
  left: 14px
}

.window i:nth-child(2) {
  left: 27px;
  background: #d8b66c
}

.window i:nth-child(3) {
  left: 40px;
  background: #b97991
}

.window b {
  color: var(--green-light);
  font: 800 14px var(--font-display);
  letter-spacing: .08em;
  transform: rotate(-5deg);
  text-align: center;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 4px 12px;
  font-size: 9px;
  letter-spacing: .12em;
  font-weight: 800;
  opacity: .65;
}

.work-card h3 {
  font-family: var(--font-display);
  font-size: 31px;
  line-height: .95;
  letter-spacing: -.04em;
  margin: 0 4px 15px;
}

.work-card p {
  margin: 0 4px 16px;
  font-size: 13px;
  line-height: 1.55;
  opacity: .72;
}

.nda-note {
  margin-top: 25px;
  font-size: 12px;
  color: #77737f;
  text-align: center;
}

.nda-note span {
  color: var(--green);
  font-size: 17px;
  margin-right: 7px;
}

/* Contact section */

.contact {
  background: var(--paper);
  position: relative;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.contact-shape {
  position: absolute;
  right: -100px;
  bottom: -150px;
  width: 550px;
  height: 550px;
  border-radius: 48% 52% 61% 39%;
  background: var(--green);
  transform: rotate(-18deg);
}

.contact .section-label,
.contact h2,
.contact p,
.contact-email {
  position: relative;
  z-index: 1;
}

.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 118px);
  line-height: .86;
  letter-spacing: -.065em;
  margin: 25px 0 30px;
  max-width: 950px;
}

.contact p {
  max-width: 470px;
  line-height: 1.65;
  color: #706c78;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 42px);
  color: var(--purple);
  border-bottom: 2px solid var(--purple);
  padding-bottom: 4px;
  margin-top: 18px;
}

.contact-email span {
  color: var(--green);
}


/* Footer section */

footer {
  padding: 28px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--cream);
  font-size: 10px;
  letter-spacing: .05em;
  gap: 20px;
}

.footer-brand {
  font-weight: 900;
  letter-spacing: .12em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand span {
  display: grid;
  place-items: center;
  width: min-content;
  height: 27px;
  font-family: var(--font-display);
  font-size: 11px
}

.footer-links a {
  color: var(--green-light);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  color: var(--green-light);
  transition: opacity .2s;
}

.footer-links a:hover {
  opacity: .7;
}

/* Animations */

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg)
  }

  50% {
    transform: translateY(-18px) rotate(2deg)
  }
}

@keyframes twinkle {

  0%,
  100% {
    transform: scale(.9) rotate(-5deg);
    opacity: .8
  }

  50% {
    transform: scale(1.08) rotate(5deg);
    opacity: 1
  }
}

/* Responsiveness */

@media (max-width:900px) {
  .site-header {
    height: 75px
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 125px
  }

  .hero-art {
    height: 430px;
    margin-top: -20px
  }

  .hero-img {
    width: 270px
  }

  .orbit {
    width: 390px;
    height: 390px
  }

  .statement {
    grid-template-columns: 1fr;
    gap: 25px
  }

  .work-grid {
    grid-template-columns: 1fr 1fr
  }

  .work-card-main {
    grid-column: span 2
  }

  .card-visual {
    height: 300px
  }

  .manifesto-stamp {
    display: none
  }
}

@media (max-width:640px) {
  .site-header {
    padding: 0 6vw
  }

  .hero {
    padding: 115px 6vw 70px
  }

  .hero-art {
    height: 360px
  }

  .hero-img {
    width: 210px
  }

  .orbit {
    width: 310px;
    height: 310px
  }

  .hero-lede {
    font-size: 16px
  }

  .statement,
  .work,
  .manifesto,
  .contact {
    padding: 90px 6vw
  }

  .section-heading {
    display: block
  }

  .section-heading>p {
    margin-top: 25px
  }

  .work-grid {
    grid-template-columns: 1fr
  }

  .work-card-main {
    grid-column: auto
  }

  .card-visual {
    height: 270px
  }

  .manifesto h2 {
    margin: 40px 0 55px
  }

  .manifesto-bottom {
    display: block
  }

  .principles {
    justify-content: flex-start;
    margin-top: 25px
  }

  .contact {
    min-height: 600px
  }

  .contact-shape {
    width: 350px;
    height: 350px;
    right: -150px;
    bottom: -90px
  }

  .contact-email {
    font-size: 22px
  }

  footer {
    flex-wrap: wrap;
    padding: 25px 6vw
  }
}

@media (max-width:470px) {
  .brand-mark{
    height: 40px;
  }
}

@media (max-width:340px) {
  .brand-mark{
    height: 20px;
  }
}