:root {
  /* Colors — light theme */
  --primary: #000000;
  --primary-pressed: #1a1a1a;
  --on-primary: #ffffff;
  --ink: #0d0d0d;
  --body-color: #3a3a3c;
  --mute: #6a6b6c;
  --ash: #9c9c9d;
  --canvas: #ffffff;
  --surface: #f5f5f6;
  --surface-elevated: #eeeeef;
  --surface-card: #e8e8e9;
  --hairline: #dcdcdd;
  --hairline-strong: rgba(0,0,0,0.16);
  --hero-stripe-start: #1E4CFF;
  --hero-stripe-end: #00C2FF;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 16px;
  --r-full: 9999px;

  /* Spacing */
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 24px;
  --sp-xxl: 32px;
  --sp-section: 96px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: var(--canvas);
  color: var(--body-color);
  font-family: "Poppins", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Typography */
.display-xl {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  font-feature-settings: "calt", "kern";
}
.display-lg {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: 0.2px;
  color: var(--ink);
}
.heading-sm {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.2px;
  color: var(--ink);
}
.body-lg { font-size: 18px; font-weight: 400; line-height: 1.6; }
.body-md { font-size: 16px; font-weight: 400; line-height: 1.6; }
.body-sm { font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--mute); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: background-color 0.15s ease, transform 0.12s ease;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
}
.btn-primary:active { background-color: var(--primary-pressed); }
.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}

/* Click-down animation for nav / CTA buttons */
.nav-btn {
  transition: transform 0.12s ease, background-color 0.15s ease, opacity 0.12s ease;
}
.nav-btn:active {
  transform: translateY(4px);
  opacity: 0.85;
}

.primary-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 56px;
  background-color: transparent;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--ink);
  justify-self: start;
}
.nav-links {
  display: flex;
  gap: 24px;
  justify-self: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body-color);
  display: inline-block;
}
.nav-links a:hover { color: var(--ink); }
.nav-inner > .btn-primary.nav-btn {
  justify-self: end;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--sp-section) + 56px) 48px var(--sp-section);
  text-align: center;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("images/sky-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--canvas));
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroPopUp 0.9s ease-out both;
}

@keyframes heroPopUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  margin-top: var(--sp-lg);
  color: var(--body-color);
  max-width: 560px;
  text-align: center;
}
.hero-actions {
  margin-top: var(--sp-xl);
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
}

/* Sections */
.section { padding: var(--sp-section) 48px; }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-caption { margin-top: var(--sp-sm); color: var(--mute); }

/* Thumbnails grid */
.thumb-grid {
  margin-top: var(--sp-xxl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}
.thumb-card {
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
}
.thumb-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--surface-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-lg);
}
.thumb-card h3 { margin-bottom: var(--sp-sm); }

/* Contact section — everything centered */
.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact-grid {
  margin-top: var(--sp-xxl);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
  max-width: 640px;
  justify-content: center;
}
.contact-card {
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-sm);
  transition: border-color 0.15s ease;
}
.contact-card:hover { border-color: var(--hairline-strong); }
.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-card);
  border-radius: var(--r-md);
  color: var(--ink);
}
.contact-handle { color: var(--mute); }

/* Footer */
.footer-section {
  position: relative;
  background-color: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 48px;
  text-align: center;
  color: var(--mute);
}
.footer-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hero-stripe-start), var(--hero-stripe-end));
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .thumb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .display-xl { font-size: 44px; }
  .display-lg { font-size: 36px; }
  .section, .hero { padding: 64px 24px; }
}
@media (max-width: 480px) {
  .thumb-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .display-xl { font-size: 36px; }
  .hero-actions { flex-direction: column; }
}