@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #171717;

  --ink: #f2f0ea;
  --muted: #8a8a8a;

  --line: rgba(242, 240, 234, .16);
  --line-strong: rgba(242, 240, 234, .28);

  --accent: #d7ff36;
}


/* =========================================
   RESET
========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  cursor: default;
}

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

button {
  font: inherit;
}


/* =========================================
   NAVIGATION
========================================= */

.nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;

  height: 76px;
  padding: 0 4vw;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(10, 10, 10, .78);
  backdrop-filter: blur(16px);

  border-bottom: 1px solid var(--line);
}

.logo {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.06em;
  font-size: 1.25rem;
}

.logo span {
  font-size: .55rem;
  vertical-align: top;
  margin-left: 2px;
}

.nav nav {
  display: flex;
  gap: 28px;
  font-size: .8rem;
}

.nav nav a,
.nav-cta {
  transition:
    opacity .2s ease,
    color .2s ease;
}

.nav nav a:hover,
.nav-cta:hover {
  opacity: .5;
}

.nav-cta {
  font-size: .78rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}


/* =========================================
   HERO
========================================= */

.hero {
  min-height: 100vh;

  padding: 150px 8vw 8vw;

  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: var(--bg);
}

.eyebrow {
  margin: 0 0 20px;

  color: var(--muted);

  font: 500 .68rem/1.4 "DM Mono", monospace;

  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero h1 {
  margin: 0;
  max-width: 980px;

  color: var(--ink);

  font-size: clamp(4rem, 11vw, 10rem);
  line-height: .84;
  letter-spacing: -.09em;
  font-weight: 800;
}

.hero h1 em,
h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -.07em;
}

.hero-copy {
  max-width: 420px;

  margin: 44px 0 30px 8vw;

  color: #b0b0b0;

  font-size: 1rem;
  line-height: 1.65;
}

.button {
  width: fit-content;

  margin-left: 8vw;
  padding: 14px 18px;

  background: var(--ink);
  color: var(--bg);

  font-size: .76rem;

  text-transform: uppercase;
  letter-spacing: .06em;

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.button:hover {
  background: var(--accent);
  color: #111;
  transform: translateY(-2px);
}

.button span {
  margin-left: 22px;
}

.hero-mark {
  position: absolute;

  right: 5vw;
  bottom: -6vw;

  color: #fff;

  font-size: 48vw;
  line-height: .7;

  font-weight: 800;
  letter-spacing: -.16em;

  opacity: .035;

  pointer-events: none;
}


/* =========================================
   WORK SECTION
========================================= */

.work-section {
  padding: 10vw 5vw;

  background: var(--bg);

  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;

  justify-content: space-between;
  align-items: end;

  gap: 40px;

  margin-bottom: 55px;
}

.section-head h2 {
  margin: 0;

  color: var(--ink);

  font-size: clamp(3rem, 7vw, 7rem);
  line-height: .8;
  letter-spacing: -.08em;
}

.section-note {
  max-width: 300px;

  color: var(--muted);

  font-size: .85rem;
  line-height: 1.6;
}


/* =========================================
   FILTERS
========================================= */

.filters {
  display: flex;

  gap: 8px;
  flex-wrap: wrap;

  margin-bottom: 30px;
}

.filter {
  border: 1px solid var(--line-strong);

  background: transparent;
  color: var(--ink);

  padding: 9px 14px;

  border-radius: 999px;

  font: .68rem "DM Mono", monospace;

  text-transform: uppercase;

  cursor: pointer;

  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease;
}

.filter.active,
.filter:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}


/* =========================================
   PORTFOLIO GRID
========================================= */

.grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 50px 24px;
}

.project {
  transition: transform .35s ease;
}

.project:hover {
  transform: translateY(-5px);
}

.project-large {
  grid-row: span 2;
}

.project-wide {
  grid-column: span 2;
}


/* =========================================
   OLD VISUAL SYSTEM
   Kept for compatibility
========================================= */

