/* ============================================================
   Homepage-specific styles (v2 — bold confident sans)
   Inspired by Anthropic.com / Stripe / Vercel marketing
   Universal tokens & shared components live in _alt_styles.html
   ============================================================ */

/* Pull preview banner closer to header */
body:has(.alt-page) .preview-banner {
  margin-top: 1rem;
}

/* ----- Hero ----- */
.alt-page .hero {
  position: relative;
  padding: 3rem 0 5rem;
}

@media (min-width: 768px) {
  .alt-page .hero {
    padding: 5rem 0 8rem;
  }
}

.alt-page .hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .alt-page .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 5rem;
  }
}

.alt-page .hero-title {
  font-size: clamp(2.4rem, 7vw, 6rem);
}

/* Larger CTAs on hero only */
.alt-page .hero .cta {
  padding: 0.95rem 1.5rem;
  font-size: 0.95rem;
  gap: 0.65rem;
}

/* ----- Hero visual collage ----- */
.alt-page .hero-visual {
  position: relative;
  width: 100%;
  min-height: 30rem;
  max-width: 36rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .alt-page .hero-visual {
    min-height: 28rem;
  }
}

@media (min-width: 1024px) {
  .alt-page .hero-visual {
    min-height: 32rem;
  }
}

.alt-page .mesh {
  position: absolute;
  inset: 0;
  filter: blur(60px);
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}

.alt-page .mesh-blob {
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 50%;
}

.alt-page .mesh-blob.blob-1 { top: 5%; left: 0; background: var(--coral); }
.alt-page .mesh-blob.blob-2 { top: 0; right: 0; background: var(--peach); }
.alt-page .mesh-blob.blob-3 { bottom: 0; left: 20%; background: var(--accent); opacity: 0.7; }
.alt-page .mesh-blob.blob-4 { bottom: 10%; right: 5%; background: var(--lilac); }

.alt-page .hero-window {
  position: absolute;
  z-index: 2;
  border-radius: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 60px -20px rgba(26, 25, 22, 0.25),
    0 60px 120px -40px rgba(35, 84, 255, 0.18);
  overflow: hidden;
}

.alt-page .hero-window-main {
  top: 6%;
  left: 4%;
  right: 4%;
  bottom: 26%;
}

.alt-page .hero-window-float {
  bottom: 2%;
  right: 2%;
  width: 60%;
  max-width: 18rem;
  transform: rotate(2deg);
}

@media (max-width: 639px) {
  .alt-page .hero-window-main {
    bottom: 42%;
  }
  .alt-page .hero-window-float {
    width: 62%;
    max-width: 15rem;
    right: 4%;
    bottom: 3%;
  }
}

.alt-page .win-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  background: rgba(26, 25, 22, 0.03);
}

.alt-page .win-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--rule-strong);
  flex-shrink: 0;
}

.alt-page .win-title {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-faint);
  margin-left: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alt-page .win-body {
  padding: 1rem 1.1rem;
}

/* Mini dashboard inside main window */
.alt-page .mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.alt-page .mini-kpi {
  border: 1px solid var(--rule);
  border-radius: 0.65rem;
  padding: 0.5rem 0.6rem;
  background: var(--paper);
  min-width: 0;
}

.alt-page .mini-kpi-label {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.alt-page .mini-kpi-value {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 0.15rem;
}

.alt-page .mini-kpi-delta {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--success);
}

.alt-page .mini-chart {
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  padding: 0.65rem;
  background: var(--paper);
}

.alt-page .mini-chart-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.alt-page .mini-chart-svg {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 0.4rem;
}

/* Floating window — fake roadmap */
.alt-page .roadmap-row {
  display: grid;
  grid-template-columns: 3.5rem repeat(8, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.45rem 0.6rem 0.45rem 0.75rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.6rem;
}

.alt-page .roadmap-row + .roadmap-row {
  border-top: 1px solid var(--rule);
}

.alt-page .roadmap-label {
  color: var(--ink-soft);
  font-size: 0.58rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alt-page .roadmap-bar {
  grid-column: var(--from) / var(--to);
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--accent);
  opacity: 0.92;
}

.alt-page .roadmap-bar.bar-coral { background: var(--coral); }
.alt-page .roadmap-bar.bar-ink { background: var(--ink); }

/* ----- Stat strip overrides specific to homepage (full-bleed look) ----- */
.alt-page .stat-strip-hero {
  border-radius: 0;
  background: var(--paper);
}

/* ----- Bento (capabilities) ----- */

.alt-page .bento {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .alt-page .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: minmax(13rem, auto);
  }

  .alt-page .tile.t-feature { grid-column: span 3; grid-row: span 2; }
  .alt-page .tile.t-ai      { grid-column: span 3; grid-row: span 2; }
  .alt-page .tile.t-web     { grid-column: span 2; }
  .alt-page .tile.t-android { grid-column: span 2; }
  .alt-page .tile.t-docs    { grid-column: span 2; }
  .alt-page .tile.t-ops     { grid-column: span 3; }
  .alt-page .tile.t-devops  { grid-column: span 3; }
}

.alt-page .tile {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.alt-page .tile:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
  box-shadow: 0 24px 50px -28px rgba(26, 25, 22, 0.18);
}

