:root {
  --background: #07111f;
  --surface: #0f1c31;
  --surface-2: #13233d;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --text: #f4f8fd;
  --muted: #adc0d6;
  --accent: #55b0ff;
  --accent-light: #8ad0ff;
  --border: rgba(255, 255, 255, 0.10);
  --live-bg: rgba(72, 196, 125, 0.16);
  --live-text: #7ff0a7;
  --dev-bg: rgba(255, 196, 87, 0.16);
  --dev-text: #ffd47c;
  --max-width: 1180px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--background);
  color: var(--text);
  font-family: Pretendard, "Noto Sans KR", Arial, sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.hero {
  padding: 0 24px;
  background:
    radial-gradient(circle at 85% 18%, rgba(85, 176, 255, 0.24), transparent 30%),
    radial-gradient(circle at 15% 10%, rgba(138, 208, 255, 0.10), transparent 25%),
    linear-gradient(135deg, #07111f, #0c1f37 55%, #0a1830);
}

.navbar {
  width: min(100%, var(--max-width));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-size: 22px; font-weight: 900; letter-spacing: 2px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14px; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

.hero-inner {
  width: min(100%, var(--max-width));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 40px 0 90px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow, .section-label, .card-category {
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}
.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -3px;
}
.hero-description {
  max-width: 640px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
}
.hero-buttons { display: flex; gap: 14px; margin-top: 36px; }
.button {
  min-width: 150px;
  padding: 14px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.primary { background: var(--accent); color: #03101d; border-color: transparent; }
.secondary { background: rgba(255, 255, 255, 0.04); }
.secondary:hover { border-color: rgba(138, 208, 255, 0.45); }

.hero-visual { display: flex; justify-content: center; }
.mascot-card {
  width: min(460px, 100%);
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.mascot-image { width: 100%; max-height: 520px; object-fit: contain; }
.mascot-caption { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.mascot-caption strong { font-size: 18px; }
.mascot-caption span { color: var(--muted); font-size: 14px; }

.section { padding: 120px 24px; }
.section-heading, .about-box, .contact-section, .character-layout {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}
.section-heading h2, .character-copy h2, .about-box h2, .contact-section h2 {
  margin-top: 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
  letter-spacing: -2px;
}
.section-heading > p:last-child { margin-top: 16px; color: var(--muted); }

.card-grid {
  width: min(100%, var(--max-width));
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.app-card {
  min-height: 380px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.app-card:hover {
  transform: translateY(-8px);
  border-color: rgba(85, 176, 255, 0.55);
  background: var(--surface-2);
}
.app-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), #7f72ff);
  display: grid;
  place-items: center;
  color: white;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(85, 176, 255, 0.22);
}
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.status-badge.live { background: var(--live-bg); color: var(--live-text); }
.status-badge.dev { background: var(--dev-bg); color: var(--dev-text); }
.status-badge.ready { background: rgba(85, 176, 255, 0.16); color: var(--accent-light); }
.app-card h3 { margin-top: 12px; font-size: 30px; }
.app-card > p:last-child { margin-top: 16px; color: var(--muted); }

.alt-section {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.character-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.character-poster {
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}
.poster-image { width: 100%; height: 100%; object-fit: cover; }
.character-copy p { margin-top: 18px; color: var(--muted); font-size: 17px; }

.about-box { max-width: 900px; text-align: center; }
.about-box p { margin-top: 22px; color: var(--muted); font-size: 18px; }

.contact-section { text-align: center; }
.contact-email {
  display: inline-block;
  margin-top: 36px;
  color: var(--accent-light);
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 800;
}

footer {
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-inner, .character-layout, .card-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 24px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
}
@media (max-width: 850px) {
  .nav-links { display: none; }
  .hero-copy h1 { letter-spacing: -2px; }
}
@media (max-width: 520px) {
  .section { padding: 90px 20px; }
  .hero { padding: 0 20px; }
  .hero-inner { min-height: auto; padding-bottom: 70px; }
  .hero-buttons { flex-direction: column; }
  .button { width: 100%; }
  .app-card { min-height: 340px; }
  .status-row { flex-direction: column; align-items: flex-start; }
}


.app-actions {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 13px;
  background: #f4f8fd;
  color: #07111f;
  font-size: 14px;
  font-weight: 850;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-button:hover {
  transform: translateY(-2px);
}

.store-button.disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  cursor: default;
}

.store-button.disabled:hover {
  transform: none;
}

.detail-link {
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 750;
}

.project-detail-section {
  padding-top: 20px;
}

.project-detail-list {
  width: min(100%, var(--max-width));
  margin: 52px auto 0;
  display: grid;
  gap: 20px;
}

.project-detail-card {
  scroll-margin-top: 28px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.project-detail-number {
  color: var(--accent-light);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}

.project-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.project-detail-heading h3 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
}

.project-detail-card p {
  max-width: 850px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 17px;
}

.project-detail-card .project-note {
  color: var(--accent-light);
  font-size: 15px;
  font-weight: 700;
}

.project-detail-actions {
  margin-top: 22px;
}

@media (max-width: 620px) {
  .project-detail-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 26px;
  }

  .project-detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}


.image-icon {
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.image-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
}

.text-icon {
  background: linear-gradient(135deg, var(--accent), #7f72ff);
}


.showcase-section {
  background: rgba(255, 255, 255, 0.02);
}

.app-showcase {
  width: min(100%, var(--max-width));
  margin: 52px auto 0;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
}

.app-showcase + .app-showcase {
  margin-top: 32px;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.showcase-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.showcase-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.10);
}

.showcase-label {
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.showcase-header h3 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.showcase-description {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
}

.feature-chips {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-chips span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.06);
}

.shot-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.shot-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
}

.shot-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #0b1627;
}

.shot-card figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .shot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .showcase-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .app-showcase {
    padding: 22px;
  }

  .showcase-header-left {
    align-items: center;
  }

  .showcase-app-icon {
    width: 62px;
    height: 62px;
  }

  .shot-grid {
    grid-template-columns: 1fr;
  }
}


/* Horizontal screenshot carousel */
.app-showcase {
  scroll-margin-top: 28px;
}

.slider-shell {
  position: relative;
  margin-top: 28px;
}

.shot-grid {
  margin-top: 0;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 208, 255, 0.45) rgba(255, 255, 255, 0.04);
}

.shot-grid::-webkit-scrollbar {
  height: 8px;
}

.shot-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.shot-grid::-webkit-scrollbar-thumb {
  background: rgba(138, 208, 255, 0.45);
  border-radius: 999px;
}

.shot-card {
  flex: 0 0 clamp(220px, 24vw, 280px);
  scroll-snap-align: start;
}

.slider-button {
  position: absolute;
  z-index: 3;
  top: 45%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(7, 17, 31, 0.88);
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.slider-button:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(20, 43, 72, 0.96);
}

.slider-button.prev {
  left: -18px;
}

.slider-button.next {
  right: -18px;
}

.slider-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

@media (max-width: 820px) {
  .shot-grid {
    display: flex;
  }

  .shot-card {
    flex-basis: min(72vw, 270px);
  }

  .slider-button {
    display: none;
  }

  .slider-hint {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .shot-grid {
    display: flex;
    grid-template-columns: none;
  }

  .shot-card {
    flex-basis: 78vw;
  }
}


.social-links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 208, 255, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.site-footer {
  padding: 34px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: left;
  font-size: 13px;
}

.footer-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: center;
}

.footer-brand strong {
  color: var(--text);
  font-size: 16px;
  letter-spacing: 1.4px;
}

.footer-brand p,
.footer-info p,
.footer-copy p {
  margin-top: 4px;
}

.footer-info a {
  color: var(--accent-light);
}

.footer-info span {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.28);
}

.footer-copy {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-copy {
    text-align: left;
  }
}


.identity-section {
  position: relative;
  overflow: hidden;
}

.identity-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 176, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.identity-layout {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 58px;
  align-items: center;
}

.identity-visual {
  position: relative;
}

.identity-badge {
  position: absolute;
  right: -18px;
  bottom: 26px;
  min-width: 210px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.identity-badge-label {
  display: block;
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.identity-badge strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
}

.identity-badge p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.identity-copy h2 {
  margin-top: 12px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.12;
  letter-spacing: -2px;
}

.identity-lead {
  margin-top: 26px;
  color: var(--muted);
  font-size: 18px;
}

.identity-story-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.identity-story-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.identity-story-card span {
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.identity-story-card h3 {
  margin-top: 8px;
  font-size: 18px;
}

.identity-story-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.identity-quote {
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: rgba(85, 176, 255, 0.08);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.about-rich-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(85, 176, 255, 0.08), transparent 28%),
    var(--background);
}

.about-rich-layout {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.about-rich-heading h2 {
  margin-top: 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.14;
  letter-spacing: -2px;
  position: sticky;
  top: 30px;
}

.about-intro {
  color: var(--muted);
  font-size: 18px;
}

.about-value-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.about-value-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
}

.about-value-card h3 {
  color: var(--accent-light);
  font-size: 19px;
}

.about-value-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.about-summary {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.about-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.about-summary span {
  color: var(--muted);
  font-size: 14px;
}

.about-summary strong {
  text-align: right;
  font-size: 15px;
}

@media (max-width: 980px) {
  .identity-layout,
  .about-rich-layout {
    grid-template-columns: 1fr;
  }

  .identity-story-grid {
    grid-template-columns: 1fr;
  }

  .identity-badge {
    right: 18px;
  }

  .about-rich-heading h2 {
    position: static;
  }
}

@media (max-width: 620px) {
  .identity-badge {
    position: static;
    margin-top: 16px;
  }

  .about-value-grid {
    grid-template-columns: 1fr;
  }

  .about-summary > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-summary strong {
    text-align: left;
  }
}


/* v8 wording refinements */
.identity-copy h2,
.about-rich-heading h2 {
  max-width: 720px;
}

.hero-copy h1 {
  max-width: 820px;
}

/* OWN THREE KINGDOMS / four-project layout refinements */
@media (min-width: 981px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* OWN THREE KINGDOMS wide web screenshots */
.otk-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c79b42, #8e5f24);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.web-shot-grid .web-shot-card {
  flex: 0 0 clamp(520px, 72vw, 860px);
}

.web-shot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: top center;
  background: #eef3f8;
  cursor: zoom-in;
}

.web-shot-card figcaption {
  font-size: 15px;
}

.web-shot-card::after {
  content: "클릭해서 크게 보기";
  display: block;
  padding: 0 14px 14px;
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 700;
}

/* Fullscreen image viewer */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 9, 17, 0.92);
  backdrop-filter: blur(8px);
}

