@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --bg: #060e1c;
  --bg-2: #0d1a31;
  --panel: #0f1d35;
  --panel-2: #172844;
  --text: #eef3ff;
  --muted: #8aa0c4;
  --accent: #3dd6d5;
  --accent-2: #8b7cff;
  --border: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(61, 214, 213, 0.28);
  --glow: rgba(61, 214, 213, 0.15);
  --shadow-deep: 0 24px 64px rgba(0, 0, 0, 0.45);
  /* Notch color — must exactly match the #puzzle section's solid background */
  --notch-bg: #0e1c36;
  /* Shared tab/notch size — change one value to rescale all connections */
  --pz-r: 19px;   /* radius */
  --pz-d: 38px;   /* diameter = 2 × radius */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── Ambient gradient backdrop ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 5% 0%,   rgba(61, 214, 213, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 95% 25%,  rgba(139, 124, 255, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(255, 111, 156, 0.04) 0%, transparent 60%),
    linear-gradient(170deg, #060e1c 0%, #0d1a31 55%, #060e1c 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 14, 28, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 180px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
}

.main-nav a,
.main-nav summary {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  transition: color 0.18s, background 0.18s;
}

.main-nav summary {
  cursor: pointer;
  border: none;
  background: transparent;
  list-style: none;
}

.main-nav summary::-webkit-details-marker,
.main-nav summary::marker {
  display: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown[open] summary,
.main-nav a:hover,
.main-nav summary:hover {
  color: var(--text);
  background: rgba(61, 214, 213, 0.08);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem;
  background: rgba(8, 16, 34, 0.97);
  border: 1px solid var(--border);
  border-top: 1px solid var(--border-accent);
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(61, 214, 213, 0.05);
  z-index: 200;
}

.dropdown-menu a {
  padding: 0.52rem 0.85rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.dropdown-menu a:hover {
  background: rgba(61, 214, 213, 0.1);
  color: var(--text);
}

.dropdown-menu a.dropdown-overview {
  font-weight: 600;
  color: var(--accent);
}

.dropdown-menu a.dropdown-overview:hover {
  color: #fff;
  background: rgba(61, 214, 213, 0.16);
}

.dropdown-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0.35rem 0.5rem;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: 'Outfit', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.8rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.72;
}

/* ─── Buttons ─── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.55rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  letter-spacing: 0.01em;
}

.button.primary {
  background: linear-gradient(130deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #060e1c;
  box-shadow: 0 4px 20px rgba(61, 214, 213, 0.28), 0 1px 3px rgba(0,0,0,0.3);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(61, 214, 213, 0.42), 0 2px 6px rgba(0,0,0,0.3);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.button.secondary:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  background: rgba(61, 214, 213, 0.07);
}

/* ─── Hero ─── */
.hero {
  padding: 5rem 0 3.5rem;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-text .eyebrow {
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-card {
  padding: 1.8rem;
  background: rgba(15, 29, 53, 0.65);
  border: 1px solid var(--border);
  border-top: 1px solid var(--border-accent);
  border-radius: 20px;
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-card h2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.hero-card p:last-child {
  margin-bottom: 0;
}

/* ─── Sections ─── */
.section {
  padding: 2.8rem 2.5rem;
  margin: 0 auto 2.5rem;
  background: rgba(13, 26, 49, 0.6);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  /* overflow must remain visible so puzzle tabs/notches are not clipped */
  overflow: visible;
}

/* Top accent line on sections */
.section::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  pointer-events: none;
}

.section-heading {
  max-width: 660px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

/* ─── Brand Story ─── */
.brand-story {
  margin-top: 2.5rem;
}

.brand-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.brand-story-card {
  padding: 1.5rem;
  min-height: 150px;
  background: rgba(20, 38, 68, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.22s, transform 0.22s;
}

.brand-story-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.brand-story-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.55rem;
}

.brand-story-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

/* ─── About & Origin Section (Home page) ─── */
.about-origin {
  margin-top: 2.5rem;
}

.about-origin-main {
  background: rgba(15, 29, 53, 0.65);
  border: 1px solid var(--border);
  border-top: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 2rem 2.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.about-origin-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.origin-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.origin-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(61, 214, 213, 0.12);
  color: var(--accent);
  border: 1px solid rgba(61, 214, 213, 0.3);
}

.origin-badge.secondary {
  background: rgba(139, 124, 255, 0.12);
  color: #b3a7ff;
  border-color: rgba(139, 124, 255, 0.3);
}

.about-origin-main h3 {
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 0.85rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.about-origin-main p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.72;
  margin-bottom: 0.9rem;
}

.about-origin-main p:last-child {
  margin-bottom: 0;
}

.about-origin-main strong {
  color: var(--text);
  font-weight: 600;
}

.about-origin-main em {
  color: #dbe7ff;
  font-style: normal;
}

.origin-roadblocks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.origin-card {
  background: rgba(20, 38, 68, 0.55);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.origin-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.origin-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(61, 214, 213, 0.1);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(61, 214, 213, 0.2);
}

.origin-card.highlight-card {
  background: linear-gradient(160deg, rgba(20, 38, 68, 0.7) 0%, rgba(13, 26, 49, 0.85) 100%);
  border-color: rgba(61, 214, 213, 0.25);
  position: relative;
}

.origin-card.highlight-card .highlight-icon {
  background: rgba(139, 124, 255, 0.15);
  color: #b3a7ff;
  border-color: rgba(139, 124, 255, 0.35);
}

.origin-card h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  font-family: 'Outfit', sans-serif;
  line-height: 1.3;
}

.origin-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.origin-card strong {
  color: var(--text);
  font-weight: 600;
}

/*
  The #puzzle section gets a solid background so the notch circles
  (which use --notch-bg) blend in perfectly.
  The precision targeting image is layered as a subtle background.
*/
#puzzle {
  background: var(--notch-bg);
  border-color: rgba(255, 255, 255, 0.07);
  background-image: url('assets/precision_targeting.png');
  background-size: cover;
  background-position: center 30%;
  background-blend-mode: luminosity;
  position: relative;
}

/* Dark overlay so cards remain legible and notch colour stays consistent */
#puzzle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 54, 0.82);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

#puzzle > * {
  position: relative;
  z-index: 1;
}

/* ─── Puzzle Grid ─── */
/*
  Full 4-sided interlocking:
  - Horizontal: ::before = right tab (col 1 & 2), ::after = left notch (col 2 & 3)
  - Vertical:   .pz-tab-b = bottom tab,            .pz-notch-t = top notch

  column-gap: 0  → tab center aligns with adjacent card's left edge
  row-gap: var(--pz-d) → tab center aligns with card-below's top edge
  Both gaps = 0 spacing + the circles themselves create the visual spacing.
*/
.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0;
  row-gap: 0; /* cards touch — tab/notch circles bridge the boundary */
  padding: 0;
}

/* ─── Puzzle Cards ─── */
/*
  Horizontal interlocking strategy:
  - No tab on top; cards are flat-topped.
  - ::before = right-side tab (a circle protruding to the RIGHT).
    Applied to col-1 (3n+1) and col-2 (3n+2) cards.
  - ::after = left-side notch (a background-colored circle at the LEFT edge,
    covering the right half of the adjacent card's tab — creating a socket).
    Applied to col-2 (3n+2) and col-3 (3n+3) cards.
  - column-gap: 0 ensures the tab center of card-N aligns exactly with the
    left edge of card-N+1, so the notch perfectly masks the tab's inward half.
*/

.puzzle-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--text);
  padding: 0;
  /* Ensure tabs/notches can overflow the grid cell */
  overflow: visible;
}

