/* ═══════════════════════════════════════════════════════════════════
   Creative System Technologies — Design System & Layout
   ═══════════════════════════════════════════════════════════════════ */

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

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --bg: #f6f6f6;
  --text: #222222;
  --text-sec: #555555;
  --border: rgba(0, 0, 0, 0.06);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  --header-h-m: 64px;
}

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

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Background canvas ──────────────────────────────────────────── */
#bg-canvas {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* never block interactions */
}

/* ── Site wrapper (above canvas) ────────────────────────────────── */
.site {
  position: relative;
  z-index: 1;
}

/* ── Fade-in animation ──────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.15s;
}

.fade-in-delay-2 {
  animation-delay: 0.30s;
}

.fade-in-delay-3 {
  animation-delay: 0.45s;
}

/* ── Header ─────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
  background: rgba(246, 246, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  height: 42px;
  width: 42px;
  object-fit: contain;
  display: block;
}

.logo-divider {
  display: block;
  width: 1px;
  height: 32px;
  background: rgba(0, 0, 0, 0.18);
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-wordmark-line {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sec);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}

.nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sec);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

/* ── Sections — shared ──────────────────────────────────────────── */
section {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  max-width: 700px;
  letter-spacing: -0.02em;
}

/* ── About ──────────────────────────────────────────────────────── */
.about {
  padding-top: 100px;
  padding-bottom: 100px;
}

.about h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

.about-body p {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 680px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* ── Pillars ────────────────────────────────────────────────────── */
.pillars {
  display: flex;
  gap: 24px;
  margin-top: 56px;
  list-style: none;
}

.pillar {
  flex: 1;
  text-align: center;
  padding: 28px 16px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 6px;
  background: rgba(246, 246, 246, 0.5);
}

.pillar-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 14px;
  stroke: var(--text-sec);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

/* ── Contact ────────────────────────────────────────────────────── */
.contact {
  padding-top: 80px;
  padding-bottom: 120px;
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.contact a {
  font-size: 16px;
  color: var(--text-sec);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact a:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--text-sec);
  opacity: 0.6;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .header {
    height: var(--header-h-m);
  }

  .logo-divider,
  .logo-wordmark {
    display: none;
  }

  .logo-icon {
    height: 36px;
    width: 36px;
  }

  .nav {
    gap: 24px;
  }

  .nav a {
    font-size: 13px;
  }

  .hero {
    min-height: calc(100vh - var(--header-h-m));
  }

  .hero h1 {
    max-width: 90%;
  }

  .about {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .pillars {
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
  }

  .contact {
    padding-top: 56px;
    padding-bottom: 80px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Reduced Motion
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}