/* ==========================================================================
   PORTFOLIO GRID SYSTEM
   Direct mathematical translation of Adobe InDesign Artboards (8000 x 4500 px)
   ========================================================================== */

:root {
  /* Page Margins (154px on 8000px canvas = 1.925%) */
  --page-margin-x: 1.925vw;
  --page-margin-top: 3.5vh;
  --page-margin-bottom: 3.5vh;

  /* InDesign Content Guides */
  --guide-left-col: 14.06vw;       /* 1125px / 8000px */
  --guide-right-col: 75.05vw;      /* 6004px / 8000px */
  --guide-content-width: 71.88vw;  /* 5750px / 8000px */
  
  /* Central Preview Boxes (InDesign Templates 1 & 2) */
  --box-wide-w: 23.25vw;           /* 1860px / 8000px */
  --box-square-w: 15.875vw;        /* 1270px / 8000px */

  /* Spacings & Gutters */
  --gutter-sm: 1.2vw;
  --gutter-md: 2vw;
  --gutter-lg: 3.5vw;
  --gutter-v: 2vh;

  /* Colors */
  --color-bg: #FFFFFF;
  --color-text: #000000;
  --color-text-muted: #8E8E8E;
  --color-border: #000000;
  --border-width: 1px;
  --color-corner-cross: #8A2E2E;

  /* Typography Scale (Strictly Local Fonts Only — No Fallbacks) */
  --font-family-base: 'JetBrains Mono';
  --font-family-heading: 'Space Grotesk';
  --font-family-title: 'Space Grotesk';
  --font-size-nav: 0.95rem;        /* 15px */
  --font-size-nav-active: 1rem;    /* 16px */
  --font-size-base: 0.95rem;       /* 15px */
  --font-size-item: 1.1rem;        /* 18px */
  --font-size-h2: 1.8rem;          /* 28px */
  --font-size-h1: clamp(2.8rem, 5.5vw, 6rem); /* Display: MAXIME CAIGNAERT, CONTACT ME */
  --line-height-base: 1.55;
  --line-height-display: 1.12;
}

/* Base reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 400;
  line-height: var(--line-height-base);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Master Grid Container */
.page-container {
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  padding: 0 var(--page-margin-x);
}

/* Fixed / Persistent Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--page-margin-top) + 2.5rem);
  padding: var(--page-margin-top) var(--page-margin-x) 0 var(--page-margin-x);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

/* Header Columns */
.header-brand {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-nav);
  font-weight: 400;
  line-height: 1.4;
  padding-bottom: 0.1em;
  letter-spacing: -0.01em;
  transform-origin: left center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  white-space: nowrap;
}

.header-brand:hover {
  transform: scale(1.07);
  opacity: 1;
}

.header-active-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: center center;
  font-family: var(--font-family-base);
  font-size: var(--font-size-nav-active);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
  user-select: none;
  line-height: 1.4;
  padding-bottom: 0.1em;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.header-active-title:hover {
  transform: translateX(-50%) scale(1.07);
  opacity: 1;
}

.header-nav {
  display: flex;
  align-items: baseline;
  gap: 2.2vw;
}

.header-nav a {
  display: inline-block;
  transform-origin: center center;
  font-family: var(--font-family-base);
  font-size: var(--font-size-nav);
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.4;
  padding-bottom: 0.1em;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.header-nav a:hover {
  transform: scale(1.07);
  opacity: 1;
}

/* Placeholder Frames & Boxes */
.placeholder-box {
  background-color: #FFFFFF;
  border: var(--border-width) solid var(--color-border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.placeholder-box .placeholder-label {
  font-family: var(--font-family-base);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: #AAAAAA;
  text-transform: uppercase;
  user-select: none;
  font-weight: 500;
  text-align: center;
  padding: 0.5rem;
  box-sizing: border-box;
}
