/* ============================================
   Homepage — Presence / Trust direction
   Layout & behavior overrides for .page-home
   Tokens live in brand.css
   ============================================ */

/* Soft below-fold reveal (hero stays immediate) */
.page-home .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.75s var(--hp-ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
              transform 0.75s var(--hp-ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.page-home .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.page-home .section-hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Soft staggered entry for hero copy */
.page-home .hero-content .hero-eyebrow,
.page-home .hero-content .hero-title,
.page-home .hero-content .hero-support,
.page-home .hero-content .hero-actions {
  opacity: 0;
  transform: translateY(10px);
  animation: hero-copy-enter 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-home .hero-content .hero-eyebrow { animation-delay: 0.02s; }
.page-home .hero-content .hero-title { animation-delay: 0.08s; }
.page-home .hero-content .hero-support { animation-delay: 0.16s; }
.page-home .hero-content .hero-actions { animation-delay: 0.24s; }

@keyframes hero-copy-enter {
  to {
    opacity: 1;
    transform: none;
  }
}

.page-home .reveal-delay-1 { transition-delay: 0.07s; }
.page-home .reveal-delay-2 { transition-delay: 0.14s; }
.page-home .reveal-delay-3 { transition-delay: 0.21s; }

/* — Hero — premium editorial: copy leads, presenter escorts —— */
.page-home .section-hero {
  position: relative;
  min-height: min(90vh, 860px);
  min-height: min(90dvh, 860px);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.page-home .hero-bg {
  background:
    /* Soft ambient field behind the escort (visual left / RTL end) */
    radial-gradient(ellipse 36% 52% at 12% 54%, rgba(77, 159, 255, 0.07) 0%, transparent 68%),
    linear-gradient(180deg, #0c1016 0%, var(--color-bg) 84%);
}

.page-home .hero-stage {
  position: relative;
  z-index: 1;
  width: var(--container-wide);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1.35rem, 4.5vw, 3rem);
  padding-block: calc(var(--header-height) + clamp(2.75rem, 7vh, 5.25rem))
                 clamp(3.5rem, 8vh, 5.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vh, 3.25rem);
  min-height: inherit;
  box-sizing: border-box;
}

/* Copy — primary field */
.page-home .hero-content {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  text-align: start;
  justify-self: start;
}

/* — Step 1: copy hierarchy & typography (layout unchanged) — */
.page-home .hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.page-home .hero-title {
  font-size: clamp(1.9375rem, 3.8vw, 3.125rem);
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 1.35rem;
  letter-spacing: -0.028em;
}

.page-home .hero-line {
  display: block;
}

.page-home .hero-line--setup {
  font-weight: 500;
  color: #dce4ef;
  letter-spacing: -0.022em;
}

.page-home .hero-line--accent {
  margin-top: 0.32em;
  font-size: 1.06em;
  font-weight: 700;
  letter-spacing: -0.032em;
  color: var(--color-accent);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: currentColor;
}

.page-home .hero-support {
  font-size: 1.0625rem;
  font-weight: 400;
  color: #a8b4c6;
  max-width: 32em;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.page-home .hero-actions .btn-primary {
  font-size: 1rem;
  font-weight: 500;
}

.page-home .hero-actions .text-link {
  font-size: 0.9375rem;
  font-weight: 500;
}

.page-home .hero-actions {
  margin-top: 0.2rem;
}

/* Presenter — secondary escort (never competing with headline) */
.page-home .hero-presenter {
  position: relative;
  z-index: 1;
  width: min(14.5rem, 52vw);
  aspect-ratio: 3 / 4;
  justify-self: center;
  pointer-events: none;
  isolation: isolate;
  background: transparent;
  opacity: 0;
  animation: hero-presenter-enter 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

.page-home .hero-presenter__glow {
  position: absolute;
  inset: -10% -22% -6% -22%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse 72% 80% at 50% 46%,
      rgba(77, 159, 255, 0.2) 0%,
      rgba(77, 159, 255, 0.09) 32%,
      rgba(77, 159, 255, 0.03) 56%,
      transparent 78%
    );
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
  animation: hero-presenter-glow 6s ease-in-out 0.6s infinite;
}

.page-home .hero-presenter__frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  /* Soft fade only under feet — keep hands, crescents, full silhouette visible */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 5%, #000 100%);
  mask-image: linear-gradient(to top, transparent 0%, #000 5%, #000 100%);
}

.page-home .hero-presenter__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  /* Soften emissive eye/glow dominance ~10–15% without regenerating the asset */
  filter: brightness(0.96) saturate(0.86) contrast(0.985);
  transform-origin: center center;
}

@keyframes hero-presenter-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 0.88;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-presenter-glow {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 0.92;
  }
}

/* Desktop / tablet: shared visual plane — text raised toward face line
   NOTE: homepage --container-wide resolves to 960px (styles.css :root).
   Track `minmax(Nrem, 0.fr)` collapses to Nrem when the fr max < Nrem,
   which capped the presenter at 12rem / 192px. Use a fixed escort track. */
@media (min-width: 768px) {
  .page-home .hero-stage {
    grid-template-columns: minmax(0, 1fr) 22.5rem;
    grid-template-areas: "copy escort";
    align-items: center;
    column-gap: clamp(2.5rem, 5vw, 3.75rem);
    row-gap: 0;
    padding-block: calc(var(--header-height) + clamp(3rem, 8vh, 5.75rem))
                   clamp(3.75rem, 9vh, 6.25rem);
    padding-inline-end: clamp(0.35rem, 1.5vw, 1rem);
  }

  .page-home .hero-content {
    grid-area: copy;
    max-width: 36rem;
    align-self: center;
    /* Lift copy to sit near character face / upper torso */
    margin-top: -2.75rem;
    padding-block: 0;
    padding-inline-end: 1.25rem;
  }

  .page-home .hero-presenter {
    grid-area: escort;
    justify-self: end;
    align-self: center;
    width: 22.5rem;
    max-width: 100%;
    margin-inline-end: 0.25rem;
    margin-bottom: 0;
  }

  .page-home .hero-title {
    margin-bottom: 1.5rem;
  }

  .page-home .hero-support {
    margin-bottom: 1.85rem;
  }
}

@media (min-width: 1100px) {
  .page-home .hero-stage {
    grid-template-columns: minmax(0, 1fr) 23.5rem;
    column-gap: clamp(2.75rem, 5.5vw, 4.25rem);
    padding-inline-end: 0.35rem;
  }

  .page-home .hero-content {
    max-width: 40rem;
    margin-top: -3.25rem;
  }

  .page-home .hero-presenter {
    width: 23.5rem;
    margin-inline-end: 0.15rem;
  }
}

/* — Hero signature mark (Orthographic Assembly × Convergence Spine) — */
.hero-signature {
  --sig-ease: cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.hero-sig__ray {
  stroke: rgba(148, 163, 184, 0.38);
  stroke-width: 0.625;
  stroke-linecap: square;
  transform-box: fill-box;
  transform-origin: 0 0;
  opacity: 0;
  animation: hero-sig-ray 1.15s var(--sig-ease) forwards;
}

.hero-sig__ray--1  { animation-delay: 0.12s; }
.hero-sig__ray--2  { animation-delay: 0.16s; }
.hero-sig__ray--3  { animation-delay: 0.20s; }
.hero-sig__ray--4  { animation-delay: 0.24s; }
.hero-sig__ray--5  { animation-delay: 0.28s; }
.hero-sig__ray--6  { animation-delay: 0.32s; }
.hero-sig__ray--7  { animation-delay: 0.36s; }
.hero-sig__ray--8  { animation-delay: 0.40s; }
.hero-sig__ray--9  { animation-delay: 0.44s; }
.hero-sig__ray--10 { animation-delay: 0.18s; }
.hero-sig__ray--11 { animation-delay: 0.38s; }
.hero-sig__ray--12 { animation-delay: 0.22s; }
.hero-sig__ray--13 { animation-delay: 0.34s; }
.hero-sig__ray--14 { animation-delay: 0.26s; }
.hero-sig__ray--15 { animation-delay: 0.30s; }
.hero-sig__ray--16 { animation-delay: 0.42s; }

@keyframes hero-sig-ray {
  0%   { opacity: 0;   transform: scale(0.2); }
  18%  { opacity: 0.42; transform: scale(1); }
  52%  { opacity: 0.28; transform: scale(0.72); }
  100% { opacity: 0;   transform: scale(0.04); }
}

.hero-sig__draw {
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: hero-sig-draw 0.62s var(--sig-ease) forwards;
}

@keyframes hero-sig-draw {
  to { stroke-dashoffset: 0; }
}

.hero-sig__draw--spine      { animation-delay: 1.05s; }
.hero-sig__draw--d1         { animation-delay: 1.28s; }
.hero-sig__draw--d2         { animation-delay: 1.48s; }
.hero-sig__draw--d3         { animation-delay: 1.68s; }
.hero-sig__draw--plan       { animation-delay: 1.38s; }
.hero-sig__draw--plan-cross-h { animation-delay: 1.58s; }
.hero-sig__draw--plan-cross-v { animation-delay: 1.62s; }
.hero-sig__draw--plan-arc   { animation-delay: 1.78s; }
.hero-sig__draw--sec-l      { animation-delay: 1.88s; }
.hero-sig__draw--sec-r      { animation-delay: 2.02s; }

.hero-sig__fade {
  opacity: 0;
  animation: hero-sig-fade 0.5s var(--sig-ease) forwards;
}

@keyframes hero-sig-fade {
  to { opacity: 1; }
}

.hero-sig__fade--reg        { animation-delay: 0.05s; }
.hero-sig__fade--spine-dash { animation-delay: 1.22s; }
.hero-sig__fade--ticks      { animation-delay: 2.28s; }
.hero-sig__fade--mark       { animation-delay: 2.42s; }
.hero-sig__fade--base       { animation-delay: 2.52s; }

.hero-sig__fade--hatch {
  animation-name: hero-sig-hatch-in;
  animation-delay: 2.62s;
  animation-duration: 0.55s;
}

@keyframes hero-sig-hatch-in {
  to { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sig__ray {
    opacity: 0;
    animation: none;
  }

  .hero-sig__draw {
    stroke-dashoffset: 0;
    animation: none;
  }

  .hero-sig__fade {
    opacity: 1;
    animation: none;
  }

  .hero-sig__fade--hatch {
    opacity: 0.85;
  }
}

.page-home .hero-visual__flow {
  animation: none;
}

/* — Shared links & buttons — */
.page-home .logo-name {
  color: var(--color-text);
}

.page-home .text-link {
  color: var(--color-accent);
  font-weight: 500;
}

.page-home .text-link:hover {
  color: var(--color-accent-hover);
}

.page-home .btn-primary {
  background: var(--color-accent);
  box-shadow: none;
  border-radius: var(--radius);
  font-weight: 500;
}

.page-home .btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: none;
  transform: none;
}

.page-home .eyebrow {
  color: var(--color-text-soft);
  letter-spacing: 0.1em;
}

/* — Conversation — */
.page-home .section-conversation {
  background: var(--color-bg-warm);
  border-block: 1px solid var(--color-border);
}

.page-home .section-conversation::before {
  content: none;
}

.page-home .section-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.page-home .section-title {
  letter-spacing: -0.025em;
}

.page-home .section-lead {
  color: #a0adbf;
  max-width: 34em;
}

.page-home .conversation-panel {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  backdrop-filter: none;
}

.page-home .question-item {
  padding: var(--space-md) var(--space-lg);
  font-size: 1rem;
  font-weight: 500;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.page-home .question-item::before {
  width: 3px;
  background: var(--color-accent);
  opacity: 0.75;
}

.page-home .punch-line {
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.75rem);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-inline-start: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
}

.page-home .punch-line p {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-align: start;
}

/* — Beats — */
.page-home .section-beats {
  background: var(--color-bg);
}

.page-home .beat {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease;
}

.page-home .beat:hover {
  border-color: var(--color-border-strong);
  box-shadow: none;
}

.page-home .beat-num {
  width: auto;
  height: auto;
  padding: 0;
  margin-bottom: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-soft);
  background: none;
  border: none;
  border-radius: 0;
}

.page-home .beat-title {
  font-size: 1.0625rem;
  font-weight: 600;
}

/* — Sora — */
.page-home .section-sora {
  background: var(--color-bg-warm);
  border-block: 1px solid var(--color-border);
}

.page-home .sora-panel {
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.page-home .status-block {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-status-bg);
  border: 1px solid rgba(77, 159, 255, 0.22);
  border-radius: var(--radius-lg);
}

.page-home .status-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.page-home .status-text {
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* — Outcomes — */
.page-home .outcome {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.page-home .outcome:hover {
  border-color: var(--color-border-strong);
}

.page-home .tech-proof {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-soft);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* — Audience — */
.page-home .section-audience {
  background: var(--color-bg-warm);
  border-block: 1px solid var(--color-border);
}

.page-home .audience-item {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.page-home .audience-item strong {
  color: var(--color-text);
  font-weight: 600;
}

/* — Contact — */
.page-home .section-contact {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.page-home .contact-panel {
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.page-home .contact-lead {
  color: #a8b6c9;
  line-height: 1.7;
  max-width: 28em;
  margin-inline: 0;
  text-align: start;
}

.page-home .north-star {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.page-home .north-star p {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  color: #a8b6c9;
}

.page-home .north-star-note {
  color: var(--color-text-soft);
  font-size: 0.8125rem;
}

/* — Footer & sticky CTA — */
.page-home .site-footer {
  background: var(--color-bg-warm);
  border-top: 1px solid var(--color-border);
}

.page-home .sticky-cta {
  background: var(--color-accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.page-home .sticky-cta:hover {
  background: var(--color-accent-hover);
}

/* — Responsive chrome / mobile hero stack — */
@media (max-width: 767px) {
  .page-home .header-inner {
    padding-inline: max(1.15rem, env(safe-area-inset-inline-start, 0px))
                    max(1.15rem, env(safe-area-inset-inline-end, 0px));
    gap: 0.75rem;
  }

  .page-home .logo {
    min-width: 0;
    flex: 0 1 auto;
    max-width: calc(100% - 3.25rem);
    padding-block: 0.15rem;
  }

  .page-home .logo-name {
    font-size: 1.0625rem;
    line-height: 1.2;
  }

  .page-home .logo-tag {
    font-size: 0.625rem;
    color: #94a3b8;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-home .section-hero {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }

  .page-home .hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    padding-block: calc(var(--header-height) + 2rem) 3rem;
    min-height: 0;
    align-content: center;
  }

  .page-home .hero-content {
    max-width: none;
    order: 0;
    margin-top: 0;
  }

  .page-home .hero-presenter {
    order: 1;
    width: min(16.5rem, 58vw);
    margin-inline: auto;
    margin-top: 0.65rem;
    opacity: 0.86;
  }

  .page-home .hero-title {
    font-size: clamp(1.75rem, 7.2vw, 2.125rem);
    margin-bottom: 1.15rem;
  }

  .page-home .hero-support {
    font-size: 1rem;
    color: #a8b4c6;
    margin-bottom: 1.5rem;
  }

  .page-home .hero-eyebrow {
    margin-bottom: 1.15rem;
  }

  .page-home .hero-actions {
    margin-top: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-presenter,
  .page-home .hero-presenter__img,
  .page-home .hero-presenter__glow,
  .page-home .hero-content .hero-eyebrow,
  .page-home .hero-content .hero-title,
  .page-home .hero-content .hero-support,
  .page-home .hero-content .hero-actions {
    animation: none;
  }

  .page-home .hero-presenter {
    opacity: 0.88;
    transform: none;
  }

  .page-home .hero-presenter__img {
    filter: brightness(0.96) saturate(0.86) contrast(0.985);
  }

  .page-home .hero-content .hero-eyebrow,
  .page-home .hero-content .hero-title,
  .page-home .hero-content .hero-support,
  .page-home .hero-content .hero-actions {
    opacity: 1;
    transform: none;
  }

  .page-home .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
