:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --panel: #ffffff;
  --line: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #c0392b;
  --accent-light: #fef2f2;
  --accent-dark: #991b1b;
  --tag-bg: #f3f4f6;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ── Navigation ── */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.top-nav-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-brand {
  text-decoration: none;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.top-menu a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.top-menu a:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.top-menu a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  padding-left: 0.75rem;
  margin-left: 0.25rem;
}

.lang-switch a {
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.lang-switch a.active {
  color: var(--text);
  font-weight: 700;
  background: var(--bg-soft);
}

/* ── Hamburger ── */

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 40;
}

.menu-overlay.active {
  display: block;
}

/* ── Container ── */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

/* ══════════════════════════════════════
   HERO (Homepage)
   ══════════════════════════════════════ */

.ai-hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  transition: padding 0.4s ease;
}

.search-active .ai-hero {
  padding: 2rem 0 1.5rem;
}

.ai-hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

/* Greeting */

.ai-greeting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: opacity 0.4s ease, max-height 0.5s ease, margin 0.5s ease;
  max-height: 300px;
  overflow: hidden;
}

.search-active .ai-greeting {
  opacity: 0;
  max-height: 0;
  margin: 0;
  pointer-events: none;
}

.ai-greeting-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.ai-greeting-sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 480px;
}

/* Badge */

.badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Search Wrap */

.ai-search-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.ai-search-form {
  width: 100%;
}

.ai-search-input-wrap {
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 0.45rem 0.45rem 0.45rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.ai-search-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

.ai-search-input-wrap textarea {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: none;
  outline: none;
  min-height: 24px;
  max-height: 120px;
}

.ai-search-input-wrap textarea::placeholder {
  color: #9ca3af;
}

.ai-search-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}

.ai-search-btn:hover {
  transform: scale(1.05);
  background: var(--accent-dark);
}

/* Suggestions */

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  transition: opacity 0.3s, max-height 0.4s;
  max-height: 200px;
  overflow: hidden;
}

.search-active .ai-hero .ai-suggestions {
  opacity: 0;
  max-height: 0;
  pointer-events: none;
}

.ai-suggestion-chip {
  font-size: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.ai-suggestion-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

/* Stats (hidden in new design) */

.ai-stats {
  display: none;
}

/* ══════════════════════════════════════
   AI CONVERSATION
   ══════════════════════════════════════ */

.ai-conversation {
  min-height: 0;
  padding: 0;
  transition: padding 0.3s;
}

.search-active .ai-conversation {
  padding: 2rem 0 3rem;
}

.ai-conversation-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Message Bubbles */

.ai-msg {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  animation: msgFadeIn 0.3s ease both;
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-msg-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
}

.ai-msg-user .ai-msg-avatar {
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

.ai-msg-assistant .ai-msg-avatar {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(192, 57, 43, 0.15);
}

.ai-msg-body {
  flex: 1;
  min-width: 0;
}

.ai-msg-user .ai-msg-body {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
}

.ai-msg-user .ai-msg-body p {
  color: var(--text);
  font-size: 0.93rem;
}

.ai-msg-assistant .ai-msg-body {
  padding-top: 0.2rem;
}

/* AI Response Text */

.ai-response-text {
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.7;
}

.ai-response-text strong {
  color: var(--accent);
}

/* Thinking Animation */

.ai-thinking {
  display: flex;
  gap: 5px;
  padding: 0.5rem 0;
}

.ai-thinking span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: thinkPulse 1.4s ease-in-out infinite;
}

.ai-thinking span:nth-child(2) { animation-delay: 0.2s; }
.ai-thinking span:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinkPulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}

/* Result Cards */

.ai-result-cards {
  margin-top: 1rem;
}

.ai-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ai-result-grid-news {
  grid-template-columns: 1fr;
}

.ai-fade-in {
  animation: fadeInUp 0.4s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Follow-ups */

.ai-follow-ups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* Action Link */

.ai-action-link {
  margin-top: 1rem;
}

/* Powered-by */

.ai-powered-by {
  margin-top: 0.8rem;
  font-size: 0.7rem;
  font-family: 'IBM Plex Mono', monospace;
  color: #d1d5db;
}

/* ══════════════════════════════════════
   HOMEPAGE CONTENT SECTIONS
   ══════════════════════════════════════ */

.home-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--text);
}

.home-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-section-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.home-section-link:hover {
  text-decoration: underline;
}

/* Home Ideas Grid */

.home-ideas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.home-idea-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--panel);
  transition: box-shadow 0.2s;
}

.home-idea-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.home-idea-category {
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.home-idea-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.home-idea-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-idea-card .read-link {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.home-idea-card .read-link:hover {
  text-decoration: underline;
}

.home-idea-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.75rem;
}

.home-idea-tags li {
  font-size: 0.7rem;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--muted);
  background: var(--tag-bg);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* Home News Grid */

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.home-news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: box-shadow 0.2s;
}

.home-news-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.home-news-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.home-news-source {
  color: var(--accent);
  font-weight: 600;
}

.home-news-date {
  color: var(--muted);
}

.home-news-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  line-height: 1.4;
}

.home-news-opinion {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  border-left: 2px solid var(--accent);
  padding-left: 0.6rem;
  margin-top: 0.2rem;
}

.home-news-card .read-link {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.home-news-card .read-link:hover {
  text-decoration: underline;
}

/* Empty state */

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ══════════════════════════════════════
   HUMAN / TALENT CARDS (shared w/ subpages)
   ══════════════════════════════════════ */

.human-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.human-search {
  margin-top: 1.25rem;
  max-width: 640px;
}

.human-search-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  font-family: 'IBM Plex Mono', monospace;
}

.human-search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.92rem;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.human-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

