@font-face {
  font-family: 'PP Editorial Old';
  src: url('assets/fonts/editorial/ppeditorialold-regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'PP Editorial Old';
  src: url('assets/fonts/editorial/ppeditorialold-ultrabold.otf') format('opentype');
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'PP Editorial Old';
  src: url('assets/fonts/editorial/ppeditorialold-ultralight.otf') format('opentype');
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('assets/fonts/SF-Pro-Display-Ultralight.otf') format('opentype');
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('assets/fonts/SF-Pro-Display-Thin.otf') format('opentype');
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('assets/fonts/SF-Pro-Display-Light.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('assets/fonts/SF-Pro-Display-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('assets/fonts/SF-Pro-Display-Semibold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('assets/fonts/SF-Pro-Display-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  font-family: 'SF Pro Display', 'Inter', -apple-system, sans-serif;
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Dark cards ---- */
.dark-card {
  position: relative;
  background: #0a0a0a;
  color: #ffffff;
  border-radius: 20px;
  padding: 64px 56px;
  margin: 0 auto;
  max-width: 800px;
}

.dark-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 23px;
  padding: 3px;
  background: linear-gradient(135deg, #22c55e, #6366f1, #ec4899, #22c55e);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---- Hero top bar ---- */
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  -webkit-user-drag: none;
  user-select: none;
}

.lang-globe {
  width: 16px;
  height: 16px;
  color: #aaa;
  transition: color 0.2s ease;
}

.lang-switch:hover .lang-globe {
  color: #1d1d1f;
}

.lang-current {
  font-size: 0.8rem;
  font-weight: 500;
  color: #aaa;
  transition: color 0.2s ease;
}

.lang-switch:hover .lang-current {
  color: #1d1d1f;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 120px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-switch:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 300;
  color: #666;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
  -webkit-user-drag: none;
}

.lang-option:hover {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.03);
}

.lang-option.lang-active {
  color: #1d1d1f;
  font-weight: 500;
  font-weight: 600;
}

/* ---- Eyebrow ---- */
.eyebrow-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 300;
  color: #aaa;
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-bottom: 0;
  transition: color 0.2s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.eyebrow-link:hover {
  color: #888;
}

/* ---- Hero ---- */
.hero .container {
  max-width: 960px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero .label {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Inter Tight', 'SF Pro Display', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 0em;
  line-height: 1.2;
  color: #1d1d1f;
}

.rotating-text {
  display: inline-block;
  position: relative;
  height: 1.15em;
  overflow: hidden;
  vertical-align: bottom;
}

.rotate-word {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(135deg, #22c55e, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.rotate-word.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.rotate-word.exit {
  opacity: 0;
  transform: translateY(-40px);
}

.hero .tagline {
  font-size: 1.3rem;
  font-weight: 300;
  margin-top: 20px;
  max-width: 640px;
  color: #1d1d1f;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'SF Pro Display', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  -webkit-user-drag: none;
  user-select: none;
}

.btn:active {
  transform: scale(0.96);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: rotate(135deg);
}

.btn-secondary:hover .btn-arrow {
  transform: rotate(180deg);
}

.btn-primary {
  background: #1d1d1f;
  color: #ffffff;
}

.btn-primary:hover {
  background: #333;
}

.btn-secondary {
  background: transparent;
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
  border-color: rgba(0, 0, 0, 0.4);
}

.cta-link {
  display: inline-block;
  margin-top: 48px;
  font-size: 1.05rem;
  font-weight: 300;
  color: #1d1d1f;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.cta-link:hover {
  color: #888;
}

/* ---- Sections ---- */
.section {
  padding: 40px 24px;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.section-last {
  padding-bottom: 40px;
}

h2 {
  font-family: 'Inter Tight', 'SF Pro Display', sans-serif;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* ---- Projects ---- */
.projects {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project {
  display: block;
  -webkit-user-drag: none;
  text-decoration: none;
  color: #ffffff;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transition: opacity 0.2s ease;
}

.project:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.project:hover {
  opacity: 0.7;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-name {
  font-family: 'Inter Tight', 'SF Pro Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-arrow svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project:hover .project-arrow svg {
  transform: rotate(45deg);
}

.project-desc {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 600px;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.project-tags span {
  font-size: 0.8rem;
  font-weight: 300;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* ---- About ---- */
.about-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 32px;
}

.about-content p {
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 560px;
  line-height: 1.8;
}

.about-content p + p {
  margin-top: 16px;
}

.about-closing {
  margin-top: 32px !important;
  font-weight: 200;
  font-size: 1.3rem;
}

/* ---- Results ---- */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.result-card {
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.result-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.result-metric {
  font-family: 'Inter Tight', 'SF Pro Display', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.result-icon {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

.result-icon--up {
  color: #22c55e;
}

.result-icon--down {
  color: #22c55e;
}

.result-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 300;
  margin-top: 8px;
  margin-bottom: 20px;
}

.result-desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: #ffffff;
}

/* ---- FAQ ---- */
.faq {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  color: #ffffff;
  font-family: 'Inter Tight', 'SF Pro Display', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  transition: color 0.2s ease;
  text-align: left;
}

.faq-trigger:hover {
  color: #ccc;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.faq-item p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  max-width: 600px;
}

.faq-item a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.faq-item a:hover {
  color: #888;
}

/* ---- Contact ---- */
.contact-text {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 32px;
}

.btn-on-dark {
  background: #ffffff;
  color: #1d1d1f;
}

.btn-on-dark:hover {
  background: #e5e5e5;
}

.contact-divider {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  margin: 24px 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 300;
  transition: color 0.2s ease;
  -webkit-user-drag: none;
}

.contact-link:hover {
  color: #888;
}

.contact-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---- Footer ---- */
.footer {
  padding: 48px 0;
}

.footer a {
  color: #1d1d1f;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #888;
}

/* ---- Animation ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    text-align: center;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero .tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-link {
    margin-top: 32px;
  }

  h2 {
    text-align: center;
  }

  .dark-card {
    border-radius: 16px;
    padding: 48px 32px;
    margin: 0 16px;
  }

  .section {
    padding: 20px 0;
  }

  .about-avatar {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .about-content {
    text-align: center;
  }

  .about-content p {
    margin-left: auto;
    margin-right: auto;
  }

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

  .contact-links {
    align-items: center;
  }

  .footer {
    text-align: center;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

  .cta-link {
    margin-top: 40px;
  }

  .dark-card {
    padding: 40px 24px;
    border-radius: 12px;
  }
}
