/* ============================================================
   Contact page — additive layer on top of styles.css.
   Sections:
     1. Page-level overrides (allow scrolling)
     2. Background image + scrim
     3. Hero (heading + contact lines)
     4. Fade-up entrance animation (shared shape with about.css)
     5. Active-nav indicator
   ============================================================ */


/* -------------------------------------------------------
   1. Page-level overrides
   ------------------------------------------------------- */
/* Allow the document to scroll naturally on these pages — base
   styles.css locks html/body to 100vh/overflow:hidden for the
   homepage, so we override with overflow:visible here. Nested
   overflow:auto on both html and body confuses iOS Safari and
   can leave scroll completely stuck. */
html {
  height: auto;
  width: auto;
  overflow: visible;
}
body {
  height: auto;
  min-height: 100vh;
  width: auto;
  overflow-x: hidden;
  overflow-y: visible;
}


/* -------------------------------------------------------
   2. Background image + scrim
   ------------------------------------------------------- */
.contact-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.contact-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('../images/contact/20171224-181734-D85_4011.jpg');
  background-size: cover;
  background-position: center;
}
.contact-bg-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.42) 0%, rgba(10, 9, 8, 0.62) 100%);
}


/* -------------------------------------------------------
   3. Hero — title + contact lines
   The page is centered vertically; min-height: 100vh keeps
   the content placed in the viewport even when scrolled.
   ------------------------------------------------------- */
.contact-page {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  padding: 140px 8vw 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-hero {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 48px;
}

.contact-label {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 36px;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}

.contact-line {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 18px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.35s ease;
}
.contact-line:hover { color: var(--accent); }

.contact-divider {
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0 auto 28px;
}

.contact-location {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* Social section sits below the location line, separated by spacing only.
   Uses the same .contact-label visual treatment for the heading and
   underline-grow hover (matches topnav / more-projects). */
.contact-social-label {
  margin-top: 0;
  margin-bottom: 20px;
}

.contact-social {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.contact-social a {
  position: relative;
  display: inline-block;
  /* Match .topnav links' typography */
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-social a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-social a:hover { color: #fff; }
.contact-social a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}


/* -------------------------------------------------------
   4. Fade-up entrance animation
   ------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease var(--fade-delay, 0s),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--fade-delay, 0s);
}
.fade-up.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* -------------------------------------------------------
   5. Active-nav indicator
   ------------------------------------------------------- */
.topnav a.is-current {
  color: #fff;
}
.topnav a.is-current::after {
  transform: scaleX(1);
  transform-origin: left center;
}


/* -------------------------------------------------------
   Responsive
   ------------------------------------------------------- */
@media (max-width: 640px) {
  .contact-page {
    padding: 110px 6vw 60px;
  }
  .contact-title {
    margin-bottom: 36px;
  }
  .contact-label {
    margin-bottom: 28px;
    font-size: 10px;
    letter-spacing: 0.24em;
  }
  .contact-line {
    font-size: 16px;
  }
  .contact-social-label {
    margin-top: 0;
    margin-bottom: 16px;
  }
  .contact-social {
    gap: 4px;
  }
}
