/* ===================================================
   International Love Story — Styles
   Design: warm, editorial, feminine
   =================================================== */

:root {
  --cream:       #fdf8f3;
  --cream-warm:  #f7ede3;
  --cream-deep:  #f0ddd0;
  --terra:       #c85a3a;
  --terra-dark:  #a0432a;
  --terra-light: #e8896e;
  --brown:       #2c1810;
  --brown-mid:   #5c3d2e;
  --brown-light: #8b6558;
  --olive:       #6b7c5e;
  --sage:        #c8d5be;
  --gold:        #c49a5a;
  --white:       #ffffff;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Lato', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  28px;
  --radius-xl:  48px;

  --shadow-sm:  0 1px 4px rgba(44,24,16,.07);
  --shadow-md:  0 4px 20px rgba(44,24,16,.10);
  --shadow-lg:  0 12px 40px rgba(44,24,16,.14);

  --container:  1140px;
  --gap:        2rem;
}

/* ——— Reset & Base ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--brown);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

/* ——— Typography ——— */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
  font-weight: 600;
  color: var(--brown);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1rem; }
h1 em, h2 em { font-style: italic; color: var(--terra); }
p { max-width: 68ch; }

/* ——— Layout ——— */
.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}
section { padding-block: 5rem; }
.section-warm { background: var(--cream-warm); }

/* ——— Section headers ——— */
.section-header { margin-bottom: 2.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin-inline: auto; }
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: .6rem;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--brown-mid);
  margin-top: .8rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .03em;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-lg);
  transition: all .2s ease;
  white-space: nowrap;
}
.btn svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg  { padding: .85rem 1.8rem; font-size: 1rem; }
.btn-sm  { padding: .45rem 1rem;   font-size: .82rem; }

.btn-primary {
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(200,90,58,.30);
}
.btn-primary:hover { background: var(--terra-dark); box-shadow: 0 4px 20px rgba(200,90,58,.40); transform: translateY(-1px); }

.btn-secondary {
  background: var(--cream-deep);
  color: var(--brown);
  border: 1.5px solid var(--cream-deep);
}
.btn-secondary:hover { background: var(--cream-warm); border-color: var(--terra-light); }

.btn-ghost {
  background: transparent;
  color: var(--brown-mid);
  border: 1.5px solid rgba(44,24,16,.20);
}
.btn-ghost:hover { border-color: var(--terra); color: var(--terra); }

/* ——— HEADER ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,248,243,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200,90,58,.12);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 1.4rem;
  color: var(--terra);
  line-height: 1;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brown);
}
.logo-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .88rem;
  color: var(--terra);
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav ul {
  display: flex;
  gap: 1.4rem;
}
.site-nav a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--brown-mid);
  transition: color .15s;
}
.site-nav a:hover { color: var(--terra); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--brown); border-radius: 2px; transition: .2s; }

/* ——— HERO ——— */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 7rem 5rem;
  background: linear-gradient(145deg, #fdf8f3 0%, #f7ede3 50%, #f0ddd0 100%);
}
.hero-bg-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .45;
}
.orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, #e8896e 0%, transparent 70%); top: -100px; right: -100px; }
.orb-2 { width: 300px; height: 300px; background: radial-gradient(circle, #c49a5a 0%, transparent 70%); bottom: -80px; left: 10%; }
.orb-3 { width: 200px; height: 200px; background: radial-gradient(circle, #c8d5be 0%, transparent 70%); top: 30%; left: -60px; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-eyebrow {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
  padding: .35rem .9rem;
  background: rgba(200,90,58,.1);
  border-radius: var(--radius-lg);
  display: inline-block;
}
.hero-headline {
  margin-bottom: 1.2rem;
  color: var(--brown);
}
.hero-subheadline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--brown-mid);
  margin-bottom: 2rem;
  max-width: 52ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 2.5rem;
}
.spotify-icon { width: 1.1em; height: 1.1em; fill: currentColor; stroke: none; }
.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--brown-light);
}
.hero-scroll-hint svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ——— TRUST STRIP ——— */
.trust-strip {
  background: var(--brown);
  padding: 1.4rem 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  text-align: center;
}
.trust-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--terra-light);
}
.trust-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(253,248,243,.65);
}
.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(253,248,243,.2);
}