.visual {
  min-height: 470px;

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.project-large .visual {
  min-height: 700px;
}

.project-wide .visual {
  min-height: 500px;
}

.visual span {
  font-size: clamp(3rem, 8vw, 9rem);

  line-height: .8;

  font-weight: 800;

  letter-spacing: -.09em;

  text-align: center;
}

.visual b {
  position: absolute;

  top: 18px;
  right: 20px;

  font: .65rem "DM Mono", monospace;
}

.visual-3d {
  background: #171717;
  color: #eee;
}

.visual-3d span {
  transform: rotate(-9deg);

  text-shadow:
    20px 25px 0 rgba(255,255,255,.08);
}

.visual-design {
  background: #222;
  color: #f2f0ea;
}

.visual-design span {
  font-family: Georgia, serif;
  font-weight: 400;
  font-style: italic;
}

.visual-flyer {
  background: var(--accent);
  color: #111;
}

.visual-flyer span {
  font-size: clamp(3rem, 6vw, 6rem);
}

.visual-motion {
  background: #242424;
  color: #f2f0ea;
}

.visual-motion span {
  font-family: "DM Mono", monospace;

  font-size: clamp(2rem, 5vw, 5rem);

  letter-spacing: -.12em;
}

.visual-chrome {
  background: #303030;
  color: #eee;
}

.visual-chrome span {
  text-shadow:
    0 0 4px white,
    0 0 20px #ddd;
}

.visual-editorial {
  background: #111;
  color: #f2f0ea;
}

.visual-editorial span {
  font-family: Georgia, serif;
  font-weight: 400;

  font-size: clamp(3rem, 6vw, 6rem);
}


/* =========================================
   VIDEO MEDIA
========================================= */

.media-frame {
  min-height: 470px;

  position: relative;
  overflow: hidden;

  background: var(--surface);
}

.project-large .media-frame {
  min-height: 700px;
}

.media-frame.dark {
  background: #111;
}

.media-frame video {
  width: 100%;
  height: 100%;

  min-height: inherit;

  position: absolute;
  inset: 0;

  object-fit: cover;

  display: block;
}

.media-label {
  position: absolute;

  z-index: 2;

  top: 18px;
  right: 20px;

  color: white;

  font: .65rem "DM Mono", monospace;

  text-transform: uppercase;

  mix-blend-mode: difference;
}


/* =========================================
   PROJECT META
========================================= */

.project-meta {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  padding-top: 12px;
}

.project-meta h3 {
  margin: 0;

  color: var(--ink);

  font-size: .9rem;
}

.project-meta span {
  color: var(--muted);

  font: .63rem "DM Mono", monospace;

  text-transform: uppercase;
}


/* =========================================
   PLACEHOLDERS
========================================= */

.placeholder {
  min-height: 500px;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #171717;

  color: #f2f0ea;

  overflow: hidden;
}

.project-wide .placeholder {
  min-height: 500px;
}

.placeholder.accent {
  background: var(--accent);
  color: #111;
}

.placeholder.soft {
  background: #292929;
  color: #f2f0ea;
}

.placeholder span {
  font-size: clamp(2.5rem, 6vw, 7rem);

  line-height: .82;

  font-weight: 800;

  letter-spacing: -.09em;

  text-align: center;
}

.placeholder b {
  position: absolute;

  top: 18px;
  right: 20px;

  font: .65rem "DM Mono", monospace;
}


/* =========================================
   ABOUT
========================================= */

.about {
  padding: 12vw 8vw;

  background: #111;

  color: var(--ink);
}

.about-layout {
  display: grid;

  grid-template-columns: 1.4fr .6fr;

  gap: 8vw;
}

.about h2 {
  margin: 0;

  color: var(--ink);

  font-size: clamp(3.5rem, 8vw, 8rem);

  line-height: .82;

  letter-spacing: -.09em;
}

.about-text {
  color: #999;

  line-height: 1.7;

  font-size: .9rem;
}

.about-text p {
  margin: 0 0 25px;
}


/* =========================================
   CONTACT
========================================= */

.contact {
  padding: 12vw 8vw 8vw;

  min-height: 80vh;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: var(--bg);

  color: var(--ink);
}

.contact h2 {
  margin: 0;

  color: var(--ink);

  font-size: clamp(4rem, 11vw, 11rem);

  line-height: .8;

  letter-spacing: -.1em;
}

.contact-copy {
  max-width: 380px;

  margin: 50px 0 30px 9vw;

  color: var(--muted);

  line-height: 1.6;

  font-size: .9rem;
}

.contact-email {
  width: fit-content;

  margin-left: 9vw;

  color: var(--ink);

  font-size: clamp(1.2rem, 3vw, 2.5rem);

  border-bottom: 2px solid var(--ink);

  transition: color .2s ease;
}

.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-links {
  margin-top: 80px;

  display: flex;

  gap: 25px;

  font: .68rem "DM Mono", monospace;

  text-transform: uppercase;
}

.contact-links a:hover {
  text-decoration: underline;
}


/* =========================================
   FOOTER
========================================= */

footer {
  border-top: 1px solid var(--line);

  padding: 20px 5vw;

  display: flex;

  justify-content: space-between;

  background: var(--bg);

  color: var(--muted);

  font: .6rem "DM Mono", monospace;

  text-transform: uppercase;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 720px) {

  .nav {
    padding: 0 5vw;
  }

  .nav nav {
    display: none;
  }


  /* HERO */

  .hero {
    padding: 130px 6vw 15vw;
  }

  .hero-copy,
  .button {
    margin-left: 0;
  }

  .hero-copy {
    margin-top: 35px;
  }


  /* WORK */

  .section-head,
  .about-layout {
    display: block;
  }

  .section-note {
    margin-top: 30px;
  }

  .grid {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .project-large,
  .project-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .project-wide {
    grid-column: auto;
  }


  /* OLD VISUAL */

  .visual,
  .project-large .visual,
  .project-wide .visual {
    min-height: 390px;
  }


  /* CONTACT */

  .contact-copy,
  .contact-email {
    margin-left: 0;
  }

  .contact-links {
    margin-top: 55px;

    flex-wrap: wrap;
  }


  /* FOOTER */

  footer {
    gap: 20px;

    flex-direction: column;
  }


  /* =======================================
     MOBILE VIDEO FIX

     Full video visible.
     No cropping.
  ======================================= */

  .media-frame {
    min-height: 0;

    height: auto;

    aspect-ratio: 16 / 9;

    position: relative;

    overflow: hidden;

    background: var(--surface);
  }

  .project-large .media-frame,
  .project-wide .media-frame {
    min-height: 0;

    height: auto;

    aspect-ratio: 16 / 9;
  }

  .media-frame video {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    min-height: 0;

    object-fit: contain !important;

    display: block;
  }

  .media-label {
    top: 12px;
    right: 14px;
  }


  /* =======================================
     MOBILE PROJECT META
  ======================================= */

  .project-meta {
    gap: 12px;

    align-items: flex-start;
  }

  .project-meta h3 {
    font-size: .85rem;
  }

  .project-meta span {
    font-size: .58rem;

    text-align: right;
  }


  /* =======================================
     MOBILE PLACEHOLDERS
  ======================================= */

  .placeholder,
  .project-wide .placeholder {
    min-height: 390px;
  }

  .placeholder span {
    font-size: clamp(2.3rem, 11vw, 5rem);
  }

}
/* =========================================================
   HERO VIDEO BACKGROUND
========================================================= */

.hero-video {
    position: relative;
    min-height: 670px;
    overflow: hidden;
    isolation: isolate;
    background: #0a0a0a;
}

/* VIDEO BACKGROUND */

.hero-video .hero-bg-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: -2;

    pointer-events: none;
}

/* DARK OVERLAY */

.hero-video .hero-video-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(10,10,10,.72) 0%,
            rgba(10,10,10,.48) 45%,
            rgba(10,10,10,.30) 100%
        );

    z-index: -1;

    pointer-events: none;
}

