/* ============================================================
   Origin — v3 hero styles
   Loaded after landing.css; only new classes, no overrides of v1/v2.
   ============================================================ */

/* ---------- shared: circular symbol as header brand ---------- */
.brand-symbol { width: 34px; height: auto; display: block; transition: opacity 400ms var(--ease); }

/* ============================================================
   v3 — the type-anywhere oracle
   ============================================================ */

.hero-oracle {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24) clamp(16px, 6vw, 64px);
  cursor: text;
}

/* the hidden vessel that actually receives the typing */
.oracle-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0.01;
  border: 0; padding: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  pointer-events: none;
}

/* the question, spoken large */
.oracle-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 7.5vw, 104px);
  line-height: 1.16;
  text-align: center;
  color: var(--ink);
  max-width: 16ch;
  text-wrap: balance;
  overflow-wrap: break-word;
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.015);
  transition: opacity 700ms var(--ease), filter 700ms var(--ease), transform 900ms var(--ease);
}
body.oracle-typing .oracle-display { opacity: 1; filter: blur(0); transform: none; }

.oracle-caret {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  border-radius: 2px;
  background: var(--gold);
  animation: oracle-caret 1.15s var(--ease) infinite;
}
@keyframes oracle-caret {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 1; }
}

/* the invitation, at the bottom of the window */
.oracle-hint {
  position: absolute;
  bottom: clamp(84px, 14vh, 132px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
  max-width: 90vw;
  transition: opacity 600ms var(--ease);
  pointer-events: none;
}
.oracle-hint .line1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  margin: 0 0 var(--space-2);
}
.oracle-hint .line2 {
  font-family: var(--sans);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}
.oracle-hint .touch-only { display: none; }
body.oracle-typing .oracle-hint { opacity: 0; }

/* the sender — appears once a word exists */
.oracle-submit {
  position: absolute;
  bottom: clamp(72px, 12vh, 116px);
  left: 50%;
  transform: translate(-50%, 10px);
  width: 58px; height: 58px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--bg-card) 40%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease),
              background-color var(--dur-normal) var(--ease), color var(--dur-normal) var(--ease);
}
.oracle-submit.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.oracle-submit:hover { background: var(--accent); color: #FAF7F0; }

@media (hover: none) and (pointer: coarse) {
  .oracle-hint .mouse-only { display: none; }
  .oracle-hint .touch-only { display: block; }
}
@media (max-width: 640px) {
  .oracle-display { font-size: clamp(30px, 9.5vw, 44px); max-width: 100%; }
}

/* ============================================================
   v3b — left-aligned hero with scroll-morphing title
   ============================================================ */

.hero-left {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-24) 8vw;
}
.hero-left .hero-left-symbol {
  width: 64px; height: auto;
  margin-bottom: var(--space-8);
  color: var(--ink);
  animation: breathe 9s var(--ease) infinite;
}
.hero-left h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.16;
  letter-spacing: 0.005em;
  margin: 0 0 var(--space-10);
  max-width: 14ch;
  text-align: left;
  text-wrap: balance;
}

/* the reduced input: one quiet line */
.input-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: min(460px, 100%);
  border-bottom: 1px solid var(--rule);
  padding: 4px 2px 10px;
  transition: border-color var(--dur-normal) var(--ease);
}
.input-line:focus-within { border-color: var(--accent-soft); }
.input-line input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(16px, 1.9vw, 19px);
  padding: 6px 0;
  outline: none;
}
.input-line input::placeholder { color: var(--muted); font-style: italic; }
.input-line button {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--accent-deep);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.input-line button:hover { background: var(--accent); border-color: var(--accent); color: #FAF7F0; }

/* header title that receives the hero title on scroll */
.brand-morph { position: relative; display: inline-flex; align-items: center; min-height: 34px; }
.header-title {
  position: absolute;
  left: 0; top: 50%;
  transform: translate(0, calc(-50% + 7px));
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 450ms var(--ease), transform 450ms var(--ease);
  pointer-events: none;
}
body.title-docked .header-title { opacity: 1; transform: translate(0, -50%); }
body.title-docked .brand-morph .brand-symbol { opacity: 0; }

@media (max-width: 700px) {
  .hero-left { align-items: center; padding-left: var(--space-5); padding-right: var(--space-5); }
  .hero-left h1 { text-align: center; }
  .hero-left .hero-left-symbol { margin-left: auto; margin-right: auto; }
  /* the docked title is a desktop flourish — phone headers have no room */
  .header-title { display: none; }
  body.title-docked .brand-morph .brand-symbol { opacity: 1; }
}
