/* Home conversion flow. Loaded last and scoped to .home. */
.home { --studio-cream: #f0eee5; --studio-orange: #ffb98c; }
.home .hero--portfolio { min-height: min(780px, calc(100svh - 96px)); }
.home .hero-utility { border-bottom-color: #344a3b; color: #adc0ae; }
.home .hero-stage { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(34px, 5vw, 82px); padding: clamp(48px, 7vh, 95px) 0; }
.home .hero-kicker { font: 700 13px/1.5 Manrope, Arial, sans-serif; letter-spacing: 0; text-transform: none; color: var(--studio-orange); }
.home .hero h1 { max-width: 920px; font-size: clamp(50px, 5.9vw, 102px); line-height: .98; letter-spacing: -.075em; font-weight: 800; text-wrap: balance; }
.home .hero h1 em { font-style: normal; color: var(--lime); }
.home .hero-description { max-width: 620px; margin-top: clamp(24px, 3vw, 38px); color: #d4dfd4; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; letter-spacing: -.025em; }
.home .hero-actions { margin-top: 34px; gap: 12px; }
.home .action { min-height: 60px; padding-inline: 23px; font-size: 14px; font-weight: 800; text-transform: none; letter-spacing: -.02em; }
.home .action--primary { min-width: 230px; background: var(--lime); box-shadow: 0 8px 26px #d9fa7320; }
.home .action--primary:hover { background: #edffae; }
.home .action--secondary { border-color: #607366; }
.home .hero-assurance { max-width: 500px; margin: 18px 0 0; color: #9fb3a4; font-size: 12px; line-height: 1.5; }
.home .hero-foot { color: #9fb3a4; text-transform: none; letter-spacing: 0; font: 500 12px/1.4 Manrope, Arial, sans-serif; }
.home .hero-foot a { font-weight: 700; }

/* A small, controllable explanation of the real report workflow. */
.home .hero-experience { min-width: 0; padding: clamp(16px, 2.3vw, 28px); border: 1px solid #58725c; border-radius: 18px; background: radial-gradient(circle at 85% 0%, #436146 0%, transparent 43%), #1d3025; box-shadow: 0 28px 80px #0005, 13px 13px 0 #253b2b; transform: rotate(1deg); }
.home .experience-top,.home .experience-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 11px; color: #b9cfbb; }
.home .experience-top { padding: 0 2px 16px; }
.home .experience-top>span:last-child { text-align: right; }
.home .experience-live { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 800; }
.home .experience-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px #d9fa7326; }
.home .experience-window { border-radius: 12px; background: var(--studio-cream); color: #1b2a20; padding: clamp(15px, 2vw, 26px); min-height: 370px; }
.home .experience-window-top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #cad5c7; font-size: 13px; font-weight: 800; }
.home .experience-window-top>span:last-child { color: #9eada0; letter-spacing: 4px; font-size: 10px; }
.home .experience-steps { display: flex; gap: 6px; padding: 19px 0; }
.home .experience-step { position: relative; flex: 1; min-width: 0; min-height: 48px; overflow: hidden; padding: 11px 8px 13px; border: 1px solid #c8d4c4; border-radius: 8px; background: #fffdfa; color: #4a594a; font: 700 clamp(10px, .95vw, 13px)/1.3 Manrope, Arial, sans-serif; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.home .experience-step span { color: #718276; margin-right: 4px; }
.home .experience-step:hover,.home .experience-step.is-current { color: #183526; border-color: #6da460; background: #e5f6cf; }
.home .experience-step:focus-visible { outline: 3px solid #235739; outline-offset: 2px; }
.home .experience-step.is-current::after { content: ''; position: absolute; inset: auto auto 0 0; width: 100%; height: 3px; background: #70a850; }
.home .hero-experience.is-playing .experience-step.is-current::after { animation: story-progress 3s linear both; transform-origin: left center; }
@keyframes story-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.home .experience-scenes { min-height: 188px; }
.home .experience-scene[hidden] { display: none; }
.home .experience-scene.is-current { animation: story-enter .45s ease both; }
@keyframes story-enter { from { opacity: .2; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  /* Content is visible even if the observer has not run yet. Do not
     replace the card's existing hover transform with an entrance transform. */
  @keyframes home-card-reveal {
    from { opacity: .72; translate: 0 10px; }
    to { opacity: 1; translate: 0 0; }
  }
  .home [data-reveal].is-visible { animation: home-card-reveal .48s cubic-bezier(.2,.7,.2,1); }
  .home [data-reveal].is-visible:focus-within { animation: none; }
}
.home .scene-eyebrow { display: block; color: #59715c; font: 700 11px/1.3 Manrope, Arial, sans-serif; }
.home .experience-scene p { color: #536353; margin: 18px 0 0; font-size: 12px; line-height: 1.5; }
.home .scene-file,.home .scene-result { display: flex; align-items: center; gap: 13px; margin-top: 13px; padding: 16px; border: 1px solid #ccd9c7; border-radius: 10px; background: #fff; box-shadow: 0 8px 18px #20362212; }
.home .scene-file-icon,.home .scene-result-mark { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px; background: #e4f5d0; color: #2f642e; font-size: 23px; font-weight: 800; }
.home .scene-file strong,.home .scene-result strong { display: block; font-size: 16px; }
.home .scene-file small,.home .scene-result small { display: block; margin-top: 3px; color: #637465; font-size: 11px; }
.home .scene-file b { margin-left: auto; color: #3e843c; }
.home .scene-check { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #ccd9c7; font-size: 12px; }
.home .scene-check b { color: #2c783d; }
.home .scene-bars { display: flex; align-items: end; gap: 7px; height: 50px; padding: 9px 0 0; }
.home .scene-bars span { flex: 1; height: 45%; border-radius: 3px 3px 0 0; background: #a2d074; }
.home .scene-bars span:nth-child(2),.home .scene-bars span:nth-child(6) { height: 72%; }
.home .scene-bars span:nth-child(3),.home .scene-bars span:nth-child(7) { height: 90%; }
.home .scene-bars span:nth-child(4) { height: 62%; }
.home .experience-bottom { padding: 16px 2px 0; }
.home .experience-bottom a { color: var(--lime); font-weight: 800; white-space: nowrap; }
.home .experience-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Speak in customer problems first. */
.home .expertise-section { padding-top: clamp(80px, 8vw, 130px); }
.home .section-intro h2,.home .method-grid h2 { text-wrap: balance; }
.home .section-intro p { max-width: 420px; font-size: 17px; }
.home .expertise-grid { gap: 16px; }
.home .expertise-grid>a { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 350px; padding: clamp(24px, 2.5vw, 34px); border: 1px solid #49644f; border-top: 3px solid var(--studio-orange); border-radius: 8px; background: linear-gradient(140deg, #24392a, #18271f); transition: transform .25s, border-color .25s, background .25s; }
.home .expertise-grid>a:nth-child(2) { border-top-color: var(--lime); }
.home .expertise-grid>a:nth-child(3) { border-top-color: #a4c9e5; }
.home .expertise-grid>a:hover { transform: translateY(-6px); border-color: #9dc386; background: #294232; }
.home .expertise-grid>a>span { color: #b8cdbd; font: 700 11px/1.4 Manrope, Arial, sans-serif; letter-spacing: 0; text-transform: none; }
.home .expertise-grid h3 { margin: 52px 0 14px; font-size: clamp(25px, 2.2vw, 35px); line-height: 1.13; letter-spacing: -.05em; }
.home .expertise-grid p { color: #b7cbbb; font-size: 14px; }
.home .expertise-grid b { margin-top: auto; padding-top: 28px; color: var(--lime); font-size: 26px; line-height: 1; }

.home .work-section { padding-top: 72px; }
.home .featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.home .featured-card--lead { grid-column: 1/-1; }
.home .featured-card:not(.featured-card--lead) .featured-visual { aspect-ratio: 1.7/1; }
.home .featured-body h3 { margin-top: 24px; }
.home .visual-tag { font: 600 10px/1.35 Manrope, Arial, sans-serif; letter-spacing: 0; text-transform: none; }
.home .project-more-link { display: inline-flex; gap: 30px; align-items: center; justify-content: space-between; min-height: 58px; margin-top: 24px; padding: 15px 20px; border: 1px solid #829c83; border-radius: 4px; font-size: 14px; font-weight: 800; }
.home .project-more-link:hover { background: var(--lime); color: #162019; }
.home .project-more-link span { font-size: 22px; }
.home .demo-section { padding-top: 0; }
.home .integration-lab-teaser { margin: 0; padding: clamp(28px, 4.5vw, 60px); border: 1px solid #58735a; border-radius: 15px; background: radial-gradient(circle at 5% 10%, #3b6146, transparent 40%), #1a2b20; }
.home .integration-lab-head { grid-template-columns: 1fr minmax(260px,.5fr); gap: 15px 50px; align-items: end; }
.home .integration-lab-head>span { grid-column: 1/-1; color: var(--studio-orange); font: 700 12px Manrope, Arial, sans-serif; }
.home .integration-lab-head h3 { font-size: clamp(42px, 5vw, 74px); line-height: 1; }
.home .integration-lab-head h3 em { font-style: normal; color: var(--lime); }
.home .integration-lab-head p { font-size: 16px; max-width: 400px; }
.home .integration-lab-all { grid-column: 1/-1; margin: 10px 0 15px; padding: 16px 18px; background: var(--lime); color: #1a281c; border: 0; border-radius: 4px; font: 800 13px Manrope, Arial, sans-serif; }
.home .integration-lab-all:hover { background: #efffbc; }
.home .integration-lab-links { gap: 10px; }
.home .integration-lab-links a { min-height: 145px; border-radius: 6px; }
.home .integration-lab-links strong { font-size: clamp(22px, 2vw, 29px); }
.home .method-section { margin-top: 0; }
.home .method-grid h2 { font-size: clamp(48px, 5.6vw, 90px); }
.home .contact-section { margin-top: 0; }
.home .calculator-teaser,.home .archive-section,.home .development-section { padding-top: clamp(80px, 8vw, 110px); }
.home .archive-section { border-top: 1px solid #344d3c; }
.home .development-section { border-top: 1px solid #344d3c; padding-bottom: 100px; }
.home .archive-section .section-intro h2 { font-size: clamp(52px, 6vw, 90px); }
.home .development-intro h2 { font-size: clamp(48px, 6vw, 90px); }

@media (max-width: 950px) {
  .home .hero--portfolio { min-height: 0; }
  .home .hero-stage { grid-template-columns: 1fr; gap: 42px; }
  .home .hero h1 { max-width: 760px; font-size: clamp(55px, 9vw, 92px); }
  .home .hero-experience { width: min(100%,760px); transform: none; }
  .home .expertise-grid { grid-template-columns: 1fr 1fr; }
  .home .expertise-grid>a { min-height: 300px; }
  .home .integration-lab-head { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .home .hero-stage { padding-block: 52px 44px; gap: 38px; }
  .home .hero h1 { font-size: clamp(42px, 10.8vw, 65px); line-height: 1.03; }
  .home .hero-description { font-size: 16px; }
  .home .hero-actions { display: grid; grid-template-columns: 1fr; }
  .home .action { width: 100%; }
  .home .hero-experience { padding: 12px; box-shadow: 7px 7px 0 #253b2b; }
  .home .experience-window { min-height: 365px; padding: 14px; }
  .home .experience-top,.home .experience-bottom { font-size: 10px; }
  .home .experience-top>span:last-child { max-width: 155px; }
  .home .experience-step { padding-inline: 4px; font-size: 10px; }
  .home .experience-step span { display: none; }
  .home .expertise-grid,.home .featured-grid { grid-template-columns: 1fr; }
  .home .expertise-grid>a { min-height: 250px; }
  .home .expertise-grid h3 { margin-top: 38px; }
  .home .featured-card--lead { grid-template-columns: 1fr; }
  .home .featured-card--lead .featured-visual { aspect-ratio: 1.6/1; }
  .home .section-intro h2 { font-size: clamp(45px, 10vw, 65px); }
  .home .integration-lab-head { grid-template-columns: 1fr; }
  .home .integration-lab-head>span,.home .integration-lab-all { grid-column: 1; }
  .home .integration-lab-links { grid-template-columns: 1fr; }
  .home .integration-lab-links a { min-height: 130px; }
  .home .hero-foot { align-items: center; }
  .home .hero-foot>span { max-width: 60%; }
  .home .method-grid h2 { font-size: clamp(45px, 10vw, 68px); }
}
@media (max-width: 390px) {
  .home .hero h1 { font-size: clamp(39px, 10.4vw, 44px); }
  .home .experience-bottom { align-items: start; flex-direction: column; gap: 7px; }
  .home .section-intro h2 { font-size: 11vw; }
}
@media (prefers-reduced-motion: reduce) {
  .home .hero-experience.is-playing .experience-step.is-current::after,
  .home .experience-scene.is-current { animation: none; }
  .home .hero-experience,.home .expertise-grid>a:hover { transform: none; }
}
