/* ==========================================================================
   PRESSWALL. — CSS DESIGN SYSTEM & TOKENS
   Editorial, Clean, Swiss Minimalist, 60-120 FPS Optimized
   ========================================================================== */

:root {
  /* Editorial Palette (Matching provided mockups) */
  --bg-primary: #F9F8F6;       /* Warm editorial cream / gallery white */
  --bg-secondary: #F2F1EC;     /* Subtle warm card surface */
  --bg-overlay: rgba(17, 17, 17, 0.45);
  --bg-modal: #F9F8F6;
  
  --text-main: #111111;        /* Deep charcoal / rich black */
  --text-muted: #737373;       /* Secondary neutral grey */
  --text-subtle: #A0A0A0;      /* Technical captions & indexes */
  --text-inverse: #FFFFFF;     /* Overlay white */
  
  --border-hairline: rgba(17, 17, 17, 0.12);
  --border-light: rgba(17, 17, 17, 0.06);
  --border-white: rgba(255, 255, 255, 0.25);
  
  /* Typography Stacks */
  --font-editorial: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Neue Haas Grotesk", Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Layout */
  --header-height: 92px;
  --footer-bar-height: 54px;
  --max-width: 1720px;
  --gutter: clamp(1.25rem, 3.5vw, 3.5rem);
  
  /* Transitions & Animation curves (GPU optimized) */
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 220ms;
  --duration-normal: 450ms;
  --duration-slow: 750ms;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-editorial);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.45;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  max-width: 100%;
}

::selection {
  background-color: var(--text-main);
  color: var(--bg-primary);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
  font-size: inherit;
}

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

ul, ol {
  list-style: none;
}

/* Global Typography Elements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Hairline Separators */
.separator-line {
  display: inline-block;
  width: 48px;
  height: 1px;
  background-color: currentColor;
  opacity: 0.4;
  vertical-align: middle;
  margin: 0 0.75rem;
}

/* Scroll reveal classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity var(--duration-normal) var(--ease-cinematic),
              transform var(--duration-normal) var(--ease-cinematic);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Multi-page shell */
main {
  min-height: 60vh;
}

body[data-page]:not([data-page="work"]) .studio-section,
body[data-page]:not([data-page="work"]) .reportage-section,
body[data-page]:not([data-page="work"]) .clients-section,
body[data-page]:not([data-page="work"]) .contact-section,
body[data-page="about"] .about-page-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
