/* Portfolio page embed — scoped copy of the Future landing showcase/voices styles */

.wn-embed {
  --void: #060910;
  --void-deep: #03050b;
  --teal-glow: #2dd4bf;
  --aqua: #67e8f9;
  --gold: #e8c99b;
  --muted: #9ca3af;
}

html[data-theme="light"] .wn-embed {
  --void: #f7f1e8;
  --void-deep: #e4ddd1;
  --teal-glow: #0f766e;
  --aqua: #0e7490;
  --gold: #d2a846;
  --muted: #64748b;
}

.wn-embed .wn-section {
  padding: 4.5rem 1rem;
  position: relative;
}

@media (min-width: 640px) {
  .wn-embed .wn-section { padding: 6rem 1.5rem; }
}

.wn-embed .container {
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
}

.wn-embed .container-narrow { max-width: 64rem; }

.wn-embed .glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.wn-embed .glass-strong {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.wn-embed .text-glow-teal {
  color: var(--teal-glow);
  text-shadow: 0 0 24px rgba(45, 212, 191, 0.55);
}

.wn-embed .text-glow-aurora {
  background: linear-gradient(120deg, var(--teal-glow), var(--aqua), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(45, 212, 191, 0.35));
}

.wn-embed .lumen-line {
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(45, 212, 191, 0.6), rgba(232, 201, 155, 0.5), transparent);
  background-size: 200% 100%;
  animation: wn-lumen-slide 6s linear infinite;
}

@keyframes wn-lumen-slide {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.wn-embed .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal-glow);
  backdrop-filter: blur(10px);
}

.wn-embed .eyebrow .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--teal-glow);
  box-shadow: 0 0 10px var(--teal-glow);
  animation: wn-pulse-dot 2s ease-in-out infinite;
}

@keyframes wn-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.wn-embed .sec-title {
  margin: 1.5rem 0 0;
  font-size: 2.25rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .wn-embed .sec-title { font-size: 3rem; }
}

.wn-embed .sec-sub {
  margin: 1.25rem auto 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  line-height: 1.9;
}

@media (min-width: 640px) {
  .wn-embed .sec-sub { font-size: 1.125rem; }
}

.wn-embed .sec-head { text-align: center; }

.wn-embed .icon {
  width: 1.25em;
  height: 1.25em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.wn-embed .icon-sm { width: 1rem; height: 1rem; }

/* ---------- Showcase ---------- */
.wn-embed .showcase-list {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

@media (min-width: 640px) {
  .wn-embed .showcase-list { gap: 7rem; }
}

.wn-embed .showcase-row {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .wn-embed .showcase-row { flex-direction: row; gap: 3.5rem; }
  .wn-embed .showcase-row.reverse { flex-direction: row-reverse; }
}

.wn-embed .browser {
  width: 100%;
  max-width: 34rem;
  border-radius: 2rem;
  padding: 0.65rem;
  flex-shrink: 0;
}

.wn-embed .browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem 0.75rem;
}

.wn-embed .browser-bar i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
  display: block;
}

.wn-embed .browser-bar i:nth-child(1) { background: rgba(248, 113, 113, 0.7); }
.wn-embed .browser-bar i:nth-child(2) { background: rgba(250, 204, 21, 0.7); }
.wn-embed .browser-bar i:nth-child(3) { background: rgba(74, 222, 128, 0.7); }

.wn-embed .browser-url {
  flex: 1;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.9rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  direction: ltr;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wn-embed .browser-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1.4rem;
  background: var(--void-deep);
  overflow: hidden;
  cursor: pointer;
}

.wn-embed .browser-screen img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.05s linear;
  will-change: transform;
}

.wn-embed .browser-screen .fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(3, 5, 11, 0.55), transparent);
  pointer-events: none;
}

