/* ── Tokens ── */
:root {
  --ground: #f5f0e8;
  --text: #2c2218;
  --text-muted: #6b5e52;
  --accent: #d4602a;
  --accent-hover: #b8501f;
  --secondary: #6b7f5e;
  --card-bg: #faf7f2;
  --card-border: #e8e0d4;
  --card-shadow: rgba(44, 34, 24, 0.06);
  --divider: #ddd5c9;
  --terminal-bg: #0a0a0a;
  --terminal-text: #33ff33;
  --terminal-dim: #1a6b1a;
  --terminal-comment: #666;
  --placeholder-bg: #eee8de;
  --placeholder-border: #ddd5c9;
  --gradient-warm: radial-gradient(ellipse at 70% 30%, #d4602a22, transparent 60%),
                   radial-gradient(ellipse at 30% 70%, #6b7f5e15, transparent 50%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1a1714;
    --text: #e8e0d4;
    --text-muted: #9a8e82;
    --accent: #e07030;
    --accent-hover: #f08040;
    --secondary: #8a9f7e;
    --card-bg: #241f1a;
    --card-border: #3a332a;
    --card-shadow: rgba(0, 0, 0, 0.2);
    --divider: #3a332a;
    --placeholder-bg: #2a2520;
    --placeholder-border: #3a332a;
    --gradient-warm: radial-gradient(ellipse at 70% 30%, #d4602a18, transparent 60%),
                     radial-gradient(ellipse at 30% 70%, #6b7f5e10, transparent 50%);
  }
}
:root[data-theme="dark"] {
  --ground: #1a1714;
  --text: #e8e0d4;
  --text-muted: #9a8e82;
  --accent: #e07030;
  --accent-hover: #f08040;
  --secondary: #8a9f7e;
  --card-bg: #241f1a;
  --card-border: #3a332a;
  --card-shadow: rgba(0, 0, 0, 0.2);
  --divider: #3a332a;
  --placeholder-bg: #2a2520;
  --placeholder-border: #3a332a;
  --gradient-warm: radial-gradient(ellipse at 70% 30%, #d4602a18, transparent 60%),
                   radial-gradient(ellipse at 30% 70%, #6b7f5e10, transparent 50%);
}
:root[data-theme="light"] {
  --ground: #f5f0e8;
  --text: #2c2218;
  --text-muted: #6b5e52;
  --accent: #d4602a;
  --accent-hover: #b8501f;
  --secondary: #6b7f5e;
  --card-bg: #faf7f2;
  --card-border: #e8e0d4;
  --card-shadow: rgba(44, 34, 24, 0.06);
  --divider: #ddd5c9;
  --placeholder-bg: #eee8de;
  --placeholder-border: #ddd5c9;
  --gradient-warm: radial-gradient(ellipse at 70% 30%, #d4602a22, transparent 60%),
                   radial-gradient(ellipse at 30% 70%, #6b7f5e15, transparent 50%);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Avenir Next', Avenir, Montserrat, system-ui, -apple-system, sans-serif;
  background: var(--ground);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

/* ── Terminal Phase ── */
#terminal-phase {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--terminal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

#terminal-phase.dissolve {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.terminal-window {
  width: min(720px, 92vw);
  background: #111;
  border-radius: 10px;
  border: 1px solid #333;
  overflow: hidden;
  box-shadow: 0 0 100px rgba(51, 255, 51, 0.06), 0 20px 60px rgba(0,0,0,0.5);
}

.terminal-bar {
  height: 36px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
  border-bottom: 1px solid #2a2a2a;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-bar span {
  flex: 1;
  text-align: center;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, monospace;
  font-size: 11px;
  color: #555;
  margin-right: 40px;
}

.terminal-body {
  padding: 24px 28px;
  min-height: 280px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, monospace;
  font-size: 14px;
  line-height: 1.8;
  color: var(--terminal-text);
}

.terminal-line {
  opacity: 0;
  white-space: pre-wrap;
  min-height: 1.8em;
}
.terminal-line.visible { opacity: 1; }
.terminal-line .prompt { color: #888; }
.terminal-line .cmd { color: var(--terminal-text); }
.terminal-line .output { color: #aaffaa; }
.terminal-line .output-dim { color: var(--terminal-dim); }

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--terminal-text);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

#skip-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1001;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: #555;
  background: none;
  border: 1px solid #333;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
#skip-btn:hover { color: #999; border-color: #666; }

/* ── Portfolio ── */
#portfolio {
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}
#portfolio.visible { opacity: 1; }

/* ── Site Header ── */
.site-header {
  max-width: 840px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.site-header nav a {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.site-header nav a:hover { color: var(--accent); }

/* ── Sections ── */
.section {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ── */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-warm);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--text-muted);
  margin-top: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-pronunciation {
  display: inline-block;
  margin-top: 24px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--divider);
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.hero-shape {
  position: absolute;
  right: -5%;
  top: 15%;
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--accent), transparent 70%);
  opacity: 0.07;
  filter: blur(60px);
  pointer-events: none;
}

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@keyframes scrollDot {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* ── Section shared ── */
.section-label {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 28px;
}

/* ── About ── */
.about {
  padding-top: 100px;
  padding-bottom: 100px;
  border-top: 1px solid var(--divider);
}

.about-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 640px;
}

.about-text + .about-text {
  margin-top: 18px;
}

.about-pullquote {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  margin: 36px 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  line-height: 1.4;
  max-width: 580px;
}

/* ── Now ── */
.now {
  padding-top: 100px;
  padding-bottom: 100px;
  border-top: 1px solid var(--divider);
}

.now-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

.now-item {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.now-label {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 90px;
}

.now-value {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
}

/* ── Ventures ── */
.ventures {
  padding-top: 100px;
  padding-bottom: 100px;
  border-top: 1px solid var(--divider);
}

.venture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}

.venture-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.venture-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--card-shadow);
  color: inherit;
}

.venture-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.venture-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.venture-link {
  display: inline-block;
  margin-top: 12px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--accent);
}

.venture-origin {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 12px;
  opacity: 0.7;
}

/* ── Writing ── */
.writing {
  padding-top: 100px;
  padding-bottom: 100px;
  border-top: 1px solid var(--divider);
}

.writing-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 560px;
  line-height: 1.6;
}

.post-list {
  list-style: none;
  margin-top: 0;
}

.post-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.post-item:last-child { border-bottom: none; }

.post-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.4;
}
.post-title:hover { color: var(--accent); }

.post-date {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Social ── */
.social {
  padding-top: 100px;
  padding-bottom: 100px;
  border-top: 1px solid var(--divider);
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}

.social-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--card-shadow);
  color: inherit;
}

