/* ========================================
   750.PRO
   Dark brutalist, typographic, minimal
   ======================================== */

/* --- RESET & BASE --- */

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

:root {
  --bg:       #0a0a0a;
  --bg-alt:   #111111;
  --surface:  #1a1a1a;
  --border:   #2a2a2a;
  --text:     #d4d4d4;
  --text-dim: #777777;
  --text-bright: #f0f0f0;
  --accent:   #c8c8c8;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover,
a:focus-visible {
  color: var(--text-bright);
}

address {
  font-style: normal;
}

::selection {
  background: #333;
  color: var(--text-bright);
}


/* --- NAV --- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: var(--text-bright);
  gap: 0.15rem;
}

.logo-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

.logo-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--text-bright);
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-bright);
}

.nav-links a.nav-active {
  color: var(--text-bright);
}

/* APP glitch */
.nav-app,
.app-glitch {
  position: relative;
  display: inline-block;
}

.app-glitch {
  color: var(--text-bright);
}

.glitch-layer {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  color: var(--text-bright);
  opacity: 0;
  aria-hidden: true;
}


/* --- HERO --- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  background: var(--bg);
  overflow: hidden;
}

/* Hero background image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('hero.png') center center / cover no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

/* Dark overlay for text legibility */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.7) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-bright);
  margin-bottom: 2rem;
}

/* Word-by-word reveal */
.hero-line {
  display: block;
}

.hero-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.15em;
}

.hero-word-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: wordReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-word:nth-child(1) .hero-word-inner { animation-delay: 0.15s; }
.hero-word:nth-child(2) .hero-word-inner { animation-delay: 0.3s; }
.hero-word:nth-child(3) .hero-word-inner { animation-delay: 0.55s; }
.hero-word:nth-child(4) .hero-word-inner { animation-delay: 0.7s; }

@keyframes wordReveal {
  to { transform: translateY(0); }
}

.hero-subline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.375rem);
  line-height: 1.6;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  min-height: 3.2em;
}

.hero-subline::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--text-dim);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 0.7s step-end infinite;
}

.hero-subline.typed-done::after {
  animation: blink 0.7s step-end infinite;
  animation-delay: 0s;
  animation-iteration-count: 4;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes blink {
  50% { opacity: 0; }
}




/* --- SCROLL INDICATOR --- */

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-dim);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--text-dim);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

@keyframes heroFade {
  to { opacity: 1; }
}


/* --- HORIZONTAL RULE --- */

.hr-draw {
  display: flex;
  justify-content: center;
  padding: 0 3rem;
  background: var(--bg);
}

.hr-line {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hr-draw.drawn .hr-line {
  transform: scaleX(1);
}


/* --- SECTIONS --- */

.section {
  padding: 8rem 3rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-about {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.section-about::before {
  content: '750';
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(calc(-50% + var(--watermark-y, 0px)));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16rem, 30vw, 32rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-bright);
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.section-about .section-grid {
  position: relative;
  z-index: 1;
}

.section-services {
  background: var(--bg-alt);
}

.section-contact {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.section-contact::before {
  content: '750';
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16rem, 30vw, 32rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-bright);
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

.section-contact .section-grid {
  position: relative;
  z-index: 1;
}

.section-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
}

.section-label {
  position: sticky;
  top: 5rem;
  align-self: start;
}

.label-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.section-label h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

.section-body {
  max-width: 680px;
}


/* --- ABOUT --- */

.lead-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--text-bright);
  margin-bottom: 2rem;
}

.section-body p + p {
  margin-top: 1.25rem;
}


/* --- SERVICES --- */

.services-list {
  list-style: none;
}

.service-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2.5rem 0 2.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transform: translateX(0);
  transition: transform 0.3s ease, background 0.3s ease;
}

.service-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--text-bright);
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-item:hover {
  transform: translateX(8px);
}

.service-item:hover::before {
  height: 100%;
  top: 0;
}

/* Staggered reveal when section enters viewport */
.section-services.visible .service-item {
  animation: serviceSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateX(-12px);
}

.section-services.visible .service-item:nth-child(1) { animation-delay: 0.05s; }
.section-services.visible .service-item:nth-child(2) { animation-delay: 0.12s; }
.section-services.visible .service-item:nth-child(3) { animation-delay: 0.19s; }
.section-services.visible .service-item:nth-child(4) { animation-delay: 0.26s; }
.section-services.visible .service-item:nth-child(5) { animation-delay: 0.33s; }

@keyframes serviceSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.service-item:first-child {
  padding-top: 0;
}

.service-number {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  flex-shrink: 0;
  padding-top: 0.35rem;
  transition: color 0.3s ease;
}

.service-item:hover .service-number {
  color: var(--text-bright);
}

.service-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.service-content p {
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.65;
}


/* --- CONTACT --- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-cta {
  grid-column: 1 / -1;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text-bright);
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--text-dim);
  color: var(--bg);
}

.section-contact.contact-visible .cta-button {
  animation: ctaPulse 3s ease-in-out 0.5s infinite;
}

.section-contact.contact-visible .cta-button:hover {
  animation: none;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0px 0px rgba(240, 240, 240, 0); }
  50%      { box-shadow: 0 0 30px 6px rgba(240, 240, 240, 0.15); }
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-block a,
.contact-block address {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
}

/* Staggered reveal for contact blocks */
.section-contact .contact-block {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-contact.contact-visible .contact-block {
  opacity: 1;
  transform: translateY(0);
}

.section-contact.contact-visible .contact-block:nth-child(1) { transition-delay: 0.1s; }
.section-contact.contact-visible .contact-block:nth-child(2) { transition-delay: 0.25s; }
.section-contact.contact-visible .contact-block:nth-child(3) { transition-delay: 0.4s; }




/* --- FOOTER LEGAL --- */

.footer-legal {
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-legal p {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  text-align: center;
}


/* --- RESPONSIVE --- */

@media (max-width: 900px) {
  .nav {
    padding: 1.25rem 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-label {
    position: static;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {
  .nav {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    flex: 1 1 0;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1rem;
  }

  .nav-links a {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
  }

  .hero {
    padding: 6rem 1.25rem 3rem;
  }

  .hero::before {
    background-position: center center;\
    background-size: auto 100%;
  }

  .hero-headline {
    margin-bottom: 1.25rem;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .service-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }
}