.alt-page .tile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.alt-page .tile-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.alt-page .tile-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.alt-page .tile-copy {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.alt-page .tile-visual {
  margin-top: auto;
  position: relative;
}

/* Feature tile (dark, large) */
.alt-page .tile.t-feature {
  background: linear-gradient(135deg, #1a1916 0%, #232120 100%);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.06);
  padding: 1.85rem;
}

.alt-page .tile.t-feature .tile-title {
  color: var(--paper);
  font-size: 1.85rem;
}

.alt-page .tile.t-feature .tile-copy,
.alt-page .tile.t-feature .tile-num {
  color: rgba(255, 255, 255, 0.65);
}

/* Feature mini-roadmap */
.alt-page .feature-board {
  margin-top: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem;
}

.alt-page .feature-board-head {
  display: grid;
  grid-template-columns: 4rem repeat(8, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0 0.5rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
}

.alt-page .feature-board .roadmap-row {
  padding: 0.5rem 0.5rem;
}

.alt-page .feature-board .roadmap-row + .roadmap-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.alt-page .feature-board .roadmap-label {
  color: rgba(255, 255, 255, 0.7);
}

.alt-page .feature-badge {
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 87, 51, 0.18);
  color: #ffb38a;
  font-weight: 600;
}

.alt-page .feature-meta {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.alt-page .feature-meta li {
  display: grid;
  gap: 0.25rem;
}

.alt-page .feature-meta-key {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.alt-page .feature-meta-val {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--paper);
}

/* AI Enablement feature tile */
.alt-page .tile.t-ai {
  padding: 1.85rem;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 90% 10%, rgba(71, 215, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #11172a, #172658);
  color: var(--paper);
}

.alt-page .tile.t-ai .tile-title {
  color: var(--paper);
  font-size: 1.85rem;
}

.alt-page .tile.t-ai .tile-copy,
.alt-page .tile.t-ai .tile-num {
  color: rgba(255,255,255,0.66);
}

.alt-page .tile-link {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.alt-page .product-name a:hover,
.alt-page .product-domain a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ----- FAQ ----- */
.alt-page .faq-list {
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 1024px) {
  .alt-page .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

.alt-page .faq-item {
  border: 1px solid var(--rule);
  border-radius: 1.1rem;
  background: var(--paper);
  transition: border-color 0.2s ease;
}

.alt-page .faq-item[open] { border-color: var(--rule-strong); }

.alt-page .faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.alt-page .faq-item summary::-webkit-details-marker { display: none; }

.alt-page .faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--mono);
  color: var(--ink-faint);
  transition: transform 0.2s ease;
}

.alt-page .faq-item[open] summary::after { transform: rotate(45deg); }

.alt-page .faq-answer {
  padding: 0 1.25rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.alt-page .faq-answer a {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--accent);
  font-weight: 600;
}

.alt-page .ai-tile-link {
  color: #71dfff;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.alt-page .ai-mini-flow {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.alt-page .ai-mini-step {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.7rem;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.85rem;
  background: rgba(255,255,255,0.05);
}

.alt-page .ai-mini-step + .ai-mini-step::before {
  position: absolute;
  bottom: 100%;
  left: 1.72rem;
  width: 1px;
  height: 0.7rem;
  background: rgba(71,215,255,0.5);
  content: "";
}

.alt-page .ai-mini-num {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.6rem;
  background: rgba(71,215,255,0.12);
  color: #71dfff;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.alt-page .ai-mini-title {
  color: var(--paper);
  font-size: 0.84rem;
  font-weight: 650;
}

.alt-page .ai-mini-state {
  color: #c9f27b;
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
}

/* AI Enablement homepage teaser */
.alt-page .ai-teaser {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(35,84,255,0.45), transparent 32%),
    #11172a;
  color: #fff;
}

.alt-page .ai-teaser::after {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 2rem 2rem;
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
  content: "";
}

.alt-page .ai-teaser-head,
.alt-page .ai-teaser-stages,
.alt-page .ai-teaser-actions {
  position: relative;
  z-index: 1;
}

.alt-page .ai-teaser-head {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .alt-page .ai-teaser-head {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.8fr);
    align-items: end;
  }
}

.alt-page .ai-teaser-title {
  max-width: 15ch;
  margin-top: 1rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.97;
}

.alt-page .ai-teaser-copy {
  max-width: 37rem;
  color: rgba(255,255,255,0.66);
  line-height: 1.65;
}

.alt-page .ai-teaser-stages {
  display: grid;
  gap: 0.55rem;
  margin-top: 2rem;
}

@media (min-width: 760px) {
  .alt-page .ai-teaser-stages { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.alt-page .ai-teaser-stage {
  min-height: 6.5rem;
  padding: 0.9rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.05);
}

.alt-page .ai-teaser-stage span {
  display: block;
  color: #71dfff;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.alt-page .ai-teaser-stage strong {
  display: block;
  margin-top: 0.5rem;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.35;
}

.alt-page .ai-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.alt-page .ai-teaser .cta-secondary {
  border-color: rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
}

.alt-page .ai-teaser .cta-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Web tile mini-dashboard */
.alt-page .mini-dash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.alt-page .mini-dash-card {
  border-radius: 0.7rem;
  padding: 0.6rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--rule);
}

.alt-page .mini-dash-card .label {
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.alt-page .mini-dash-card .value {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-top: 0.2rem;
}

.alt-page .mini-dash-card .spark {
  width: 100%;
  height: 24px;
  margin-top: 0.3rem;
}

/* Android tile container: balance the stack chips on the left
   with the phone mock on the right, fill the tile space */
.alt-page .android-visual {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  width: 100%;
}

.alt-page .android-stack {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-content: flex-end;
  align-self: flex-end;
  max-width: 11rem;
  padding-bottom: 0.5rem;
}

.alt-page .android-stack-label {
  flex: 0 0 100%;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.alt-page .stack-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.alt-page .stack-chip.is-accent {
  background: var(--accent-soft);
  border-color: rgba(35, 84, 255, 0.18);
  color: var(--accent);
}
.alt-page .stack-chip.is-coral {
  background: var(--coral-soft);
  border-color: rgba(255, 87, 51, 0.18);
  color: var(--coral);
}

/* On very narrow tiles, hide the stack and let phone take full space */
@media (max-width: 480px) {
  .alt-page .android-stack {
    display: none;
  }
  .alt-page .android-visual {
    justify-content: center;
  }
}

/* Android tile — phone mock with Material Design UI */
.alt-page .phone-mock {
  width: 10.5rem;
  margin: 0;
  border-radius: 1.6rem;
  border: 2px solid var(--ink);
  padding: 0.35rem;
  background: var(--ink);
  position: relative;
  box-shadow: 0 12px 28px -10px rgba(26, 25, 22, 0.3);
}

/* Side buttons (volume + power) for realism */
.alt-page .phone-mock::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  right: -0.18rem;
  width: 0.18rem;
  height: 2.2rem;
  border-radius: 0.18rem 0 0 0.18rem;
  background: rgba(255, 255, 255, 0.12);
}
.alt-page .phone-mock::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: -0.18rem;
  width: 0.18rem;
  height: 3.4rem;
  border-radius: 0 0.18rem 0.18rem 0;
  background: rgba(255, 255, 255, 0.12);
}

.alt-page .phone-screen {
  border-radius: 1.25rem;
  background: var(--paper);
  overflow: hidden;
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Status bar */
.alt-page .phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.7rem 0.25rem;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.alt-page .phone-status-time {
  font-weight: 700;
  font-size: 0.56rem;
}
.alt-page .phone-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--ink);
}
.alt-page .phone-icon-wifi {
  width: 0.55rem;
  height: 0.4rem;
  position: relative;
}
.alt-page .phone-icon-wifi::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border: 1.1px solid currentColor;
  border-bottom: 0;
  clip-path: polygon(0 50%, 50% 0, 100% 50%, 100% 100%, 0 100%);
}
.alt-page .phone-battery {
  width: 0.85rem;
  height: 0.42rem;
  border: 1px solid currentColor;
  border-radius: 0.1rem;
  position: relative;
  padding: 0.05rem;
}
.alt-page .phone-battery::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.12rem;
  transform: translateY(-50%);
  width: 0.08rem;
  height: 0.18rem;
  border-radius: 0 0.05rem 0.05rem 0;
  background: currentColor;
}
.alt-page .phone-battery > span {
  display: block;
  width: 75%;
  height: 100%;
  background: var(--success);
  border-radius: 0.04rem;
}

/* App bar (top of app — title + actions) */
.alt-page .phone-appbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.alt-page .phone-appbar-leading {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  align-self: center;
}
.alt-page .phone-appbar-leading span {
  display: block;
  width: 0.75rem;
  height: 1.5px;
  border-radius: 9999px;
  background: var(--ink);
}
.alt-page .phone-appbar-title {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.alt-page .phone-appbar-trailing {
  display: inline-grid;
  place-items: center;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.5rem;
  font-weight: 700;
}

/* Message list */
.alt-page .phone-list {
  flex: 1;
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem 0.55rem 0.4rem;
  align-content: start;
}
.alt-page .phone-item {
  display: grid;
  grid-template-columns: 1.05rem 1fr;
  gap: 0.45rem;
  align-items: center;
}
.alt-page .phone-avatar {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 9999px;
  display: inline-grid;
  place-items: center;
  font-family: var(--display);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.02em;
}
.alt-page .phone-avatar.is-accent { background: var(--accent); }
.alt-page .phone-avatar.is-coral { background: var(--coral); }
.alt-page .phone-avatar.is-mint { background: var(--success); }
.alt-page .phone-avatar.is-ink { background: var(--ink); }
.alt-page .phone-item-lines {
  display: grid;
  gap: 0.18rem;
}
.alt-page .phone-item-lines span {
  display: block;
  height: 0.22rem;
  border-radius: 9999px;
  background: var(--ink);
}
.alt-page .phone-item-lines span:nth-child(2) {
  height: 0.18rem;
  background: var(--rule-strong);
  width: 75%;
}
.alt-page .phone-item.is-unread .phone-item-lines span:first-child {
  background: var(--accent);
}

/* Floating action button (FAB) */
.alt-page .phone-fab {
  position: absolute;
  right: 0.5rem;
  bottom: 1.65rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: 0 4px 10px -2px rgba(35, 84, 255, 0.4);
  display: grid;
  place-items: center;
}
.alt-page .phone-fab::before,
.alt-page .phone-fab::after {
  content: "";
  position: absolute;
  background: var(--paper);
  border-radius: 9999px;
}
.alt-page .phone-fab::before {
  width: 0.75rem;
  height: 1.6px;
}
.alt-page .phone-fab::after {
  width: 1.6px;
  height: 0.75rem;
}

/* Android 3-button nav bar */
.alt-page .phone-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.35rem 1rem 0.5rem;
  gap: 0.6rem;
  border-top: 1px solid var(--rule);
  background: rgba(26, 25, 22, 0.025);
}
.alt-page .phone-nav-back {
  width: 0;
  height: 0;
  border-top: 0.3rem solid transparent;
  border-bottom: 0.3rem solid transparent;
  border-right: 0.4rem solid var(--ink);
  opacity: 0.6;
}
.alt-page .phone-nav-home {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  border: 1.5px solid var(--ink);
  opacity: 0.85;
}
.alt-page .phone-nav-recent {
  width: 0.5rem;
  height: 0.5rem;
  border: 1.5px solid var(--ink);
  border-radius: 0.08rem;
  opacity: 0.6;
}

