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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: #dce8e2;
  background: #0a1612;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #0a1612, #132a1c, #0a1612);
  text-align: center;
}

.hero-content {
  max-width: 860px;
}

.hero .tag {
  font-size: 0.85rem;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  color: #8fa8a0;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
}

.hero h2 {
  font-size: clamp(1.1rem, 3vw, 1.65rem);
  font-weight: 400;
  color: #8fa8a0;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.hero .bio {
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 640px;
  margin: 1.5rem auto 2.5rem;
  color: #c2d6cc;
}

.cta-btn {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.cta-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ── Explore Section ──────────────────────────────────── */
.explore {
  padding: 6rem 2rem 8rem;
  background: #0a1612;
}

.explore-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.explore-heading h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
}

.explore-heading p {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  color: #5f7a6e;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Card ─────────────────────────────────────────────── */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(160deg, #132a1c 0%, #0a1612 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #142b1e;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.04);
}

.card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #132a1c, #0a1612);
}

.card-image--placeholder::after {
  content: "◈";
  font-size: 3rem;
  color: rgba(16, 185, 129, 0.15);
}

.card-body {
  padding: 1.75rem 1.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.95rem;
  color: #8fa8a0;
  line-height: 1.6;
  flex: 1;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #10b981;
  letter-spacing: 0.04em;
  transition: gap 0.3s;
}

.card:hover .card-arrow {
  gap: 0.7rem;
}

/* ── About ────────────────────────────────────────────── */
.about {
  max-width: 700px;
  margin: 0 auto;
  padding: 7rem 2rem 8rem;
  text-align: center;
}

.about h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
}

.about p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #8fa8a0;
  margin-bottom: 2rem;
}

.about .value-prop {
  font-size: 1.05rem;
  color: #c2d6cc;
  font-weight: 600;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.about-tags {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #c2d6cc;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 3rem 2rem;
  background: #07110d;
  color: #3d5a4a;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Artifact Sub-page (placeholder) ──────────────────── */
.artifact-placeholder {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #0a1612, #132a1c, #0a1612);
}

.artifact-placeholder h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.artifact-placeholder p {
  font-size: 1.15rem;
  color: #5f7a6e;
  margin-bottom: 2rem;
}

.artifact-placeholder .back-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s, border-color 0.3s;
}

.artifact-placeholder .back-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

/* ── Story Page ────────────────────────────────────────── */
.story-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 2rem;
  z-index: 100;
  background: rgba(10, 22, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.story-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #8fa8a0;
  transition: color 0.3s;
}

.story-nav a:hover {
  color: #fff;
}

/* Story Section — shared base */
.story-section {
  position: relative;
  padding: 8rem 2rem;
  background: #0a1612;
}

/* Section 1 — Opening */
.story-opening {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(180deg, #0a1612 0%, #132a1c 50%, #0a1612 100%);
}

.story-opening__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.story-opening__text {
  max-width: 540px;
}

.story-opening__text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
}

.story-opening__text p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #8fa8a0;
  max-width: 480px;
}

.story-opening__visual {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #132a1c, #0a1612);
}

.story-opening__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(10, 22, 18, 0.15) 0%, rgba(10, 22, 18, 0.6) 100%),
    linear-gradient(135deg, rgba(10, 22, 18, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.story-opening__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.story-opening__visual--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-opening__visual--placeholder::after {
  content: "⬡";
  font-size: 4rem;
  color: rgba(16, 185, 129, 0.12);
}

/* ── Story Chapter (reusable two-column section) ──────── */
.story-chapter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 4rem;
  background: #0a1612;
}

.story-chapter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.story-chapter--reverse .story-chapter__text {
  order: 2;
}

.story-chapter--reverse .story-chapter__visual {
  order: 1;
}

.story-chapter__text {
  max-width: 540px;
}

.story-chapter__text h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
}

.story-chapter__text p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #8fa8a0;
  max-width: 480px;
}

.story-chapter__visual {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #132a1c, #0a1612);
}

.story-chapter__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(10, 22, 18, 0.15) 0%, rgba(10, 22, 18, 0.6) 100%),
    linear-gradient(135deg, rgba(10, 22, 18, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.story-chapter__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.story-chapter__visual--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-chapter__visual--placeholder::after {
  content: "⬡";
  font-size: 4rem;
  color: rgba(16, 185, 129, 0.08);
}

/* ── Story Origin (Section 4 — cinematic reveal) ──────── */
.story-origin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, #0a1612 0%, #07110d 50%, #0a1612 100%);
  overflow: hidden;
  position: relative;
}

.story-origin__year {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: clamp(12rem, 28vw, 22rem);
  font-weight: 900;
  color: rgba(16, 185, 129, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.story-origin__content {
  position: relative;
  max-width: 700px;
}

.story-origin__content h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.75rem;
}

.story-origin__content p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #8fa8a0;
}

.story-origin__content em {
  color: #c2d6cc;
  font-style: italic;
}

/* ── Story Content (scannable structure) ──────────────── */
.story-lead {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.story-points {
  list-style: none;
  padding: 0;
  margin-bottom: 1.75rem;
}

.story-points li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #8fa8a0;
  margin-bottom: 0.75rem;
}

.story-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.story-takeaway {
  font-size: 1rem;
  font-weight: 600;
  color: #c2d6cc;
  border-left: 3px solid #10b981;
  padding-left: 1rem;
  line-height: 1.6;
}

/* Origin section variants (centered layout) */
.story-origin .story-points {
  display: inline-block;
  text-align: left;
}

.story-origin .story-takeaway {
  display: inline-block;
  text-align: left;
}

/* ── Story Hook (transition + scroll cue) ─────────────── */
.story-hook {
  text-align: center;
  margin-top: 5rem;
  max-width: 600px;
}

.story-hook__text {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  font-style: italic;
  color: #c2d6cc;
  line-height: 1.5;
}

.story-hook__cue {
  display: block;
  margin-top: 2rem;
  font-size: 1.5rem;
  color: #10b981;
  animation: drift 2s ease-in-out infinite;
  cursor: default;
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .hero {
    padding: 4rem 1.5rem;
  }

  .explore {
    padding: 4rem 1.25rem 5rem;
  }

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

  .card-body {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .story-opening {
    padding: 7rem 1.5rem 4rem;
  }

  .story-opening__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .story-opening__visual {
    order: -1;
  }

  .story-section {
    padding: 5rem 1.5rem;
  }

  .story-chapter {
    padding: 4rem 1.5rem;
  }

  .story-chapter__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .story-chapter--reverse .story-chapter__text,
  .story-chapter--reverse .story-chapter__visual {
    order: unset;
  }

  .story-chapter__visual {
    order: -1;
  }

  .story-origin {
    padding: 6rem 1.5rem 4rem;
  }
}
