/* ════════════════════════════════════════════════
   ALTERIDAD v2 — Wilson × MindJoin
   ════════════════════════════════════════════════ */

:root {
  /* color */
  --bg:         #0a0a0a;
  --ink:        #e8e4de;
  --ink-muted:  rgba(232, 228, 222, 0.45);
  --ink-dim:    rgba(232, 228, 222, 0.18);
  --ink-hair:   rgba(232, 228, 222, 0.08);
  --red:        #c41e1e;
  --red-tint:   rgba(196, 30, 30, 0.07);
  --cyan:       #4da8c4;
  --cyan-tint:  rgba(77, 168, 196, 0.07);

  /* type */
  --font-mono:  'Space Mono', ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
  --font-serif: 'Cormorant Garamond', 'Garamond', 'Georgia', serif;
  --font-sans:  'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* layout */
  --max: 1100px;
  --gutter: 24px;
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }


/* ════════════════════════════════════════════════
   LANGUAGE TOGGLE
   ════════════════════════════════════════════════ */
.lang-header {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 100;
  display: flex;
  gap: 2px;
}
.lang-btn {
  appearance: none;
  border: 1px solid var(--ink-hair);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink-muted);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: all .3s ease;
}
.lang-btn:first-child { border-right: none; }
.lang-btn[aria-pressed="true"] {
  background: rgba(232, 228, 222, 0.08);
  color: var(--ink);
}
.lang-btn:hover { background: rgba(232, 228, 222, 0.05); }

/* ════════════════════════════════════════════════
   ACT SYSTEM — SHARED
   ════════════════════════════════════════════════ */
.act {
  position: relative;
  overflow: hidden;
}
.act-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ════════════════════════════════════════════════
   ACT 0 · THE FIELD (HERO)
   ════════════════════════════════════════════════ */
.act-field {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: auto;
}

.field-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--gutter);
}

.wordmark {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.8rem, 11vw, 9rem);
  letter-spacing: 0.25em;
  line-height: 1;
  opacity: 0;
  animation: wordmark-in 2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes wordmark-in {
  from {
    opacity: 0;
    letter-spacing: 0.5em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.25em;
  }
}

.tagline {
  margin: 2rem 0 0;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  animation: fade-in 1.5s ease 1.2s forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}

/* respect [hidden] on flex elements */
[hidden] { display: none !important; }

/* watcher eye glyph */
.watcher-eye {
  color: var(--ink-muted);
  flex-shrink: 0;
}
.watcher-eye .watcher-pupil {
  transition: cx 0.15s ease-out, cy 0.15s ease-out;
}

/* ════════════════════════════════════════════════
   ACT I · THE THESIS
   ════════════════════════════════════════════════ */
.act-thesis {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.thesis {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.thesis-support {
  margin: 2.5rem 0 0;
  max-width: 52ch;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.75;
}

.metadata-line {
  margin: 4rem 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.watcher-glyph {
  color: var(--red);
  font-size: 14px;
  animation: pulse-glyph 4s ease-in-out infinite;
}
.meta-dot {
  opacity: 0.4;
}

@keyframes pulse-glyph {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ════════════════════════════════════════════════
   ACT II · THE DOMAINS
   ════════════════════════════════════════════════ */
.act-domains {
  padding: 12rem 0 10rem;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    rgba(42, 10, 10, 0.25) 20%,
    rgba(30, 8, 8, 0.15) 45%,
    var(--bg) 50%,
    rgba(8, 18, 30, 0.2) 65%,
    rgba(12, 20, 40, 0.15) 90%,
    var(--bg) 100%
  );
}

.tier {
  margin-bottom: 6rem;
}
.tier:last-child { margin-bottom: 0; }

.tier-label {
  margin: 0 0 2rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tier-warm .tier-label { color: var(--red); }
.tier-cool .tier-label { color: var(--cyan); }

.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink-hair);
}

.domain-card {
  padding: 2.5rem;
  background: var(--bg);
  transition: background .5s ease;
}
.tier-warm .domain-card:hover { background: var(--red-tint); }
.tier-cool .domain-card:hover { background: var(--cyan-tint); }

.domain-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.domain-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ════════════════════════════════════════════════
   ACT III · THE FEDERATION
   ════════════════════════════════════════════════ */
.act-federation {
  padding: 8rem 0;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    #0d0d0d 50%,
    var(--bg) 100%
  );
}

.section-label {
  margin: 0 0 3rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.ventures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink-hair);
}

