/* ============================================================
   JOEY GILLESPIE — PORTFOLIO
   Shared Stylesheet
   ============================================================ */


/* ------------------------------------------------------------
   Font Imports — Google Fonts
   ------------------------------------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Syne:wght@400..800&family=Plus+Jakarta+Sans:ital,wght@0,300..700;1,300..700&family=JetBrains+Mono:wght@400..700&display=swap');


/* ------------------------------------------------------------
   @font-face — Redaction 35
   ------------------------------------------------------------ */

@font-face {
  font-family: 'Redaction';
  src: url('fonts/Redaction_35-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Redaction';
  src: url('fonts/Redaction_35-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Redaction';
  src: url('fonts/Redaction_35-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}


/* ------------------------------------------------------------
   @font-face — Millesime
   ------------------------------------------------------------ */

@font-face {
  font-family: 'Millesime';
  src: url('fonts/Millesime.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ------------------------------------------------------------
   Reset / Base
   ------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #F5F3F2;
  -webkit-font-smoothing: antialiased;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1C1C1A;
}

::selection {
  background: #1C1C1A;
  color: #F5F3F2;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ------------------------------------------------------------
   Page Wrapper
   ------------------------------------------------------------ */

.page-wrapper {
  width: 1440px;
  margin: 0 auto;
  background: #F5F3F2;
  position: relative;
  overflow: hidden;
}


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

.page-wrapper::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: radial-gradient(circle at 1px 1px, #000 1px, transparent 0);
  background-size: 3px 3px;
}


/* ------------------------------------------------------------
   Masthead (Fixed Header)
   ------------------------------------------------------------ */

.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 243, 242, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28, 28, 26, 0.12);
}

.masthead-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 56px;
}

.masthead-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.masthead-back {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #1C1C1A;
}

.menu-btn-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.menu-btn-line {
  height: 2px;
  background: #1C1C1A;
  width: 100%;
}


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

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: #1C1C1A;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-close {
  position: absolute;
  top: 26px;
  right: 56px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #F5F3F2;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(-32px);
}

.menu-link {
  display: flex;
  align-items: baseline;
  gap: 30px;
}

.menu-link-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: rgba(245, 243, 242, 0.45);
}

.menu-link-text {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-style: italic;
  font-size: 96px;
  color: #F5F3F2;
}

.menu-footer {
  position: absolute;
  bottom: 48px;
  left: 80px;
  right: 80px;
  display: flex;
  justify-content: space-between;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(245, 243, 242, 0.55);
}

.menu-footer a {
  color: rgba(245, 243, 242, 0.85);
}


/* ------------------------------------------------------------
   Scroll Reveal
   ------------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .8s cubic-bezier(.16, 1, .3, 1),
    transform .8s cubic-bezier(.16, 1, .3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}


/* ------------------------------------------------------------
   Shared Button Styles
   ------------------------------------------------------------ */

.btn-outline {
  display: inline-block;
  padding: 18px 34px;
  border: 2px solid #1C1C1A;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1C1C1A;
  background: transparent;
  transition: background .3s ease, color .3s ease;
}

.btn-outline:hover {
  background: #1C1C1A;
  color: #F5F3F2;
}


/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.footer-rule {
  position: relative;
  border-top: 3px solid #1C1C1A;
}

.footer-accent {
  position: absolute;
  top: -8px;
  left: 0;
  width: 15px;
  height: 15px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
}


/* ------------------------------------------------------------
   Marquee Animation (Home Page)
   ------------------------------------------------------------ */

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


/* ------------------------------------------------------------
   Tag Pills (Case Studies)
   ------------------------------------------------------------ */

.tag-pill {
  border: 1px solid rgba(28, 28, 26, 0.25);
  padding: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* ------------------------------------------------------------
   Image Placeholder
   ------------------------------------------------------------ */

.img-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg, #ded9d2 0 8px, #d2ccc4 8px 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(28, 28, 26, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* ------------------------------------------------------------
   Utility
   ------------------------------------------------------------ */

.section-pad {
  padding-left: 56px;
  padding-right: 56px;
}

/* ------------------------------------------------------------
   Click-to-play video wrap
   ------------------------------------------------------------ */

.video-wrap {
  position: relative;
  cursor: pointer;
}
.video-wrap video {
  display: block;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(28, 28, 26, 0.65);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.video-wrap:hover .video-play-btn {
  background: rgba(28, 28, 26, 0.85);
}
.video-wrap.playing .video-play-btn {
  opacity: 0;
}
