nav a.active {
  opacity: 1;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #050505;
  color: #f2f2f2;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  line-height: 1.5;
}

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

img {
  display: block;
  width: 100%;
}

.site-wrapper {
  width: min(1400px, 92%);
  margin: 0 auto;
}


.site-header {
  min-height: 90px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid #333;
}

.logo {
  font-weight: bold;
  letter-spacing: -0.04em;
  font-size: 1.3rem;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  opacity: 0.65;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

nav a:hover {
  opacity: 1;
  transform: translateY(-2px);
}



.hero {
  min-height: 70vh;

  display: grid;
  grid-template-columns: 1.15fr 0.85fr;

  align-items: center;
  gap: 4rem;

  border-bottom: 1px solid #333;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;

  opacity: 0.5;

  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(5rem, 14vw, 13rem);

  line-height: 0.75;

  letter-spacing: -0.08em;

  font-weight: 900;
}

.intro {
  max-width: 500px;

  margin-top: 3rem;

  font-size: 1.1rem;

  color: #aaa;
}



.ascii-container {
  width: 100%;
  height: 480px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  position: relative;
}

.ascii-waterfall {
  position: relative;

  width: 100%;
  max-width: 520px;
  height: 430px;

  overflow: hidden;

  font-family:
    "Courier New",
    Courier,
    monospace;

  font-size: 0.9rem;

  color: #f2f2f2;

  mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      black 15%,
      black 80%,
      transparent 100%
    );

  -webkit-mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      black 15%,
      black 80%,
      transparent 100%
    );
}


.waterfall-column {
  position: absolute;

  top: -300px;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 18px;

  width: 20px;

  opacity: 0;

  animation-name: waterfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}



.waterfall-column::before {
  content: "";

  position: absolute;

  top: -150px;
  bottom: -150px;

  left: 50%;

  width: 1px;

  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(255,255,255,0.10),
      rgba(255,255,255,0.45),
      rgba(255,255,255,0.10),
      transparent
    );

  transform: translateX(-50%);

  z-index: -1;
}


/* LETTERS */

.waterfall-column span {
  display: block;

  opacity: 0.08;

  text-shadow:
    0 0 5px rgba(255,255,255,0.18);

  animation:
    letter-flicker 1.8s steps(1) infinite;
}


/* OFFSET LETTER TIMING */

.waterfall-column span:nth-child(2n) {
  animation-delay: -0.4s;
}

.waterfall-column span:nth-child(3n) {
  animation-delay: -0.9s;
}

.waterfall-column span:nth-child(4n) {
  animation-delay: -1.3s;
}

.waterfall-column span:nth-child(5n) {
  animation-delay: -0.2s;
}



.column-1 {
  left: 3%;
  animation-duration: 7.5s;
  animation-delay: -2s;
}

.column-2 {
  left: 12%;
  animation-duration: 10s;
  animation-delay: -6s;
}

.column-3 {
  left: 21%;
  animation-duration: 8.2s;
  animation-delay: -4s;
}

.column-4 {
  left: 30%;
  animation-duration: 11s;
  animation-delay: -8s;
}

.column-5 {
  left: 39%;
  animation-duration: 7s;
  animation-delay: -3s;
}

.column-6 {
  left: 48%;
  animation-duration: 9.5s;
  animation-delay: -7s;
}

.column-7 {
  left: 57%;
  animation-duration: 8.8s;
  animation-delay: -1s;
}

.column-8 {
  left: 66%;
  animation-duration: 12s;
  animation-delay: -9s;
}

.column-9 {
  left: 75%;
  animation-duration: 7.8s;
  animation-delay: -5s;
}

.column-10 {
  left: 84%;
  animation-duration: 10.5s;
  animation-delay: -3s;
}

.column-11 {
  left: 92%;
  animation-duration: 8.4s;
  animation-delay: -7s;
}

.column-12 {
  left: 97%;
  animation-duration: 11.5s;
  animation-delay: -4s;
}


/* -------------------------
   WATERFALL MOVEMENT
-------------------------- */

@keyframes waterfall {

  0% {
    transform: translateY(-160px);
    opacity: 0;
  }

  10% {
    opacity: 0.85;
  }

  85% {
    opacity: 0.85;
  }

  100% {
    transform: translateY(850px);
    opacity: 0;
  }

}



@keyframes letter-flicker {

  0% {
    opacity: 0.03;
  }

  12% {
    opacity: 0.95;
  }

  19% {
    opacity: 0.1;
  }

  34% {
    opacity: 0.6;
  }

  47% {
    opacity: 0.05;
  }

  61% {
    opacity: 1;
  }

  72% {
    opacity: 0.15;
  }

  86% {
    opacity: 0.75;
  }

  100% {
    opacity: 0.03;
  }

}


.section {
  padding: 8rem 0;
}

