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

body {
  font-family: 'Fixedsys', monospace;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #fff5f5 50%, #fff0eb 100%);
}

/* Header */
header {
  padding: 2rem 0 0.5rem;
  text-align: center;
}

header h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: 'Honk', sans-serif;
}

header h2 a {
  text-decoration: none;
  font-size: 4rem;
  color: inherit;
}

header h2 a:hover {
  text-decoration: none;
}

/* Accent bar */
.accent-bar {
  height: 4px;
  width: 60px;
  margin: 0.5rem auto 1.5rem;
  background: linear-gradient(90deg, #fa44a2, #fa716b);
  border-radius: 2px;
}

/* Navigation */
nav {
  margin-bottom: 2rem;
}

nav ul {
  list-style-type: none;
  padding: 0;
  text-align: center;
  font-family: 'Fixedsys', monospace;
}

nav ul li {
  display: inline;
  margin-right: 8px;
  font-family: 'Fixedsys', monospace;
}

nav ul li a {
  text-decoration: none;
  color: #555;
  font-weight: normal;
  font-family: 'Fixedsys', monospace;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}

nav ul li a:hover {
  color: #fa44a2;
  background: rgba(250, 68, 162, 0.06);
}

/* Main content */
.nav-bar {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
  text-align: center;
}

.text-section {
  padding-top: 20px;
  width: 70%;
  margin: 0 auto;
  text-align: left;
  color: #333;
  font-family: 'Fixedsys', monospace;
  line-height: 1.8;
}

.text-section p {
  margin-bottom: 1rem;
}

.text-section a {
  text-decoration: none;
  color: #333;
  font-family: 'Fixedsys', monospace;
}

.text-section ul {
  list-style-type: none;
  padding-left: 0;
  font-family: 'Fixedsys', monospace;
}

.text-section ul li::before {
  content: none;
  padding-right: 5px;
  font-family: 'Fixedsys', monospace;
}

/* Hover effects */
.hover-text:hover {
  color: #fa44a2;
  font-weight: bold;
}

.hover-text2:hover {
  color: #fa716b;
  font-weight: bold;
}

/* Section titles */
.section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #bbb;
  margin-bottom: 1rem;
}

/* Flip Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.flip-card {
  perspective: 1000px;
  height: 160px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.flip-card-front {
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.flip-card-front .company {
  font-weight: bold;
  font-size: 20px;
  color: #000;
}

/* Pills for flip cards */
.card-pills {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 500;
}

.category-pill {
  background-color: #f0f0f0;
  color: #555;
}

.co-investor-pill {
  background-color: #fff3cd;
  color: #856404;
}