.human-search-empty {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

[data-human-search-card][hidden] {
  display: none;
}

.human-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  transition: box-shadow 0.2s;
}

.human-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.human-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.35rem;
}

.human-role {
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
}

.human-card h3 {
  margin: 0.15rem 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
}

.human-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.human-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0;
  margin: 0.5rem 0 0.75rem;
}

.human-tags li {
  background: var(--tag-bg);
  border-radius: 4px;
  padding: 0.18rem 0.45rem;
  font-size: 0.7rem;
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
}

.human-card span {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
}

.human-cta {
  margin-top: 0.85rem;
  width: 100%;
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
}

.human-note {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.social-list {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.social-list a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  transition: color 0.15s, border-color 0.15s;
}

.social-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ══════════════════════════════════════
   NEWS CARDS (shared w/ subpages)
   ══════════════════════════════════════ */

.news-search-block {
  margin-bottom: 1.2rem;
}

[data-news-search-card][hidden] {
  display: none;
}

.news-updated {
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
}

.news-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.news-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: box-shadow 0.2s;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.news-source {
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.news-card h2,
.news-card h3 {
  font-size: 1rem;
  line-height: 1.4;
  font-family: 'Space Grotesk', sans-serif;
}

.news-published {
  color: var(--muted);
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
}

.news-summary {
  color: var(--muted);
  font-size: 0.88rem;
}

.news-opinion {
  border-left: 2px solid var(--accent);
  padding-left: 0.6rem;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.55;
}

.news-card .btn {
  margin-top: auto;
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  align-self: flex-start;
}

.news-view-all {
  margin-top: 1.5rem;
  text-align: center;
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.full {
  width: 100%;
}

/* ══════════════════════════════════════
   HERO (subpages)
   ══════════════════════════════════════ */

.hero {
  position: relative;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.hero-compact {
  padding: 3rem 0 2rem;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.headline {
  margin-top: 0.8rem;
  max-width: 780px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.subtext {
  margin-top: 0.8rem;
  color: var(--muted);
  max-width: 620px;
  font-size: 0.95rem;
}

.hero-cta {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════ */

.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  line-height: 1.15;
}

.section-sub {
  margin-top: 0.5rem;
  color: var(--muted);
}

/* ── Site Footer ── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.site-footer-inner {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.footer-copy {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 400px;
}

.footer-meta {
  margin-top: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-links-wrap {
  justify-self: end;
}

.footer-links-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.footer-links a:hover {
  color: var(--accent);
  background: var(--accent-light);
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */

.fade-in,
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════════════
   IDEAS CARDS
   ══════════════════════════════════════ */

.ideas-search-block {
  margin-bottom: 1.2rem;
}

[data-ideas-search-card][hidden] {
  display: none;
}

.ideas-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.idea-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: box-shadow 0.2s;
}

.idea-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.idea-category {
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.idea-card h2 {
  font-size: 1.1rem;
  line-height: 1.35;
  font-family: 'Space Grotesk', sans-serif;
}

.idea-summary {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.idea-section {
  border-left: 2px solid var(--line);
  padding-left: 0.75rem;
}

.idea-section h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.idea-section p {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.6;
}

.idea-talent {
  border-left-color: var(--accent);
}

.idea-talent h3 {
  color: var(--accent);
}

.idea-card .human-tags {
  margin-top: 0.3rem;
}

.idea-card .read-link {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.idea-card .read-link:hover {
  text-decoration: underline;
}

.idea-detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.idea-detail-overview {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.idea-content {
  margin-top: 1.5rem;
  line-height: 1.8;
  color: var(--text);
}

.idea-content h2 {
  margin-top: 1.35rem;
  margin-bottom: 0.45rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.12rem;
}

.idea-content p {
  margin-top: 0.4rem;
  color: var(--text);
}

.idea-content ul,
.idea-content ol {
  margin-left: 1.25rem;
  margin-top: 0.4rem;
}

/* ══════════════════════════════════════
   MOBILE
   ══════════════════════════════════════ */

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .top-nav-inner {
    min-height: auto;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.6rem 0;
  }

  .top-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    padding: 4rem 1.2rem 2rem;
    margin-left: 0;
    background: var(--bg);
    z-index: 45;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .top-menu.open {
    transform: translateX(0);
  }

  .top-menu a {
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--line);
  }

  .top-menu a:last-of-type {
    border-bottom: none;
  }

  .top-menu a:hover,
  .top-menu a:active {
    background: var(--bg-soft);
    border-bottom-color: var(--line);
  }

  .top-menu a[aria-current="page"] {
    color: var(--accent);
    background: var(--accent-light);
    border-bottom-color: var(--line);
  }

  .lang-switch {
    display: none;
  }

  .drawer-lang {
    display: flex !important;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--line);
  }

  .drawer-lang a {
    text-decoration: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--muted);
    padding: 0.3rem 0.55rem;
    border-radius: 4px;
  }

  .drawer-lang a.active {
    color: var(--text);
    background: var(--bg-soft);
    font-weight: 700;
  }

  /* Hero mobile */

  .ai-hero {
    padding: 2.5rem 0 2rem;
  }

  .ai-greeting-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  /* Results grid mobile */

  .ai-result-grid {
    grid-template-columns: 1fr;
  }

  /* Sections mobile */

  .hero-top {
    align-items: flex-start;
  }

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

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

  .home-ideas-grid {
    grid-template-columns: 1fr;
  }

  .home-news-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-links-wrap {
    justify-self: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-compact {
    padding: 2.5rem 0 1.5rem;
  }
}

.drawer-lang {
  display: none;
}

/* ── Grain (removed for light theme) ── */

.grain {
  display: none;
}
