
:root {
  
  --color-bg: #ffffffff;
  --color-bg-alt: #f7f7f8;
  --color-bg-dark: #0c0c0d;
  --color-bg-dark-2: #161618;
  --color-text: #111113;
  --color-text-muted: #5c5c66;
  --color-text-light: #8c8c96;
  --color-text-inverse: #ffffff;
  --color-accent: #e11d2a;
  --color-accent-dark: #b91c1c;
  --color-accent-light: #ff4d55;
  --color-border: #e4e4e8;
  --color-border-dark: #242428;

  /* Typography */
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Type Scale */
  --text-xs: 0.8125rem; /* 13px */
  --text-sm: 0.9375rem; /* 15px */
  --text-base: 1.0625rem; /* 17px */
  --text-md: 1.3125rem; /* 21px */
  --text-lg: 1.75rem; /* 28px */
  --text-xl: 2.375rem; /* 38px */
  --text-2xl: 3.25rem; /* 52px */
  --text-3xl: 4.5rem; /* 72px */

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(20px, 5vw, 48px);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm:
    0 1px 3px rgba(26, 26, 24, 0.06), 0 1px 2px rgba(26, 26, 24, 0.04);
  --shadow-md:
    0 4px 16px rgba(26, 26, 24, 0.08), 0 2px 6px rgba(26, 26, 24, 0.04);
  --shadow-lg: 0 16px 48px rgba(26, 26, 24, 0.12);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  max-width: 68ch;
}

/* ─── Typography ─────────────────────────────────────────── */
.text-xs {
  font-size: var(--text-xs);
}
.text-sm {
  font-size: var(--text-sm);
}
.text-base {
  font-size: var(--text-base);
}
.text-md {
  font-size: var(--text-md);
}
.text-lg {
  font-size: var(--text-lg);
}
.text-xl {
  font-size: var(--text-xl);
}
.text-2xl {
  font-size: var(--text-2xl);
}
.text-3xl {
  font-size: var(--text-3xl);
}

.font-400 {
  font-weight: 400;
}
.font-500 {
  font-weight: 500;
}
.font-600 {
  font-weight: 600;
}
.font-700 {
  font-weight: 700;
}

.text-muted {
  color: var(--color-text-muted);
}
.text-light {
  color: var(--color-text-light);
}
.text-inverse {
  color: var(--color-text-inverse);
}
.text-accent {
  color: var(--color-accent);
}

.tracking-wide {
  letter-spacing: 0.06em;
}
.tracking-wider {
  letter-spacing: 0.12em;
}
.uppercase {
  text-transform: uppercase;
}

.label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.label--light {
  color: var(--color-accent-light);
}

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-9);
}

.section--sm {
  padding-block: var(--space-8);
}

.section--lg {
  padding-block: var(--space-10);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

/* ─── Grid ───────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .grid-5 {
    grid-template-columns: 1fr;
  }
}

/* ─── Flex Utilities ─────────────────────────────────────── */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.gap-1 {
  gap: var(--space-1);
}
.gap-2 {
  gap: var(--space-2);
}
.gap-3 {
  gap: var(--space-3);
}
.gap-4 {
  gap: var(--space-4);
}
.gap-5 {
  gap: var(--space-5);
}

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

/* ─── Focus ──────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── Selection ──────────────────────────────────────────── */
::selection {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
}

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
}

.divider--dark {
  background-color: var(--color-border-dark);
}

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb__sep {
  color: var(--color-border);
}

/* ─── Section Header ─────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-8);
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin-inline: auto;
}

.section-header h2 {
  font-size: clamp(var(--text-lg), 4vw, var(--text-xl));
  font-weight: 600;
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.section-header--dark h2 {
  color: var(--color-text-inverse);
}

.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.section-header--dark p {
  color: rgba(245, 245, 242, 0.65);
}

/* ─── Image Placeholder ──────────────────────────────────── */
.img-placeholder {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(26, 26, 24, 0.03) 8px,
    rgba(26, 26, 24, 0.03) 9px
  );
}

.img-placeholder--dark {
  background-color: var(--color-bg-dark-2);
  border-color: var(--color-border-dark);
  color: rgba(245, 245, 242, 0.25);
}

.img-placeholder--dark::before {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(255, 255, 255, 0.02) 8px,
    rgba(255, 255, 255, 0.02) 9px
  );
}

/* ─── Animations ─────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity var(--transition-slow),
      transform var(--transition-slow);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 {
    transition-delay: 100ms;
  }
  .reveal-delay-2 {
    transition-delay: 200ms;
  }
  .reveal-delay-3 {
    transition-delay: 300ms;
  }
  .reveal-delay-4 {
    transition-delay: 400ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── content-visibility for below-fold performance ─────── */
.cv-auto {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