/* ——— DISCOVER / GLOBE ——— */
.discover-section { padding-block: 5rem; }
.discover-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}
.globe-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #f0ddd0, #fdf0e8);
  box-shadow: var(--shadow-lg);
}
#map-container {
  position: relative;
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #f0ddd0, #fdf0e8);
  box-shadow: var(--shadow-lg);
}
#map-container svg {
  display: block;
  width: 100%;
  height: auto;
}
.globe-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  font-size: .9rem;
  color: var(--brown-mid);
  transition: opacity .3s;
}
.globe-loading.hidden { display: none; }
.globe-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(200,90,58,.2);
  border-top-color: var(--terra);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ——— Globe Sidebar ——— */
.globe-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-section {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-heading {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 1rem;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: .35rem .9rem;
  border-radius: var(--radius-lg);
  font-size: .8rem;
  font-weight: 600;
  background: var(--cream-warm);
  color: var(--brown-mid);
  border: 1.5px solid transparent;
  transition: all .15s;
}
.pill:hover { border-color: var(--terra-light); color: var(--terra); }
.pill-active {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}
.pill-active:hover { background: var(--terra-dark); border-color: var(--terra-dark); color: var(--white); }

.sidebar-hint {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1rem;
  background: var(--cream-warm);
  border-radius: var(--radius-md);
  font-size: .82rem;
  color: var(--brown-mid);
}
.sidebar-hint svg { width: 18px; height: 18px; fill: var(--terra-light); flex-shrink: 0; }

.episode-preview {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.episode-preview-placeholder {
  text-align: center;
  color: var(--brown-light);
  font-size: .88rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
}
.preview-globe-icon { font-size: 2rem; opacity: .4; }
.episode-preview-card { display: flex; flex-direction: column; gap: .6rem; }
.preview-ep-num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra);
}
.preview-ep-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.2;
}
.preview-ep-countries {
  font-size: .82rem;
  color: var(--brown-mid);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.preview-ep-countries::before { content: '📍'; }
.preview-ep-summary {
  font-size: .85rem;
  color: var(--brown-mid);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.preview-ep-cta {
  margin-top: .4rem;
}

/* ——— EPISODES SECTION ——— */
.episodes-section { background: var(--cream); }
.episodes-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.episodes-loading { color: var(--brown-mid); font-size: .9rem; }

.ep-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.ep-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--terra-light);
  transform: translateY(-2px);
}
.ep-card-num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra);
}
.ep-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.25;
}
.ep-card-countries {
  font-size: .82rem;
  color: var(--brown-mid);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.ep-card-flag {
  display: inline-block;
  background: var(--cream-warm);
  border-radius: var(--radius-sm);
  padding: .15rem .5rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--brown-mid);
}
.ep-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.ep-tag {
  font-size: .72rem;
  font-weight: 600;
  padding: .15rem .6rem;
  background: var(--cream-warm);
  border-radius: var(--radius-lg);
  color: var(--brown-light);
  text-transform: capitalize;
}
.ep-card-summary {
  font-size: .85rem;
  color: var(--brown-mid);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.ep-card-link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--terra);
  margin-top: auto;
}
.ep-card.hidden { display: none; }

