.grok { --silver: #dedbd5; --rule: #383531; --section-pad: clamp(48px, 6.4vw, 100px); }
.grok-skip { position: fixed; z-index: 40; left: var(--gutter); top: 10px; padding: 12px 18px; transform: translateY(-170%); color: var(--bg); background: var(--ink); }
.grok-skip:focus { transform: none; color: var(--bg); }
.grok main em { color: var(--silver); }
.grok main :is(h1,h2,h3,p,dd) { overflow-wrap: break-word; }
.grok main h2 { font-size: clamp(3rem, 5.6vw, 5.9rem); line-height: 1; letter-spacing: -.045em; }
.grok main :is(a,button,summary) { touch-action: manipulation; }
.grok-hero { position: relative; display: grid; align-items: center; isolation: isolate; min-height: clamp(420px, 41.67vw, 750px); background: #111113 url('/grok-pod/studio-edge.webp') center / 100% 100%; }
.hero-art { position: absolute; inset: 0; z-index: -1; display: flex; justify-content: center; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.grok-intro { padding-block: clamp(36px, 6vw, 86px); }
.grok-intro h1 { width: fit-content; font-size: clamp(4.6rem, 8.1vw, 9rem); line-height: .99; }
.grok-intro > p { max-width: min(39ch, 38vw); margin-top: 21px; color: #e1ded9; font-size: clamp(1.05rem, 1.4vw, 1.32rem); line-height: 1.53; text-wrap: pretty; }
.grok-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px; margin-top: 24px; }
.grok-actions .button { min-height: 48px; padding-inline: 23px; font-size: .94rem; }
.grok-link, .replay { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .95rem; font-weight: 600; text-decoration: underline; text-underline-offset: .36em; text-decoration-color: #938b82; }
.grok-link:hover, .replay:hover { color: var(--amber); }
.concept-section { padding-block: var(--section-pad); }
.concept-section + .concept-section { border-top: 1px solid var(--line); }
.grok-spread, .signal-console, .grok-faq, .scene {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: var(--column-gap);
}
.grok-spread { align-items: end; }
.grok-spread > p, .signal-copy > p, .signal-descriptions p, .grok-faq .faq-list p {
  max-width: 48ch; color: var(--muted); font-size: clamp(1rem, 1.22vw, 1.16rem); line-height: 1.58; text-wrap: pretty;
}
.expressions { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(8px, 1vw, 17px); margin-top: clamp(26px, 4vw, 56px); }
.expressions img { aspect-ratio: 1; border-radius: 4px; }
.expressions figcaption { padding-top: 10px; color: var(--ink); font-size: clamp(.88rem, 1.2vw, 1.06rem); }
.signal-section { padding-block: var(--section-pad); border-block: 1px solid var(--line); background: #111112; }
.signal-copy { grid-column: 2; grid-row: 1; }
.signal-copy > p { max-width: 38ch; margin-top: 19px; }
.signal-tabs, .scene-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 17px; margin-top: 23px; }
.signal-tabs button, .scene-tabs button { position: relative; border: 0; min-height: 44px; padding: 0 2px; background: none; color: #bfb9b3; font-size: .95rem; font-weight: 600; cursor: pointer; }
.signal-tabs button[aria-selected="true"], .scene-tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px var(--amber); }
.signal-tabs button:hover, .scene-tabs button:hover { color: var(--amber); }
.signal-descriptions { min-height: 4.9rem; margin-top: 15px; }
.signal-descriptions p { max-width: 38ch; margin-top: 7px; }
.signal-descriptions strong { color: var(--ink); }
.replay { border: 0; padding: 0; background: none; cursor: pointer; }
.signal-stage { position: relative; isolation: isolate; grid-column: 1; grid-row: 1; overflow: hidden; border-radius: 4px; }
.signal-stage img { width: 100%; aspect-ratio: 1; }
.signal-face { position: absolute; left: 49.4%; top: 46.5%; width: 48%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.eyes, .loading-dots { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8%; }
.eyes i { display: block; width: 7%; height: 20%; border-radius: 999px; background: #fffcf5; box-shadow: 0 0 5px #fffcf54d; transform: rotate(12deg); }
.eyes i + i { height: 16%; }
.loading-dots, .orbit, .alert-mark, .energy { display: none; }
.loading-dots { gap: 5%; }
.loading-dots i { width: 6%; aspect-ratio: 1; border-radius: 50%; background: #faf7f1; }
.signal-console:has(#signal-tab-loading[aria-selected="true"]) .eyes { display: none; }
.signal-console:has(#signal-tab-loading[aria-selected="true"]) .loading-dots { display: flex; }
.signal-console:has(#signal-tab-thinking[aria-selected="true"]) .eyes { transform: translate(-4%,-3%) rotate(-8deg); }
.signal-console:has(#signal-tab-thinking[aria-selected="true"]) .orbit { display: block; }
.orbit { position: absolute; inset: 34% 9%; transform: rotate(-24deg); border: 1px solid #86cfe5aa; border-top-color: #b9f7ff; border-radius: 50%; }
.orbit i { position: absolute; offset-path: ellipse(49% 49% at 50% 50%); offset-distance: 12%; width: 6%; aspect-ratio: 1; background: #bbfaff; border-radius: 50%; box-shadow: 0 0 8px #5ddfff; }
.signal-console:has(#signal-tab-attention[aria-selected="true"]) .eyes { transform: translateX(-12%); }
.signal-console:has(#signal-tab-attention[aria-selected="true"]) .alert-mark { display: block; }
.alert-mark { position: absolute; top: 28%; left: 68%; height: 22%; width: 5%; border-radius: 999px; background: #ffb958; transform: rotate(9deg); }
.alert-mark::after { content: ''; position: absolute; inset: 112% 0 auto; aspect-ratio: 1; border-radius: 50%; background: #ffb958; }
.signal-console:has(#signal-tab-energized[aria-selected="true"]) .eyes i { height: 24%; transform: rotate(25deg); }
.signal-console:has(#signal-tab-energized[aria-selected="true"]) .energy { display: block; }
.energy { position: absolute; inset: 14% 5%; border: 2px solid transparent; border-top-color: #c99dff; border-bottom-color: #779aff; border-radius: 50%; transform: rotate(-30deg); }
.energy i { position: absolute; width: 4%; aspect-ratio: 1; border-radius: 45%; background: #bca2ff; box-shadow: 0 0 7px #bd84ff; }
.energy i:nth-child(1) { top: 2%; left: 20%; }
.energy i:nth-child(2) { right: 5%; bottom: 18%; }
.energy i:nth-child(3) { right: -2%; bottom: 32%; width: 2%; }
@media (prefers-reduced-motion: no-preference) {
  .signal-console:has(#signal-tab-listening[aria-selected="true"]) .eyes i { animation: greet 1.4s 2; }
  .loading-dots i { animation: dot-rise .85s 4; }
  .loading-dots i:nth-child(2) { animation-delay: .14s; }
  .loading-dots i:nth-child(3) { animation-delay: .28s; }
  .orbit i { animation: trace 2s ease-in-out 2; }
  .alert-mark { animation: nod .7s ease 3; transform-origin: center bottom; }
  .energy { animation: charge 1.4s ease-in-out 3; }
  .signal-face :is(.eyes i, .loading-dots i, .orbit i, .alert-mark, .energy) { animation-fill-mode: forwards; }
  @keyframes greet { 0%, 49%, 65%, 100% { scale: 1; } 56% { scale: 1 .22; } }
  @keyframes dot-rise { 0%, 100% { opacity: .45; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-60%); } }
  @keyframes trace { from { offset-distance: 12%; } to { offset-distance: 112%; } }
  @keyframes nod { 50% { transform: rotate(-4deg) translateY(-8%); } }
  @keyframes charge { 50% { transform: rotate(-56deg) scale(.89,1.08); opacity: .67; } }
}
@media (prefers-reduced-motion: reduce) { .replay { display: none; } }
.signal-studies { margin-top: clamp(30px, 4.2vw, 65px); }
.signal-studies img { width: 100%; height: auto; border-radius: 4px; }
.signal-studies figcaption { display: flex; justify-content: space-between; gap: 10px; color: var(--ink); }
.signal-studies figcaption span { color: var(--muted); }
.scene-book { margin-top: clamp(24px, 3.5vw, 52px); }
.scene-tabs { margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.scene-tabs button { padding-inline: 5px; }
.scene img { aspect-ratio: 3 / 2; height: auto; border-radius: 4px; }
.scene-text h3 { font-size: clamp(1.85rem, 3.2vw, 3.2rem); line-height: 1.05; }
.scene-text dl { margin-top: 17px; }
.scene-text dl > div + div { margin-top: 12px; }
.scene-text dt { margin-bottom: 4px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.scene-text dd { max-width: 42ch; font: 400 clamp(1.18rem,1.55vw,1.55rem)/1.36 'Instrument Serif', Georgia, serif; }
.scene-text > p { max-width: 50ch; margin-top: 15px; color: var(--muted); font-size: .875rem; line-height: 1.52; }
.scene-book:not([data-enhanced]) .scene + .scene { margin-top: 38px; }
.grok-faq { align-items: start; padding-block: var(--section-pad); border-top: 1px solid var(--line); }
.grok-faq .faq-list details { padding: 0; }
.grok-faq .faq-list summary { min-height: 54px; padding-block: 10px; }
.grok-faq .faq-list summary:hover, .grok-faq .faq-list a:hover { color: var(--amber); }
.grok-faq .faq-list p { max-width: 57ch; margin: 0 12px 16px 0; font-size: 1rem; }
.grok-faq a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
@media (min-width: 1800px) {
  .hero-art img { width: auto; max-width: 100%; height: 100%; mask-image: linear-gradient(90deg, transparent, black 6% 94%, transparent); }
}
@media (max-width: 1050px) {
  .expressions { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px 14px; }
}
@media (max-width: 760px) {
  .grok-hero { display: block; min-height: 0; background: var(--bg); }
  .hero-art { position: relative; z-index: auto; aspect-ratio: 820 / 669; }
  .hero-art img { object-fit: contain; }
  .grok-intro { padding-block: 20px 34px; }
  .grok-intro h1 { font-size: clamp(3.8rem,14vw,5.1rem); }
  .grok-intro > p { max-width: 39ch; margin-top: 13px; }
  .grok-actions { margin-top: 18px; }
  .grok-spread, .grok-faq, .signal-console, .scene { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .grok-spread { gap: 14px; }
  .signal-copy, .signal-stage { grid-column: 1; grid-row: auto; }
  .signal-console { align-items: start; gap: 16px; }
  .signal-copy > p { margin-top: 14px; }
  .signal-tabs { gap: 2px 13px; margin-top: 13px; }
  .signal-descriptions { min-height: 3.4rem; margin-top: 8px; }
  .signal-studies figcaption { flex-wrap: wrap; }
  .scene-tabs { gap: 2px 12px; margin-bottom: 15px; }
}
@media (max-width: 520px) {
  .expressions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 10px; }
}