.image-lightbox.open {
  display: flex;
}

.image-lightbox img {
  max-width: min(96vw, 1600px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.image-lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background: rgba(7,17,31,0.9);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 820px) {
  .web-shot-grid .web-shot-card {
    flex-basis: 88vw;
  }

  .image-lightbox {
    padding: 16px;
  }

  .image-lightbox-close {
    top: 12px;
    right: 12px;
  }
}

/* Project showcase banners and portrait screenshots */
.chagok-showcase,
.puripang-showcase {
  background:
    linear-gradient(135deg, rgba(85, 176, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--surface);
}

.chagok-banner,
.puripang-banner {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #071a33;
}

.chagok-banner img,
.puripang-banner img {
  width: 100%;
  aspect-ratio: 512 / 250;
  object-fit: cover;
}

.chagok-shot-card,
.puripang-shot-card {
  flex-basis: clamp(220px, 24vw, 280px);
}

.chagok-shot-card img,
.puripang-shot-card img {
  cursor: zoom-in;
}

@media (max-width: 820px) {
  .chagok-shot-card,
  .puripang-shot-card {
    flex-basis: min(72vw, 270px);
  }
}

@media (max-width: 520px) {
  .chagok-shot-card,
  .puripang-shot-card {
    flex-basis: 78vw;
  }
}

/* Compact introduction with direct project access */
.hero-inner {
  min-height: min(700px, calc(100svh - 88px));
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  padding: 48px 0 64px;
}
.hero-copy h1 { font-size: clamp(36px, 4vw, 54px); line-height: 1.2; letter-spacing: -2px; word-break: keep-all; }
.hero-description { font-size: 17px; margin-top: 22px; }
.hero-buttons { flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-buttons .button { min-width: 0; padding: 12px 20px; font-size: 14px; }
.hero-apps { min-width: 0; }
.hero-apps-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.hero-apps-heading h2 { font-size: 19px; }
.hero-apps-heading > span { color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.hero-app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-app { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; padding: 20px 16px; border: 1px solid var(--border); border-radius: 20px; background: rgba(255,255,255,0.045); transition: background 0.2s, border-color 0.2s; }
.hero-app:hover { background: rgba(85,176,255,0.12); border-color: var(--accent); }
.hero-app:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }
.hero-app img, .hero-app-placeholder { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.hero-app-placeholder { display: grid; place-items: center; background: #314d70; color: #d5ebff; font-size: 28px; font-weight: 900; }
.hero-app-info { min-width: 0; display: grid; gap: 4px; }
.hero-app-info strong { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.hero-app-info > span { color: var(--muted); font-size: 11px; word-break: keep-all; }
.hero-app .status-badge { grid-column: 1 / -1; justify-self: start; font-size: 10px; }
@media (max-width: 980px) {
  .hero-inner { gap: 28px; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .hero-copy { order: 0; }
  .hero-app { padding: 14px 12px; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .hero-app img, .hero-app-placeholder { width: 40px; height: 40px; border-radius: 11px; }
}
@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 20px 0 44px; gap: 30px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-copy .eyebrow { font-size: 10px; }
  .hero-description { font-size: 15px; margin-top: 16px; }
  .hero-buttons { flex-direction: row; margin-top: 18px; }
  .hero-buttons .button { width: auto; padding: 10px 16px; }
  .hero-apps-heading h2 { font-size: 17px; }
  .hero-app-grid { gap: 10px; }
}

/* Keep the BLUEQUEST character visible beside the project collection. */
.hero-character {
  width: clamp(160px, 16vw, 210px);
  height: auto;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 24px rgba(85, 176, 255, 0.16));
}
.hero-copy h1 { font-size: clamp(34px, 3.4vw, 46px); }
@media (max-width: 720px) {
  .hero-character { width: 140px; margin-bottom: 14px; }
  .hero-copy h1 { font-size: 34px; }
}

/* A brief creator introduction keeps the focus on the apps. */
.creator-section { padding-top: 56px; padding-bottom: 56px; }
.creator-summary { display: flex; align-items: center; gap: 32px; max-width: 820px; margin: 0 auto; }
.creator-summary > img { width: 160px; height: 180px; object-fit: contain; flex-shrink: 0; }
.creator-summary h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.35; margin: 8px 0 14px; }
.creator-summary p:not(.section-label) { color: var(--muted); font-size: 16px; word-break: keep-all; }
.contact-section { padding-top: 56px; padding-bottom: 64px; }
.contact-section h2 { font-size: clamp(24px, 3vw, 36px); }
@media (max-width: 520px) {
  .creator-summary { gap: 20px; align-items: flex-start; }
  .creator-summary > img { width: 88px; height: 110px; }
  .creator-summary p:not(.section-label) { font-size: 14px; }
}

/* Brand heading and the existing creative motto. */
.hero-copy h1.hero-brand { font-size: 18px; line-height: 1.5; letter-spacing: 0; color: var(--accent-light); margin: 0; }
.hero-tagline { font-size: clamp(34px, 3.4vw, 46px); font-weight: 700; line-height: 1.2; letter-spacing: -2px; word-break: keep-all; margin-top: 18px; }
@media (max-width: 720px) { .hero-tagline { font-size: 34px; } }