.section-heading {
  display: flex;
  gap: 1rem;

  align-items: baseline;

  margin-bottom: 3rem;
}

.section-heading span {
  font-size: 0.7rem;
  opacity: 0.45;
}

.section-heading h2 {
  font-size: 2rem;
  font-weight: 500;
}

.project-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 4rem 2rem;
}

.project-card {
  display: block;
}

.project-image {
  background: #111;

  overflow: hidden;

  aspect-ratio: 4 / 3;
}

.project-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: grayscale(100%);

  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.025);
  filter: grayscale(0%);
}

.project-info {
  margin-top: 1rem;
}

.project-info h3 {
  font-size: 1.15rem;

  font-weight: 500;

  margin-bottom: 0.25rem;
}

.project-info p {
  font-size: 0.8rem;

  color: #777;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}

footer {
  min-height: 100px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-top: 1px solid #333;

  font-size: 0.7rem;

  color: #666;

  letter-spacing: 0.1em;
}



@media (max-width: 700px) {

  .site-header {
    align-items: flex-start;

    padding: 1.5rem 0;

    flex-direction: column;

    gap: 1rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }

  .hero {
    min-height: 60vh;

    grid-template-columns: 1fr;

    gap: 2rem;

    padding: 5rem 0;
  }

  .hero h1 {
    font-size: 21vw;
  }

  .ascii-container {
    height: 320px;
  }

  .ascii-waterfall {
    height: 300px;
    max-width: 100%;

    font-size: 0.75rem;
  }

  .section {
    padding: 5rem 0;
  }

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

  footer {
    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    gap: 0.5rem;
  }

}



.about {
  padding: 7rem 0 10rem;
}

.about-heading {
  margin-bottom: 5rem;
}

.about-heading .eyebrow {
  margin-bottom: 1rem;
}

.about-heading h1 {
  font-size: clamp(5rem, 13vw, 12rem);

  line-height: 0.8;

  letter-spacing: -0.07em;

  font-weight: 900;
}

.about-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 5rem;

  align-items: start;
}

.about-image {
  width: 100%;

  background: #111;

  aspect-ratio: 4 / 5;

  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: grayscale(100%);
}

.about-content {
  max-width: 600px;
}

.about-content h2 {
  font-size: 1rem;

  letter-spacing: 0.15em;

  margin-bottom: 2rem;
}

.about-content > p {
  color: #999;

  margin-bottom: 1.5rem;

  max-width: 550px;
}

.about-content .about-intro {
  color: #f2f2f2;

  font-size: 1.6rem;

  line-height: 1.35;

  margin-bottom: 3rem;
}

.about-info {
  margin-top: 4rem;

  border-top: 1px solid #333;
}

.info-row {
  display: grid;

  grid-template-columns: 120px 1fr;

  padding: 1rem 0;

  border-bottom: 1px solid #333;
}

.info-row span {
  color: #666;

  font-size: 0.7rem;

  letter-spacing: 0.1em;
}

.info-row p {
  font-size: 0.85rem;
}


@media (max-width: 700px) {

  .about {
    padding: 4rem 0 6rem;
  }

  .about-heading {
    margin-bottom: 3rem;
  }

  .about-heading h1 {
    font-size: 20vw;
  }

  .about-grid {
    grid-template-columns: 1fr;

    gap: 3rem;
  }

  .about-image {
    aspect-ratio: 1 / 1;
  }

  .about-content .about-intro {
    font-size: 1.3rem;
  }

  .info-row {
    grid-template-columns: 100px 1fr;
  }

}

.contact-page {
  padding-bottom: 10rem;
}

.contact-layout {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 6rem;
}

.contact-intro p {
  max-width: 500px;

  color: #999;

  font-size: 1.2rem;

  margin-bottom: 2rem;
}

.contact-email {
  font-size: clamp(1.5rem, 3vw, 3rem);

  letter-spacing: -0.04em;

  border-bottom: 1px solid #555;

  padding-bottom: 0.25rem;
}

.contact-email:hover {
  border-color: #fff;
}

.contact-links {
  border-top: 1px solid #333;
}

.contact-links a {
  display: grid;

  grid-template-columns: 50px 1fr auto;

  align-items: center;

  padding: 1.25rem 0;

  border-bottom: 1px solid #333;

  transition:
    padding-left 0.2s ease,
    opacity 0.2s ease;
}

.contact-links a:hover {
  padding-left: 0.75rem;
}

.contact-links span {
  font-size: 0.7rem;

  color: #666;
}

.contact-links p {
  font-size: 0.9rem;

  letter-spacing: 0.1em;
}

.contact-links strong {
  font-size: 1rem;

  font-weight: normal;
}

@media (max-width: 700px) {

  .contact-layout {
    grid-template-columns: 1fr;

    gap: 4rem;
  }

}