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

:root {
  --lime: #d2f53c;
  --coral: #ff6b6b;
  --sky: #75c9ff;
  --lavender: #c1b1ff;
  --black: #111111;
  --white: #f8f8f8;
  --border: 1.5px solid var(--black);
  --border-white: 1px solid rgba(255, 255, 255, 0.3);
}

html {
  background-color: hsl(0, 0%, 18%);
  scroll-behavior: smooth;
  scrollbar-gutter: stable; /* scrollbar width reserve */
}

body {
  font-family: "Inter", sans-serif;
  background: var(--black);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#projects, #services, #about, #footer {
  scroll-margin-top: calc(50px); /* sticky Header */
}

.link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 50px;
  background: var(--white);
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

.logo {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -1px;
}

header nav {
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
  font-size: 13px;
}

section {
  width: 100vw;
  min-height: 100vh;
  border-bottom: var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero {
  background: var(--lime);
  padding-top: 50px;
  justify-content: center;
  align-items: center;
  text-align: center;

  & p.mono {
    margin-bottom: 20px;
  }
}

.hero h1 {
  font-size: clamp(80px, 15vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  margin-bottom: 20px;
}

.data-strip {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40px;
  border-top: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  /* gap: 40px; */
  background: rgba(255, 255, 255, 0.2);
}

.project-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.p-info {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: var(--border);
  &.right {
    border-right: none;
  }
}

.p-visual {
  background: #000;
  position: relative;
  overflow: hidden;
  &.left {
    border-right: var(--border);
  }
}

.p-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(1) contrast(1.2); */
  /* mix-blend-mode: multiply; */
  opacity: 1;
}

.p-data {
  display: block;
  margin-bottom: 10px;
}
.p-title {
  font-size: 80px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.title-slogan {
  max-width: 300px;
  margin-top: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.metadata-table {
  width: 100%;
  margin-top: 40px;
}

.table-row {
  border-top: 1px solid rgba(17, 17, 17, 0.3);
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  align-items: center;
}

.table-row:last-child {
  border-bottom: 1px solid rgba(17, 17, 17, 0.3);
}

.plus {
  font-size: 20px;
  font-weight: 400;
}

#bim-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2000;
}

.coord-line {
  position: absolute;
  background: var(--black);
  opacity: 0.15;
}

.mouse-coords {
  position: fixed;
  background: var(--black);
  color: var(--white);
  padding: 4px 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  pointer-events: none;
  z-index: 2001;
}

.section-coral {
  background: var(--coral);
}
.section-sky {
  background: var(--sky);
}
.section-lavender {
  background: var(--lavender);
}

.services {
  background: var(--white);
  color: var(--black);
  padding: 100px 40px;
  width: 100vw;
  min-height: unset;
  /* border-bottom: var(--border-white); */
  
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;

  background-color: hsl(217, 0%, 100%);
  background-image: linear-gradient(hsla(0, 0%, 0%, 0.03) 1px, transparent 1px), linear-gradient(90deg, hsla(0, 0%, 0%, 0.03) 1px, transparent 1px), linear-gradient(hsla(0, 0%, 0%, 0.025) 1px, transparent 1px), linear-gradient(90deg, hsla(0, 0%, 0%, 0.025) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;

  & h1 {
    font-size: clamp(30px, 5vw, 60px);
    letter-spacing: -0.05em;
  }
  & p {
    line-height: 1.8;
    max-width: 700px;
    text-align: center;
    font-size: 0.7rem;
  }
}

.about {
  color: var(--white);
  padding: 100px 40px;
  width: 100vw;
  min-height: unset;
  /* border-bottom: var(--border-white); */
  
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  
  background-image: linear-gradient(hsl(0deg 0% 0% / 0.6) 0 0), url("./images/struct-studio-bg.png");
  background-size: cover;
  background-position: center;

  & h1 {
    font-size: clamp(30px, 5vw, 60px);
    letter-spacing: -0.05em;
  }
  & p {
    line-height: 1.8;
    max-width: 700px;
    text-align: center;
    font-size: 0.7rem;
  }
}

.footer {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding: 100px 40px;
  padding-bottom: calc(100px + 2rem); /* +copyright */
  text-align: center;
  width: 100vw;
}

.footer h2 {
  font-size: clamp(60px, 10vw, 120px);
  letter-spacing: -0.05em;
}

.footer-contact {
  margin-top: 60px;
  & p:first-child {
    margin-bottom: 0.5rem;
  }
}

.copyright {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* border-top: var(--border-white); */
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: hsl(217, 0%, 10%);
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;

  & p.mono {
    margin: 0;
    padding: 0;
  }
}

.btn-outline {
  display: inline-block;
  border: var(--border);
  padding: 12px 24px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  margin-top: 20px;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

@media (max-width: 1024px) {
  .status {
    display: none;
  }

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

  .section-sky {
    .p-visual { order: 2; }
    .p-info   { order: 1; }
    & .p-info {
      border-right: none;
      border-left: none;
    }
    & .p-visual {
      border-right: none;
      border-left: none;
    }
  }

  .p-info {
    border-right: none;
    border-left: none;
    border-bottom: var(--border);
  }
}

@media (max-width: 640px) {
  header nav {
    gap: 1rem;

    & .link {
      font-size: 0.75rem;
    }
  }
}

@media (max-width: 512px) {
  header nav {
    display: none;
  }

  .hero h1 {
    font-size: 15vw;
    line-height: 0.85;
    letter-spacing: -0.06em;
    margin-bottom: 20px;
  }
}