:root {
  --bg: #ffffff;
  --fg: #000000;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --curtain-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --logo-size: 160px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}

/* ===================== LOADER ===================== */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  transform: translateY(0);
  will-change: transform;
  transition: transform 400ms var(--curtain-ease);
}

.loader.is-leaving {
  transform: translateY(-100%);
}

.loader__spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, #f2f2f2 0%, #ffffff 62%);
}

.loader__mark {
  position: relative;
  z-index: 2;
  width: var(--logo-size);
  aspect-ratio: 126.58 / 143.65;
  opacity: 0;
  transform: scale(0.92);
  animation: markFadeIn 400ms var(--ease) forwards;
}

.loader__mark.pulse {
  animation: markPulse 500ms var(--ease);
}

@keyframes markFadeIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes markPulse {
  0%   { transform: scale(1); filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
  50%  { transform: scale(1.06); filter: drop-shadow(0 0 22px rgba(0,0,0,0.22)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
}

#logo-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.logo-base {
  fill: #161616;
}

.logo-white {
  fill: var(--fg);
}

.logo-outline {
  stroke: #000000;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

@media (max-width: 640px) {
  :root { --logo-size: 120px; }
  .logo-outline { stroke-width: 1.3; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .loader__mark {
    animation: simpleFade 500ms ease forwards;
    transform: none;
  }
  .logo-white { clip-path: none !important; }
  .logo-outline { display: none; }

  @keyframes simpleFade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .loader {
    transition: transform 400ms ease;
  }
}

/* ===================== HOMEPAGE ===================== */

.homepage {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.hero__title {
  font-weight: 700;
  font-size: clamp(32px, 6vw, 64px);
  letter-spacing: 0.01em;
  margin: 0 0 16px;
}

.hero__subtitle {
  font-weight: 300;
  opacity: 0.7;
  font-size: 16px;
  margin: 0 0 40px;
}

.hero__cta {
  color: var(--bg);
  background: var(--fg);
  text-decoration: none;
  padding: 14px 32px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 300ms var(--ease), color 300ms var(--ease);
}

.hero__cta:hover {
  opacity: 0.85;
}

