/* ============================================
   MAXIM KUIJPERS — Portfolio
   Design Tokens & Base Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Colors */
  --orange:        #FF6B2B;
  --orange-dim:    rgba(255, 107, 43, 0.15);
  --orange-glow:   rgba(255, 107, 43, 0.06);
  --white:         #FFFFFF;
  --off-white:     #E8E8E4;
  --gray:          #888880;
  --gray-dim:      #444440;
  --dark:          #080808;
  --dark-mid:      #111110;
  --dark-card:     #141413;
  --dark-border:   rgba(255,255,255,0.07);

  /* Typography */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --s1:  0.5rem;
  --s2:  1rem;
  --s3:  1.5rem;
  --s4:  2rem;
  --s5:  3rem;
  --s6:  5rem;
  --s7:  8rem;
  --s8:  12rem;

  /* Layout */
  --max-w:     1320px;
  --gutter:    clamp(1.25rem, 4vw, 3rem);

  /* Transitions */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --dur:       0.3s;
  --dur-slow:  0.6s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark);
  color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  display: block;
}

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

ul, ol {
  list-style: none;
}

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

/* ============================================
   TYPOGRAPHY SCALE
   ============================================ */

.t-display {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 9rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.t-display em {
  font-style: italic;
  color: var(--orange);
}

.t-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.t-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

.t-body {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.7;
  color: var(--gray);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--s7) 0;
}

.section--sm {
  padding: var(--s6) 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: var(--dark);
}
.btn--primary:hover {
  background: #FF8145;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(255,107,43,0.4);
}

.btn--outline {
  background: transparent;
  color: var(--off-white);
  border: 1px solid var(--dark-border);
}
.btn--outline:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.btn--ghost {
  background: transparent;
  color: var(--gray);
  padding: 0.75rem 0;
}
.btn--ghost:hover {
  color: var(--off-white);
}

/* ============================================
   LINK ARROW
   ============================================ */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  transition: gap var(--dur) var(--ease);
}
.link-arrow:hover {
  gap: 0.9rem;
}

/* ============================================
   GLOW EFFECTS
   ============================================ */

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb--hero {
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255,107,43,0.18) 0%, transparent 70%);
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================
   DIVIDER
   ============================================ */

.divider {
  height: 1px;
  background: var(--dark-border);
  border: none;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   SECTION LABEL
   ============================================ */

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--s4);
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--orange);
}

/* ============================================
   NOISE OVERLAY (subtle texture)
   ============================================ */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ============================================
   UTILITY
   ============================================ */

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

.text-orange { color: var(--orange); }
.text-gray   { color: var(--gray); }
.text-white  { color: var(--white); }