/* ——— OFFERS ——— */
.offers-section { padding-block: 5rem; }
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.offer-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: all .2s;
}
.offer-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--terra-light);
  transform: translateY(-2px);
}
.offer-card--primary {
  background: linear-gradient(145deg, #c85a3a, #a0432a);
  color: var(--white);
}
.offer-card--primary h3,
.offer-card--primary p,
.offer-card--primary .offer-cta { color: var(--white); }
.offer-card--primary:hover { border-color: transparent; }
.offer-icon {
  width: 44px;
  height: 44px;
  background: var(--cream-warm);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.offer-card--primary .offer-icon { background: rgba(255,255,255,.2); }
.offer-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--terra);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.offer-card--primary .offer-icon svg { stroke: var(--white); }
.offer-card h3 { font-family: var(--font-serif); font-size: 1.2rem; }
.offer-card p { font-size: .88rem; color: var(--brown-mid); line-height: 1.55; }
.offer-cta {
  font-size: .85rem;
  font-weight: 700;
  color: var(--terra);
  margin-top: auto;
}

/* ——— ABOUT ——— */
.about-section { background: var(--white); }
.about-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: center;
}
.about-portrait-wrap {
  position: relative;
  width: 180px;
  margin: 0 auto;
}
.about-portrait-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cream-deep), var(--cream-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--cream-deep);
}
.portrait-initials {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--terra);
}
.about-portrait-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid rgba(200,90,58,.2);
  pointer-events: none;
}
.about-portrait-ring--2 {
  inset: -24px;
  border-color: rgba(200,90,58,.1);
}
.about-content { display: flex; flex-direction: column; gap: 1rem; }
.about-lead { font-size: 1.1rem; font-weight: 400; color: var(--brown-mid); }
.about-links { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .5rem; }

/* ——— FINAL CTA ——— */
.final-cta {
  padding-block: 6rem;
  text-align: center;
}
.final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.final-cta-ornament {
  font-size: 2rem;
  color: var(--terra-light);
}
.final-cta h2 { max-width: 18ch; }
.final-cta p {
  font-size: 1.05rem;
  color: var(--brown-mid);
  max-width: 52ch;
  margin-inline: auto;
}
.final-cta-buttons {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .6rem;
}

