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

  --radius: 16px;

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

  --peach: white;
  --mint: black;
  --lavender: white;
}

/* ===============================
   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;
}

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

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

/* matches .project width exactly */
.nav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s32);
  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;
}

/* icons */
.nav-icons{
  display: flex;
  align-items: center;
  gap: var(--s24);
}

.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;
}

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

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

.icon-img{
  width: 16px;
  height: 16px;
  display: block;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 120ms ease;
}

.iconBtn:hover .icon-img{
  transform: scale(1.06);
}

/* ===============================
   SECTION COLOR BANDS
================================ */
.project-section{
  padding: var(--s112) 0;
}

.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);
}

/* ===============================
   META (title above canvas)
================================ */
.project-meta{
  margin-top: var(--s8);
  margin-bottom: var(--s24);
}

.project-title{
  margin: 0 0 var(--s8) 0;
  font-size: 16px;
  font-weight: 600;
}

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

.project-sub{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

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

.project-canvas video{
  width: 100%;
  height: 635px;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
}

/* ===============================
   GLOBAL MEDIA (images/videos used in case)
================================ */
.project-media{
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 16px 40px rgba(0,0,0,0.06);
}

/* ===============================
   ✅ CONSISTENT VERTICAL RHYTHM
   - .intro controls section spacing
   - remove <br><br> in HTML and use multiple <p> instead
================================ */
.intro{
  padding: var(--s64) 0;
}

/* slightly tighter first section after hero, optional */
.project > .intro:first-of-type{
  padding-top: var(--s96);
}

/* two-column editorial layout */
.intro-grid{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s64);
  align-items: start;
}

.intro-kicker{
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.intro-right{
  max-width: 720px;
}

/* paragraph rhythm */
.intro-p{
  margin: 0 0 var(--s16) 0;
  font-size: 16px;
  line-height: 1.65;
}

/* remove extra bottom gap on last paragraph inside a section */
.intro-right .intro-p:last-child{
  margin-bottom: 0;
}

/* ===============================
   MEDIA ROWS (2-up)
================================ */
.case-videos{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s32);
  margin: var(--s64) 0;             /* consistent spacing around media blocks */
}

/* ===============================
   FIGURES (captions)
   IMPORTANT: don't wrap <figure> in <p>
================================ */
.case-visual{
  margin: var(--s32) 0 0 0;
}

.case-visual img,
.case-visual video{
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 16px 40px rgba(0,0,0,0.06);
}

.case-visual video{
  height: 400px;
}

.case-visual figcaption{
  margin-top: var(--s16);
  font-size: 14px;
  color: var(--muted);
}

/* ===============================
   OPTIONAL FACT GRID (if used)
================================ */
.intro-facts{
  margin-top: var(--s32);
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--s24);
}

.fact-label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(0,0,0,0.45);
}

.fact-value{
  margin-top: var(--s8);
  font-size: 16px;
}

/* ===============================
   HELPERS (if you still use these)
================================ */
.case-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s24);
}

.case-visual-grid{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: var(--s32) !important;
  align-items: start;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1024px){
  .project-canvas video{ height: 560px; }
}

@media (max-width: 900px){
  .intro-grid{
    grid-template-columns: 1fr;
    gap: var(--s24);
  }
  .intro-facts{
    grid-template-columns: 1fr;
  }
}

@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; }

  .case-videos{
    grid-template-columns: 1fr;
    gap: var(--s24);
    margin: var(--s64) 0;
  }

  .case-visual-grid{
    grid-template-columns: 1fr !important;
  }
}
