*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #111111;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* top bar */

.top-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  font-size: 14px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.top-title {
  font-size: 14px;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.top-title.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.top-link {
  border: none;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: #333333;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.top-link:hover {
  color: #000000;
}

/* index popover */

.menu-popover {
  position: fixed;
  top: 56px;
  left: 24px;
  min-width: 140px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dedede;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  font-size: 12px;
  z-index: 25;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.menu-popover.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li + li {
  margin-top: 4px;
}

.menu-list a {
  text-decoration: none;
  color: #111111;
  text-transform: lowercase;
  letter-spacing: 0.08em;
}

.menu-list a:hover {
  text-decoration: underline;
}

/* info popover */

.info-popover {
  position: fixed;
  top: 56px;
  right: 24px;
  min-width: 200px;
  max-width: 260px;
  padding: 10px 12px 12px;
  border-radius: 12px;
  border: 1px solid #dedede;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  font-size: 12px;
  z-index: 25;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.info-popover.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

.info-label {
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.info-body p {
  margin: 0 0 6px;
  line-height: 1.45;
  font-size: 12px;
}

.tiny-link {
  border: none;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  font-size: 12px;
}

/* hero */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0 16px;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-word {
  font-weight: 400;
  font-size: clamp(48px, 9vw, 96px);
  margin: 0 0 8px;
}

.hero-tagline {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-floating {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.8;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}

.hero-floating-a {
  width: 260px;
  height: 260px;
  background: rgba(0, 0, 0, 0.07);
  top: 10%;
  left: 15%;
  animation: floatA 18s ease-in-out infinite;
}

.hero-floating-b {
  width: 220px;
  height: 220px;
  background: rgba(0, 0, 0, 0.04);
  bottom: -5%;
  right: 12%;
  animation: floatB 22s ease-in-out infinite;
}

.hero-floating-c {
  width: 180px;
  height: 180px;
  background: rgba(0, 0, 0, 0.06);
  top: 50%;
  right: 50%;
  animation: floatC 20s ease-in-out infinite;
}

/* sections */

.section {
  padding: 80px 8% 120px;
  position: relative;
}

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #999999;
  margin-bottom: 24px;
}

.section-body {
  max-width: 1024px;
  margin: 0 auto;
}

.section-title {
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 24px;
}

/* grid + cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  border-radius: 16px;
  border: 1px solid #dedede;
  padding: 20px 20px 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  border-color: #bbbbbb;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.card p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li + li {
  margin-top: 4px;
}

/* project previews */

.card-preview {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #eeeeee;
}

.preview-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 4px;
}

.preview-body {
  font-size: 12px;
  line-height: 1.4;
  color: #444444;
}

/* readings */

.readings-grid {
  gap: 24px;
}

.reading-card .week {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #999999;
  margin-bottom: 10px;
}

.reading-card p {
  margin-bottom: 14px;
  line-height: 1.48;
  font-size: 14px;
  color: #333333;
}

.reading-card ul {
  padding-left: 18px;
  margin: 10px 0 0;
}

.reading-card ul li {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #444444;
}

/* about */

.about-grid {
  max-width: 700px;
  margin: 0 auto;
}

/* shared utilities */

.fade-panel {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

/* animations */

@keyframes floatA {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(40px, 40px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes floatB {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-40px, -20px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes floatC {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-20px, 30px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* responsive */

@media (max-width: 640px) {
  .top-bar {
    padding: 0 16px;
  }

  .section {
    padding: 72px 16px 96px;
  }

  .menu-popover {
    left: 16px;
  }

  .info-popover {
    right: 16px;
  }
}