/* Secure docs tile - fanned cards in a vault frame */
.alt-page .docs-frame {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 0.65rem;
  background: var(--bg);
  overflow: hidden;
  padding-bottom: 1.5rem;
}

.alt-page .docs-frame-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  background: rgba(26, 25, 22, 0.04);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--ink-soft);
}

.alt-page .docs-frame-head .dot-status {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

/* Secure documents vault: a row of typed document cards each with its
   own lock badge, sitting inside a protected frame with a shield seal. */
.alt-page .doc-vault {
  position: relative;
  width: 100%;
  padding: 0.85rem 0.7rem 0.7rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  align-items: end;
}

.alt-page .doc-mini {
  position: relative;
  aspect-ratio: 0.78;
  border-radius: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 0.4rem 0.4rem 0.45rem;
  box-shadow: 0 6px 14px -8px rgba(26, 25, 22, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Diagonal corner fold */
.alt-page .doc-mini::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 0.5rem 0.5rem 0;
  border-color: transparent var(--bg-warm) transparent transparent;
}

.alt-page .doc-mini-type {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1px 4px;
  border-radius: 0.2rem;
  line-height: 1.1;
  color: var(--paper);
}

.alt-page .doc-mini[data-type="pdf"] .doc-mini-type { background: var(--coral); }
.alt-page .doc-mini[data-type="doc"] .doc-mini-type { background: var(--accent); }
.alt-page .doc-mini[data-type="xls"] .doc-mini-type { background: var(--success); }
.alt-page .doc-mini[data-type="img"] .doc-mini-type { background: var(--ink); }

.alt-page .doc-mini-lines {
  display: grid;
  gap: 0.18rem;
  margin-top: 0.3rem;
}

.alt-page .doc-mini-lines span {
  height: 0.14rem;
  border-radius: 9999px;
  background: var(--rule-strong);
}
.alt-page .doc-mini-lines span:nth-child(1) { width: 100%; }
.alt-page .doc-mini-lines span:nth-child(2) { width: 75%; }
.alt-page .doc-mini-lines span:nth-child(3) { width: 90%; }

/* Per-doc lock badge in bottom-right corner */
.alt-page .doc-mini-lock {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 9999px;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--paper);
  box-shadow: 0 2px 4px rgba(26, 25, 22, 0.3);
}
.alt-page .doc-mini-lock svg {
  width: 0.42rem;
  height: 0.42rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Central shield seal — overlays the doc grid as a "protected" stamp */
.alt-page .doc-shield {
  position: absolute;
  left: 50%;
  bottom: 0.25rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem 0.25rem 0.45rem;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 6px 14px -4px rgba(26, 25, 22, 0.4);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 5;
}
.alt-page .doc-shield svg {
  width: 0.65rem;
  height: 0.65rem;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.alt-page .doc-shield .text-accent-soft {
  color: var(--mint, #67e8b8);
}

/* Operations tile - calendar grid */
.alt-page .cal-frame {
  border: 1px solid var(--rule);
  border-radius: 0.65rem;
  background: var(--bg);
  padding: 0.55rem 0.65rem 0.65rem;
}

.alt-page .cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.alt-page .cal-month {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.alt-page .cal-nav {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--ink-faint);
}

.alt-page .cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.18rem;
  margin-bottom: 0.25rem;
}

.alt-page .cal-weekday {
  font-family: var(--mono);
  font-size: 0.55rem;
  text-align: center;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.alt-page .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.22rem;
}

.alt-page .cal-day {
  aspect-ratio: 1;
  border-radius: 0.25rem;
  background: rgba(26, 25, 22, 0.04);
  font-family: var(--mono);
  font-size: 0.55rem;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
}

@media (min-width: 768px) {
  /* The ops tile spans half the bento; square cells would tower. */
  .alt-page .t-ops .cal-day { aspect-ratio: auto; height: 1.6rem; }
}

.alt-page .cal-day.is-work { background: rgba(26, 25, 22, 0.08); color: var(--ink-soft); }
.alt-page .cal-day.is-event { background: var(--accent); color: var(--paper); font-weight: 600; }
.alt-page .cal-day.is-today {
  background: var(--coral);
  color: var(--paper);
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(255, 87, 51, 0.22);
}

/* DevOps tile - deploy timeline */
.alt-page .deploy-frame {
  border: 1px solid var(--rule);
  border-radius: 0.65rem;
  background: var(--bg);
  overflow: hidden;
}

.alt-page .deploy-frame-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  background: rgba(26, 25, 22, 0.04);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--ink-soft);
}

.alt-page .deploy-frame-prompt {
  color: #15803d;
  font-weight: 600;
}

.alt-page .deploy-list {
  display: grid;
  gap: 0;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.alt-page .deploy-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid rgba(26, 25, 22, 0.05);
}

.alt-page .deploy-row:last-child { border-bottom: 0; }

.alt-page .deploy-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: #15803d;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.alt-page .deploy-dot.is-pending {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 87, 51, 0.18);
}

.alt-page .deploy-row .time {
  color: var(--ink-faint);
  font-size: 0.58rem;
}

.alt-page .deploy-row .sha {
  color: var(--ink);
  font-weight: 500;
}

.alt-page .deploy-row .env {
  color: var(--ink-faint);
  font-size: 0.58rem;
  padding: 0.12rem 0.4rem;
  border-radius: 0.3rem;
  background: rgba(26, 25, 22, 0.05);
}

.alt-page .deploy-row .env.is-prod {
  color: #15803d;
  background: rgba(21, 128, 61, 0.1);
}

/* ----- Products (things we build and run ourselves) ----- */

.alt-page .products-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .alt-page .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.alt-page .product-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 1.5rem;
  border: 1px solid var(--rule);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (max-width: 639px) {
  .alt-page .product-card { padding: 1.4rem; }
}

.alt-page .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px -30px rgba(26, 25, 22, 0.28);
}

.alt-page .product-card.is-docuchan {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(103, 232, 184, 0.16) 0%, rgba(103, 232, 184, 0.03) 40%, transparent 65%),
    linear-gradient(135deg, #1a1916 0%, #232120 100%);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.07);
}

.alt-page .product-card.is-bizhub {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(35, 84, 255, 0.10) 0%, transparent 55%),
    radial-gradient(120% 100% at 100% 110%, rgba(255, 87, 51, 0.10) 0%, transparent 55%),
    var(--paper);
}