/* The visible rectangular body */
.puzzle-card-body {
  position: relative;
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

/* Top accent shimmer inside card */
.puzzle-card-body::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 214, 213, 0.55), transparent);
}

/* ── Color variants (3-column: col 1, 2, 3 repeat) ── */
.puzzle-card:nth-child(3n+1) .puzzle-card-body {
  background: linear-gradient(150deg, #1c3f6e 0%, #0d2040 100%);
}
.puzzle-card:nth-child(3n+2) .puzzle-card-body {
  background: linear-gradient(150deg, #1a3d6a 0%, #0e2244 100%);
}
.puzzle-card:nth-child(3n+3) .puzzle-card-body {
  background: linear-gradient(150deg, #183868 0%, #0b1e3c 100%);
}

/* ── RIGHT-SIDE TAB — col 1 and col 2 (3n+1 and 3n+2) ── */
/*
  The tab is a circle centered at the card's right edge,
  vertically at 42% height (slightly above centre looks more natural).
  It protrudes 19px into the gap, and the same 19px sits inside the card.
  z-index 2 puts it below the notch circle of the adjacent card.
*/
.puzzle-card:nth-child(3n+1)::before,
.puzzle-card:nth-child(3n+2)::before {
  content: '';
  position: absolute;
  right: -19px;          /* half the circle's diameter */
  top: 42%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  z-index: 2;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.puzzle-card:nth-child(3n+1)::before {
  background: linear-gradient(135deg, #1c3f6e, #0d2040);
}
.puzzle-card:nth-child(3n+2)::before {
  background: linear-gradient(135deg, #1a3d6a, #0e2244);
}

/* ── LEFT-SIDE NOTCH — col 2 and col 3 (3n+2 and 3n+3) ── */
/*
  The notch circle is positioned at the card's left edge (same vertical
  position as the tab it receives). Its background matches the section
  background, visually punching a socket out of the left side of the card.
  z-index 4 puts it above the tab (z:2) so it masks the tab's inner half.
*/
.puzzle-card:nth-child(3n+2)::after,
.puzzle-card:nth-child(3n+3)::after {
  content: '';
  position: absolute;
  left: -19px;           /* half the circle's diameter */
  top: 42%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--notch-bg);
  z-index: 4;
}

/* ── Hover ── */
.puzzle-card:hover {
  z-index: 10;
}

.puzzle-card:hover .puzzle-card-body {
  border-color: rgba(61, 214, 213, 0.32);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38), 0 0 22px rgba(61, 214, 213, 0.09);
}

/* Highlight the tab on hover too */
.puzzle-card:nth-child(3n+1):hover::before,
.puzzle-card:nth-child(3n+2):hover::before {
  border-color: rgba(61, 214, 213, 0.32);
  box-shadow: 0 0 12px rgba(61, 214, 213, 0.18);
}

/* ── Card content layout ── */
.puzzle-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(61, 214, 213, 0.12);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 0.75rem;
}

.puzzle-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text);
  line-height: 1.3;
}

.puzzle-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
  margin: 0;
  flex: 1;
}

