/* ============================================================
   seanhabig.com — style.css
   Shape deliverable: Jules, 2026-05-11
   Typeface: Syne 700/800. One page. The work speaks.
   ============================================================ */

/* --- Reset & global ---------------------------------------- */

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

:root {
  --bg-overlay:    #F5F4F1;
  --text-dark:     #1A1A1A;
  --border-subtle: #C8C6C1;
}

html {
  font-family: 'Syne', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow: hidden;
  height: 100dvh;
  background: #000;
}

/* --- Hero -------------------------------------------------- */

#hero {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#hero img,
#hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Images and video are positioned on top of each other;
     JS swaps them by toggling an 'active' class */
  opacity: 0;
  transition: none;
}

#hero img.active,
#hero video.active {
  opacity: 1;
}

/* --- Vignette: 5% black scrim between hero and UI --------- */

#vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

/* --- Flash element (camera-shutter cut transition) --------- */

#flash {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  /* Transition from opacity 1 → 0 is set inline by JS after the
     flash fires, so the element fades out over 32ms */
}

/* --- UI layer ---------------------------------------------- */

#ui {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px;
}

/* Name — top-left */

#name {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}

/* Contact button — top-right, typographic peer of the name */

#contact-btn {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  position: relative;
  padding: 0;
  font-family: inherit;
  line-height: 1;
}

#contact-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
  border-radius: 1px;
}

/* --- Overlay ----------------------------------------------- */

#overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--bg-overlay);
  transform: translateY(-100%);
  transition: transform 420ms cubic-bezier(0.76, 0, 0.24, 1);
  overflow: hidden;
}

#overlay.open {
  transform: translateY(0);
}

/* Close button — fixed at top-right of overlay,
   matches the UI layer size and weight exactly */

#close-btn {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 21;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  line-height: 1;
}

#close-btn:focus-visible {
  outline: 2px solid var(--text-dark);
  outline-offset: 4px;
  border-radius: 1px;
}

/* Overlay inner: two-column grid on desktop */

#overlay-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 100px 28px 60px;
  height: 100%;
  align-items: start;
  overflow-y: auto;
}

/* --- Bio column (left) ------------------------------------- */

#bio-col {
  display: flex;
  flex-direction: column;
}

.bio-text {
  font-size: clamp(17px, 2vw, 25px);
  line-height: 1.5;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.linkedin-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1;
}

.linkedin-link:focus-visible {
  outline: 2px solid var(--text-dark);
  outline-offset: 4px;
  border-radius: 2px;
}

/* --- Form column (right) ----------------------------------- */

#form-col {
  display: flex;
  flex-direction: column;
}

#contact-form {
  display: flex;
  flex-direction: column;
}

#contact-form label {
  display: block;
  font-size: clamp(17px, 2vw, 25px);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
  font-family: inherit;
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 700;
  color: var(--text-dark);
  outline: none;
  border-radius: 0;
  margin-bottom: 28px;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: var(--border-subtle);
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-bottom-color: var(--text-dark);
}

#submit-btn {
  width: 100%;
  background: var(--text-dark);
  color: var(--bg-overlay);
  border: none;
  padding: 18px;
  font-family: inherit;
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  margin-top: 28px;
}

/* Instant inversion — no transition, decisive */
#submit-btn:hover,
#submit-btn:focus-visible {
  background: var(--bg-overlay);
  color: var(--text-dark);
  outline: 2px solid var(--text-dark);
}

/* --- Loading state ----------------------------------------- */

body.loading::after {
  content: '';
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  z-index: 15;
  pointer-events: none;
  animation: loading-pulse 1.4s ease-in-out infinite;
}

@keyframes loading-pulse {
  0%, 100% { opacity: 0.2; width: 20px; }
  50%       { opacity: 0.7; width: 40px; }
}

/* --- Form feedback states ---------------------------------- */

.form-success {
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dark);
  line-height: 1.5;
}

.form-error {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dark);
  opacity: 0.55;
  margin-top: 16px;
}

/* --- Mobile breakpoint (≤768px) ---------------------------- */

@media (max-width: 768px) {

  #ui {
    padding: 20px;
  }

  #name {
    font-size: 24px;
    letter-spacing: 0.12em;
  }

  #contact-btn {
    font-size: 24px;
    letter-spacing: 0.12em;
  }

  #close-btn {
    top: 20px;
    right: 20px;
    font-size: 24px;
    letter-spacing: 0.12em;
  }

  #overlay {
    overflow-y: auto;
  }

  #overlay-inner {
    grid-template-columns: 1fr;
    padding: 90px 20px 60px;
    align-items: start;
    gap: 48px;
    height: auto;
    min-height: 100%;
  }

  .bio-text {
    font-size: clamp(18px, 5vw, 24px);
  }

}