.social-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.social-icon {
  width: 24px;
  height: 24px;
  opacity: 0.6;
  flex-shrink: 0;
}

.social-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.social-handle {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

.social-placeholder {
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border);
  border-radius: 8px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'SF Mono', Menlo, monospace;
  letter-spacing: 0.02em;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--divider);
  padding: 56px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 840px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-easter-egg {
  display: inline-block;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  color: var(--divider);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: default;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.footer-easter-egg:hover {
  color: var(--terminal-text);
  background: var(--terminal-bg);
  border-color: #333;
}

/* ── Scroll reveals ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Blog post typography ── */
.post-content {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 2.5em 0 0.8em;
  letter-spacing: -0.02em;
}

.post-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2em 0 0.6em;
}

.post-content p {
  margin-bottom: 1.4em;
}

.post-content ul, .post-content ol {
  margin-bottom: 1.4em;
  padding-left: 1.5em;
}

.post-content li {
  margin-bottom: 0.4em;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 1.5em 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-content code {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.88em;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2px 6px;
  border-radius: 4px;
}

.post-content pre {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 1.4em;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 2.5em 0;
}

/* ── Blog page header ── */
.page-header {
  max-width: 840px;
  margin: 0 auto;
  padding: 80px 24px 40px;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 560px;
}

/* ── Single post header ── */
.single-header {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px 40px;
}

.single-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.single-meta {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.single-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.single-tags a {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--card-border);
  padding: 3px 10px;
  border-radius: 100px;
  text-decoration: none;
}
.single-tags a:hover {
  border-color: var(--accent);
}

/* ── Post navigation ── */
.post-nav {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--divider);
}