.puzzle-card-arrow {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
  font-size: 1rem;
  align-self: flex-start;
}

.puzzle-card:hover .puzzle-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Vertical connectors ─── */
/*
  .pz-tab-b  = bottom tab: colored circle protruding below the card
  .pz-notch-t = top notch: background-colored circle above the card,
                masking the lower half of the tab from the row above

  Both circles share the same horizontal centre (50%) and are sized
  using --pz-r / --pz-d so one variable rescales the whole system.
*/

/* Shared base for both vertical elements */
.pz-tab-b,
.pz-notch-t {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: var(--pz-d);
  height: var(--pz-d);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Bottom tab (protrudes below the card body) ── */
.pz-tab-b {
  bottom: calc(-1 * var(--pz-r));
  border: 1px solid rgba(255, 255, 255, 0.09);
  z-index: 2;
  transition: border-color 0.25s, box-shadow 0.25s;
}

/* Match tab colour to each card's gradient */
.puzzle-card:nth-child(3n+1) .pz-tab-b { background: linear-gradient(160deg, #1c3f6e, #0d2040); }
.puzzle-card:nth-child(3n+2) .pz-tab-b { background: linear-gradient(160deg, #1a3d6a, #0e2244); }
.puzzle-card:nth-child(3n+3) .pz-tab-b { background: linear-gradient(160deg, #183868, #0b1e3c); }

/* Hover: accent border on bottom tab */
.puzzle-card:hover .pz-tab-b {
  border-color: rgba(61, 214, 213, 0.32);
  box-shadow: 0 0 12px rgba(61, 214, 213, 0.18);
}

/* ── Top notch (masks the tab protruding from the card above) ── */
.pz-notch-t {
  top: calc(-1 * var(--pz-r));
  background: var(--notch-bg);
  z-index: 4; /* above bottom tabs (z: 2) so it punches out the socket */
}

/* ── Visibility rules — 3-column layout (default) ──
   10 cards, 3 cols → 4 rows. Row 4 has only card 10.
   • First row (cards 1-3): no card above  → hide top notch
   • Last 3 cards (8,9,10): cols 2 & 3 of row 4 are empty,
     and card 10 is the final card        → hide bottom tab
*/
.puzzle-card:nth-child(-n+3)       .pz-notch-t { display: none; }
.puzzle-card:nth-last-child(-n+3)  .pz-tab-b   { display: none; }

/* ─── Content & Puzzle pages ─── */
.content-page,
.puzzle-page {
  padding: 3.5rem 0 5rem;
}

.content-card {
  padding: 2.5rem;
  background: rgba(13, 26, 49, 0.7);
  border: 1px solid var(--border);
  border-top: 1px solid var(--border-accent);
  border-radius: 24px;
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--border-accent) 50%, transparent 95%);
}

.content-card h1 {
  margin-bottom: 0.5rem;
}

.content-card h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.content-card h3 {
  font-size: 1.12rem;
  color: #d1e2ff;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.content-card strong {
  color: var(--text);
  font-weight: 600;
}

.content-card .lead {
  margin-bottom: 1.75rem;
}

.content-card ul {
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.content-card li + li {
  margin-top: 0.6rem;
}

.content-card li::marker {
  color: var(--accent);
}

.content-card p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s, text-decoration 0.18s;
}

.content-card a:hover {
  text-decoration: underline;
  color: #6ef5f4;
}

/* ─── Showcase Cards (Team & Supporter) ─── */
.showcase-section {
  margin-top: 2.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-section:first-of-type {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: none;
}

.showcase-header {
  margin-bottom: 1.5rem;
}

.showcase-header h2 {
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.showcase-subtitle {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0;
}

.showcase-card {
  display: flex;
  gap: 2rem;
  background: rgba(15, 29, 53, 0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.showcase-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 24px rgba(61, 214, 213, 0.1);
  transform: translateY(-2px);
}

.showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}

.showcase-media {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.showcase-portrait {
  width: 170px;
  height: 215px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 16px;
  border: 2px solid rgba(61, 214, 213, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.showcase-card:hover .showcase-portrait {
  border-color: rgba(61, 214, 213, 0.5);
}

.supporter-logo-wrapper {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0.85rem;
}

.supporter-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.3));
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(61, 214, 213, 0.12);
  color: var(--accent);
  border: 1px solid rgba(61, 214, 213, 0.3);
}

.supporter-badge {
  background: rgba(142, 214, 104, 0.12);
  color: #9ee075;
  border-color: rgba(142, 214, 104, 0.35);
}

.showcase-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.showcase-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-title-row h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: rgba(61, 214, 213, 0.08);
  border: 1px solid rgba(61, 214, 213, 0.25);
  border-radius: 8px;
  color: var(--text) !important;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: rgba(61, 214, 213, 0.18);
  border-color: rgba(61, 214, 213, 0.5);
  transform: translateY(-1px);
}

.location-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.initiator-quote {
  background: linear-gradient(90deg, rgba(61, 214, 213, 0.08), rgba(139, 124, 255, 0.04));
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1.1rem;
  border-radius: 0 10px 10px 0;
  margin: 0 0 1rem 0;
  color: #dbe7fc !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .showcase-card {
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding: 1.4rem;
    gap: 1.3rem;
  }

  .showcase-media {
    width: 100%;
  }

  .showcase-portrait {
    width: 140px;
    height: 175px;
  }

  .supporter-logo-wrapper {
    width: 140px;
    height: 140px;
  }

  .showcase-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ─── Project Cards & Showcase ─── */
.project-showcase {
  margin-top: 1.5rem;
}

.project-card {
  background: rgba(15, 29, 53, 0.65);
  border: 1px solid var(--border);
  border-top: 1px solid var(--border-accent);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.project-card + .project-card {
  margin-top: 2.5rem;
}

.project-header {
  margin-bottom: 1.6rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-active {
  background: rgba(61, 214, 213, 0.12);
  color: var(--accent);
  border: 1px solid rgba(61, 214, 213, 0.35);
}

.deadline-badge {
  background: rgba(255, 179, 71, 0.15);
  color: #ffb84d;
  border: 1px solid rgba(255, 179, 71, 0.4);
  box-shadow: 0 0 16px rgba(255, 179, 71, 0.15);
}

.project-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.project-tagline {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.project-hero-media {
  margin: 1.4rem 0 1.8rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(61, 214, 213, 0.2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  max-height: 280px;
  background: #081224;
}

.project-banner-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-banner-img {
  transform: scale(1.02);
}

.project-deadline-box {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.1) 0%, rgba(255, 111, 156, 0.05) 100%);
  border: 1px solid rgba(255, 179, 71, 0.35);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(255, 179, 71, 0.08);
}

.deadline-icon {
  color: #ffb84d;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.deadline-content h4 {
  color: #ffd280;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.deadline-content p {
  color: #e6edfc !important;
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.project-content-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-section h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-section p {
  color: var(--muted);
  line-height: 1.75;
}

.project-pillars-list {
  list-style: none !important;
  padding-left: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.project-pillars-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  color: var(--muted) !important;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 0 !important;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.project-pillars-list li:hover {
  border-color: rgba(61, 214, 213, 0.3);
  background: rgba(61, 214, 213, 0.04);
}

.project-pillars-list strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.2rem;
}

.partner-profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.partner-item {
  background: rgba(13, 26, 49, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--accent);
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
}

.partner-badge {
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.partner-item p {
  font-size: 0.85rem !important;
  line-height: 1.55;
  color: var(--muted) !important;
  margin-bottom: 0 !important;
}

.project-cta-card {
  margin-top: 2.2rem;
  padding: 1.8rem;
  background: linear-gradient(135deg, rgba(61, 214, 213, 0.08) 0%, rgba(139, 124, 255, 0.08) 100%);
  border: 1px solid rgba(61, 214, 213, 0.3);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-text h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.cta-text p {
  color: var(--muted) !important;
  font-size: 0.93rem;
  margin-bottom: 0 !important;
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .partner-profiles-grid {
    grid-template-columns: 1fr;
  }

  .project-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-card {
    padding: 1.4rem;
  }
}




/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════

   At each breakpoint we must remap ALL four connection directions:
     Horizontal: right tab (::before) and left notch (::after)
     Vertical:   bottom tab (.pz-tab-b) and top notch (.pz-notch-t)

   10 cards layout:
     3-col: 4 rows  (1-3 | 4-6 | 7-9 | 10)      first-row = 3, last-incomplete = 3
     2-col: 5 rows  (1-2 | 3-4 | 5-6 | 7-8 | 9-10) first-row = 2, last-row = 2
     1-col: 10 rows — all connectors hidden
*/

/* ─── 2-column layout (tablets ≤ 900px) ─── */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .brand-story-grid {
    grid-template-columns: 1fr;
  }

  /* Grid: 2 columns, no column gap, row gap = tab diameter */
  .puzzle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 0;
  }

  /* ── Reset 3-col horizontal pseudo-element rules ── */
  /* (3n+1 right tab, 3n+2 left notch + right tab, 3n+3 left notch) */
  .puzzle-card::before,
  .puzzle-card::after {
    display: none;
  }

  /* ── Remap horizontal: odd = col 1 → right tab ── */
  .puzzle-card:nth-child(odd)::before {
    content: '';
    display: block;
    position: absolute;
    right: calc(-1 * var(--pz-r));
    top: 42%;
    transform: translateY(-50%);
    width: var(--pz-d);
    height: var(--pz-d);
    border-radius: 50%;
    background: linear-gradient(135deg, #1c3f6e, #0d2040);
    border: 1px solid rgba(255, 255, 255, 0.10);
    z-index: 2;
    transition: border-color 0.25s, box-shadow 0.25s;
  }

  /* ── Even = col 2 → left notch ── */
  .puzzle-card:nth-child(even)::after {
    content: '';
    display: block;
    position: absolute;
    left: calc(-1 * var(--pz-r));
    top: 42%;
    transform: translateY(-50%);
    width: var(--pz-d);
    height: var(--pz-d);
    border-radius: 50%;
    background: var(--notch-bg);
    z-index: 4;
  }

  /* Hover highlight: right tab */
  .puzzle-card:nth-child(odd):hover::before {
    border-color: rgba(61, 214, 213, 0.32);
    box-shadow: 0 0 12px rgba(61, 214, 213, 0.18);
  }

  /* ── Remap vertical: first 2 cards = row 1 → no top notch ── */
  /* Override 3-col rule (nth-child(-n+3)) */
  .puzzle-card:nth-child(-n+3) .pz-notch-t { display: block; } /* reset 3-col rule */
  .puzzle-card:nth-child(-n+2) .pz-notch-t { display: none;  } /* 2-col first row */

  /* ── Last 2 cards = row 5 → no bottom tab ── */
  /* Override 3-col rule (nth-last-child(-n+3)) */
  .puzzle-card:nth-last-child(-n+3) .pz-tab-b { display: block; } /* reset 3-col rule */
  .puzzle-card:nth-last-child(-n+2) .pz-tab-b { display: none;  } /* 2-col last row */

  /* Remap bottom tab colour to odd/even for 2-col */
  .puzzle-card:nth-child(odd) .pz-tab-b  { background: linear-gradient(160deg, #1c3f6e, #0d2040); }
  .puzzle-card:nth-child(even) .pz-tab-b { background: linear-gradient(160deg, #1a3d6a, #0e2244); }
}

/* ─── 1-column layout (mobile ≤ 640px) ─── */
@media (max-width: 640px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Grid: single column, no connectors */
  .puzzle-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1rem;
  }

  /* Hide ALL connectors (horizontal and vertical) */
  .puzzle-card::before,
  .puzzle-card::after {
    display: none !important;
  }

  .pz-tab-b,
  .pz-notch-t {
    display: none !important;
  }

  .section {
    padding: 2rem 1.25rem;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .origin-roadblocks-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-origin-main {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 960px) and (min-width: 641px) {
  .origin-roadblocks-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
