/* Homepage: hero data journey, service cards, robotics tabs, FAQ and closing call to action. */
.home-v2 {
  --v2-panel: #1b1a17;
  --v2-panel-ink: #ece8dc;
  --v2-panel-muted: #a9a496;
  --v2-copper: #a76d3b;
  --v2-copper-text: #94602f;
  --v2-copper-light: #d9a774;
  --v2-surface: #efeee6;
  --v2-line: #dddbd0;
}
html[data-theme="dark"] .home-v2 {
  --v2-panel: #1f1e1b;
  --v2-copper-text: #d39a68;
  --v2-surface: #1d1d1a;
  --v2-line: rgba(255, 255, 255, 0.12);
}
.v2-wrap { width: min(calc(100% - 64px), 1180px); margin-inline: auto; }
/* theme.css rounds every main button into a pill; tabs here are underlined instead. */
.home-v2 .v2-stage-tabs button, .home-v2 .v2-work-tabs button { border-radius: 0; border-style: solid; border-width: 0 0 2px; background: none; }

.preview-note { display: flex; align-items: center; gap: 18px; padding: 8px 32px; background: #ecebe2; color: #4f4d46; font-size: 12px; }
.preview-note-label { font: 500 11px/1.4 var(--font-geist-mono), monospace; letter-spacing: 0.1em; text-transform: uppercase; color: #94602f; }
.preview-note a { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
html[data-theme="dark"] .preview-note { background: #1e1e1b; color: var(--muted); }
html[data-theme="dark"] .preview-note-label { color: #d39a68; }

.v2-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font: 500 12px/1.5 var(--font-geist-mono), monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--v2-copper-text); }
.v2-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--v2-copper); }

/* Hero */
.v2-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; padding: 72px 0 76px; }
main.home-v2 h1 { font: 400 clamp(46px, 5vw, 72px)/1.04 TitleSerif, Georgia, serif !important; letter-spacing: -0.015em !important; margin: 0 0 26px; max-width: none; color: var(--ink); }
main.home-v2 h1 em { font-style: normal; color: var(--v2-copper-text); }
.v2-lead { font-size: 19px; line-height: 1.6; max-width: 500px; margin: 0 0 34px; }
.v2-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.v2-button { display: inline-flex; align-items: center; gap: 18px; padding: 14px 20px; border-radius: 8px; background: #191919; color: var(--page) !important; font-size: 15px; font-weight: 500; transition: background-color 0.2s, transform 0.2s; }
.v2-button:hover { background: #333; transform: translateY(-2px); }
html[data-theme="dark"] .v2-button:not(.v2-button-light) { background: var(--ink); color: #151513 !important; }
html[data-theme="dark"] .v2-button:not(.v2-button-light):hover { background: #fff; }
.v2-text-link { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 4px; border-bottom: 1px solid #b9b6aa; font-size: 15px; color: var(--ink); }
.v2-text-link:hover { border-color: var(--v2-copper); color: var(--v2-copper-text); }
.v2-footnote { margin: 26px 0 0; font-size: 14px; }

/* Data journey panel */
.v2-journey { background: var(--v2-panel); color: var(--v2-panel-ink); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(25, 25, 25, 0.14); }
html[data-theme="dark"] .v2-journey { border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: none; }
.v2-journey-top { display: flex; justify-content: space-between; align-items: center; margin: 0 26px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.09); font: 500 11px var(--font-geist-mono), monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.v2-journey-top > span { display: flex; align-items: center; gap: 9px; }
.v2-journey-toggle { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 7px; color: var(--v2-panel-ink); }
.v2-journey-toggle:hover { border-color: var(--v2-copper-light); color: var(--v2-copper-light); }
.v2-journey-toggle .icon-play, .v2-journey.is-paused .v2-journey-toggle .icon-pause { display: none; }
.v2-journey.is-paused .v2-journey-toggle .icon-play { display: block; }
.v2-flow { position: relative; height: 236px; overflow: hidden; background: radial-gradient(ellipse at center, rgba(167, 109, 59, 0.13), transparent 62%); }
.v2-orbit { position: absolute; left: 50%; top: 50%; width: 270px; height: 270px; border: 1px solid rgba(217, 167, 116, 0.12); border-radius: 50%; transform: translate(-50%, -50%); }
.v2-orbit-lg { width: 380px; height: 380px; }
.v2-input-grid { position: absolute; left: 9%; top: 74px; display: grid; grid-template-columns: repeat(5, 10px); gap: 6px; transform: rotate(-14deg); }
.v2-input-grid span { width: 10px; height: 10px; border: 1px solid rgba(236, 232, 220, 0.38); background: rgba(236, 232, 220, 0.08); }
.v2-input-grid span:nth-child(3n) { background: rgba(217, 167, 116, 0.45); transform: translate(5px, -5px); }
.v2-processor { position: absolute; left: 50%; top: 108px; z-index: 2; display: grid; place-items: center; width: 88px; height: 88px; border: 1px solid rgba(217, 167, 116, 0.6); border-radius: 18px; background: #26241f; color: var(--v2-copper-light); transform: translate(-50%, -50%) rotate(-5deg); box-shadow: 0 0 44px rgba(217, 167, 116, 0.16); }
.v2-processor svg { display: none; }
.v2-journey[data-stage="0"] [data-stage-icon="0"],
.v2-journey[data-stage="1"] [data-stage-icon="1"],
.v2-journey[data-stage="2"] [data-stage-icon="2"] { display: block; }
.v2-output-grid { position: absolute; right: 10%; top: 80px; display: grid; grid-template-columns: repeat(3, 14px); gap: 7px; }
.v2-output-grid span { width: 14px; height: 14px; border-radius: 2px; background: #e3d3b8; box-shadow: 2px 3px 0 var(--v2-copper); }
.v2-connector { position: absolute; top: 108px; width: 22%; height: 1px; background: linear-gradient(90deg, transparent, rgba(217, 167, 116, 0.5)); }
.v2-connector-left { left: 19%; }
.v2-connector-right { right: 19%; transform: scaleX(-1); }
.v2-micro { position: absolute; bottom: 34px; font: 10px var(--font-geist-mono), monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--v2-panel-muted); }
.v2-micro-in { left: 7%; }
.v2-micro-out { right: 7%; }
.v2-journey.is-playing .v2-input-grid span { animation: v2-pulse 3.8s ease-in-out infinite; }
.v2-journey.is-playing .v2-input-grid span:nth-child(odd) { animation-delay: 0.4s; }
.v2-journey.is-playing .v2-input-grid span:nth-child(4n) { animation-delay: 0.9s; }
.v2-journey.is-playing .v2-output-grid { animation: v2-glow 3.8s ease-in-out infinite; }
@keyframes v2-pulse { 0%, 100% { opacity: 0.5; translate: 0 0; } 50% { opacity: 1; translate: 5px -3px; } }
@keyframes v2-glow { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
.v2-stage-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 26px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.v2-stage-tabs button { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 2px solid transparent; color: var(--v2-panel-muted); font-size: 14px; text-align: left; }
.v2-stage-tabs button span { font: 11px var(--font-geist-mono), monospace; }
.v2-stage-tabs button:hover { color: var(--v2-panel-ink); }
.v2-stage-tabs button[aria-selected="true"] { color: var(--v2-copper-light); border-color: var(--v2-copper-light); }
.v2-stage-panel { min-height: 132px; padding: 24px 26px; }
.home-v2 .v2-stage-panel h2 { font: 400 26px/1.2 TitleSerif, Georgia, serif !important; margin: 0 0 10px; color: var(--v2-panel-ink); }
.v2-stage-panel p { max-width: 380px; margin: 0; font-size: 15px; line-height: 1.55; color: var(--v2-panel-muted); }
.v2-stage-panel.is-changing > * { animation: v2-fade 0.32s ease-out; }
@keyframes v2-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.v2-journey-bottom { display: flex; justify-content: space-between; padding: 15px 26px; border-top: 1px solid rgba(255, 255, 255, 0.09); font: 11px var(--font-geist-mono), monospace; letter-spacing: 0.06em; color: var(--v2-panel-muted); }

/* Domain strip */
.v2-domains { border-block: 1px solid var(--rule); padding: 24px 0; }
.v2-domains .v2-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.v2-domains .v2-wrap > span { font: 12px var(--font-geist-mono), monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.v2-domains ul { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin: 0; padding: 0; list-style: none; font: 22px TitleSerif, Georgia, serif; color: var(--ink); }
.v2-domains li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 28px 0 0; border-radius: 50%; background: var(--v2-copper); vertical-align: middle; transform: translateY(-2px); }

/* Sections */
.v2-section { padding: 88px 0; }
.v2-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 42px; }
.home-v2 .v2-heading h2, .home-v2 .v2-faq h2 { margin: 0; font: 400 clamp(32px, 3.4vw, 44px)/1.12 TitleSerif, Georgia, serif !important; letter-spacing: -0.01em !important; color: var(--ink); }
.v2-heading > p { max-width: 360px; margin: 0; font-size: 16px; line-height: 1.55; }

/* Spotlight service cards */
.v2-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.v2-service { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--v2-line); border-radius: 10px; background: var(--v2-surface); overflow: hidden; isolation: isolate; transition: border-color 0.25s, transform 0.25s; }
.v2-service:hover { border-color: rgba(167, 109, 59, 0.55); transform: translateY(-3px); }
.v2-service-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 38px; color: var(--v2-copper-text); }
.v2-service-top span { font: 12px var(--font-geist-mono), monospace; color: var(--muted); }
.home-v2 .v2-service h3 { margin: 0 0 12px; font: 400 26px/1.15 TitleSerif, Georgia, serif !important; color: var(--ink); }
.v2-service p { flex: 1; margin: 0 0 30px; font-size: 16px; line-height: 1.55; }
.v2-service-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--v2-line); font: 11px var(--font-geist-mono), monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.v2-round-arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--v2-line); border-radius: 50%; color: var(--ink); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.v2-service:hover .v2-round-arrow { background: #191919; border-color: #191919; color: var(--page); }
html[data-theme="dark"] .v2-service:hover .v2-round-arrow { background: var(--ink); border-color: var(--ink); }

/* Robotics work tabs */
.v2-work { padding: 80px 0 88px; background: var(--v2-surface); border-block: 1px solid var(--v2-line); }
.v2-work-tabs { display: flex; margin-bottom: 30px; border-bottom: 1px solid var(--v2-line); }
.v2-work-tabs button { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-size: 16px; text-align: left; }
.v2-work-tabs button span { font: 12px var(--font-geist-mono), monospace; color: var(--v2-copper-text); }
.v2-work-tabs button:hover { color: var(--ink); }
.v2-work-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.v2-work-panel { display: grid; grid-template-columns: 1.65fr 1fr; gap: 44px; align-items: center; }
.v2-work-panel[hidden] { display: none; }
.v2-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 8px; background: #0b1720; }
.home-v2 .v2-work-copy h3 { margin: 0 0 16px; font: 400 30px/1.15 TitleSerif, Georgia, serif !important; color: var(--ink); }
.v2-work-copy p:not(.v2-eyebrow) { margin: 0; font-size: 16px; line-height: 1.6; }
/* Validation scorecard beside each video. */
.v2-scorecard { margin: 24px 0 26px; padding: 18px 20px 16px; border: 1px solid var(--v2-line); border-radius: 12px; background: var(--page); box-shadow: 0 1px 0 rgba(25, 25, 25, 0.03), 0 18px 36px -24px rgba(25, 25, 25, 0.35); }
.v2-score-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font: 500 11px var(--font-geist-mono), monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.v2-stumped { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 6px; background: rgba(167, 109, 59, 0.12); color: var(--v2-copper-text); letter-spacing: 0.06em; }
.v2-stumped > span { width: 6px; height: 6px; border-radius: 50%; background: var(--v2-copper); box-shadow: 0 0 0 3px rgba(167, 109, 59, 0.2); }
.v2-scale { --fill: 0; position: relative; height: 54px; margin: 0 6px; }
.v2-scale-track { position: absolute; left: 0; right: 0; top: 14px; height: 8px; border-radius: 999px; background: repeating-linear-gradient(90deg, var(--v2-line) 0 1px, transparent 1px 10%), rgba(127, 120, 104, 0.12); overflow: hidden; }
.v2-scale-model { position: absolute; inset: 0 auto 0 0; width: 20%; transform-origin: left center; border-radius: 999px; background: linear-gradient(90deg, rgba(167, 109, 59, 0.35), var(--v2-copper)); }
.v2-tick, .v2-pin { position: absolute; left: calc(var(--at) * 100%); top: 6px; transform: translateX(-50%); }
.v2-tick-bar { width: 0; height: 24px; border-left: 1.5px dashed var(--ink); opacity: 0.55; }
.v2-tick-bar span { position: absolute; top: -12px; left: 6px; white-space: nowrap; font: 10px var(--font-geist-mono), monospace; letter-spacing: 0.04em; color: var(--muted); }
.v2-pin { top: 10px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--page); box-shadow: 0 2px 6px rgba(25, 25, 25, 0.25); }
.v2-pin-ref, .v2-key-ref { background: #6e8b74; }
.v2-pin-oracle, .v2-key-oracle { background: var(--ink); }
.v2-key-model { background: var(--v2-copper); }
.v2-key-nop { background: transparent; border: 1.5px solid var(--muted); }
.v2-scale-axis { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font: 10px var(--font-geist-mono), monospace; color: var(--muted); }
.v2-score-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--v2-line); }
.v2-score-rows > div { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; }
.v2-score-rows dt { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink); }
.v2-key { width: 9px; height: 9px; border-radius: 50%; }
.v2-score-rows dd { margin: 0; font: 500 13px var(--font-geist-mono), monospace; color: var(--ink); }
.v2-score-rows em { margin-left: 6px; font-style: normal; font-weight: 400; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.v2-row-model dd, .v2-row-model em { color: var(--v2-copper-text); }

/* How a task earns its place */
.v2-method { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: 56px; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--v2-line); }
.home-v2 .v2-method-intro h3 { margin: 0 0 16px; font: 400 clamp(28px, 2.8vw, 36px)/1.15 TitleSerif, Georgia, serif !important; color: var(--ink); }
.v2-method-intro > p:not(.v2-eyebrow) { margin: 0; font-size: 16px; line-height: 1.65; }
.v2-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.v2-method-grid li { padding: 20px 20px 18px; border: 1px solid var(--v2-line); border-radius: 12px; background: var(--page); box-shadow: 0 14px 30px -24px rgba(25, 25, 25, 0.35); }
.v2-method-grid span { font: 11px var(--font-geist-mono), monospace; color: var(--v2-copper-text); }
.home-v2 .v2-method-grid h4 { margin: 12px 0 8px; font: 400 19px/1.25 TitleSerif, Georgia, serif; color: var(--ink); }
.v2-method-grid p { margin: 0; font-size: 14px; line-height: 1.6; }
.v2-method-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }

/* Process */
.v2-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.v2-steps li { padding: 30px 28px 6px 0; }
.v2-steps li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.v2-steps span { font: 12px var(--font-geist-mono), monospace; color: var(--v2-copper-text); }
.home-v2 .v2-steps h3 { margin: 14px 0 12px; font: 400 27px/1.18 TitleSerif, Georgia, serif !important; color: var(--ink); }
.v2-steps p { margin: 0; font-size: 16px; line-height: 1.6; }

/* FAQ */
.v2-faq { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; border-top: 1px solid var(--rule); }
.v2-faq h2 { margin-bottom: 24px !important; }
.v2-faq > div:first-child > p:not(.v2-eyebrow) { margin: 0 0 12px; font-size: 16px; }
.v2-faq-list details { border-bottom: 1px solid var(--rule); }
.v2-faq-list details:first-child { border-top: 1px solid var(--rule); }
.v2-faq-list summary { position: relative; padding: 22px 36px 22px 0; cursor: pointer; list-style: none; font-size: 18px; color: var(--ink); }
.v2-faq-list summary::-webkit-details-marker { display: none; }
.v2-faq-list summary::after { content: ""; position: absolute; right: 6px; top: 27px; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform 0.2s; }
.v2-faq-list details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.v2-faq-list details p { margin: 0 0 22px; max-width: 560px; font-size: 16px; line-height: 1.7; }
.v2-faq-list details p a { text-decoration: underline; text-underline-offset: 3px; }