.alt-page .product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.alt-page .product-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.alt-page .product-logo {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Real product marks: DocuChan ships a glyph (public/docuchan-icon.svg),
   BizHub's favicon is a self-contained dark tile — no chip needed. */
.alt-page .product-logo svg {
  display: block;
}

.alt-page .is-docuchan .product-logo {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.alt-page .is-docuchan .product-logo svg {
  width: 1.9rem;
  height: 1.9rem;
}

.alt-page .is-bizhub .product-logo {
  background: transparent;
  border: 0;
  box-shadow: 0 8px 18px -8px rgba(11, 13, 18, 0.5);
}

.alt-page .is-bizhub .product-logo svg {
  width: 100%;
  height: 100%;
}

.alt-page .product-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.alt-page .product-domain {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-top: 0.2rem;
}

.alt-page .is-docuchan .product-domain { color: rgba(255, 255, 255, 0.5); }

.alt-page .product-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.alt-page .product-status::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: currentColor;
}

.alt-page .is-docuchan .product-status {
  background: rgba(103, 232, 184, 0.12);
  color: var(--mint);
}

.alt-page .is-bizhub .product-status {
  background: var(--success-soft);
  color: var(--success);
}

.alt-page .product-tagline {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.alt-page .product-copy {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34rem;
}

.alt-page .is-docuchan .product-copy { color: rgba(255, 255, 255, 0.65); }

.alt-page .product-visual { margin-top: auto; }

/* DocuChan visual — browser-side encryption flow */
.alt-page .dc-window {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.alt-page .dc-window .win-chrome {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.alt-page .dc-window .win-title { color: rgba(255, 255, 255, 0.45); }

.alt-page .dc-body {
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.7rem;
}

.alt-page .dc-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.85);
}

.alt-page .dc-file-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.4rem;
  background: var(--coral);
  display: grid;
  place-items: center;
  font-size: 0.48rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.alt-page .dc-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alt-page .dc-file-size {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.58rem;
}

.alt-page .dc-encrypt { display: grid; gap: 0.35rem; }

.alt-page .dc-encrypt-label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.alt-page .dc-encrypt-label .pct { color: var(--mint); }

.alt-page .dc-encrypt-bar {
  height: 0.35rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.alt-page .dc-encrypt-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--mint) 0%, #2354ff 100%);
  transform-origin: left center;
}

.alt-page .dc-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px dashed rgba(103, 232, 184, 0.35);
  background: rgba(103, 232, 184, 0.06);
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.85);
  min-width: 0;
}

.alt-page .dc-link svg {
  width: 0.75rem;
  height: 0.75rem;
  stroke: var(--mint);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.alt-page .dc-link .url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alt-page .dc-link .frag {
  color: var(--mint);
  font-weight: 600;
  flex-shrink: 0;
}

.alt-page .dc-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}

/* BizHub visual — interview on the left, generated site on the right */
.alt-page .bz-window {
  border-radius: 1rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.alt-page .bz-body {
  padding: 0.85rem 0.95rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr);
  gap: 0.7rem;
  align-items: center;
}

.alt-page .bz-chat {
  display: grid;
  gap: 0.45rem;
  align-content: center;
  min-width: 0;
}

.alt-page .bz-bubble {
  padding: 0.45rem 0.6rem;
  border-radius: 0.75rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1.45;
}

.alt-page .bz-bubble.is-bot {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  border-bottom-left-radius: 0.25rem;
  justify-self: start;
}

.alt-page .bz-bubble.is-user {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
  justify-self: end;
}

.alt-page .bz-arrow {
  font-size: 1.05rem;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.alt-page .bz-site {
  border-radius: 0.65rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 10px 24px -14px rgba(26, 25, 22, 0.3);
  min-width: 0;
}

.alt-page .bz-site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.alt-page .bz-site-name {
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alt-page .bz-langs { display: inline-flex; gap: 0.2rem; flex-shrink: 0; }

.alt-page .bz-lang {
  font-family: var(--mono);
  font-size: 0.44rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 0.25rem;
  background: rgba(26, 25, 22, 0.06);
  color: var(--ink-soft);
}

.alt-page .bz-lang.is-on {
  background: var(--accent);
  color: #fff;
}

.alt-page .bz-site-hero {
  padding: 0.55rem 0.5rem 0.45rem;
  display: grid;
  gap: 0.22rem;
}

.alt-page .bz-site-hero span {
  display: block;
  height: 0.22rem;
  border-radius: 9999px;
  background: var(--rule-strong);
}

.alt-page .bz-site-hero span:nth-child(1) { width: 85%; background: var(--ink); height: 0.28rem; }
.alt-page .bz-site-hero span:nth-child(2) { width: 100%; }
.alt-page .bz-site-hero span:nth-child(3) { width: 65%; }

.alt-page .bz-pay {
  display: flex;
  gap: 0.3rem;
  padding: 0.1rem 0.5rem 0.5rem;
  flex-wrap: wrap;
}

.alt-page .bz-pay-chip {
  font-family: var(--mono);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 9999px;
}

.alt-page .bz-pay-chip.is-click {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(35, 84, 255, 0.2);
}

.alt-page .bz-pay-chip.is-payme {
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
  border: 1px solid rgba(13, 148, 136, 0.25);
}

/* Shared product meta chips + CTA row */
.alt-page .product-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.alt-page .product-points li {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  background: var(--paper);
  white-space: nowrap;
}

.alt-page .is-docuchan .product-points li {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
}

.alt-page .product-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
}

.alt-page .is-docuchan .product-cta-row { border-top-color: rgba(255, 255, 255, 0.1); }

.alt-page .product-cta-note {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

.alt-page .is-docuchan .product-cta-note { color: rgba(255, 255, 255, 0.45); }

.alt-page .cta.product-cta-paper {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 30px -14px rgba(0, 0, 0, 0.6);
}

.alt-page .cta.product-cta-paper:hover {
  background: var(--mint);
  color: var(--ink);
  transform: translateY(-1px);
}

/* ----- Approach (horizontal timeline) ----- */

.alt-page .timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .alt-page .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  /* Line anchored to circle centers:
     - Each step has padding-left 0.5rem and circle width 2.4rem
     - Circle center sits at 1.7rem from the column-cell's left edge
     - First-column center: 1.7rem
     - Last-column center: container_right - (col_width + 1.7rem)
                          = container_right - (25% - 1.125rem + 1.7rem)
                          = right offset of 25% - 2.825rem
  */
  .alt-page .timeline::before {
    content: "";
    position: absolute;
    top: calc(1.2rem - 1px);
    left: 1.7rem;
    right: calc(25% - 2.825rem);
    height: 2px;
    background: var(--rule-strong);
    z-index: 0;
    border-radius: 9999px;
  }

  .alt-page .timeline::after {
    content: "";
    position: absolute;
    top: calc(1.2rem - 1.5px);
    left: 1.7rem;
    right: calc(25% - 2.825rem);
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, #8a4cc4 50%, var(--coral) 100%);
    border-radius: 9999px;
    z-index: 1;
    transform-origin: left center;
    animation: timeline-fill 2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
  }
}

@keyframes timeline-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.alt-page .step {
  position: relative;
  padding: 0 0.5rem;
  z-index: 2;
}

.alt-page .step-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--paper);
}

.alt-page .step:nth-child(1) .step-mark { background: var(--ink); }
.alt-page .step:nth-child(2) .step-mark { background: var(--accent); }
.alt-page .step:nth-child(3) .step-mark { background: var(--coral); }
.alt-page .step:nth-child(4) .step-mark { background: #15803d; }

.alt-page .step-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.alt-page .step-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-top: 0.4rem;
}

