:root {
  --ink: #172522;
  --paper: #f5f3eb;
  --muted: #66716c;
  --line: #d9d7cf;
  --acid: #c6f36b;
  --orange: #ff7b38;
  --blue: #a8d5ff;
}

html[data-theme="dark"] {
  --ink: #edf1eb;
  --paper: #18221f;
  --muted: #aeb8b2;
  --line: #3c4843;
  --orange: #ff935f;
  --blue: #76bfff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  transition: background .35s, color .35s;
}

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

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
}


/* ========================================
   INTRO
======================================== */

.intro {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  transition: transform .72s cubic-bezier(.76, 0, .24, 1);
}

.intro.hide {
  transform: translateY(-100%);
}

.intro-box {
  text-align: center;
}

.eyebrow,
.section-number {
  font: 11px "DM Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.intro .eyebrow {
  color: var(--acid);
}

.intro h1 {
  margin: 13px 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: .92;
  letter-spacing: -.08em;
}

.intro em,
.hero em,
.section-heading em,
.contact h2 em {
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

.intro em {
  color: var(--acid);
}

.intro-line {
  position: absolute;
  bottom: 10%;
  width: min(80vw, 900px);
  height: 1px;
  background: var(--acid);
  transform-origin: left;
  animation: line 1.1s .35s both;
}

@keyframes line {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}


/* ========================================
   NAVIGATION
======================================== */

.nav {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font: 500 23px "DM Mono", monospace;
  letter-spacing: -.15em;
}

.brand b,
.orange-dot {
  color: var(--orange);
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14px;
}

.nav-links a {
  position: relative;
}

.nav-links a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width .2s;
}

.nav-links a:hover:after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.theme-toggle,
.menu-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 99px;
  padding: 8px 12px;
  font-size: 12px;
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.sun-icon,
.menu-button,
.mobile-menu {
  display: none;
}


/* ========================================
   HERO
======================================== */

.hero {
  position: relative;
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.available {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
  color: var(--muted);
  font: 11px "DM Mono", monospace;
  text-transform: uppercase;
}

.available span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 5px rgba(198, 243, 107, .18);
}


/* ========================================
   MAIN HERO HEADING
======================================== */

.hero h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(4rem, 9.3vw, 8.7rem);
  line-height: .94;
  letter-spacing: -.09em;
}


/* ========================================
   BRIGHT
   Playfair Display - Image 2 style
======================================== */

.hero h2 .bright-text {
  display: inline-block;

  color: var(--orange);

  font-family: "Playfair Display", serif;

  font-style: italic;

  font-weight: 600;

  /*
    Smaller than the main heading
    so it looks like the reference image.
  */
  font-size: 0.78em;

  line-height: .9;

  letter-spacing: -.045em;

  position: relative;

  top: -2px;

  visibility: visible;

  opacity: 1;

  transform: none;
}


/* ========================================
   HERO SIDE
======================================== */

.hero-side {
  z-index: 1;
  align-self: flex-end;
  margin: 0 3.5vw 12vh 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.round-arrow {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-top: 21px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 27px;
  transition: transform .25s;
}

.round-arrow:hover {
  transform: rotate(45deg);
}


/* ========================================
   ORBS
======================================== */

.orb {
  position: absolute;
  border-radius: 50%;
}

.orb-one {
  width: clamp(230px, 30vw, 410px);
  height: clamp(230px, 30vw, 410px);
  right: 14%;
  top: 15%;
  background: var(--acid);
  opacity: .78;
  animation: float 6s ease-in-out infinite;
}

.orb-two {
  width: 82px;
  height: 82px;
  right: 7%;
  bottom: 17%;
  background: var(--blue);
  animation: float 5s ease-in-out 1s infinite;
}

@keyframes float {
  50% {
    transform: translateY(-18px) rotate(12deg);
  }
}


/* ========================================
   MARQUEE
======================================== */

.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid var(--line);
  padding: 17px 0;
  font: 12px "DM Mono", monospace;
  letter-spacing: .08em;
}