.post-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}
.post-nav a:hover { color: var(--accent); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  #terminal-phase { display: none !important; }
  #portfolio { opacity: 1 !important; }
  #skip-btn { display: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
  .scroll-hint { animation: none; }
  .scroll-dot { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .venture-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .now-grid { grid-template-columns: 1fr; }
  .post-item { flex-direction: column; gap: 4px; }
  .hero { min-height: 50vh; }
}

@media (max-width: 480px) {
  .terminal-body { font-size: 12px; padding: 18px; }
  .social-placeholder { height: 90px; }
}

/* ── Social embeds ── */
.social-subsection {
  margin-bottom: 40px;
}

.social-sub-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.social-sub-label .social-icon {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

.embed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--card-bg);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.ig-embed {
  max-width: 100%;
  overflow: hidden;
}

.ig-embed .instagram-media {
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.tiktok-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tiktok-grid .tiktok-embed {
  margin: 0 !important;
  max-width: 100% !important;
}

.social-follow-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

.follow-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.follow-link:hover { color: var(--accent); }

.follow-link .social-icon {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

@media (max-width: 700px) {
  .embed-grid { grid-template-columns: 1fr; }
  .tiktok-grid { grid-template-columns: 1fr; }
  .social-follow-row { flex-direction: column; gap: 12px; }
}

/* ── Project pages ── */
.project-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.github-btn, .demo-btn {
  display: inline-block;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.github-btn {
  background: var(--text);
  color: var(--ground);
}
.github-btn:hover { opacity: 0.85; }
.demo-btn {
  border: 1px solid var(--accent);
  color: var(--accent);
}
.demo-btn:hover { background: var(--accent); color: var(--ground); }
.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.project-tag {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  padding: 2px 8px;
  border-radius: 3px;
}

/* ── Nav spacing ── */
.site-header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* ── Breadcrumbs ── */
.breadcrumb {
  padding-top: 12px;
  padding-bottom: 0;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep {
  margin: 0 6px;
  opacity: 0.4;
}

/* ── Project back-link ── */
.project-nav {
  padding-top: 40px;
  padding-bottom: 60px;
  border-top: 1px solid var(--divider);
  margin-top: 40px;
}
.back-link {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}
.back-link:hover { opacity: 0.7; }

/* ── Post list summary ── */
.post-item { flex-direction: column; align-items: stretch; gap: 6px; }
.post-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.post-summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 65ch;
}

/* ── TikTok poster cards (replaces embed.js widget) ── */
.tiktok-card { display: block; text-decoration: none; color: inherit; }
.tiktok-thumb {
  position: relative;
  padding-bottom: 177.78%; /* 9:16 */
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.tiktok-play {
  position: absolute; inset: 0; margin: auto;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55); border-radius: 50%; color: #fff;
  transition: transform .15s, background .15s;
}
.tiktok-play svg { width: 22px; height: 22px; margin-left: 3px; }
.tiktok-card:hover .tiktok-play { background: var(--accent); transform: scale(1.08); }
.tiktok-card-title {
  margin-top: 10px; font-size: 0.9rem; line-height: 1.4; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tiktok-card:hover .tiktok-card-title { color: var(--accent); }

/* Instagram card thumb — square (Behold serves square crops) */
.ig-thumb {
  position: relative;
  padding-bottom: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