.alt-page .step-copy {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ----- About card ----- */

.alt-page .about-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 2rem;
  background:
    radial-gradient(180% 140% at 110% -20%, rgba(35, 84, 255, 0.24) 0%, rgba(35, 84, 255, 0.08) 30%, transparent 70%),
    radial-gradient(170% 130% at -10% 120%, rgba(255, 87, 51, 0.18) 0%, rgba(255, 87, 51, 0.06) 30%, transparent 70%),
    linear-gradient(135deg, var(--bg-warm) 0%, var(--bg) 55%, #ece8d8 100%);
  border: 1px solid var(--rule);
  padding: 2.5rem 1.5rem;
}

@media (min-width: 640px) {
  .alt-page .about-card { padding: 3rem 2rem; }
}

@media (min-width: 768px) {
  .alt-page .about-card { padding: 4rem 3.5rem; }
}

@media (min-width: 1024px) {
  .alt-page .about-card {
    background:
      radial-gradient(90% 130% at 105% -15%, rgba(35, 84, 255, 0.28) 0%, rgba(35, 84, 255, 0.09) 35%, transparent 70%),
      radial-gradient(85% 120% at -5% 115%, rgba(255, 87, 51, 0.20) 0%, rgba(255, 87, 51, 0.06) 35%, transparent 70%),
      linear-gradient(135deg, var(--bg-warm) 0%, var(--bg) 55%, #ece8d8 100%);
  }
}

.alt-page .about-grid {
  position: relative;
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .alt-page .about-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 5rem;
    align-items: center;
  }
}

.alt-page .about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}

.alt-page .about-pill {
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

.alt-page .about-facts {
  display: grid;
  gap: 1rem;
}

.alt-page .about-fact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.alt-page .about-fact:last-child { border: 0; padding-bottom: 0; }

/* Clickable about-facts (linked entries) */
.alt-page .about-fact.is-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, padding 0.2s ease;
  cursor: pointer;
  padding-bottom: 1rem;
}
.alt-page .about-fact.is-link:hover {
  transform: translateX(4px);
}
.alt-page .about-fact.is-link:hover .value .accent-word {
  filter: brightness(1.15);
}
.alt-page .about-fact.is-link:hover .ext-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}
.alt-page .about-fact.is-link:hover .ext-arrow.is-coral {
  color: var(--coral);
}
.alt-page .about-fact .sub {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: lowercase;
}
.alt-page .about-fact .ext-arrow {
  font-size: 1.1rem;
  color: var(--ink-faint);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.alt-page .about-fact .label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.alt-page .about-fact .value {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.alt-page .about-fact .value .accent-word {
  color: var(--accent);
  font-style: italic;
}

/* ----- Careers ----- */

.alt-page .careers-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .alt-page .careers-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.alt-page .career-list {
  display: grid;
  gap: 0.75rem;
}

.alt-page .career-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  position: relative;
}

.alt-page .career-card:hover {
  transform: translateX(2px);
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--paper) 0%, var(--accent-soft) 200%);
}

/* Non-featured career cards: compact horizontal layout */
.alt-page .career-card:not(.is-featured) .career-meta {
  gap: 0.4rem;
}

.alt-page .career-card:not(.is-featured) .career-title {
  font-size: 1.05rem;
  margin-top: 0.45rem;
}

.alt-page .career-card:not(.is-featured) .career-arrow {
  width: 2.1rem;
  height: 2.1rem;
}

.alt-page .career-card:not(.is-featured) .career-arrow .site-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.alt-page .career-card.is-featured {
  grid-template-columns: 1fr auto;
  padding: 2rem 2rem;
  background: linear-gradient(135deg, #1a1916 0%, #1f1d1a 100%);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  margin-bottom: 0.5rem;
}

.alt-page .career-card.is-featured::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 40%;
  height: 70%;
  background: radial-gradient(circle at top right, rgba(35, 84, 255, 0.4), transparent 65%);
  pointer-events: none;
  border-radius: 0 1.25rem 0 0;
}

.alt-page .career-card.is-featured .career-title {
  color: var(--paper);
  font-size: 1.75rem;
}

.alt-page .career-card.is-featured .career-chip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.alt-page .career-card.is-featured .featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  border-radius: 9999px;
  background: var(--coral);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.alt-page .career-card.is-featured .featured-tag::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: var(--paper);
}

.alt-page .career-card.is-featured .career-arrow {
  background: var(--paper);
  color: var(--ink);
}

.alt-page .featured-blurb {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 30rem;
}

/* ----- Working here panel ----- */
.alt-page .working-here {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}

.alt-page .wh-header {
  padding: 1.85rem 1.85rem 1.4rem;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.alt-page .wh-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(35, 84, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.alt-page .wh-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-top: 1.1rem;
  position: relative;
  z-index: 1;
}

.alt-page .wh-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 1.85rem;
}

.alt-page .wh-item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.alt-page .wh-item:last-child {
  border-bottom: 0;
}

.alt-page .wh-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
}

.alt-page .wh-item:nth-child(2) .wh-num { color: var(--coral); }
.alt-page .wh-item:nth-child(3) .wh-num { color: #15803d; }

.alt-page .wh-item-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

.alt-page .wh-item-copy {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.alt-page .wh-footer {
  margin-top: auto;
  padding: 1.25rem 1.85rem 1.4rem;
  border-top: 1px solid var(--rule);
  background: var(--bg-warm);
}

.alt-page .wh-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.2s ease, gap 0.2s ease;
}

.alt-page .wh-link:hover {
  color: var(--accent);
  gap: 0.85rem;
}

.alt-page .wh-link .arrow {
  transition: transform 0.2s ease;
}

.alt-page .wh-link:hover .arrow {
  transform: translateX(0.25rem);
}

.alt-page .career-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.alt-page .career-chip {
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  background: var(--bg-warm);
  color: var(--ink-soft);
}

.alt-page .career-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 0.55rem;
}

.alt-page .career-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.alt-page .career-card:hover .career-arrow {
  transform: translateX(3px) rotate(-45deg);
}

/* ----- Contact ----- */

.alt-page .contact-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 2rem;
  color: var(--paper);
  padding: 2rem 1.25rem;
  background:
    radial-gradient(130% 90% at -10% -10%, rgba(35, 84, 255, 0.55) 0%, rgba(35, 84, 255, 0.15) 30%, transparent 65%),
    radial-gradient(120% 100% at 115% 115%, rgba(255, 87, 51, 0.50) 0%, rgba(255, 87, 51, 0.12) 30%, transparent 65%),
    linear-gradient(155deg, #1f1d1a 0%, #1a1916 60%, #232120 100%);
}

@media (min-width: 640px) {
  .alt-page .contact-shell { padding: 3rem 2rem; }
}

@media (min-width: 768px) {
  .alt-page .contact-shell {
    padding: 4.5rem 3.5rem;
    background:
      radial-gradient(70% 80% at -5% -10%, rgba(35, 84, 255, 0.55) 0%, rgba(35, 84, 255, 0.15) 30%, transparent 65%),
      radial-gradient(65% 80% at 105% 110%, rgba(255, 87, 51, 0.45) 0%, rgba(255, 87, 51, 0.12) 30%, transparent 65%),
      linear-gradient(155deg, #1f1d1a 0%, #1a1916 60%, #232120 100%);
  }
}

.alt-page .contact-grid {
  position: relative;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .alt-page .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .alt-page .contact-grid {
    gap: 4rem;
  }
}

.alt-page .contact-shell .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.alt-page .contact-shell .eyebrow .dot {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 87, 51, 0.2);
}

.alt-page .contact-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .alt-page .contact-title { margin-top: 1.4rem; }
}

.alt-page .contact-title .accent-word {
  color: var(--peach);
  font-style: italic;
}

.alt-page .contact-lead {
  margin-top: 1rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  max-width: 28rem;
}

@media (min-width: 768px) {
  .alt-page .contact-lead {
    margin-top: 1.5rem;
    font-size: 1.05rem;
  }
}

.alt-page .contact-facts {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.4rem;
  max-width: 28rem;
}

@media (min-width: 768px) {
  .alt-page .contact-facts {
    margin-top: 2.5rem;
    gap: 1rem;
  }
}

.alt-page .contact-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--mono);
  font-size: 0.78rem;
}

@media (min-width: 768px) {
  .alt-page .contact-fact { padding: 0.85rem 0; }
}

.alt-page .contact-fact .key {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.alt-page .contact-fact .val {
  color: var(--paper);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -0.015em;
}

/* Contact form on dark bg — scoped to .contact-form so partial's light field rules don't win */
.alt-page .contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 1.1rem 1.1rem 1.25rem;
  backdrop-filter: blur(8px);
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .alt-page .contact-form {
    padding: 1.5rem;
    gap: 1.05rem;
  }
}

