/* Prompix website. Palette follows docs/design-language.md; layout and type scale follow a restrained product-page rhythm. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f8;
  --ink: #1f1c29;
  --ink-soft: #3a3647;
  --muted: #6c687c;
  --line: rgba(39, 36, 51, 0.1);
  --accent: #4b3fd3;
  --accent-hover: #3b30bf;
  --accent-soft: rgba(75, 63, 211, 0.08);
  --dark: #0c0b11;
  --dark-ink: #f4f3f9;
  --dark-muted: #a9a4ba;
  --dark-accent: #c4bcff;
  --spectrum: linear-gradient(92deg, #4856ef 0%, #8a78e5 48%, #cd8ce4 100%);
  --container: 1120px;
  --gutter: 24px;
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.47;
  letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
:lang(zh), :lang(ja), :lang(ko) { letter-spacing: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid rgba(75, 63, 211, 0.45); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; }
.skip:focus { top: 12px; }
.icon { width: 0.62em; height: 0.62em; flex: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.spectral { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Global navigation */
.globalnav { position: sticky; top: 0; z-index: 100; height: 52px; background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(39, 36, 51, 0.06); }
.globalnav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.brand img { border-radius: 6px; }
.globalnav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; color: var(--ink-soft); }
.globalnav-links > a { padding-block: 8px; transition: color 0.2s; }
.globalnav-links > a:hover, .globalnav-links > a[aria-current] { color: var(--ink); }
.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 6px; padding: 8px 0; cursor: pointer; list-style: none; color: var(--ink-soft); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary .icon { width: 15px; height: 15px; }
.lang summary:hover { color: var(--ink); }
.lang ul { position: absolute; right: -10px; top: calc(100% + 8px); min-width: 160px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 12px 40px rgba(31, 28, 41, 0.14), 0 0 0 1px rgba(39, 36, 51, 0.06); }
.lang li a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--ink); }
.lang li a:hover { background: var(--bg-alt); }
.lang li a[aria-current] { font-weight: 600; }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border: 0; border-radius: 980px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 500; cursor: pointer; transition: background-color 0.2s, transform 0.2s var(--ease); }
.button:hover { background: var(--accent-hover); }
.button:active { transform: scale(0.98); }
.button .icon { width: 11px; height: 11px; }
.button-quiet, .button.secondary { background: var(--accent-soft); color: var(--accent); }
.button-quiet:hover, .button.secondary:hover { background: rgba(75, 63, 211, 0.14); }
.link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 17px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link .icon { width: 0.55em; height: 0.55em; margin-top: 0.08em; }
.round { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(39, 36, 51, 0.07); color: var(--ink); cursor: pointer; transition: background-color 0.2s, opacity 0.2s; }
.round:hover { background: rgba(39, 36, 51, 0.12); }
.round:disabled { opacity: 0.32; cursor: default; }
.round .icon { width: 10px; height: 10px; }
.eyebrow { color: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

/* Type scale */
.headline { font-size: clamp(34px, 4.6vw, 56px); font-weight: 600; line-height: 1.08; letter-spacing: -0.028em; }
.headline-center { text-align: center; }
.section-lead { max-width: 640px; margin-top: 16px; color: var(--muted); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.42; }
.section-lead.center { margin-inline: auto; }
:lang(zh) .headline, :lang(zh) .hero-title, :lang(zh) .stat-hero { letter-spacing: -0.01em; }

/* Hero */
.hero { padding-top: clamp(64px, 10vw, 128px); overflow: hidden; text-align: center; }
.hero-title { font-size: clamp(46px, 7.6vw, 104px); font-weight: 650; line-height: 1.02; letter-spacing: -0.045em; }
.hero-lead { max-width: 660px; margin: 24px auto 0; color: var(--muted); font-size: clamp(19px, 2vw, 24px); line-height: 1.4; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; margin-top: 36px; }
.wall { display: grid; gap: 16px; margin-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 120px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.wall-row { display: flex; width: max-content; animation: drift 140s linear infinite; }
.wall-row-reverse { animation-direction: reverse; animation-duration: 160s; }
.wall:hover .wall-row { animation-play-state: paused; }
.wall-row ul { display: flex; gap: 16px; padding-right: 16px; }
.wall-row a { display: block; overflow: hidden; border-radius: 22px; background: var(--bg-alt); }
.wall-row img { display: block; width: auto; height: clamp(190px, 21vw, 300px); object-fit: cover; transition: transform 0.9s var(--ease); }
.wall-row a:hover img { transform: scale(1.035); }
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
.hero-title { animation: rise 1s var(--ease) both; }
.hero-lead { animation: rise 1s 0.08s var(--ease) both; }
.cta { animation: rise 1s 0.16s var(--ease) both; }
.wall { animation: fade 1.4s 0.3s var(--ease) both; }

/* Sections */
.section { padding-block: clamp(88px, 11vw, 148px); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-dark { background: var(--dark); color: var(--dark-ink); }

/* Latest rail */
.rail { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding-inline: var(--edge); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail-track { display: flex; gap: 20px; width: max-content; padding-block: 4px 12px; }
.tile { width: clamp(272px, 29vw, 372px); scroll-snap-align: start; }
.tile a { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 28px; background: #e9e8f0; color: #fff; isolation: isolate; transform: translateZ(0); }
.tile-media { position: absolute; inset: 0; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile a:hover .tile-media img { transform: scale(1.04); }
.tile-text { position: absolute; inset: auto 0 0; padding: 96px 26px 26px; background: linear-gradient(to top, rgba(10, 9, 16, 0.74) 0%, rgba(10, 9, 16, 0.32) 55%, rgba(10, 9, 16, 0) 100%); }
.tile-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; opacity: 0.86; }
.tile-eyebrow .icon { width: 10px; height: 10px; }
.tile h3 { display: -webkit-box; margin-top: 6px; overflow: hidden; font-size: 22px; font-weight: 600; line-height: 1.22; letter-spacing: -0.02em; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tile-by { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; opacity: 0.92; }
.tile-by .avatar { width: 22px; height: 22px; }
.tile-cover a { color: var(--ink); }
.tile-cover .tile-text { background: none; }
.tile-cover .tile-media .cover { padding-bottom: 150px; }
.tile-cover.tone-ink a, .tile-cover a:has(.tone-ink) { color: var(--dark-ink); }
.rail-controls { display: flex; justify-content: flex-end; gap: 14px; margin-top: 28px; }

/* Typographic covers */
.cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 100%; padding: 22px; overflow: hidden; color: var(--ink); isolation: isolate; }
.cover::after { content: ""; position: absolute; inset: auto -30% -40% auto; z-index: -1; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(138, 120, 229, 0.28), rgba(205, 140, 228, 0.12) 45%, transparent 70%); }
.cover-eyebrow { color: rgba(31, 28, 41, 0.56); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.cover-text { display: -webkit-box; overflow: hidden; font-size: 24px; font-weight: 600; line-height: 1.16; letter-spacing: -0.025em; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.cover-large { padding: clamp(24px, 3vw, 36px); }
.cover-large .cover-eyebrow { font-size: 14px; }
.cover-large .cover-text { font-size: clamp(28px, 3vw, 40px); }
.tone-sky { background: linear-gradient(160deg, #f0f3ff 0%, #d8e0fc 100%); }
.tone-sage { background: linear-gradient(160deg, #f1f6f2 0%, #dbe8df 100%); }
.tone-clay { background: linear-gradient(160deg, #fcf2f7 0%, #f0d9e7 100%); }
.tone-cream { background: linear-gradient(160deg, #fbf8f1 0%, #eee6d6 100%); }
.tone-ink { background: linear-gradient(160deg, #2e2a42 0%, #16141e 100%); color: var(--dark-ink); }
.tone-ink .cover-eyebrow { color: rgba(244, 243, 249, 0.58); }

/* Kinds bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.bento-tile { position: relative; display: flex; flex-direction: column; min-height: 540px; padding: clamp(28px, 3.4vw, 44px); overflow: hidden; border-radius: 30px; background: var(--bg-alt); isolation: isolate; transform: translateZ(0); }
.bento-copy { position: relative; z-index: 2; max-width: 400px; }
.bento-copy .eyebrow { font-size: 17px; }
.bento-copy h3 { margin: 6px 0 16px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.14; letter-spacing: -0.028em; }
.bento-tile:hover .link { text-decoration: underline; text-underline-offset: 3px; }
.bento-image { grid-column: span 4; }
.bento-video { grid-column: span 2; }
.bento-text { grid-column: span 6; display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: 40px; min-height: 420px; }
.dark { background: var(--dark); color: var(--dark-ink); }
.dark .eyebrow { color: var(--dark-muted); }
.dark .link { color: var(--dark-accent); }
.mosaic { position: absolute; top: 50%; right: 5%; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; width: 44%; transform: translateY(-50%) rotate(-8deg); }
.mosaic img:nth-child(even) { translate: 0 64px; }
.bento-image .bento-copy { max-width: 44%; }
.mosaic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px rgba(31, 28, 41, 0.14); transition: transform 1s var(--ease); }
.bento-image:hover .mosaic img:nth-child(odd) { transform: translateY(-6px); }
.bento-video video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-video::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 70%; background: linear-gradient(to bottom, rgba(10, 9, 16, 0.82) 0%, rgba(10, 9, 16, 0.45) 45%, rgba(10, 9, 16, 0)); }
.quotes { display: grid; margin-top: auto; }
.quotes .quote { grid-area: 1 / 1; }
.quotes .quote:first-child:not(:last-child) { transform: translateY(-22px) scale(0.93); opacity: 0.55; }
.quote { padding: 26px 28px; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(31, 28, 41, 0.04), 0 18px 40px rgba(31, 28, 41, 0.06); }
.quote p { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 15px; line-height: 1.5; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.quote .quote-title { margin-bottom: 8px; color: var(--ink); font-size: 19px; font-weight: 600; line-height: 1.3; -webkit-line-clamp: 2; }

/* Stats */
.stats { background: radial-gradient(ellipse 55% 45% at 50% 28%, rgba(138, 120, 229, 0.22), transparent 70%), var(--dark); }
.stat-hero { font-size: clamp(84px, 15vw, 200px); font-weight: 700; line-height: 0.95; letter-spacing: -0.055em; }
.stat-label { margin-top: 20px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 760px; margin: 80px auto 0; padding-top: 44px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.stat-row strong { display: block; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(40px, 5vw, 60px); font-weight: 650; line-height: 1.1; letter-spacing: -0.04em; }
.stat-row span { display: block; margin-top: 6px; color: var(--dark-muted); font-size: 17px; }

/* Creators */
.creators { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.creator { display: block; overflow: hidden; border-radius: 26px; background: var(--bg-alt); transform: translateZ(0); }
.creator-cover { aspect-ratio: 1; overflow: hidden; }
.creator-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.creator:hover .creator-cover img { transform: scale(1.04); }
.creator-info { display: flex; align-items: center; gap: 12px; padding: 0 18px 20px; }
.creator-info .avatar { position: relative; width: 48px; height: 48px; margin-top: -16px; border: 3px solid var(--bg-alt); }
.creator-info div { min-width: 0; padding-top: 12px; }
.creator-info h3 { overflow: hidden; font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.creator-info p { color: var(--muted); font-size: 13px; }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover; background: #e6e4ee; }
.avatar-initial { width: 40px; height: 40px; color: var(--muted); font-size: 15px; font-weight: 600; }

/* Languages */
.languages { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 6vw, 88px); margin-top: 56px; }
.languages-art { display: block; overflow: hidden; border-radius: 30px; }
.languages-art img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--ease); }
.languages-art:hover img { transform: scale(1.03); }
.languages-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.languages-list li:first-child { border-top: 1px solid var(--line); }
.languages-list span { color: var(--muted); font-size: 14px; }
.languages-list strong { font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; line-height: 1.35; }

/* iPhone */
.iphone { padding-bottom: clamp(104px, 12vw, 160px); }
.app-icon { position: relative; width: 168px; margin: 0 auto 44px; }
.app-icon::before { content: ""; position: absolute; inset: 10% -20% -10%; z-index: -1; border-radius: 50%; background: var(--spectrum); filter: blur(56px); opacity: 0.5; }
.app-icon img { display: block; filter: drop-shadow(0 18px 30px rgba(31, 28, 41, 0.18)); }
.pill { display: inline-flex; margin: 32px 0 18px; padding: 9px 18px; border-radius: 980px; background: var(--bg-alt); color: var(--muted); font-size: 14px; font-weight: 600; }

/* Footer */
.footer { background: var(--bg-alt); color: var(--muted); font-size: 12px; line-height: 1.5; }
.footer-inner { max-width: var(--container); margin-inline: auto; padding: 40px var(--gutter) 28px; }
.footer-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 24px; padding-bottom: 28px; }
.footer h2 { margin-bottom: 10px; color: var(--ink); font-size: 12px; font-weight: 600; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { max-width: 860px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; }
.footer-bottom nav { display: flex; gap: 16px; }
.footer-bottom a[aria-current] { color: var(--ink); }

/* Explore */
.explore { padding-top: clamp(48px, 7vw, 88px); padding-bottom: 140px; }
.explore-head { display: grid; gap: 28px; margin-bottom: 48px; }
.search { display: flex; align-items: center; gap: 18px; max-width: 600px; }
.search-field { display: flex; flex: 1; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border: 1px solid transparent; border-radius: 14px; background: var(--bg-alt); color: var(--muted); transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.search-field:focus-within { border-color: rgba(75, 63, 211, 0.5); background: #fff; box-shadow: 0 0 0 4px rgba(75, 63, 211, 0.1); }
.search-field .icon { width: 17px; height: 17px; }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; -webkit-appearance: none; appearance: none; }
.search-field input::-webkit-search-cancel-button { display: none; }
.segments { display: flex; gap: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
.segments::-webkit-scrollbar { display: none; }
.segments a { flex: none; padding: 9px 18px; border-radius: 980px; background: var(--bg-alt); font-size: 14px; font-weight: 500; transition: background-color 0.2s, color 0.2s; }
.segments a:hover { background: #ebebf1; }
.segments a[aria-current] { background: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 40px 20px; }
.grid-compact { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.card { display: block; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 22px; background: var(--bg-alt); transform: translateZ(0); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card-media img { transform: scale(1.035); }
.card-media .cover-text { font-size: 22px; }
.card-title { display: -webkit-box; margin-top: 14px; overflow: hidden; font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card:hover .card-title { color: var(--accent); }
.card-meta { display: flex; gap: 6px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 13px; white-space: nowrap; }
.card-meta span:last-child { overflow: hidden; text-overflow: ellipsis; }
.card-meta span + span::before { content: "·"; margin-right: 6px; }
.play-badge { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(12, 11, 17, 0.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; }
.play-badge .icon { width: 13px; height: 13px; margin-left: 2px; }
.more { display: flex; justify-content: center; margin-top: 64px; }
.more .button[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.empty { padding: 72px 0; color: var(--muted); font-size: 21px; }

/* Prompt detail */
.prompt { padding-top: 28px; padding-bottom: 140px; }
.crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; color: var(--muted); font-size: 13px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .icon { width: 7px; height: 7px; }
.prompt-layout { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); align-items: start; gap: clamp(40px, 6vw, 80px); }
.prompt-media { position: sticky; top: 80px; }
.media-main { display: block; width: 100%; height: auto; max-height: calc(100vh - 150px); border-radius: 26px; background: var(--bg-alt); object-fit: contain; }
video.media-main { background: #000; }
.media-more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.media-more img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.media .cover-large { aspect-ratio: 4 / 5; border-radius: 26px; }
.media .cover-large .cover-text { font-size: clamp(32px, 4vw, 52px); -webkit-line-clamp: 7; }
.media figcaption { margin-top: 14px; color: var(--muted); font-size: 12px; text-align: center; }
.prompt-title { margin: 10px 0 18px; font-size: clamp(34px, 4vw, 50px); font-weight: 650; line-height: 1.08; letter-spacing: -0.035em; }
.prompt-summary { color: var(--muted); font-size: 19px; line-height: 1.5; }
.byline { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; }
.byline .avatar { width: 40px; height: 40px; }
.byline strong { display: block; font-size: 15px; font-weight: 600; }
.byline small { display: block; color: var(--muted); font-size: 13px; }
.byline:hover strong { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 32px; }
.actions .link { font-size: 15px; }
.copy-status { color: var(--muted); font-size: 14px; }
.prompt-block { margin-top: 40px; padding: 24px 28px 26px; border-radius: 26px; background: var(--bg-alt); }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.prompt-head h2 { color: var(--muted); font-size: 14px; font-weight: 600; }
.toggle { display: inline-flex; padding: 3px; border-radius: 980px; background: rgba(39, 36, 51, 0.07); }
.toggle button { padding: 6px 13px; border: 0; border-radius: 980px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(31, 28, 41, 0.1); }
.prompt-text { color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.68; letter-spacing: -0.005em; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.prompt-page.skill .prompt-text { font-family: var(--mono); font-size: 14px; }
.prompt-body.clamped .prompt-text { max-height: 380px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.prompt-expand { margin-top: 10px; padding: 6px 0; border: 0; background: none; color: var(--accent); font-size: 15px; font-weight: 500; cursor: pointer; }
.usage h2, .details h2 { margin: 48px 0 14px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.usage p { color: var(--ink-soft); line-height: 1.6; white-space: pre-line; }
.details dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.details dl > div:first-child { border-top: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { overflow-wrap: anywhere; }
.details dd a { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); }
.details dd a:hover { text-decoration: underline; }
.details code { font-family: var(--mono); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags a { display: block; padding: 7px 13px; border-radius: 980px; background: var(--bg-alt); font-size: 13px; transition: background-color 0.2s; }
.tags a:hover { background: #ebebf1; }
.report { margin-top: 36px; font-size: 13px; }
.report a { color: var(--muted); }
.report a:hover { color: var(--ink); text-decoration: underline; }
.related { margin-top: 112px; padding-top: 56px; border-top: 1px solid var(--line); }
.subhead { margin-bottom: 32px; font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.025em; }

/* Articles and messages */
.article { padding-top: clamp(56px, 8vw, 96px); padding-bottom: 140px; }
.article h1 { margin: 14px 0 18px; font-size: clamp(40px, 6vw, 64px); font-weight: 650; line-height: 1.05; letter-spacing: -0.04em; }
.article .intro { margin-bottom: 48px; color: var(--muted); font-size: clamp(19px, 2vw, 24px); line-height: 1.4; }
.article h2 { margin: 56px 0 14px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.article p, .article li { color: var(--ink-soft); font-size: 17px; line-height: 1.62; }
.article p + p { margin-top: 14px; }
.article ul { padding-left: 1.2em; list-style: disc; }
.article li + li { margin-top: 8px; }
.article p a, .article li a { color: var(--accent); }
.article p a:hover, .article li a:hover { text-decoration: underline; }
.article .button { margin: 20px 12px 4px 0; }
.article .note { margin-top: 18px; color: var(--muted); font-size: 14px; }
.article details { border-bottom: 1px solid var(--line); }
.article details:first-of-type { border-top: 1px solid var(--line); }
.article summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; cursor: pointer; list-style: none; }
.article summary::-webkit-details-marker { display: none; }
.article summary::after { content: "+"; flex: none; color: var(--muted); font-size: 28px; font-weight: 300; line-height: 1; transition: transform 0.3s var(--ease); }
.article details[open] summary::after { transform: rotate(45deg); }
.article details p { padding-bottom: 24px; color: var(--muted); }
.callout { margin-bottom: 36px; padding: 20px 24px; border-radius: 18px; background: var(--bg-alt); }
.callout strong { color: var(--muted); font-size: 13px; }
.report-id { margin-top: 4px; font-family: var(--mono); font-size: 17px; overflow-wrap: anywhere; }
.message { padding-top: clamp(96px, 14vw, 180px); padding-bottom: clamp(120px, 16vw, 200px); text-align: center; }
.message h1 { margin: 10px 0 18px; font-size: clamp(40px, 6vw, 64px); font-weight: 650; line-height: 1.05; letter-spacing: -0.04em; }
.message .intro { color: var(--muted); font-size: 21px; }

/* Scroll reveal (enabled by script; respects reduced motion) */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1068px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-image, .bento-text { grid-column: span 2; }
  .bento-video { grid-column: span 1; }
  .creators { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .creators li:nth-child(n + 7) { display: none; }
}

@media (max-width: 734px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .globalnav { height: 48px; }
  .globalnav-links { gap: 20px; }
  .lang summary span { display: none; }
  .wall { gap: 10px; }
  .wall-row ul { gap: 10px; padding-right: 10px; }
  .wall-row a { border-radius: 16px; }
  .section-head { margin-bottom: 28px; }
  .tile a { border-radius: 24px; }
  .tile h3 { font-size: 20px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 44px; }
  .bento-tile, .bento-image, .bento-video, .bento-text { grid-column: auto; min-height: 460px; border-radius: 26px; }
  .bento-text { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: 0; }
  .mosaic { top: auto; bottom: -30%; right: -8%; width: 78%; transform: rotate(-8deg); }
  .bento-image .bento-copy { max-width: none; }
  .bento-image { min-height: 560px; }
  .stat-row { margin-top: 56px; gap: 12px; }
  .stat-row span { font-size: 14px; }
  .creators { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
  .creators li:nth-child(n + 5) { display: none; }
  .creator { border-radius: 22px; }
  .creator-info { padding: 0 14px 16px; gap: 10px; }
  .creator-info .avatar { width: 40px; height: 40px; }
  .languages { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .languages-art img { aspect-ratio: 16 / 11; }
  .languages-list li { grid-template-columns: 104px minmax(0, 1fr); }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .card-media { border-radius: 18px; }
  .card-media .cover { padding: 16px; }
  .card-media .cover-text { font-size: 18px; }
  .card-title { font-size: 15px; }
  .prompt-layout { grid-template-columns: minmax(0, 1fr); }
  .prompt-media { position: static; }
  .media-main { max-height: 70vh; border-radius: 22px; }
  .prompt-block { margin-inline: calc(var(--gutter) * -0.5); padding: 20px; }
  .details dl > div { grid-template-columns: 96px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .wall-row { animation: none; }
  .wall { overflow-x: auto; }
  .hero-title, .hero-lead, .cta, .wall { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
