/* =========================
   Custom Fonts – Futura
   ========================= */

@font-face {
  font-family: "Futura";
  src: url("../assets/fonts/Futura100-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Futura";
  src: url("../assets/fonts/Futura100-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Futura";
  src: url("../assets/fonts/Futura100-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Futura";
  src: url("../assets/fonts/Futura100-Demibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Futura";
  src: url("../assets/fonts/Futura100-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Futura";
  src: url("../assets/fonts/Futura100-BookOblique.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}

/* =========================
   Global
   ========================= */

:root{
  --header: #171a1a;
  --projects-bg: #f1eee7;
  --awards-bg: #1b1f1e;
  --orange: #d0662b;

  --container: 1120px;
  --pad: 22px;
}

*{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
}

body{
  font-family: "Futura", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
}

/* =========================
   Layout helpers
   ========================= */

.container{
  width: min(var(--container), 100% - (var(--pad) * 2));
  margin-inline: auto;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip: rect(0,0,0,0);
}

/* =========================
   Header
   ========================= */

.site-header{
  background: var(--header);
  color: white;
  position: relative;
  z-index: 50;
}

.header-inner{
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo{
  height: 28px;
}

.site-nav{
  display: flex;
  gap: 26px;
}

.site-nav a{
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.nav-toggle{
  display: none;
}

/* =========================
   HERO (BLEND MODE WORKS)
   ========================= */

.hero{
  position: relative;
  height: 72vh;
  min-height: 520px;
  overflow: hidden;

  /* REQUIRED for blend mode */
  isolation: isolate;
}

/* Hero image — constrained, cropped */
.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* p5 canvas — DOES NOT interfere */
.hero-canvas{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  /* IMPORTANT */
  mix-blend-mode: normal;
}

/* Text layer */
.hero-inner{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ✅ ACTUAL DIFFERENCE BLEND */
.hero-title{
  margin: 0;
  max-width: 820px;

  font-size: clamp(28px, 3.2vw, 54px);
  font-weight: 800;
  line-height: 1.12;

  color: white;
  mix-blend-mode: difference;

  /* Shadows break clarity — keep off */
  text-shadow: none;
}

/* Hero credit */
.hero-credit{
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 11px;
  color: rgba(255,255,255,.75);
  z-index: 2;
}

/* Scroll arrow */
.hero-scroll{
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  font-size: 28px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  z-index: 2;
}
.dot{
  color:var(--orange);
}

/* =========================
   Projects
   ========================= */

.projects{
  background: var(--projects-bg);
  padding: 70px 0 90px;
}

.section-title{
  text-align: center;
  font-size: 40px;
  margin-bottom: 40px;
  color: var(--orange);
}

.project-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 980px;
  margin: 0 auto;
}

.project-card{
  aspect-ratio: 3 / 4;
  background: white;
  border: 1px solid rgba(0,0,0,.2);
  position: relative;
  overflow: hidden;
}

.project-card img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-label{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.project-label.faint{
  font-size: 52px;
  color: rgba(0,0,0,.08);
}

.project-label.strong{
  font-size: 56px;
  color: white;
  text-shadow: 0 12px 40px rgba(0,0,0,.6);
}

/* =========================
   Awards
   ========================= */

.awards{
  background: var(--awards-bg);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.awards-title{
  font-size: 48px;
  color: rgba(255,255,255,.95);
  font-weight: 900;
}

/* =========================
   Contact
   ========================= */

.contact{
  padding: 60px 0 90px;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 900px){

  .nav-toggle{
    display: inline-flex;
  }

  .site-nav{
    display: none;
  }

  .hero-inner{
    justify-content: flex-start;
    padding-top: 80px;
  }

  .project-grid{
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .project-label.faint{
    font-size: 44px;
  }

  .project-label.strong{
    font-size: 46px;
  }
}