.venture-card {
  padding: 2.5rem;
  background: var(--bg);
  transition: background .5s ease;
}
.venture-card:hover { background: rgba(232, 228, 222, 0.02); }

.venture-forming {
  border-left: 1px dashed var(--ink-dim);
  background: var(--bg);
}

.venture-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.status-live { color: var(--cyan); }

.venture-name {
  margin: 0.75rem 0 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.venture-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  margin-top: 0.25rem;
}

.venture-desc {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}

.venture-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--ink-hair);
  padding-bottom: 2px;
  transition: all .3s ease;
}
.venture-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  text-decoration: none;
}

/* ════════════════════════════════════════════════
   ACT IV · CONTACT
   ════════════════════════════════════════════════ */
.act-contact {
  padding: 12rem 0 4rem;
}

.contact-note {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--ink-muted);
}

.email-btn {
  appearance: none;
  display: inline-block;
  margin: 2.5rem 0 0;
  padding: 12px 24px;
  border: 1px solid var(--ink-hair);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all .3s ease;
}
.email-btn:hover {
  border-color: var(--ink-muted);
  background: rgba(232, 228, 222, 0.04);
}

.footer-line {
  margin: 8rem 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}
.watcher-footer {
  color: var(--ink-dim);
  width: 12px;
  height: 12px;
}

/* ════════════════════════════════════════════════
   ASK ALTERIDAD (SOFTWARE LAYER)
   ════════════════════════════════════════════════ */
.ask-dock {
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 120;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--ink-hair);
  background:
    linear-gradient(135deg, rgba(18, 18, 18, 0.92), rgba(10, 10, 10, 0.84)),
    linear-gradient(180deg, rgba(196, 30, 30, 0.06), rgba(77, 168, 196, 0.04));
  color: var(--ink);
  padding: 12px 14px 12px 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
  overflow: hidden;
}

.ask-dock::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 22%, rgba(196, 30, 30, 0.18), transparent 36%),
    radial-gradient(circle at 84% 80%, rgba(77, 168, 196, 0.12), transparent 38%);
  pointer-events: none;
}

.ask-dock-sigil {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(232, 228, 222, 0.95), rgba(232, 228, 222, 0.5));
  box-shadow:
    0 0 0 5px rgba(232, 228, 222, 0.05),
    0 0 28px rgba(232, 228, 222, 0.15);
}

.ask-dock-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  min-width: 0;
}

.ask-dock-kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.ask-dock-label {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.ask-dock:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 228, 222, 0.22);
  background:
    linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(8, 8, 8, 0.9)),
    linear-gradient(180deg, rgba(196, 30, 30, 0.08), rgba(77, 168, 196, 0.05));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36);
}

.ask-dock-shortcut {
  position: relative;
  align-self: end;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ask-panel {
  position: fixed;
  left: 28px;
  bottom: 98px;
  z-index: 130;
  width: min(720px, calc(100vw - 56px));
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.ask-panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ask-panel-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(68vh, 660px);
  border: 1px solid rgba(232, 228, 222, 0.08);
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.94), rgba(8, 8, 8, 0.96)),
    linear-gradient(180deg, rgba(196, 30, 30, 0.04), rgba(77, 168, 196, 0.04));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.46);
  overflow: hidden;
}

.ask-panel-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(196, 30, 30, 0.12), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(77, 168, 196, 0.1), transparent 32%);
  pointer-events: none;
}

.ask-panel-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232, 228, 222, 0.03);
  pointer-events: none;
}

.ask-panel-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 24px 24px 18px;
}

.ask-panel-heading {
  min-width: 0;
}

.ask-panel-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.ask-panel-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.ask-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  padding: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ask-panel-subtitle {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 48ch;
}

.ask-panel-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.ask-context {
  padding: 12px 14px;
  border: 1px solid var(--ink-hair);
  background: rgba(255, 255, 255, 0.02);
  min-width: 158px;
}