@media (min-width: 768px) {
  .alt-page .contact-form {
    padding: 2.25rem;
    gap: 1.3rem;
    border-radius: 1.5rem;
  }
}

.alt-page .contact-form .field {
  display: grid;
  gap: 0.35rem;
}

.alt-page .contact-form .field label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.alt-page .contact-form .field input,
.alt-page .contact-form .field select,
.alt-page .contact-form .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  padding: 0.45rem 0;
  color: var(--paper);
  font-size: 0.95rem;
  font-family: inherit;
  outline: 0;
  border-radius: 0;
  transition: border-color 0.2s ease;
  box-shadow: none;
}

@media (min-width: 768px) {
  .alt-page .contact-form .field input,
  .alt-page .contact-form .field select,
  .alt-page .contact-form .field textarea {
    padding: 0.55rem 0;
    font-size: 1rem;
  }
}

.alt-page .contact-form .field input::placeholder,
.alt-page .contact-form .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.alt-page .contact-form .field input:focus,
.alt-page .contact-form .field select:focus,
.alt-page .contact-form .field textarea:focus {
  border-color: var(--peach);
  background: transparent;
  box-shadow: none;
}

.alt-page .contact-form .field select {
  min-height: 2.8rem;
  color-scheme: dark;
}

.alt-page .contact-form .field select option {
  background: #1a1916;
  color: var(--paper);
}

/* Kill iOS / Chrome autofill yellow + light bg leakage */
.alt-page .contact-form .field input:-webkit-autofill,
.alt-page .contact-form .field input:-webkit-autofill:hover,
.alt-page .contact-form .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--paper);
  -webkit-box-shadow: 0 0 0 30px transparent inset;
  box-shadow: 0 0 0 30px transparent inset;
  transition: background-color 9999s ease-in-out 0s;
  caret-color: var(--paper);
}

.alt-page .contact-form .field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

@media (min-width: 768px) {
  .alt-page .contact-form .field textarea { min-height: 5rem; }
}

.alt-page .contact-form .submit-btn { margin-top: 0.4rem; }

.alt-page .submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.6rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.2s ease, background 0.2s ease;
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
}

.alt-page .submit-btn:hover {
  background: var(--peach);
  transform: translateY(-1px);
}

.alt-page .submit-btn .arrow { transition: transform 0.2s ease; }
.alt-page .submit-btn:hover .arrow { transform: translateX(0.2rem); }

