/* ============================================================
   MAT NAPP — personal brand site
   Palette:
     --black     #000000  primary background
     --turquoise #5ce1e6  primary accent (passes AA/AAA on black)
     --cream     #e7ddcd  secondary background / light text on black
   Type:
     Display: Anton (italicized for the slanted condensed look)
     Body:    Inter
   ============================================================ */

:root {
  --black: #000000;
  --near-black: #111111;
  --turquoise: #5ce1e6;
  --cream: #e7ddcd;
  --cream-dim: #cfc4b2;
  --font-display: "Anton", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1100px;
  --header-h: 64px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Accessible skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--turquoise);
  color: var(--black);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Visible focus for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 2px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(231, 221, 205, 0.12);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
}
.nav-brand:hover { color: var(--turquoise); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-menu a:hover { color: var(--turquoise); }

.nav-menu .nav-cta {
  color: var(--black);
  background: var(--turquoise);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
}
.nav-menu .nav-cta:hover {
  color: var(--black);
  background: var(--cream);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 24px;
  height: 3px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid rgba(231, 221, 205, 0.12);
    display: none;
  }
  .nav-menu.is-open { display: flex; }

  .nav-menu li { border-top: 1px solid rgba(231, 221, 205, 0.08); }
  .nav-menu a {
    display: block;
    padding: 16px 24px;
    font-size: 1.05rem;
  }
  .nav-menu .nav-cta {
    border-radius: 0;
    padding: 16px 24px;
  }
}

/* ---------- Shared section styles ---------- */
section { padding: 88px 0; }

.section-dark {
  background: var(--black);
  color: var(--cream);
}

.section-light {
  background: var(--cream);
  color: var(--near-black);
}

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

/* Hand-drawn swoosh (transparent PNG from the brand board).
   Dark sections use swoosh.png (turquoise); light sections use
   swoosh-dark.png (darker teal) since turquoise reads faint on cream. */
.swoosh {
  display: block;
  width: min(280px, 60vw);
  height: auto;
}
.swoosh-sm {
  width: 130px;
  margin-top: 2px;
}

.section-lede {
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--cream-dim);
  margin-bottom: 48px;
}
.section-lede.dark-text { color: #3a352c; }

.section-cta { margin-top: 48px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--turquoise);
  color: var(--black);
}
.btn-primary:hover { background: var(--cream); }

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-secondary:hover {
  border-color: var(--turquoise);
  color: var(--turquoise);
}

.btn-dark {
  background: var(--black);
  color: var(--cream);
}
.btn-dark:hover { color: var(--turquoise); }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 96px 0;
  background: var(--black);
}

/* Portrait on the right, vertically centered. The source image already
   carries its own black falloff around the subject, so it needs far less
   masking than a full-bleed photo: a short left fade is enough to blend the
   crop edge into the hero. Sized by height so it stays a portrait rather
   than filling the panel. */
.hero-photo {
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  height: 82%;
  width: auto;
  max-width: 52%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
  /* No CSS mask needed: the edge falloff is baked into the image itself, so
     all four borders are already true black and blend into the hero. That
     also avoids the -webkit-mask-composite / mask-composite keyword mismatch
     between Safari and everything else. */
}

.hero-inner {
  /* width 100%: as a flex item of .hero it would otherwise shrink-wrap
     and get centered by the container's auto margins */
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Mobile hero: stack the text on top, then the photo as a full-bleed band
   below the CTAs that fades up into the black. */
@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 0;
    gap: 16px;
  }
  .hero-inner { order: 0; }
  .hero-photo {
    display: block;
    position: static;
    transform: none;
    order: 1;
    width: 100%;
    max-width: 100%;
    height: 38vh;
    /* contain, not cover: shows the whole portrait instead of zooming in.
       The image's own black falloff blends it into the hero, so no mask. */
    object-fit: contain;
    object-position: center;
    -webkit-mask-image: none;
            mask-image: none;
  }
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
  font-size: clamp(4.5rem, 16vw, 11rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.wordmark-line { display: block; }

.hero .swoosh { margin: 18px 0 32px; }

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--cream);
}
.tagline-line { display: block; }
.tagline-line.accent { color: var(--turquoise); }

.hero-positioning {
  margin-top: 24px;
  max-width: 520px;
  font-size: 1.15rem;
  color: var(--cream-dim);
}

.hero-ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Visually hidden, still read by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Hero newsletter signup ---- */
.hero-signup {
  margin-top: 32px;
  max-width: 520px;
  width: 100%;
}

.hero-signup-label {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 12px;
}

.hero-signup-row {
  display: flex;
  gap: 10px;
}

.hero-signup input {
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 4px;
  border: 2px solid rgba(231, 221, 205, 0.3);
  background: #0d0d0d;
  color: var(--cream);
}
.hero-signup input::placeholder { color: rgba(231, 221, 205, 0.45); }
.hero-signup input:focus { border-color: var(--turquoise); outline: none; }

.hero-signup .btn {
  flex: 0 0 auto;
  padding: 12px 22px;
  font-size: 0.95rem;
}

.hero-signup-note {
  margin-top: 10px;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--turquoise);
}

@media (max-width: 620px) {
  .hero-signup-row { flex-direction: column; }
  .hero-signup .btn { width: 100%; }
}