/* Closing call to action */
.v2-closing-wrap { padding-bottom: 96px; }
.v2-closing { position: relative; overflow: hidden; padding: 60px; border-radius: 14px; background: var(--v2-panel); color: var(--v2-panel-ink); }
html[data-theme="dark"] .v2-closing { border: 1px solid rgba(255, 255, 255, 0.1); }
.v2-closing > *:not(.v2-closing-orbit) { position: relative; z-index: 1; }
.v2-closing .v2-eyebrow { color: var(--v2-copper-light); }
.home-v2 .v2-closing h2 { margin: 22px 0 32px; font: 400 clamp(40px, 4.6vw, 62px)/1.06 TitleSerif, Georgia, serif !important; letter-spacing: -0.015em !important; color: var(--v2-panel-ink); }
.v2-closing em { font-style: normal; color: var(--v2-copper-light); }
.v2-button-light { background: #ece8dc; color: #191919 !important; }
.v2-button-light:hover { background: #fff; }
.v2-closing-orbit { position: absolute; top: -10px; right: -80px; width: 450px; height: 450px; border: 1px solid rgba(217, 167, 116, 0.2); border-radius: 50%; box-shadow: 0 0 0 60px rgba(217, 167, 116, 0.035), 0 0 0 120px rgba(217, 167, 116, 0.03); }
.v2-closing-orbit::after { content: ""; position: absolute; inset: 60px; border: 1px solid rgba(217, 167, 116, 0.2); border-radius: 50%; }

@media (max-width: 1000px) {
  .v2-hero { gap: 36px; }
  .v2-work-panel { gap: 28px; }
  .v2-method { grid-template-columns: 1fr; gap: 28px; }
  .v2-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .v2-wrap { width: calc(100% - 32px); }
  .preview-note { padding: 8px 16px; }
  .preview-note-copy { display: none; }
  .v2-hero { grid-template-columns: 1fr; padding: 44px 0 52px; }
  main.home-v2 h1 { font-size: clamp(42px, 11.5vw, 60px) !important; }
  .v2-lead { font-size: 17px; }
  .v2-flow { height: 210px; }
  .v2-processor, .v2-connector { top: 98px; }
  .v2-input-grid { top: 64px; }
  .v2-output-grid { top: 70px; }
  .v2-micro { bottom: 24px; }
  .v2-domains .v2-wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .v2-domains ul { font-size: 18px; gap: 6px 22px; }
  .v2-domains li + li::before { display: none; }
  .v2-section { padding: 56px 0; }
  .v2-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .v2-services { grid-template-columns: 1fr; }
  .v2-work { padding: 56px 0; }
  .v2-work-tabs button { flex: 1; padding: 14px 8px; gap: 8px; font-size: 14px; }
  .v2-work-panel { grid-template-columns: 1fr; gap: 24px; }
  .v2-steps { grid-template-columns: 1fr; }
  .v2-heading h2 br { display: none; }
  .v2-score-rows { grid-template-columns: 1fr; }
  .v2-method { grid-template-columns: 1fr; gap: 28px; }
  .v2-method-grid { grid-template-columns: 1fr; }
  .v2-steps li, .v2-steps li + li { padding: 24px 0; border-left: 0; }
  .v2-steps li + li { border-top: 1px solid var(--rule); }
  .v2-faq { grid-template-columns: 1fr; gap: 24px; }
  .v2-closing { padding: 36px 26px; }
  .v2-closing-orbit { right: -320px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-service, .v2-button, .v2-round-arrow, .v2-faq-list summary::after { transition: none; }
  .v2-service:hover, .v2-button:hover { transform: none; }
}