/* ——— FOOTER ——— */
.site-footer {
  background: var(--brown);
  color: rgba(253,248,243,.8);
  padding-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(253,248,243,.12);
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand .logo-title { color: rgba(253,248,243,.9); }
.footer-brand .logo-sub { color: var(--terra-light); }
.footer-tagline { font-size: .9rem; color: rgba(253,248,243,.6); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(253,248,243,.5);
  margin-bottom: 1rem;
}
.footer-col li + li { margin-top: .6rem; }
.footer-col a {
  font-size: .88rem;
  color: rgba(253,248,243,.75);
  transition: color .15s;
}
.footer-col a:hover { color: var(--terra-light); }
.footer-bottom {
  padding: 1.2rem 0;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(253,248,243,.4);
  text-align: center;
}

/* ——— MODAL ——— */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,24,16,.55);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--cream);
  border-radius: var(--radius-lg);
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.97);
  transition: transform .25s;
}
.modal-overlay.open .modal-box { transform: none; }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.modal-close:hover { background: var(--cream-deep); }
.modal-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--brown-mid);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.modal-ep-num {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: .5rem;
}
.modal-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: .8rem;
}
.modal-countries {
  font-size: .9rem;
  color: var(--brown-mid);
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}
.modal-divider {
  height: 1px;
  background: var(--cream-deep);
  margin: 1.2rem 0;
}
.modal-summary {
  font-size: .95rem;
  color: var(--brown-mid);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.5rem;
}
.modal-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ——— RESPONSIVE ——— */
@media (max-width: 900px) {
  .discover-layout { grid-template-columns: 1fr; }
  #globe-container { height: 380px; }
  .about-layout { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .about-portrait-wrap { margin: 0 auto; }
  .about-links { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  section { padding-block: 3.5rem; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .hero { padding-block: 4.5rem 3.5rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
  .trust-inner { gap: .8rem 1.2rem; }
  .trust-divider { display: none; }
  .site-nav ul { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 64px 0 0;
    background: var(--cream);
    padding: 2rem;
    gap: 1.2rem;
    z-index: 99;
  }
  .site-nav.open ul a { font-size: 1.2rem; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}


Verify the server is still running and do a quick sanity check:


Bash

curl -s -o /dev/null -w "%{http_code}" http://localhost:3006/ && echo " index ok"
curl -s http://localhost:3006/index.html | grep -c "d3.min.js" && echo "d3 reference found"
curl -s http://localhost:3006/app.js | grep -c "geoNaturalEarth1" && echo "D3 projection in app.js"
curl -s http://localhost:3006/app.js | grep -c "THREE" && echo "Three.js refs remaining (should be 0)"

Verify D3 is wired in and Three.js is gone


Exit code 1
2000

2000


curl -s -o /dev/null -w "HTTP %{http_code}\n" http://localhost:3006/
curl -s http://localhost:3006/index.html | grep -o "d3.min.js"
curl -s http://localhost:3006/app.js | grep -o "geoNaturalEarth1"
curl -s http://localhost:3006/app.js | grep -c "THREE" || true

Sanity check D3 wiring


curl -s http://localhost:3006/ | head -5
echo "---"
grep "d3.min\|Three\|geoNatural" /home/ubuntu/ils-claude/index.html /home/ubuntu/ils-claude/app.js 2>/dev/null | head -10

Check actual file content vs what server is serving


==> /home/ubuntu/ils-claude/index.html <==
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />

==> /home/ubuntu/ils-claude/app.js <==
/* ===================================================
   International Love Story — App


grep "d3.min\|Three\|geoNatural" /home/ubuntu/ils-claude/index.html && grep "geoNaturalEarth\|THREE" /home/ubuntu/ils-claude/app.js | head -5

Confirm D3 is in HTML and geoNaturalEarth in app.js


  <script src="https://cdn.jsdelivr.net/npm/d3@7/dist/d3.min.js"></script>
  projection = d3.geoNaturalEarth1()


All good. The server on port 3006 is serving Python's cached files — let me bounce it:


pkill -f "http.server 3006" 2>/dev/null || true
sleep 0.5
cd /home/ubuntu/ils-claude && nohup python3 -m http.server 3006 > /tmp/ils-claude.log 2>&1 &
sleep 0.5
curl -s -o /dev/null -w "HTTP %{http_code}" http://localhost:3006/ && echo " — server up"

Restart server to clear any cached responses


Exit code 144


fuser -k 3006/tcp 2>/dev/null; sleep 1; cd /home/ubuntu/ils-claude && python3 -m http.server 3006 &>/tmp/ils-claude.log &
sleep 1
curl -s -o /dev/null -w "HTTP %{http_code}" http://localhost:3006/

Kill port 3006 and restart server


HTTP 200


Live. Here's what changed and why it fixes the problem:

**Root cause:** Three.js requires WebGL, which can fail silently on mobile browsers, privacy-focused browsers, or certain server environments — exactly what you hit.

**Fix:** Replaced Three.js entirely with **D3.js + TopoJSON SVG map**:
- **Real country outlines** from Natural Earth data (actual borders, not blobs)
- **SVG-based** — works on every browser, every device, no GPU needed
- **Mobile-first by design** — SVG scales with `viewBox`, touch events wired on arcs and pins
- **Red thread arcs** — quadratic bezier curves arcing above the map between each country pair
- **Pins with labels** — dots + country name labels at each endpoint
- **Selected state** — clicked arc glows, grows, gets an animated dash effect
- **Filter pills** — redraw only matching episodes

Go check `https://miopenclaw-vnic.tail9799d2.ts.net/claude/ils/` — it should now show the actual world map with the red threads.


<local-command-caveat>Caveat: The messages below were generated by the user while running local commands. DO NOT respond to these messages or otherwise consider them in your response unless the user explicitly asks you to.</local-command-caveat>


<command-name>/exit</command-name>
            <command-message>exit</command-message>
            <command-args></command-args>


<local-command-stdout>Catch you later!</local-command-stdout>


No response requested.


<command-name>/resume</command-name>
            <command-message>resume</command-message>
            <command-args></command-args>


<local-command-stdout>Resume cancelled</local-command-stdout>


<local-command-stdout>Bye!</local-command-stdout>