/* assets/styles/styles.css */

/* ===============================
   VARIABLES (8px grid)
================================ */
:root{
  --s8: 8px;
  --s16: 16px;
  --s24: 24px;
  --s32: 32px;
  --s40: 40px;
  --s48: 48px;
  --s56: 56px;
  --s64: 64px;
  --s80: 80px;
  --s96: 96px;

  --radius: 16px;

  --accent:#010101;
  --text: #111111;
  --muted: #9a9a9a;

  --peach: white;
  --white: white;
  --mint: #F8F9FB;
  --lavender: white;
}

/* ===============================
   FONTS
================================ */

@font-face {
  font-family: "Sohne Breit";
  src: url("../fonts/sohnebreit.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ===============================
   BASE
================================ */
*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--peach);
  -webkit-font-smoothing: antialiased;
}

/* ===============================
   TOP NAV (sticky)
================================ */
.topnav{
  background: var(--white);
  padding: var(--s24) 0; /* 32px */
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* THIS now matches the gray canvas width exactly */
.nav-inner{
  max-width: 1200px;     /* same as .project */
  margin: 0 auto;
  padding: 0 var(--s32); /* same side padding */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{

  font-family: "Sohne Breit";
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}





/* base icon behavior */

.nav-icons{
  display: flex;
  align-items: center;
  gap: 24px; /* 3 × 8px — ideal for icon breathing room */
}

.nav-icons a{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;

  color: var(--accent);
  text-decoration: none;

  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 120ms ease;
}

/* SVG sizing */
.nav-icons svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

/* 👇 LinkedIn hover only */
.nav-icons a[href*="linkedin"]:hover{
  transform: scale(1.12);
  opacity: 0.9;
}


.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

/* PNG icons */
.icon-img {
  width: 16px;
  height: 16px;
  display: block;

  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 120ms ease;
}

/* Subtle icon motion on hover */
.iconBtn:hover .icon,
.iconBtn:hover .icon-img {
  transform: scale(1.06);
}

/* ===============================
   SECTION COLOR BANDS
================================ */
.project-section{
  padding: var(--s96) 0; /* 96px top/bottom between projects */
}

.bg-peach{ background: var(--peach); }
.bg-mint{ background: var(--mint); }
.bg-lavender{ background: var(--lavender); }

/* ===============================
   PROJECT WRAPPER
================================ */
.project{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s32);

}

/* ===============================
   CANVAS (rounded + outline)
================================ */
.project-canvas{
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 0px; /* 👈 THIS is the horizontal inset */
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 16px 40px rgba(0,0,0,0.06);
}

/* IMPORTANT: prevents the “takes up whole screen” bug */
.project-canvas video{
  width: 100%;
  height: 640px;       /* cap height */
  display: block;
  object-fit: cover;   /* crop nicely */
  transform: scale(1.005);


}

/* ===============================
   META (outside the canvas)
================================ */
.project-meta{
  margin-top: var(--s32);
}

.project-title{
  margin: 0 0 var(--s8) 0;
  font-size: 14px;      /* per your request */
  font-weight: 600;

}



.project-link{
  color: var(--accent);
  text-decoration: none;
}

.project-link:hover{
  text-decoration: underline;
}

.project-sub{
  margin: 8px 0 0 0;
  font-size: 14px;      /* per your request */

  color: var(--muted);
}

.project-desc{
  margin: 8px 0 0 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.5;
  color: #6b6b6b;
}
/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1024px){
  .nav-inner{
    padding: 0 var(--s32);
  }
  .project-canvas video{
    height: 560px; /* 70*8 */
  }
}

@media (max-width: 768px){
  .nav-inner{
    padding: 0 var(--s16);
  }
  .project{
    padding: 0 var(--s16);
  }
  .project-section{
    padding: var(--s64) 0;
  }
  .project-canvas video{
    height: 360px; /* 45*8 */
  }
}