.marquee div {
  width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee i {
  margin: 0 17px;
  color: var(--orange);
  font-style: normal;
}

@keyframes marquee {
  to {
    transform: translateX(-33.33%);
  }
}


/* ========================================
   WORK
======================================== */

.work {
  padding: 145px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 65px;
}

.section-number,
.about-index {
  color: var(--muted);
}

.section-heading h2 {
  font-size: clamp(3.5rem, 6vw, 6rem);
}

.section-heading em,
.about-big em {
  color: var(--orange);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  min-height: 405px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .3s, box-shadow .3s;
}

.project-card:hover {
  transform: translateY(-9px) rotate(-.7deg);
  box-shadow: 8px 9px 0 var(--ink);
}

.orange {
  background: var(--orange);
}

.blue {
  background: var(--blue);
}

.lime {
  background: var(--acid);
}

.project-top {
  display: flex;
  justify-content: space-between;
  font: 11px "DM Mono", monospace;
}

.project-top strong {
  font-size: 24px;
  font-weight: 400;
  line-height: .6;
}

.project-center p {
  margin: 0 0 11px;
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
}

.project-center h3 {
  margin: 0 0 13px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: .95;
  letter-spacing: -.07em;
}

.project-center span {
  display: block;
  max-width: 230px;
  font-size: 14px;
  line-height: 1.45;
}

.project-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(0, 0, 0, .3);
  border-radius: 50%;
  font-size: 18px;
}


/* ========================================
   ABOUT
======================================== */

.about {
  padding: 120px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.about-content {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 70px;
}

.about-big {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.25rem);
  line-height: .97;
  letter-spacing: -.07em;
}

.about-big em {
  font-family: "Playfair Display", serif;
}

.about-small {
  align-self: end;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.about-small strong {
  color: var(--ink);
  font-weight: 500;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 26px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
}


/* ========================================
   CONTACT
======================================== */

.contact {
  padding: 130px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
}

.contact h2 {
  margin-top: 24px;
  font-size: clamp(3.7rem, 6vw, 6rem);
}

.contact h2 em {
  color: var(--acid);
  text-shadow: 1px 1px var(--ink);
}

.contact-heading p {
  max-width: 270px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.contact-form label {
  color: var(--muted);
  font: 11px "DM Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0 13px;
  background: transparent;
  color: var(--ink);
  outline: none;
  font-size: 16px;
  text-transform: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
}

.send-button {
  width: max-content;
  margin-top: 4px;
  padding: 14px 21px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform .2s;
}

.send-button:hover {
  transform: translate(3px, -3px);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.formsubmit-frame {
  display: none;
}


/* ========================================
   FOOTER
======================================== */

.footer {
  min-height: 105px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p {
  color: var(--muted);
  font: 11px "DM Mono", monospace;
}

.socials {
  display: flex;
  gap: 17px;
}

.socials a:hover {
  color: var(--orange);
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 760px) {

  .wrap {
    width: calc(100% - 40px);
  }

  .nav {
    height: 74px;
  }

  .nav-links,
  .theme-toggle {
    display: none;
  }

  .menu-button {
    display: block;
  }


  /* Mobile menu */

  .mobile-menu {
    position: fixed;
    z-index: 20;
    top: 74px;
    left: 0;
    right: 0;

    padding: 24px 20px 29px;

    border-bottom: 1px solid var(--line);

    background: var(--paper);
  }

  .mobile-menu.show {
    display: block;
  }

  .mobile-menu a {
    display: block;
    padding: 10px 0;
    font-size: 24px;
  }


  /* Hero */

  .hero {
    min-height: calc(100svh - 74px);

    align-items: flex-start;

    padding-top: 16vh;
  }

  .hero h2 {
    font-size: clamp(3.6rem, 15vw, 6rem);
  }


  /* Bright mobile */

  .hero h2 .bright-text {
    font-size: 0.78em;
    line-height: .9;
    letter-spacing: -.04em;
    top: -1px;
  }


  .hero-side {
    position: absolute;
    bottom: 4%;
    left: 0;
    margin: 0;
  }


  /* Mobile orbs */

  .orb-one {
    right: -22%;
    top: 10%;
    opacity: .56;
  }

  .orb-two {
    right: 3%;
    bottom: 25%;
  }


  /* Work */

  .work {
    padding: 90px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 40px;
  }

  .section-heading h2 {
    margin-top: 21px;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 330px;
  }


  /* About */

  .about {
    padding: 80px 0;
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }


  /* Contact */

  .contact {
    padding: 85px 0;
    grid-template-columns: 1fr;
    gap: 50px;
  }


  /* Footer */

  .footer p {
    display: none;
  }

}