/* ============================================================
   Hero entrance animations (motion-gated)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .alt-page .hero [data-stagger] {
    opacity: 0;
    transform: translateY(1.25rem);
    animation: hero-fade-up 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--stagger-delay, 0ms);
  }

  .alt-page .hero-window-main {
    opacity: 0;
    animation: hero-window-in 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
  }

  .alt-page .hero-window-float {
    opacity: 0;
    animation: hero-window-float-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.85s forwards,
               hero-float 6s cubic-bezier(0.4, 0, 0.6, 1) 2s infinite;
  }

  .alt-page .hero-window-main .mini-chart-svg path:nth-child(3) {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: chart-draw 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s forwards;
  }

  .alt-page .hero-window-float .roadmap-bar {
    transform-origin: left center;
    transform: scaleX(0);
    animation: bar-grow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  .alt-page .hero-window-float .roadmap-row:nth-child(1) .roadmap-bar { animation-delay: 1.2s; }
  .alt-page .hero-window-float .roadmap-row:nth-child(2) .roadmap-bar { animation-delay: 1.35s; }
  .alt-page .hero-window-float .roadmap-row:nth-child(3) .roadmap-bar { animation-delay: 1.5s; }

  .alt-page .hero-title .accent-word {
    background: linear-gradient(110deg,
      var(--accent) 0%,
      #7da3ff 35%,
      var(--accent) 50%,
      #7da3ff 65%,
      var(--accent) 100%);
    background-size: 250% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-position: 100% 50%;
    animation: accent-shimmer 6s cubic-bezier(0.4, 0, 0.6, 1) 1s infinite;
    /* background-clip: text only paints inside the span's box, so the
       italic overhang (e.g. the trailing "g") gets cut off. Padding
       widens the paint box; negative margins cancel the layout shift.
       box-decoration-break: clone repeats the padding on every line
       fragment, so mid-span line wraps don't clip either. */
    padding: 0.1em 0.12em 0.14em 0.04em;
    margin: -0.1em -0.12em -0.14em -0.04em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .alt-page .mesh {
    animation: mesh-drift 18s ease-in-out infinite alternate;
  }

  @keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(1.25rem); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes hero-window-in {
    from { opacity: 0; transform: translateY(1rem) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes hero-window-float-in {
    from { opacity: 0; transform: rotate(2deg) translateY(1.25rem); }
    to { opacity: 1; transform: rotate(2deg) translateY(0); }
  }

  @keyframes hero-float {
    0%, 100% { transform: rotate(2deg) translateY(0); }
    50%      { transform: rotate(2deg) translateY(-0.4rem); }
  }

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

  @keyframes bar-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }

  @keyframes accent-shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: -50% 50%; }
  }

  @keyframes mesh-drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(2%, -2%) scale(1.04); }
  }

  /* ============================================================
     Capability tile illustrations — viewport-bound animations
     Animations only run while the tile is in view; they restart
     from frame 0 each time the tile re-enters the viewport.
     ============================================================ */

  /* Calendar (.t-ops): today cell breathes; event cells pulse softly */
  .alt-page .tile.t-ops.in-view .cal-day.is-today {
    animation: cal-today-pulse 3.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  .alt-page .tile.t-ops.in-view .cal-day.is-event {
    animation: cal-event-breathe 4.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  .alt-page .tile.t-ops.in-view .cal-day.is-event:nth-of-type(odd) {
    animation-delay: 0.9s;
  }

  @keyframes cal-today-pulse {
    0%, 100% {
      box-shadow: 0 0 0 2px rgba(255, 87, 51, 0.22);
      transform: scale(1);
    }
    50% {
      box-shadow: 0 0 0 6px rgba(255, 87, 51, 0);
      transform: scale(1.04);
    }
  }

  @keyframes cal-event-breathe {
    0%, 100% { background-color: rgba(35, 84, 255, 1); }
    50%      { background-color: rgba(35, 84, 255, 0.78); }
  }

  /* Documents (.t-docs): each mini doc lock-pulses on cycle; the shield
     seal pulses; the status dot in the frame head pulses. */
  .alt-page .tile.t-docs.in-view .doc-shield {
    animation: doc-shield-pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  .alt-page .tile.t-docs.in-view .docs-frame-head .dot-status {
    animation: status-dot-pulse 2.2s ease-in-out infinite;
  }

  .alt-page .tile.t-docs.in-view .doc-mini {
    animation: doc-mini-float 4.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  .alt-page .tile.t-docs.in-view .doc-mini:nth-child(1) { animation-delay: 0s;   }
  .alt-page .tile.t-docs.in-view .doc-mini:nth-child(2) { animation-delay: 0.4s; }
  .alt-page .tile.t-docs.in-view .doc-mini:nth-child(3) { animation-delay: 0.8s; }
  .alt-page .tile.t-docs.in-view .doc-mini:nth-child(4) { animation-delay: 1.2s; }

  .alt-page .tile.t-docs.in-view .doc-mini-lock {
    animation: doc-mini-lock-bounce 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
  .alt-page .tile.t-docs.in-view .doc-mini:nth-child(2) .doc-mini-lock { animation-delay: 0.6s; }
  .alt-page .tile.t-docs.in-view .doc-mini:nth-child(3) .doc-mini-lock { animation-delay: 1.2s; }
  .alt-page .tile.t-docs.in-view .doc-mini:nth-child(4) .doc-mini-lock { animation-delay: 1.8s; }

  @keyframes doc-mini-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-0.18rem); }
  }

  @keyframes doc-mini-lock-bounce {
    0%, 90%, 100% { transform: scale(1); }
    95%           { transform: scale(1.18); }
  }

  @keyframes doc-shield-pulse {
    0%, 100% {
      box-shadow: 0 6px 14px -4px rgba(26, 25, 22, 0.4), 0 0 0 0 rgba(103, 232, 184, 0.3);
    }
    50% {
      box-shadow: 0 6px 14px -4px rgba(26, 25, 22, 0.4), 0 0 0 6px rgba(103, 232, 184, 0);
    }
  }

  @keyframes doc-lock-glow {
    0%, 100% { box-shadow: 0 6px 14px -2px rgba(26, 25, 22, 0.4); }
    50%      { box-shadow: 0 6px 18px -2px rgba(26, 25, 22, 0.4), 0 0 0 4px rgba(35, 84, 255, 0.18); }
  }

  @keyframes status-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15); }
    50%      { box-shadow: 0 0 0 6px rgba(21, 128, 61, 0); }
  }

  /* Deploy log (.t-devops): pending dot pulses; rows have stagger fade-in */
  .alt-page .tile.t-devops.in-view .deploy-dot {
    animation: status-dot-pulse 2.2s ease-in-out infinite;
  }

  .alt-page .tile.t-devops.in-view .deploy-dot.is-pending {
    animation: deploy-pending-pulse 1.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  @keyframes deploy-pending-pulse {
    0%, 100% {
      box-shadow: 0 0 0 3px rgba(255, 87, 51, 0.18);
      transform: scale(1);
    }
    50% {
      box-shadow: 0 0 0 7px rgba(255, 87, 51, 0);
      transform: scale(1.15);
    }
  }

  /* Cycle a "current" highlight through deploy rows */
  .alt-page .tile.t-devops.in-view .deploy-row {
    animation: deploy-row-spotlight 9s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
  .alt-page .tile.t-devops.in-view .deploy-row:nth-of-type(1) { animation-delay: 0s; }
  .alt-page .tile.t-devops.in-view .deploy-row:nth-of-type(2) { animation-delay: 1.8s; }
  .alt-page .tile.t-devops.in-view .deploy-row:nth-of-type(3) { animation-delay: 3.6s; }
  .alt-page .tile.t-devops.in-view .deploy-row:nth-of-type(4) { animation-delay: 5.4s; }
  .alt-page .tile.t-devops.in-view .deploy-row:nth-of-type(5) { animation-delay: 7.2s; }

  @keyframes deploy-row-spotlight {
    0%, 88%, 100% { background: transparent; }
    4%, 28%       { background: rgba(35, 84, 255, 0.04); }
  }

  /* Android phone (.t-android): unread bubble pulses, FAB breathes,
     status battery indicator subtly drains/refills, app-bar trailing
     counter pulses to suggest incoming notifications */
  .alt-page .tile.t-android.in-view .phone-appbar-trailing {
    animation: phone-badge-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  .alt-page .tile.t-android.in-view .phone-fab {
    animation: phone-fab-pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  .alt-page .tile.t-android.in-view .phone-item.is-unread .phone-avatar {
    animation: phone-avatar-pop 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  .alt-page .tile.t-android.in-view .phone-item.is-unread:nth-of-type(2) .phone-avatar {
    animation-delay: 1.2s;
  }

  .alt-page .tile.t-android.in-view .phone-battery > span {
    animation: phone-battery-drain 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    transform-origin: left center;
  }

  @keyframes phone-badge-pulse {
    0%, 100% {
      box-shadow: 0 0 0 0 rgba(35, 84, 255, 0.45);
      transform: scale(1);
    }
    50% {
      box-shadow: 0 0 0 4px rgba(35, 84, 255, 0);
      transform: scale(1.1);
    }
  }

  @keyframes phone-fab-pulse {
    0%, 100% {
      box-shadow: 0 4px 10px -2px rgba(35, 84, 255, 0.4);
      transform: scale(1);
    }
    50% {
      box-shadow: 0 6px 16px -2px rgba(35, 84, 255, 0.55);
      transform: scale(1.05);
    }
  }

  @keyframes phone-avatar-pop {
    0%, 92%, 100% { transform: scale(1); }
    96%           { transform: scale(1.12); }
  }

  @keyframes phone-battery-drain {
    0%   { transform: scaleX(0.75); }
    50%  { transform: scaleX(0.55); }
    100% { transform: scaleX(0.75); }
  }

  @keyframes phone-dot-pulse {
    0%, 100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(35, 84, 255, 0.4);
    }
    50% {
      transform: scale(1.25);
      box-shadow: 0 0 0 5px rgba(35, 84, 255, 0);
    }
  }

  @keyframes phone-line-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
  }

  @keyframes phone-line-fade {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.65; }
  }

  /* Web tile (.t-web): mini-dash sparklines redraw periodically */
  .alt-page .tile.t-web .mini-dash-card .spark path {
    stroke-dasharray: 140;
  }

  .alt-page .tile.t-web.in-view .mini-dash-card:nth-child(1) .spark path {
    animation: spark-draw 5.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }

  .alt-page .tile.t-web.in-view .mini-dash-card:nth-child(2) .spark path {
    animation: spark-draw 5.5s cubic-bezier(0.4, 0, 0.2, 1) 1.5s infinite;
  }

  @keyframes spark-draw {
    0%       { stroke-dashoffset: 140; opacity: 0.2; }
    15%, 85% { stroke-dashoffset: 0;   opacity: 1; }
    100%     { stroke-dashoffset: 0;   opacity: 1; }
  }

  /* Feature tile (.t-feature): roadmap bars start at 0 width until in view */
  .alt-page .tile.t-feature .feature-board .roadmap-bar {
    transform-origin: left center;
    transform: scaleX(0);
  }

  .alt-page .tile.t-feature.in-view .feature-board .roadmap-bar {
    animation: bar-grow 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
               bar-shimmer 5s ease-in-out 1.5s infinite;
  }

  .alt-page .tile.t-feature.in-view .feature-board .roadmap-row:nth-of-type(1) .roadmap-bar { animation-delay: 0.2s, 1.5s; }
  .alt-page .tile.t-feature.in-view .feature-board .roadmap-row:nth-of-type(2) .roadmap-bar { animation-delay: 0.35s, 1.65s; }
  .alt-page .tile.t-feature.in-view .feature-board .roadmap-row:nth-of-type(3) .roadmap-bar { animation-delay: 0.5s, 1.8s; }
  .alt-page .tile.t-feature.in-view .feature-board .roadmap-row:nth-of-type(4) .roadmap-bar { animation-delay: 0.65s, 1.95s; }

  @keyframes bar-shimmer {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.18); }
  }

  /* Product cards: DocuChan encrypts → link appears; BizHub chats → site appears */
  .alt-page .product-card .product-status::before {
    animation: alt-dot-pulse-plain 2.4s ease-in-out infinite;
  }

  @keyframes alt-dot-pulse-plain {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.25); opacity: 0.7; }
  }

  .alt-page .product-card .dc-encrypt-fill { transform: scaleX(0); }
  .alt-page .product-card.in-view .dc-encrypt-fill {
    animation: bar-grow 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s forwards;
  }

  .alt-page .product-card .dc-link,
  .alt-page .product-card .dc-foot {
    opacity: 0;
    transform: translateY(0.4rem);
  }

  .alt-page .product-card.in-view .dc-link {
    animation: section-fade-up 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 1.5s forwards;
  }

  .alt-page .product-card.in-view .dc-foot {
    animation: section-fade-up 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 1.75s forwards;
  }

  .alt-page .product-card .bz-bubble {
    opacity: 0;
    transform: translateY(0.4rem) scale(0.96);
  }

  .alt-page .product-card.in-view .bz-bubble {
    animation: section-fade-up 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  .alt-page .product-card.in-view .bz-bubble.is-bot { animation-delay: 0.25s; }
  .alt-page .product-card.in-view .bz-bubble.is-user { animation-delay: 0.65s; }

  .alt-page .product-card .bz-site {
    opacity: 0;
    transform: translateX(0.6rem);
  }

  .alt-page .product-card.in-view .bz-site {
    animation: section-fade-right 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 1.05s forwards;
  }

  .alt-page .product-card .bz-pay-chip {
    opacity: 0;
    transform: scale(0.6);
  }

  .alt-page .product-card.in-view .bz-pay-chip {
    animation: chip-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  .alt-page .product-card.in-view .bz-pay-chip.is-click { animation-delay: 1.5s; }
  .alt-page .product-card.in-view .bz-pay-chip.is-payme { animation-delay: 1.65s; }

  @keyframes chip-pop {
    to { opacity: 1; transform: scale(1); }
  }

  /* ============================================================
     Section entrance animations — fire each time the section
     re-enters the viewport (toggled via .in-view by JS)
     ============================================================ */

  /* --- TIMELINE (approach section) --- */
  /* Disable the auto-on-load timeline-fill, replace with in-view gated */
  .alt-page .timeline::after {
    animation: none;
    transform: scaleX(0);
  }
  .alt-page .timeline.in-view::after {
    animation: timeline-fill 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
  }

  .alt-page .timeline .step {
    opacity: 0;
    transform: translateY(1rem);
  }

  .alt-page .timeline.in-view .step {
    animation: section-fade-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  .alt-page .timeline.in-view .step:nth-of-type(1) { animation-delay: 0.15s; }
  .alt-page .timeline.in-view .step:nth-of-type(2) { animation-delay: 0.35s; }
  .alt-page .timeline.in-view .step:nth-of-type(3) { animation-delay: 0.55s; }
  .alt-page .timeline.in-view .step:nth-of-type(4) { animation-delay: 0.75s; }

  /* Step marks pop in with a small scale bounce */
  .alt-page .timeline .step-mark {
    transform: scale(0);
  }
  .alt-page .timeline.in-view .step-mark {
    animation: step-mark-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  .alt-page .timeline.in-view .step:nth-of-type(1) .step-mark { animation-delay: 0.1s; }
  .alt-page .timeline.in-view .step:nth-of-type(2) .step-mark { animation-delay: 0.3s; }
  .alt-page .timeline.in-view .step:nth-of-type(3) .step-mark { animation-delay: 0.5s; }
  .alt-page .timeline.in-view .step:nth-of-type(4) .step-mark { animation-delay: 0.7s; }

  @keyframes section-fade-up {
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes step-mark-pop {
    to { transform: scale(1); }
  }

  /* --- ABOUT CARD --- */
  .alt-page .about-card .about-pill,
  .alt-page .about-card .about-fact {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  .alt-page .about-card.in-view .about-pill,
  .alt-page .about-card.in-view .about-fact {
    animation: section-fade-up 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  .alt-page .about-card.in-view .about-pill:nth-of-type(1) { animation-delay: 0.2s; }
  .alt-page .about-card.in-view .about-pill:nth-of-type(2) { animation-delay: 0.3s; }
  .alt-page .about-card.in-view .about-pill:nth-of-type(3) { animation-delay: 0.4s; }
  .alt-page .about-card.in-view .about-pill:nth-of-type(4) { animation-delay: 0.5s; }

  .alt-page .about-card.in-view .about-fact:nth-of-type(1) { animation-delay: 0.3s; }
  .alt-page .about-card.in-view .about-fact:nth-of-type(2) { animation-delay: 0.4s; }
  .alt-page .about-card.in-view .about-fact:nth-of-type(3) { animation-delay: 0.5s; }
  .alt-page .about-card.in-view .about-fact:nth-of-type(4) { animation-delay: 0.6s; }

  /* --- CAREERS --- */
  .alt-page .career-list .career-card {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  .alt-page .career-list.in-view .career-card {
    animation: section-fade-up 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  .alt-page .career-list.in-view .career-card:nth-of-type(1) { animation-delay: 0.1s; }
  .alt-page .career-list.in-view .career-card:nth-of-type(2) { animation-delay: 0.25s; }
  .alt-page .career-list.in-view .career-card:nth-of-type(3) { animation-delay: 0.4s; }
  .alt-page .career-list.in-view .career-card:nth-of-type(4) { animation-delay: 0.55s; }

  /* Working-here side panel */
  .alt-page .working-here .wh-item {
    opacity: 0;
    transform: translateX(-0.5rem);
  }

  .alt-page .working-here.in-view .wh-item {
    animation: section-fade-right 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  .alt-page .working-here.in-view .wh-item:nth-child(1) { animation-delay: 0.25s; }
  .alt-page .working-here.in-view .wh-item:nth-child(2) { animation-delay: 0.4s; }
  .alt-page .working-here.in-view .wh-item:nth-child(3) { animation-delay: 0.55s; }

  @keyframes section-fade-right {
    to { opacity: 1; transform: translateX(0); }
  }

  /* --- CONTACT --- */
  .alt-page .contact-shell .contact-fact,
  .alt-page .contact-shell .contact-form .field,
  .alt-page .contact-shell .contact-form .turnstile-field,
  .alt-page .contact-shell .contact-form .submit-btn {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  .alt-page .contact-shell.in-view .contact-fact,
  .alt-page .contact-shell.in-view .contact-form .field,
  .alt-page .contact-shell.in-view .contact-form .turnstile-field,
  .alt-page .contact-shell.in-view .contact-form .submit-btn {
    animation: section-fade-up 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  .alt-page .contact-shell.in-view .contact-fact:nth-of-type(1) { animation-delay: 0.2s; }
  .alt-page .contact-shell.in-view .contact-fact:nth-of-type(2) { animation-delay: 0.3s; }
  .alt-page .contact-shell.in-view .contact-fact:nth-of-type(3) { animation-delay: 0.4s; }
  .alt-page .contact-shell.in-view .contact-fact:nth-of-type(4) { animation-delay: 0.5s; }

  .alt-page .contact-shell.in-view .contact-form .field:nth-of-type(1) { animation-delay: 0.25s; }
  .alt-page .contact-shell.in-view .contact-form .field:nth-of-type(2) { animation-delay: 0.35s; }
  .alt-page .contact-shell.in-view .contact-form .field:nth-of-type(3) { animation-delay: 0.45s; }
  .alt-page .contact-shell.in-view .contact-form .field:nth-of-type(4) { animation-delay: 0.55s; }
  .alt-page .contact-shell.in-view .contact-form .turnstile-field { animation-delay: 0.65s; }
  .alt-page .contact-shell.in-view .contact-form .submit-btn { animation-delay: 0.75s; }

  /* --- SECTION HEADERS (eyebrow + title + lead) --- */
  .alt-page .section-head > * {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  .alt-page .section-head.in-view > * {
    animation: section-fade-up 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  .alt-page .section-head.in-view > *:nth-child(1) { animation-delay: 0.1s; }
  .alt-page .section-head.in-view > *:nth-child(2) { animation-delay: 0.25s; }

  /* --- STAT STRIP --- */
  .alt-page .stat-strip .stat-cell {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  .alt-page .stat-strip.in-view .stat-cell {
    animation: section-fade-up 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  .alt-page .stat-strip.in-view .stat-cell:nth-of-type(1) { animation-delay: 0.1s; }
  .alt-page .stat-strip.in-view .stat-cell:nth-of-type(2) { animation-delay: 0.2s; }
  .alt-page .stat-strip.in-view .stat-cell:nth-of-type(3) { animation-delay: 0.3s; }
  .alt-page .stat-strip.in-view .stat-cell:nth-of-type(4) { animation-delay: 0.4s; }
}