/* On phones, size the wordmark to fill the width and match the swoosh to it. */
@media (max-width: 860px) {
  .wordmark { font-size: clamp(4.5rem, 34vw, 11rem); }
  .hero .swoosh { width: min(72vw, 20rem); }
}

/* ---------- 2. Watch ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.video-card {
  text-decoration: none;
  color: var(--cream);
  display: block;
}
/* Hover accents only on live (linked) cards */
a.video-card:hover .thumb-img { border-color: var(--turquoise); }
a.video-card:hover .video-title { color: var(--turquoise); }

.thumb-wrap {
  position: relative;
  line-height: 0;
}

/* Real thumbnails from the brand board */
.thumb-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(231, 221, 205, 0.25);
  border-radius: 6px;
  transition: border-color 0.15s ease;
}

/* ---- Coming Soon (unpublished videos) ---- */
.is-coming-soon { cursor: default; }
.is-coming-soon .thumb-img { filter: grayscale(100%) brightness(0.7); }
.is-coming-soon .video-title { color: var(--cream-dim); }

.coming-soon-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.55);
  color: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1;
}

.video-title {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.15s ease;
}

/* ---------- Social proof marquee ----------
   Two identical tracks slide left together; when the first has moved its
   full width the animation resets, and the second is exactly where the
   first began, so the loop looks continuous. */
.proof {
  padding: 40px 0;
  border-top: 1px solid rgba(231, 221, 205, 0.12);
  border-bottom: 1px solid rgba(231, 221, 205, 0.12);
  overflow: hidden;
}

.proof-marquee {
  display: flex;
  width: max-content;
  animation: proof-scroll 46s linear infinite;
}
/* Let people actually read one that catches their eye */
.proof-marquee:hover { animation-play-state: paused; }

.proof-track {
  display: flex;
  gap: 20px;
  padding-right: 20px;
}

@keyframes proof-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.proof-card {
  flex: 0 0 auto;
  width: 320px;
  margin: 0;
  padding: 22px 24px;
  background: #0a0a0a;
  border: 1px solid rgba(231, 221, 205, 0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.proof-card blockquote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--cream);
}

.proof-card figcaption {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--turquoise);
}

/* Motion-sensitive visitors get a static, scrollable row instead */
@media (prefers-reduced-motion: reduce) {
  .proof-marquee {
    animation: none;
    width: 100%;
    overflow-x: auto;
  }
  .proof-track[aria-hidden="true"] { display: none; }
}

/* ---------- 3. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
}

/* Real headshot from the brand board */
.about-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-copy p {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #2b271f;
}

.about-subhead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.4rem;
  margin: 36px 0 14px;
  color: var(--near-black);
}

/* ---------- What I'm Building ----------
   Compact band at the very bottom of the page, just above the footer
   (styled tighter than the main sections, like a products strip). */
.building {
  padding: 56px 0 64px;
  border-top: 1px solid rgba(231, 221, 205, 0.12);
}

.building .section-title {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin-bottom: 20px;
}
.building .section-title .swoosh-sm { width: 100px; }

.building .section-lede {
  font-size: 1rem;
  margin-bottom: 32px;
}

.building .build-card { padding: 24px 22px; }
.building .card-title { font-size: 1.35rem; }
.building .card-logo { height: 24px; }
.building .card-logo-wide { height: 21px; }
.building .build-card p { font-size: 0.92rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.build-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  background: #0a0a0a;
  border: 1px solid rgba(231, 221, 205, 0.2);
  border-radius: 8px;
  text-decoration: none;
  color: var(--cream);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.build-card:hover {
  border-color: var(--turquoise);
  transform: translateY(-4px);
}

.card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.6rem;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Brand mark sitting inline before the card name */
.card-logo {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}
/* The Ghost Noise mark is wide (ghost + soundwave), give it a touch more room */
.card-logo-wide { height: 26px; }

.build-card p {
  color: var(--cream-dim);
  font-size: 0.98rem;
  flex-grow: 1;
}

.card-link {
  color: var(--turquoise);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- 5. Work With Me ---------- */
.work-inner { max-width: 720px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

/* Honeypot spam trap: off-screen, not shown to real users */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--near-black);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid rgba(17, 17, 17, 0.3);
  border-radius: 4px;
  background: #fffdf9;
  color: var(--near-black);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--near-black);
}

.contact-form .btn { align-self: flex-start; }

.form-note {
  font-size: 0.9rem;
  color: #3a352c;
  min-height: 1.2em;
}

.work-fallback {
  font-size: 1rem;
  color: #2b271f;
}
.work-fallback a {
  color: var(--near-black);
  font-weight: 700;
  text-decoration-color: var(--turquoise);
  text-decoration-thickness: 2px;
}
.work-fallback a:hover { color: #007a80; }

/* ---------- 6. Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--cream);
  padding: 64px 0 48px;
  border-top: 1px solid rgba(231, 221, 205, 0.12);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

/* MN monogram tile: black background blends into the black footer */
.monogram-img {
  width: 110px;
  height: auto;
}

.social-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.social-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
}
.social-links a:hover { color: var(--turquoise); }

/* Mat's real signature, recolored cream */
.signature-img {
  width: 180px;
  height: auto;
}

.copyright {
  font-size: 0.85rem;
  color: var(--cream-dim);
}
