/* === CSS Custom Properties === */
:root {
  --color-black: #1A1A1A;
  --color-white: #FFFFFF;
  --color-red: #C8102E;
  --color-gray-light: #F5F5F5;
  --color-gray-dark: #333333;

  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-max: 1600px;
  --container-padding: 24px;

  --radius: 8px;

  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

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

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* === Container === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* === Section === */
.section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn--dark {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--dark:hover {
  background: var(--color-gray-dark);
}

.btn--outline {
  background: transparent;
  color: var(--color-black);
  border: 1.5px solid var(--color-black);
}

.btn--outline:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--outline:hover .btn__arrow svg {
  stroke: var(--color-white);
}

.btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.btn__arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.btn:hover .btn__arrow svg {
  transform: translateX(4px);
}

/* === Section Label === */
.section-label {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-black);
  margin-bottom: 16px;
}

/* === Utility === */
.projects .section-label {
  color: var(--color-white, #fff);
}

.text-center { text-align: center; }
.text-right { text-align: right; }

/* === Screen reader only === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Site Intro / Preloader === */
body.intro-active {
  overflow: hidden;
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white, #fff);
  transition: opacity 0.6s ease;
}

.site-intro__logo {
  width: 140px;
  height: auto;
  opacity: 0;
  transform: scale(2.5);
  animation: introLogoIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes introLogoIn {
  0% {
    opacity: 0;
    transform: scale(2.5);
  }
  30% {
    opacity: 1;
    transform: scale(2.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.site-intro--done {
  opacity: 0;
  pointer-events: none;
}