/* CONTENT ABOVE VIDEO */

.hero-video .hero-content {
    position: relative;
    z-index: 2;

    min-height: 670px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 100px 8vw;
}

/* SMALL TEXT */

.hero-video .eyebrow {
    margin-bottom: 28px;

    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;

    color: #b8b8b8;
}

/* MAIN TITLE */

.hero-video h1 {
    margin: 0;

    color: #f2f0ea;

    font-size: clamp(70px, 8vw, 150px);
    line-height: .86;

    letter-spacing: -.055em;

    max-width: 900px;
}

/* SCRIPT / ITALIC WORD */

.hero-video h1 em {
    font-family: inherit;
    font-style: italic;
    font-weight: 400;
}

/* DESCRIPTION */

.hero-video p {
    max-width: 440px;

    margin-top: 45px;

    color: #b5b5b5;

    font-size: 15px;
    line-height: 1.7;
}

/* BUTTON */

.hero-video .hero-button {
    display: inline-flex;
    align-items: center;
    gap: 28px;

    width: fit-content;

    margin-top: 30px;
    padding: 17px 20px;

    background: #f2f0ea;
    color: #111;

    text-decoration: none;

    font-size: 12px;
    letter-spacing: .03em;

    transition:
        transform .3s ease,
        background .3s ease;
}

.hero-video .hero-button span {
    font-size: 16px;
}

.hero-video .hero-button:hover {
    transform: translateY(-3px);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {

    .hero-video {
        min-height: 620px;
    }

    .hero-video .hero-bg-video {
        object-fit: cover;
    }

    .hero-video .hero-video-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(10,10,10,.78),
                rgba(10,10,10,.48)
            );
    }

    .hero-video .hero-content {
        min-height: 620px;

        padding:
            90px 24px
            70px;
    }

    .hero-video .eyebrow {
        font-size: 10px;
        margin-bottom: 22px;
    }

    .hero-video h1 {
        font-size: clamp(55px, 16vw, 90px);
        line-height: .88;
    }

    .hero-video p {
        max-width: 330px;

        margin-top: 30px;

        font-size: 14px;
    }

    .hero-video .hero-button {
        margin-top: 25px;
    }
}

/* =========================================================
   PERFORMANCE / MOBILE VIDEO SAFETY
   Portfolio videos are loaded and played only when near view.
========================================================= */

#portfolio .project {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}

#portfolio .media-frame video {
  background: var(--surface);
}

@media (max-width: 720px) {
  #portfolio .project {
    contain-intrinsic-size: 360px;
  }
}