.wn-embed .browser-screen .hint {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  white-space: nowrap;
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(3, 5, 11, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.wn-embed .browser-screen:hover .hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.wn-embed .browser-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border-radius: 9999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(3, 5, 11, 0.7);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--teal-glow);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.wn-embed .browser-badge.gold {
  border-color: rgba(232, 201, 155, 0.35);
  color: var(--gold);
}

.wn-embed .showcase-text { width: 100%; }

.wn-embed .showcase-index {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  direction: ltr;
  justify-content: flex-end;
}

.wn-embed .showcase-text h3 {
  margin: 1.1rem 0 0;
  font-size: 2.25rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .wn-embed .showcase-text h3 { font-size: 3rem; }
}

.wn-embed .showcase-text p {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.9;
}

.wn-embed .showcase-btn {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 9999px;
  padding: 0.8rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--teal-glow);
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.wn-embed .showcase-btn.gold {
  color: var(--gold);
  background: rgba(232, 201, 155, 0.12);
  border-color: rgba(232, 201, 155, 0.4);
}

.wn-embed .showcase-btn:hover { transform: scale(1.04); background: rgba(45, 212, 191, 0.2); }
.wn-embed .showcase-btn.gold:hover { background: rgba(232, 201, 155, 0.2); }

/* ---------- Voices ---------- */
.wn-embed .voices-wrap {
  position: relative;
  margin-top: 3.5rem;
}

.wn-embed .voices-glow {
  position: absolute;
  inset: -1.5rem;
  z-index: -1;
  border-radius: 2.5rem;
  background: rgba(45, 212, 191, 0.05);
  filter: blur(60px);
}

.wn-embed .voices-card {
  position: relative;
  border-radius: 2rem;
  padding: 2rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .wn-embed .voices-card { padding: 3rem; }
}

.wn-embed .voices-card .quote-mark {
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 4rem;
  height: 4rem;
  color: rgba(255, 255, 255, 0.15);
}

.wn-embed .voices-slider {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.wn-embed .voices-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wn-embed .voices-viewport::-webkit-scrollbar { display: none; }

.wn-embed .voices-track {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.wn-embed .voices-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .wn-embed .voices-slide { flex-basis: calc((100% - 1.5rem) / 2); }
}

@media (min-width: 1024px) {
  .wn-embed .voices-slide { flex-basis: calc((100% - 3rem) / 3); }
}

@media (min-width: 1440px) {
  .wn-embed .container-narrow { max-width: 82rem; }
  .wn-embed .voices-slide { flex-basis: calc((100% - 4.5rem) / 4); }
}

.wn-embed .stars {
  display: flex;
  gap: 0.25rem;
  color: var(--gold);
}

.wn-embed .stars .icon { fill: var(--gold); width: 1.25rem; height: 1.25rem; stroke: none; }

.wn-embed .voices-quote {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.wn-embed .voices-slide.expanded .voices-quote {
  display: block;
  -webkit-line-clamp: unset;
  overflow-y: auto;
  max-height: 14rem;
}

.wn-embed .voices-more {
  display: none;
  align-self: flex-start;
  margin-top: 0.6rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--teal-glow);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.wn-embed .voices-slide.has-more .voices-more { display: inline-block; }
.wn-embed .voices-more:hover { text-decoration: underline; }

.wn-embed .voices-audio {
  margin-top: 1.25rem;
}

.wn-embed .voices-audio audio,
.wn-embed .voices-audio video {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  direction: ltr;
}

.wn-embed .voices-author {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wn-embed .voices-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(to bottom left, rgba(45, 212, 191, 0.3), rgba(232, 201, 155, 0.2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.wn-embed .voices-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wn-embed .voices-author .who strong { display: block; font-weight: 700; color: #fff; }

.wn-embed .voices-controls {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.wn-embed .voices-dots { display: flex; align-items: center; gap: 0.45rem; }

.wn-embed .voices-dots button {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s ease, background 0.3s ease;
}

.wn-embed .voices-dots button.active {
  width: 2rem;
  background: var(--teal-glow);
}

.wn-embed .voices-nav {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wn-embed .voices-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(45, 212, 191, 0.4);
}

@media (max-width: 767px) {
  .wn-embed .voices-nav { width: 2.25rem; height: 2.25rem; }
}

/* ---------- Reveal animations ---------- */
.wn-embed .reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.wn-embed .reveal.in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.wn-embed .reveal-d1 { transition-delay: 0.08s; }
.wn-embed .reveal-d2 { transition-delay: 0.16s; }
.wn-embed .reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .wn-embed .reveal { opacity: 1; filter: none; transform: none; transition: none; }
  .wn-embed .lumen-line { animation: none !important; }
}

/* ============ LIGHT THEME ============ */
html[data-theme="light"] .wn-embed .glass {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .wn-embed .glass-strong {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .wn-embed .text-glow-teal { text-shadow: none; }

html[data-theme="light"] .wn-embed .eyebrow {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .wn-embed .sec-title { color: #0f172a; }
html[data-theme="light"] .wn-embed .sec-sub { color: rgba(15, 23, 42, 0.6); }

html[data-theme="light"] .wn-embed .browser-url {
  background: rgba(15, 23, 42, 0.05);
  color: rgba(15, 23, 42, 0.5);
}

html[data-theme="light"] .wn-embed .showcase-index { color: rgba(15, 23, 42, 0.45); }
html[data-theme="light"] .wn-embed .showcase-text h3 { color: #0f172a; }
html[data-theme="light"] .wn-embed .showcase-text p { color: rgba(15, 23, 42, 0.62); }

html[data-theme="light"] .wn-embed .showcase-btn {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.4);
}

html[data-theme="light"] .wn-embed .showcase-btn:hover { background: rgba(15, 118, 110, 0.14); }

html[data-theme="light"] .wn-embed .showcase-btn.gold {
  background: rgba(180, 83, 9, 0.08);
  border-color: rgba(180, 83, 9, 0.4);
}

html[data-theme="light"] .wn-embed .showcase-btn.gold:hover { background: rgba(180, 83, 9, 0.14); }

html[data-theme="light"] .wn-embed .voices-card .quote-mark { color: rgba(15, 23, 42, 0.12); }
html[data-theme="light"] .wn-embed .voices-quote { color: rgba(15, 23, 42, 0.85); }
html[data-theme="light"] .wn-embed .voices-avatar { color: #0f172a; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12); }
html[data-theme="light"] .wn-embed .voices-author .who strong { color: #0f172a; }
html[data-theme="light"] .wn-embed .voices-dots button { background: rgba(15, 23, 42, 0.2); }

html[data-theme="light"] .wn-embed .voices-nav {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

html[data-theme="light"] .wn-embed .voices-nav:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 118, 110, 0.4);
}