.ask-context-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.ask-context-value {
  display: block;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.05;
}

.ask-close:hover {
  color: var(--ink);
}

.ask-panel-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 0;
  padding: 0 24px 24px;
}

.ask-panel-stage {
  position: relative;
  min-height: 0;
  border-top: 1px solid var(--ink-hair);
  border-bottom: 1px solid var(--ink-hair);
  padding: 18px 8px 18px 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 168, 196, 0.38) transparent;
}

.ask-panel-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 36%, rgba(255, 255, 255, 0.015));
  pointer-events: none;
}

.ask-panel-stage::-webkit-scrollbar {
  width: 10px;
}

.ask-panel-stage::-webkit-scrollbar-track {
  background: transparent;
}

.ask-panel-stage::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(77, 168, 196, 0.38);
  background-clip: padding-box;
}

.ask-form {
  position: relative;
  margin: 0;
  border: 1px solid rgba(232, 228, 222, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015));
  padding: 16px 16px 14px;
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}

.ask-form:focus-within {
  border-color: rgba(77, 168, 196, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(77, 168, 196, 0.03));
  transform: translateY(-1px);
}

.ask-input {
  width: 100%;
  resize: none;
  min-height: 90px;
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  outline: none;
}

.ask-input::placeholder {
  color: var(--ink-dim);
}

