:root {
  --bg: #111111;
  --paper: #1a1a1a;
  --text: #ebebeb;
  --muted: #a8a8a8;
  --line: #2c2c2c;
  --accent: #f2f2f2;
  --footer-bg: #000000;
  --footer-text: #d6d6d6;
  --footer-line: #2a2a2a;
  --footer-reveal-height: 52vh;
  --page-bg: linear-gradient(180deg, #171717 0%, #101010 100%);
}

* {
  box-sizing: border-box;
}

/* Hide scrollbar while keeping scroll behavior */
::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--text);
  background: var(--page-bg);
  -ms-overflow-style: none;
  overflow-x: hidden;
}

main {
  position: relative;
  z-index: 2;
  background: var(--page-bg);
  margin-bottom: var(--footer-reveal-height);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

h1,
h2,
h3,
.brand {
  font-family: "Newsreader", serif;
  letter-spacing: -0.01em;
}

.hero-scene {
  min-height: 280vh;
  position: relative;
  z-index: 2;
  background: #000;
  --hero-overlay-opacity: 0.56;
  --hero-video-opacity: 1;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--hero-video-opacity);
  transition: opacity 0.25s linear;
  transform: translate3d(0, 0, 0);
  will-change: opacity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / var(--hero-overlay-opacity));
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem clamp(1rem, 3vw, 2.8rem) 0;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.35rem;
}

.nav-link {
  text-decoration: none;
  color: #dbdbdb;
  border-bottom: 1px solid transparent;
}

.nav-link:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 3.6vw 3.1rem;
  max-width: min(860px, 94%);
  opacity: 1;
  transform: translateY(0);
}

.hero-services {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0 3.6vw 3.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 1.8rem);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.service-line {
  margin: 0;
  max-width: 19ch;
  font-family: "Newsreader", serif;
  font-size: clamp(2rem, 5.6vw, 4.2rem);
  line-height: 1.02;
  color: #f0f0f0;
  opacity: 0;
  transform: translateY(18px);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: rgb(240 240 240 / 88%);
}

h1 {
  margin: 0.7rem 0;
  font-size: clamp(2rem, 6vw, 4.9rem);
  line-height: 1;
  color: #f6f6f6;
}

.desc {
  margin: 0;
  max-width: 60ch;
  color: rgb(240 240 240 / 82%);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-btn {
  text-decoration: none;
  color: #ffffff;
  border: 1px solid rgb(255 255 255 / 92%);
  background: transparent;
  padding: 0.72rem 1.15rem;
  border-radius: 2px;
  min-width: 148px;
  text-align: center;
  font-weight: 500;
  transition: background-color 0.24s ease, color 0.24s ease;
}

.hero-btn:hover {
  background: rgb(235 235 235 / 100%);
  color: #0f0f0f;
}

.section {
  width: min(980px, 92%);
  margin: 0 auto;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  
}

.about p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 62ch;
}

h2 {
  margin: 0 0 1.3rem;
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
}

.projects {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.projects article {
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.projects h3 {
  margin: 0.5rem;
  font-size: 1.2rem;
}

.projects p {
  margin: 0.5rem;
  color: var(--muted);
}

.contact-footer {
  min-height: var(--footer-reveal-height);
  background: var(--footer-bg);
  color: var(--footer-text);
  display: flex;
  align-items: stretch;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1;
}

.contact-anchor {
  height: 1px;
}

.contact-inner {
  width: 100%;
  padding: 3.2rem 0 2rem;
  display: flex;
  flex-direction: column;
}

.footer-top {
  padding: 0 3.6vw;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.8rem;
}

.footer-name-col {
  display: flex;
  align-items: flex-start;
}

.footer-brand {
  color: var(--footer-text);
  text-decoration: none;
  font-family: "Newsreader", serif;
  font-size: 1.35rem;
}

.footer-content-col {
  width: min(780px, 100%);
  justify-self: center;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 240px));
  justify-content: center;
  gap: clamp(2.5rem, 5vw, 6rem);
}

.footer-columns h3 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: "Work Sans", sans-serif;
  color: #f5f5f5;
}

.footer-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-columns li {
  color: var(--footer-text);
  opacity: 0.92;
}

.footer-columns a {
  color: var(--footer-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-columns a:hover {
  border-color: var(--footer-text);
}

.footer-meta {
  margin-top: auto;
  padding: 0 3.6vw;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.footer-note {
  margin: 0;
  color: var(--footer-text);
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
}

.footer-made {
  margin: 0;
  color: var(--footer-text);
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  text-align: right;
}

.email-marquee {
  border-top: 1px solid var(--footer-line);
  padding-top: 0.8rem;
  overflow: hidden;
}

.email-track {
  display: flex;
  width: max-content;
  transform: translateX(0);
  will-change: transform;
}

.email-track a {
  color: #f3f3f3;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  font-family: "Newsreader", serif;
  font-size: clamp(2rem, 8.5vw, 7rem);
  line-height: 0.95;
  flex: 0 0 auto;
  padding-right: 1rem;
}

@keyframes email-loop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-33.3333%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .email-track {
    transform: none !important;
  }
}

@media (max-width: 760px) {
  .hero-scene {
    min-height: 250vh;
  }

  .nav {
    padding-top: 1.1rem;
  }
  
  .hero-content {
    padding: 0 1rem 2.2rem;
    max-width: 100%;
  }

  .hero-services {
    padding: 0 1rem 2.2rem;
  }

  .contact-footer {
    min-height: auto;
    position: relative;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .footer-content-col {
    width: 100%;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-content: start;
  }

  .footer-meta {
    margin-top: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-made {
    text-align: left;
  }

  .email-track a {
    font-size: clamp(2rem, 11vw, 3.8rem);
  }

  main {
    margin-bottom: 0;
  }
}