.flip-card-back {
  background: linear-gradient(135deg, #fa44a2 0%, #fa716b 100%);
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
}

.flip-card-back .tagline {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
  display: flex;
  align-items: center;
}

.flip-card-back .card-link {
  font-size: 12px;
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.flip-card-back .card-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Article List */
.article-list {
  list-style: none;
  margin-bottom: 2rem;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.article-list-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed #f0e0e8;
}

.article-list-item:last-child {
  border-bottom: none;
}

.article-list-link {
  flex: 1;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  transition: color 0.15s;
  font-family: 'Fixedsys', monospace;
}

.article-list-link:hover {
  color: #fa44a2;
}

.article-list-link:hover .article-list-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-list-emoji {
  flex-shrink: 0;
  font-size: 1rem;
}

.article-list-title {
  flex: 1;
  line-height: 1.5;
}

.article-list-date {
  font-family: 'Fixedsys', monospace;
  font-size: 0.7rem;
  color: #ccc;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .article-list {
    width: 90%;
  }
}

/* Social Cards */
.social-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.social-card:hover {
  transform: translateX(8px);
  border-color: #fa44a2;
  box-shadow: 0 4px 16px rgba(250, 68, 162, 0.15);
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.social-icon.linkedin { background: #0077b5; color: white; }
.social-icon.substack { background: #ff6719; color: white; }
.social-icon.github { background: #333; color: white; }
.social-icon.twitter { background: #000; color: white; }
.social-icon.email { background: linear-gradient(135deg, #fa44a2, #fa716b); color: white; }
.social-icon.village { background: #1a1a2e; color: white; font-size: 12px; font-weight: bold; }
.social-icon.lotte { background: #000; color: white; font-size: 14px; }

.social-content {
  flex: 1;
}

.social-name {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 2px;
}

.social-desc {
  font-size: 13px;
  color: #888;
}

.social-arrow {
  color: #ccc;
  transition: all 0.2s;
}

.social-card:hover .social-arrow {
  color: #fa44a2;
  transform: translateX(4px);
}

/* Email card special */
.email-card {
  cursor: pointer;
}

.email-card.revealed .social-desc {
  color: #fa44a2;
  font-weight: bold;
}

/* Warning banner */
.warning-banner {
  background: #fff9e6;
  border: 1px solid #ffe066;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 13px;
  color: #806600;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2rem;
}

.warning-banner span:first-child {
  font-size: 16px;
}

/* Divider */
.divider {
  height: 1px;
  background: #eee;
  margin: 1.5rem 0;
}

/* Mobile tap stack */
.mobile-stack-wrap {
  margin: 1.5rem 0 0;
}

.mobile-stack-label {
  font-family: 'Fixedsys', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  text-align: center;
  margin-bottom: 1rem;
}

.mobile-stack {
  position: relative;
  height: 230px;
  cursor: pointer;
}

.mobile-stack-card {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: white;
  padding: 0.75rem 0.75rem 2.75rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13), 0 2px 6px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mobile-stack-card:nth-child(1) { transform: rotate(-2deg)   translateY(0px);  z-index: 3; }
.mobile-stack-card:nth-child(2) { transform: rotate(2.5deg)  translateY(6px);  z-index: 2; }
.mobile-stack-card:nth-child(3) { transform: rotate(-1deg)   translateY(12px); z-index: 1; }
.mobile-stack-card:nth-child(4) { transform: rotate(1.5deg)  translateY(18px); z-index: 0; }

.mobile-stack-card .sc-photo {
  background: linear-gradient(135deg, #fa44a2, #fa716b);
  min-height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
}

.mobile-stack-card .sc-photo p {
  font-family: 'Fixedsys', monospace;
  font-size: 0.85rem;
  color: white;
  line-height: 1.65;
  text-align: center;
  margin: 0;
}

.mobile-stack-card .sc-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 0.5rem;
}

.sc-name {
  font-family: 'Fixedsys', monospace;
  font-size: 0.75rem;
  color: #fa44a2;
  letter-spacing: 0.04em;
}
.sc-co {
  font-family: 'Fixedsys', monospace;
  font-size: 0.6rem;
  color: #bbb;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-stack-hint {
  font-family: 'Fixedsys', monospace;
  font-size: 0.65rem;
  color: #ccc;
  text-align: center;
  margin-top: 0.75rem;
  letter-spacing: 0.06em;
}

@media (min-width: 1440px) {
  .mobile-stack-wrap { display: none; }
}

/* Side falling polaroids — desktop margins */
.side-polaroids { display: none; }

/* 1440px: medium cards tucked into tighter margins */
@media (min-width: 1440px) {
  .side-polaroids { display: block; }

  .sp-wrap {
    position: fixed;
    z-index: 5;
    pointer-events: none;
  }

  .sp-wrap .side-polaroid { pointer-events: auto; width: 260px; }
  .sp-wrap .side-polaroid-photo { height: 185px; }
  .sp-wrap .side-polaroid-quote { font-size: 0.82rem; }

  .sp-left-1  { left: 100px; top: 190px; }
  .sp-left-2  { left: 112px; top: 340px; }
  .sp-right-1 { right: 100px; top: 210px; }
  .sp-right-2 { right: 112px; top: 340px; }

  .sp-left-1  .side-polaroid { --r: -6deg;   transform: rotate(var(--r)); animation-delay: 0.3s; }
  .sp-left-2  .side-polaroid { --r: 4deg;    transform: rotate(var(--r)); animation-delay: 0.65s; }
  .sp-right-1 .side-polaroid { --r: 5deg;    transform: rotate(var(--r)); animation-delay: 0.5s; }
  .sp-right-2 .side-polaroid { --r: -3.5deg; transform: rotate(var(--r)); animation-delay: 0.85s; }

  .sp-wrap:has(:hover) { z-index: 100; }
}

/* 1600px+: full-size cards */
@media (min-width: 1600px) {
  .sp-wrap .side-polaroid { width: 290px; }

  .sp-left-1  { left: 130px; top: 190px; }
  .sp-left-2  { left: 142px; top: 360px; }
  .sp-right-1 { right: 130px; top: 210px; }
  .sp-right-2 { right: 142px; top: 360px; }
}

.side-polaroid {
  --r: 0deg;
  width: 290px;
  background: white;
  padding: 1rem 1rem 3.75rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.07);
  position: relative;
  opacity: 0;
  animation: side-fall 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.side-polaroid:hover {
  transform: rotate(var(--r)) scale(1.08);
  box-shadow: 0 24px 60px rgba(250, 68, 162, 0.35), 0 6px 16px rgba(0,0,0,0.12);
}

.side-polaroid-photo {
  background: linear-gradient(135deg, #fa44a2, #fa716b);
  height: 210px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
}

.side-polaroid-quote {
  font-family: 'Fixedsys', monospace;
  font-size: 0.95rem;
  color: white;
  line-height: 1.65;
  text-align: center;
}

.side-polaroid-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 0.75rem;
}
.sp-name {
  font-family: 'Fixedsys', monospace;
  font-size: 0.8rem;
  color: #fa44a2;
  letter-spacing: 0.04em;
}
.sp-co {
  font-family: 'Fixedsys', monospace;
  font-size: 0.62rem;
  color: #bbb;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes side-fall {
  0%   { opacity: 0; translate: 0 -120vh; }
  72%  { opacity: 1; translate: 0 20px; }
  84%  { translate: 0 -10px; }
  93%  { translate: 0 5px; }
  100% { opacity: 1; translate: 0 0; }
}

/* Polaroid Quotes Carousel */
.polaroid-section {
  margin-top: 2.5rem;
  width: 100%;
}

.polaroid-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #bbb;
  text-align: center;
  margin-bottom: 1.25rem;
}

.polaroid-track {
  display: flex;
  gap: 2rem;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2rem 4rem 2.5rem;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.polaroid-track::-webkit-scrollbar {
  display: none;
}

.polaroid-track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.polaroid {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: 260px;
  background: white;
  padding: 0.85rem 0.85rem 3.25rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.08);
  transform: rotate(-2deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.polaroid:nth-child(2) { transform: rotate(1.5deg); }
.polaroid:nth-child(3) { transform: rotate(-1deg); }
.polaroid:nth-child(4) { transform: rotate(2.5deg); }
.polaroid:nth-child(5) { transform: rotate(-1.5deg); }

.polaroid:hover {
  transform: rotate(0deg) scale(1.04) !important;
  box-shadow: 0 20px 60px rgba(250, 68, 162, 0.25), 0 4px 12px rgba(0,0,0,0.1);
  z-index: 10;
}

.polaroid-photo {
  background: linear-gradient(135deg, #fa44a2, #fa716b);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
}

.polaroid-photo::before {
  content: '\201C';
  font-family: 'Honk', cursive;
  font-size: 5rem;
  color: rgba(255,255,255,0.2);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
  pointer-events: none;
}

.polaroid-quote {
  font-family: 'Fixedsys', monospace;
  font-size: 0.85rem;
  color: white;
  line-height: 1.65;
  text-align: center;
  position: relative;
}

.polaroid-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Honk', cursive;
  font-size: 1.05rem;
  color: #fa44a2;
  text-align: center;
  padding: 0 0.75rem;
}

.polaroid-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.pdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.pdot.active { background: #fa44a2; }

.polaroid-arrows {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.parrow {
  background: none;
  border: 1.5px solid #fa44a2;
  color: #fa44a2;
  font-family: 'Fixedsys', monospace;
  font-size: 0.8rem;
  padding: 0.3rem 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.parrow:hover {
  background: #fa44a2;
  color: white;
}

/* Hit counter */
.hit-counter {
  font-family: 'Honk', sans-serif;
  text-align: center;
  padding: 10px;
  font-size: 2rem;
  margin-top: 20px;
}

.visitor-count {
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .text-section {
    width: 90%;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .flip-card {
    height: 140px;
  }

  .flip-card-front .company {
    font-size: 16px;
  }

  .flip-card-back .tagline {
    font-size: 12px;
  }

  header h2 a {
    font-size: 3rem;
  }

  .pill {
    font-size: 0.55rem;
    padding: 2px 6px;
  }
}