.ask-form-row {
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.ask-form-hint {
  margin: 0;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ask-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ask-send,
.ask-reset {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.ask-send {
  color: var(--cyan);
}

.ask-send:hover,
.ask-reset:hover {
  color: var(--ink);
}

.ask-send:disabled,
.ask-reset:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ask-intents {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
}

.ask-intents:empty {
  display: none;
}

.ask-intents::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.ask-intent {
  appearance: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  width: 100%;
  border: none;
  border-top: 1px solid var(--ink-hair);
  background: transparent;
  color: var(--ink);
  padding: 14px 0;
  cursor: pointer;
  text-align: left;
}

.ask-intent-copy {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  transition: transform .22s ease, color .22s ease;
}

.ask-intent-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

.ask-intent:hover .ask-intent-copy {
  transform: translateX(4px);
  color: var(--cyan);
}

.ask-response {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.ask-response:empty {
  display: none;
  margin-top: 0;
}

.ask-message {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  max-width: none;
  border-top: 1px solid var(--ink-hair);
  background: transparent;
  padding: 14px 0;
}

.ask-message-user {
  border-color: rgba(77, 168, 196, 0.14);
}

.ask-message-assistant {
  border-color: rgba(232, 228, 222, 0.08);
}

.ask-message-label {
  margin: 0;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ask-message-user .ask-message-label {
  color: rgba(77, 168, 196, 0.82);
}

.ask-message-body {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.ask-message-user .ask-message-body {
  color: var(--ink-muted);
}

.ask-message.is-streaming .ask-message-body::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 4px;
  transform: translateY(2px);
  background: rgba(77, 168, 196, 0.7);
  animation: ask-caret 0.9s steps(1) infinite;
}

@keyframes ask-caret {
  50% {
    opacity: 0;
  }
}

.ask-actions {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: grid;
  gap: 0;
}

.ask-actions:empty {
  display: none;
}

.ask-actions::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.ask-action {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: none;
  border-top: 1px solid var(--ink-hair);
  background: transparent;
  color: var(--ink-muted);
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
}

.ask-action::after {
  color: var(--ink-dim);
}

.ask-action[data-action-type="prompt"]::after,
.ask-action[data-action-type="link"]::after {
  content: '→';
}

.ask-action[data-action-type="external"]::after {
  content: '↗';
}

.ask-action[data-action-type="subscribe"]::after {
  content: '+';
}

.ask-action:hover {
  color: var(--cyan);
}

.ask-subscribe {
  width: 100%;
  margin-top: 10px;
  border-top: 1px solid var(--ink-hair);
  padding: 14px 0 0;
}

.ask-subscribe-copy {
  margin: 0 0 8px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ask-subscribe-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.ask-subscribe-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--ink-hair);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-size: 13px;
}

.ask-subscribe-submit {
  appearance: none;
  border: 1px solid rgba(77, 168, 196, 0.35);
  background: rgba(77, 168, 196, 0.08);
  color: var(--cyan);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.ask-subscribe-status {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.ask-sources {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ask-source;
  color: var(--ink-muted);
  font-size: 12px;
  display: grid;
  gap: 6px;
}

.ask-sources:empty {
  display: none;
}

.ask-sources::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.ask-sources li {
  position: relative;
  padding-left: 32px;
}

.ask-sources li::before {
  counter-increment: ask-source;
  content: '[' counter(ask-source) ']';
  position: absolute;
  left: 0;
  color: var(--ink-dim);
  font-family: var(--font-mono);
}

.ask-sources a {
  color: var(--cyan);
}

.ask-error {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: #ff8d8d;
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ════════════════════════════════════════════════
   SCROLL REVEAL — CHOREOGRAPHED
   ════════════════════════════════════════════════ */

/* base: fade up (default) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* tier labels: slide from left */
.tier-label.reveal {
  transform: translateX(-20px);
}
.tier-label.reveal.visible {
  transform: none;
}

/* section labels: slide from left */
.section-label.reveal {
  transform: translateX(-20px);
}
.section-label.reveal.visible {
  transform: none;
}

/* thesis: scale up slightly */
.thesis.reveal {
  transform: scale(0.97) translateY(20px);
  transition-duration: 1.4s;
}
.thesis.reveal.visible {
  transform: none;
}

/* metadata line: slow fade, no movement */
.metadata-line.reveal {
  transform: none;
  transition-duration: 2s;
  transition-delay: 0.3s;
}

/* contact note: gentle */
.contact-note.reveal {
  transform: none;
  transition-duration: 1.6s;
}

/* stagger domain cards within grid */
.domain-grid .reveal:nth-child(1) { transition-delay: 0s; }
.domain-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.domain-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.domain-grid .reveal:nth-child(4) { transition-delay: 0.36s; }

/* stagger venture cards */
.ventures-grid .reveal:nth-child(1) { transition-delay: 0s; }
.ventures-grid .reveal:nth-child(2) { transition-delay: 0.15s; }

/* thesis support text staggers after heading */
.thesis-support.reveal { transition-delay: 0.2s; }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 860px) {
  :root {
    --gutter: 20px;
  }

  .lang-header {
    top: 16px;
    right: 16px;
  }

  .wordmark {
    font-size: clamp(2.2rem, 10vw, 4rem);
    letter-spacing: 0.15em;
  }
  @keyframes wordmark-in {
    from { opacity: 0; letter-spacing: 0.3em; }
    to   { opacity: 1; letter-spacing: 0.15em; }
  }

  .act-thesis {
    min-height: auto;
    padding: 6rem 0 8rem;
  }

  .thesis {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .act-domains {
    padding: 6rem 0;
  }

  .domain-grid,
  .ventures-grid {
    grid-template-columns: 1fr;
  }

  .tier { margin-bottom: 4rem; }

  .act-federation { padding: 5rem 0; }

  .venture-forming { border-left: none; border-top: 1px dashed var(--ink-dim); }

  .act-contact { padding: 6rem 0 3rem; }
  .footer-line { margin-top: 4rem; }

  .ask-dock {
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-width: 0;
  }

  .ask-panel {
    left: 16px;
    right: 16px;
    bottom: 88px;
    width: auto;
  }

  .ask-panel-shell {
    height: min(72vh, 700px);
  }

  .ask-panel-header {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px 16px;
  }

  .ask-panel-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .ask-context {
    min-width: 0;
  }

  .ask-panel-body {
    padding: 0 20px 20px;
  }

  .ask-message {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
  }

  .ask-form-row {
    align-items: flex-start;
  }

  .ask-form-actions {
    width: 100%;
    justify-content: space-between;
  }

  .ask-subscribe-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .domain-card { padding: 1.75rem; }
  .venture-card { padding: 1.75rem; }

  .ask-dock {
    gap: 12px;
    padding: 11px 12px;
  }

  .ask-dock-kicker {
    display: none;
  }

  .ask-dock-label {
    font-size: 1.15rem;
  }

  .ask-panel-title {
    font-size: 1.8rem;
  }

  .ask-message {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ask-message-label {
    font-size: 9px;
  }
}
