:root {
  --black: #101010;
  --white: #f4f2ec;
  --gray: #a3a3a3;
  --line: rgba(16, 16, 16, 0.18);
  --red: #ff3b30;
  --max: 1500px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--black);
  color: var(--white);
}


/* LOADER */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-number {
  font-size: clamp(5rem, 15vw, 13rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.loader-line {
  width: min(420px, 70vw);
  height: 2px;
  background: #333;
  margin-top: 30px;
  overflow: hidden;
}

.loader-line span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--white);
}

.loader-text {
  margin-top: 16px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
}


/* NAV */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: 80px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
  color: white;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.logo-mark {
  width: 31px;
  height: 31px;
  border: 1px solid white;
  display: grid;
  place-items: center;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 35px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.nav-links a,
.nav-contact {
  position: relative;
}

.nav-links a::after,
.nav-contact::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-contact:hover::after {
  width: 100%;
}

.nav-contact {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}


/* HERO */

.hero {
  min-height: 100svh;
  padding: 130px 34px 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-top,
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-top {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.hero-title {
  margin-top: 40px;
}

.hero-line {
  overflow: hidden;
  font-size: clamp(6rem, 17vw, 18rem);
  font-weight: 800;
  line-height: 0.76;
  letter-spacing: -0.085em;
}

.hero-line span {
  display: inline-block;
  transform: translateY(110%);
  animation: titleIn 1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.hero-line:nth-child(1) span {
  animation-delay: 0.65s;
}

.hero-line:nth-child(2) span {
  animation-delay: 0.78s;
}

.hero-line:nth-child(3) span {
  animation-delay: 0.91s;
}

.hero-line:nth-child(4) span {
  animation-delay: 1.04s;
}

.hero-offset {
  padding-left: 13vw;
}

.hero-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--black);
}

@keyframes titleIn {
  to {
    transform: translateY(0);
  }
}

.hero-bottom {
  margin-top: 50px;
  gap: 40px;
}

.hero-bottom p {
  max-width: 390px;
  font-size: 14px;
  line-height: 1.7;
}

.hero-button {
  min-width: 210px;
  height: 58px;
  border: 1px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.hero-button:hover {
  background: var(--black);
  color: var(--white);
}


/* MARQUEE */

.marquee {
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 17px 0;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 45px;
  animation: marquee 18s linear infinite;
}

.marquee span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}


/* COMMON */

.section-pad {
  padding: 150px 34px;
}

.section-label {
  display: flex;
  justify-content: space-between;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}


/* INTRO */

.intro-content {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 80px;
  padding-top: 80px;
}

.intro h2 {
  max-width: 950px;
  font-size: clamp(3.5rem, 8vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.intro h2 span {
  display: block;
  color: var(--gray);
}

.intro-copy {
  padding-top: 10px;
}

.intro-copy p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.text-link {
  display: inline-block;
  margin-top: 20px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  border-bottom: 1px solid var(--black);
  padding-bottom: 6px;
}


/* WORK */

.work {
  background: #111;
  color: var(--white);
}

.work .section-label {
  border-color: rgba(244, 242, 236, 0.2);
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 80px 0 110px;
}

.work-header h2 {
  font-size: clamp(4rem, 10vw, 11rem);
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.work-header h2 span {
  color: #777;
}

.work-header p {
  max-width: 330px;
  color: #999;
  font-size: 13px;
  line-height: 1.7;
}

.project {
  display: grid;
  grid-template-columns: 70px 1fr 140px;
  gap: 30px;
  padding: 30px 0;
  border-top: 1px solid rgba(244, 242, 236, 0.18);
  transition: padding 0.4s ease;
}

.project:last-child {
  border-bottom: 1px solid rgba(244, 242, 236, 0.18);
}

.project:hover {
  padding-left: 25px;
  padding-right: 25px;
  background: #191919;
}

.project-number {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: #777;
}

.project-info {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.project-info h3 {
  font-size: clamp(2rem, 4vw, 4.5rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.project-info p {
  margin-top: 10px;
  color: #888;
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.project-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
}

.project-tags span {
  border: 1px solid #444;
  padding: 6px 9px;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  color: #aaa;
}

.project-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.project-view {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  border-bottom: 1px solid #777;
  padding-bottom: 5px;
}


/* SERVICES */

.services-title {
  padding: 90px 0;
}

.services-title h2 {
  font-size: clamp(5rem, 13vw, 15rem);
  line-height: 0.76;
  letter-spacing: -0.09em;
}

.services-title h2 span {
  -webkit-text-stroke: 2px var(--black);
  color: transparent;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 80px 1fr 0.8fr;
  gap: 30px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding 0.3s ease;
}

.service:hover {
  padding-left: 18px;
}

.service > span {
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.service h3 {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.service p {
  max-width: 360px;
  font-size: 13px;
  line-height: 1.7;
  color: #666;
}


/* ABOUT */

.about {
  min-height: 90vh;
  background: var(--red);
  color: var(--black);
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  padding: 50px 34px;
}

.about-left {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.about-right {
  padding-top: 100px;
}

.about-right h2 {
  max-width: 1000px;
  font-size: clamp(4rem, 9vw, 10rem);
  line-height: 0.8;
  letter-spacing: -0.085em;
}

.about-right h2 span {
  display: block;
  -webkit-text-stroke: 2px var(--black);
  color: transparent;
}

.about-right > p {
  max-width: 520px;
  margin-top: 55px;
  font-size: 16px;
  line-height: 1.8;
}

.about-right > p + p {
  margin-top: 20px;
}

.about-meta {
  display: flex;
  gap: 80px;
  margin-top: 80px;
  padding-top: 25px;
  border-top: 1px solid rgba(16, 16, 16, 0.35);
}

.about-meta div {
  display: flex;
  flex-direction: column;
}

.about-meta strong {
  font-size: 45px;
  letter-spacing: -0.07em;
}

.about-meta span {
  margin-top: 5px;
  font-family: "DM Mono", monospace;
  font-size: 9px;
}


/* PROCESS */

.process-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.process-card {
  min-height: 300px;
  padding: 25px;
  border: 1px solid var(--line);
  margin-right: -1px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.process-card:hover {
  background: var(--black);
  color: var(--white);
}

.process-card > span {
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.process-card h3 {
  font-size: clamp(1.7rem, 3vw, 3rem);
  letter-spacing: -0.06em;
}

.process-card p {
  max-width: 220px;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.65;
}


/* CTA */

.final-cta {
  min-height: 90vh;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 30px;
}

.cta-small {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #777;
  margin-bottom: 40px;
}

.final-cta h2 {
  font-size: clamp(5rem, 15vw, 17rem);
  line-height: 0.76;
  letter-spacing: -0.09em;
}

.final-cta h2 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}

.cta-button {
  margin-top: 70px;
  min-width: 280px;
  padding: 20px 28px;
  border: 1px solid var(--white);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.cta-button:hover {
  background: var(--white);
  color: var(--black);
}

.final-cta p {
  margin-top: 25px;
  max-width: 450px;
  color: #888;
  font-size: 12px;
  line-height: 1.6;
}


/* FOOTER */

.footer {
  background: var(--black);
  color: var(--white);
  padding: 35px 34px 25px;
  border-top: 1px solid #333;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 80px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.footer-links {
  display: flex;
  gap: 30px;
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.footer-links a {
  color: #999;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  color: #666;
}


/* REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* RESPONSIVE */

@media (max-width: 900px) {

  .nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-top span:last-child {
    display: none;
  }

  .hero-line {
    font-size: clamp(5rem, 19vw, 11rem);
  }

  .hero-offset {
    padding-left: 5vw;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-button {
    width: 100%;
  }

  .section-pad {
    padding: 100px 20px;
  }

  .intro-content {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 55px;
  }

  .work-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 60px 0 70px;
  }

  .project {
    grid-template-columns: 35px 1fr;
    gap: 15px;
  }

  .project-info {
    flex-direction: column;
    gap: 20px;
  }

  .project-action {
    display: none;
  }

  .project-tags {
    justify-content: flex-start;
  }

  .service {
    grid-template-columns: 45px 1fr;
  }

  .service p {
    grid-column: 2;
  }

  .about {
    grid-template-columns: 1fr;
    padding: 35px 20px 80px;
  }

  .about-right {
    padding-top: 80px;
  }

  .about-meta {
    gap: 35px;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-card {
    min-height: 250px;
  }

  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}


@media (max-width: 560px) {

  .nav {
    height: 70px;
  }

  .nav-contact {
    font-size: 8px;
  }

  .logo {
    font-size: 9px;
  }

  .logo-mark {
    width: 28px;
    height: 28px;
  }

  .hero {
    min-height: 100svh;
    padding-top: 105px;
  }

  .hero-line {
    font-size: clamp(4rem, 20vw, 7rem);
  }

  .hero-outline {
    -webkit-text-stroke: 1px var(--black);
  }

  .section-pad {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .section-label {
    font-size: 8px;
  }

  .intro h2 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .work-header h2 {
    font-size: clamp(3.5rem, 16vw, 6rem);
  }

  .project-info h3 {
    font-size: 2rem;
  }

  .services-title {
    padding: 60px 0;
  }

  .services-title h2 {
    font-size: clamp(4rem, 18vw, 7rem);
  }

  .about-right h2 {
    font-size: clamp(3.5rem, 15vw, 6rem);
  }

  .about-meta {
    gap: 25px;
  }

  .about-meta strong {
    font-size: 35px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-card {
    min-height: 210px;
  }

  .final-cta {
    min-height: 75vh;
  }

  .final-cta h2 {
    font-size: clamp(4rem, 19vw, 7rem);
  }

  .cta-button {
    width: 100%;
    min-width: 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}