.discovery-story { padding-bottom: 0; }
.discovery-story > .both-worlds {
  --cell: var(--meadow-grid);
  --statement-width: min(56vw, 760px);
  --statement-gap: clamp(24px, 3vw, 52px);
  --art-width: max(0px, calc(50% - round(up, calc(var(--statement-width) / 2 + var(--statement-gap)), var(--cell))));
  padding: calc(2.8 * var(--cell)) 0 calc(2 * var(--cell));
}
.meadow-cut {
  position: absolute; z-index: -1; pointer-events: none;
  background: #4d732c url("assets/meadow-crisp.webp") no-repeat;
  background-size: auto 220%; background-position: 50% 100%;
}
.both-worlds .meadow-cut { width: var(--art-width); }
.meadow-cut-right {
  top: var(--art-top, 0px); right: 0; height: calc(4 * var(--cell));
  clip-path: polygon(var(--cell) 0, 100% 0, 100% 100%, var(--cell) 100%,
    var(--cell) calc(3 * var(--cell)), 0 calc(3 * var(--cell)), 0 var(--cell), var(--cell) var(--cell));
}
.meadow-cut-left {
  bottom: var(--art-bottom, 0px); left: 0; height: calc(3 * var(--cell)); background-position: 22% 90%;
  clip-path: polygon(0 0, calc(100% - var(--cell)) 0, calc(100% - var(--cell)) var(--cell),
    100% var(--cell), 100% calc(2 * var(--cell)), calc(100% - var(--cell)) calc(2 * var(--cell)),
    calc(100% - var(--cell)) 100%, 0 100%);
}
.discovery-story > .both-worlds h2 {
  position: relative; max-width: none; width: var(--statement-width); margin: 0 auto;
  font-size: clamp(32px,3.35vw,52px); line-height: 1.04; text-align: center; text-wrap: balance;
}
.discovery-intro > p { max-width: none; }

:root { --description-color: #595e5b; --story-space: clamp(40px, 5.5vw, 80px); --chapter-space: calc(var(--story-space) + clamp(12px, 1.4vw, 22px)); }
.story-section { padding-block: var(--story-space); }
.story-features { padding-bottom: 0; }
.story-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; margin-bottom: 40px; }
.section-label { margin: 0 0 12px; font: 11px/1.3 var(--mono); }
.story-intro h2, .customer-summary h2, .faq-card h2 {
  margin: 0; font-size: clamp(36px,3.6vw,56px); font-weight: 500; line-height: .98; letter-spacing: var(--title-tracking);
}
.story-intro > p { margin: 20px 0 0; max-width: 46ch; color: var(--description-color); font-size: clamp(21px,calc(1.7vw + 2px),27px); line-height: 1.14; }
@media (min-width: 761px) {
  .discovery-intro, .walk-intro { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 0; }
  .discovery-intro h2, .walk-intro > div { padding-right: 24px; }
  .walk-intro > p { max-width: none; }
}
.story-features .story-intro { margin-bottom: clamp(48px, 4vw, 60px); }
.feature-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
.feature-wide, .feature-half {
  background: #F7F6EE; border-radius: 8px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(36,43,29,.07);
}
.feature-wide, .feature-half { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); min-width: 0; }
.feature-grid > article:nth-child(3) .feature-film { order: -1; }
.feature-copy { align-self: center; padding: clamp(24px,2.7vw,44px); }
.feature-copy h3 { margin: 0; max-width: 30ch; font-size: clamp(29px,calc(2.3vw + 3px),39px); font-weight: 500; line-height: 1.03; letter-spacing: var(--title-tracking); }
.feature-copy p { margin: 18px 0 0; color: var(--description-color); font: inherit; font-size: clamp(20px,1.53vw,22px); line-height: 1.4; }
.feature-wide .feature-copy { container-type: inline-size; }
.feature-checks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 20px 0 0; }
.feature-reverse .feature-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-checks li {
  display: grid; grid-template-rows: minmax(20px, 1fr) auto; align-items: start;
  min-height: 180px; gap: 20px; padding: clamp(12px, 2.5cqi, 16px);
  background: #fff; border: 1px solid #d8dcd7; border-radius: 6px;
  font-size: clamp(16px, 3.8cqi, 18px); line-height: 1.15; text-align: left; overflow-wrap: anywhere;
}
.feature-detail > span { display: block; }
.feature-checks .feature-detail p { margin: 8px 0 0; font-size: 14px; line-height: 1.3; color: var(--description-color); }
.feature-checks svg {
  width: 20px; height: 20px; flex: none; color: #007c55;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
@container (max-width: 440px) {
  .feature-reverse .feature-checks { grid-template-columns: 1fr; }
  .feature-reverse .feature-checks li { grid-template-columns: 20px minmax(0, 1fr); grid-template-rows: auto; min-height: 0; gap: 12px; }
}
@container (max-width: 350px) {
  .feature-checks svg { width: 18px; height: 18px; }
}
@container (max-width: 290px) {
  .feature-checks { grid-template-columns: 1fr; }
  .feature-checks li { grid-template-columns: 20px minmax(0, 1fr); grid-template-rows: auto; min-height: 0; gap: 12px; }
}
.story-film { position: relative; min-width: 0; }
.story-film video { display: block; width: 100%; height: auto; }
.feature-film { align-self: center; width: 100%; aspect-ratio: 1; min-width: 0; }
/* The canvas draws just the moving cards over a continuous, full-height photo. */
.continuity-film { display: grid; background: #375f40 url("assets/story/feature-bloom.webp?v=24") center / cover no-repeat; }
.connection-scene { position: relative; min-width: 0; min-height: 0; width: 100%; height: 100%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.connection-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.connection-poster { display: block; width: 85%; height: auto; border-radius: 7px; box-shadow: 0 3px 9px #15301f35; }
.infrastructure-film { position: relative; overflow: hidden; background: #125642; }
.infrastructure-film::before { content: ""; position: absolute; inset: 0; background: url('assets/story/feature-sweep.webp') center / cover; transform: rotate(180deg); }
.infrastructure-scene { position: relative; width: 100%; height: 100%; min-height: 0; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.infrastructure-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.infrastructure-poster { display: block; width: 85%; height: auto; border-radius: 7px; box-shadow: 0 3px 9px #15301f35; }
.infrastructure-scene.ready canvas { opacity: 1; }
.infrastructure-scene.ready .infrastructure-poster { visibility: hidden; }
.connection-scene.ready .connection-poster { visibility: hidden; }

/* Pin the walkthrough and its following section together so the scroll distance
   never opens a space between the video and the customer story. */
.walk-intro { padding-top: var(--chapter-space); margin-bottom: 48px; }
.walk-scroll { position: relative; }
.story-process { padding-bottom: var(--chapter-space); }
.walk-stage { display: grid; }
.walk-flow { top: clamp(80px, 14svh, 136px); }
.walk-scroll.is-pinned::after { content: ""; display: block; height: var(--walk-travel); }
.is-pinned > .walk-flow { position: sticky; }
.is-pinned .process-chapter { grid-area: 1 / 1; padding-bottom: 0; }
.is-pinned .process-chapter { pointer-events: none; z-index: var(--layer); }
.is-pinned .process-chapter:not([inert]) { pointer-events: auto; }
.is-pinned .step-copy {
  min-height: var(--deck-height); transform-origin: center top;
  transform: translateY(calc(-14px * var(--depth))) scale(calc(1 - .045 * var(--depth)));
  transition: transform .48s cubic-bezier(.22,.7,.22,1), opacity .35s;
}
.is-pinned .process-chapter[data-passed] .step-copy { transform: translate(-6%, 12px) scale(1.01); opacity: 0; }
.is-pinned .process-chapter[inert] :is(.step-window,.step-body) { opacity: 0; }
.is-pinned .step-window, .is-pinned .step-body { transition: opacity .42s ease; }
.step-copy { display: flex; flex-direction: column; justify-content: flex-start; border: 1px solid #dbe0db; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px #0a211014; }
.step-copy .step-chrome { flex: none; background: #eff2ef; border-bottom: 1px solid #dbe0db; }
.step-body { padding: clamp(18px, 2.1vw, 32px); margin-block: auto; }

.process-chapter {
  display: grid; grid-template-columns: minmax(0,.76fr) minmax(0,1.25fr);
  column-gap: clamp(24px,5vw,72px); row-gap: 20px; align-items: center;
  padding-block: calc(var(--story-space) / 2);
}
.process-chapter:last-child { padding-bottom: 0; }
.step-kicker { position: absolute; left: 50%; transform: translateX(-50%); padding: 3px 12px; background: #e5eae6; border-radius: 4px; margin: 0; font: 11px/1.4 var(--mono); }
.step-copy h3 { margin: 0; font-size: clamp(29px,calc(2.4vw + 3px),39px); font-weight: 500; letter-spacing: var(--title-tracking); line-height: 1.03; text-wrap: balance; }
.step-description, .feature-copy > p { text-wrap: pretty; }
.step-description { margin: 12px 0 0; max-width: 34ch; color: var(--description-color); font-size: clamp(19px,calc(1.55vw + 2px),24px); line-height: 1.24; }
.step-window { min-width: 0; margin: 0; border: 1px solid #dbe0db; border-radius: 8px; overflow: hidden; background: #f0f2f0; box-shadow: 0 8px 24px #0a211014; }
@media (orientation: landscape) and (max-height: 540px) {
  .walk-flow { top: 72px; }
  .walk-stage .process-chapter { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); padding-block: 12px; }
  .step-window { width: min(100%, calc(2 * (100svh - 164px))); justify-self: end; }
}
.step-chrome { height: 32px; padding: 0 12px; position: relative; display: flex; align-items: center; }
.step-address { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 3px 12px; border-radius: 4px; background: #e8ebea; color: #535f58; font: 10px/1.4 var(--mono); }
.customer-story { padding-block: var(--story-space); background-color: rgb(128 112 0 / 6.25%); }
.customer-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px,6vw,100px); }
.customer-summary { container-type: inline-size; }
.case-metrics { display: grid; grid-template-columns: repeat(3, max-content); justify-content: space-between; padding-top: 20px; }
.case-stat .case-count { position: absolute; inset: 0; }
.case-stat strong:has(.case-count) .case-value { opacity: 0; }
.case-stat:nth-child(2) { translate: clamp(-12px, -1.5cqi, -4px) 0; }
.case-stat strong { color: #007c55; display: block; position: relative; font-size: min(112px, calc(20.5cqi - 4.92px)); font-weight: 500; line-height: 1.05; letter-spacing: -1px; }
.case-stat > span { contain: inline-size; white-space: nowrap; color: var(--description-color); display: block; margin-top: 8px; font-size: clamp(16px, 5.65cqi, 20px); line-height: 1.3; }
.case-stat:last-child > span { contain: none; }
.customer-quote { display: flex; flex-direction: column; margin: 0; padding: clamp(28px,3vw,48px); min-height: 340px; border-radius: 12px; background: linear-gradient(135deg,#0f3c3570,#072b2070),url('assets/story/feature-forest.webp') center / cover; color: #fff; }
.quote-mark { color: #dbff65; height: 44px; font: 80px/1 Georgia,serif; }
.customer-quote blockquote { margin: 12px 0 32px; font-size: clamp(25px,calc(2vw + 2px),34px); line-height: 1.2; }
.customer-quote figcaption { display: grid; justify-items: start; gap: 6px; margin-top: auto; font: 11px/1.5 var(--mono); }
.customer-quote figcaption > span:nth-child(2) { color: #e0e9dc; }
.customer-quote a { margin-top: 8px; text-decoration: underline; text-underline-offset: 4px; }

.story-faq { overflow-anchor: none; padding-block: var(--chapter-space) clamp(28px, 3vw, 44px); }
.faq-card { position: relative; border: var(--frame-stroke); background: #fff; border-radius: 0; padding: clamp(20px,3.3vw,52px); box-shadow: 0 8px 28px #13201608; }
.faq-card h2 { margin: 0 0 28px; font-size: clamp(32px,3vw,46px); }
.faq-card details { overflow: clip; margin-top: 12px; background: #F7F6EE; border: 1px solid #e5e7e1; border-radius: 12px; }
.faq-card summary { list-style: none; position: relative; padding: 16px 48px 16px 20px; cursor: pointer; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after { content: '+'; position: absolute; right: 20px; top: 16px; font: 18px/1 var(--mono); }
.faq-card details[open] summary::after { content: '−'; }
.faq-card summary:focus-visible { outline: 2px solid #316b49; border-radius: 12px; }
.faq-question { display: block; font-size: 23px; line-height: 1.1; }
.faq-card details p { padding: 0; margin: 0 20px 18px; color: var(--description-color); font-size: 20px; line-height: 1.3; }

.meadow-footer { overflow-anchor: none; width: 100%; max-width: none; padding: var(--meadow-grid) 0 0; margin: 0; border: 0; }
.footer-layout {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.footer-brand img { display: block; width: 112px; height: auto; }
.footer-contact address { display: grid; gap: 4px; font-style: normal; }
.footer-contact address span, .footer-legal { font: 11px/1.5 var(--mono); }
.footer-contact address span { color: #536157; }
.footer-contact address a { font-size: 24px; }
.footer-contact a:hover, .footer-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { padding: 12px max(24px,4vw); position: absolute; bottom: 0; width: 100%; color: #fff; background: linear-gradient(transparent,#16221580); display: flex; align-items: center; justify-content: space-between; }
.footer-legal small { font: inherit; }
.footer-legal span { display: flex; gap: 16px; }
@media(max-width:899px){
  .discovery-story > .both-worlds { --statement-width: min(58vw,540px); }
  .discovery-story > .both-worlds h2 { font-size: clamp(30px,4.5vw,40px); }
  .customer-layout { gap: 32px; }
}
@media(max-width:639px){
  .discovery-story > .both-worlds { --art-width: calc(50% - var(--cell)); padding: calc(2 * var(--cell) + 28px) 0 calc(2 * var(--cell) + 36px); }
  .discovery-story > .both-worlds h2 { width: 70vw; font-size: clamp(27px,6.5vw,37px); }
  .meadow-cut-right { height: calc(2 * var(--cell)); clip-path: polygon(0 0,100% 0,100% 100%,var(--cell) 100%,var(--cell) var(--cell),0 var(--cell)); }
  .meadow-cut-left { height: calc(2 * var(--cell)); clip-path: polygon(0 0,calc(100% - var(--cell)) 0,calc(100% - var(--cell)) var(--cell),100% var(--cell),100% 100%,0 100%); }
  .story-intro, .feature-grid, .feature-wide, .process-chapter, .customer-layout { grid-template-columns: 1fr; }
  .story-intro { gap: 16px; margin-bottom: 24px; }
  .story-features .story-intro { margin-bottom: 36px; }
  .walk-intro { margin-bottom: 40px; }
  .story-intro > p { margin: 0; }
  .story-intro h2 br { display: none; }
  .feature-wide { grid-column: auto; }
  .feature-wide .feature-copy { order: -1; }
  .feature-copy { padding: 24px; }
  .customer-quote { min-height: 260px; }
  .footer-layout { align-items: start; flex-direction: column; gap: 16px; }
  .footer-brand picture { display: block; }
  .footer-legal { padding: 12px 16px; font-size: 9px; }
}

#how-it-works { scroll-margin-top: 84px; }
#preview-heading { letter-spacing: -.35px; }
.story-film video, #product-demo { pointer-events: none; }
.meadow-hero { margin-block-end: clamp(16px, 2vw, 32px); }
.hero-grass { display: none; }
@media (min-width:1041px) and (pointer:fine), (min-width:1377px) {
  .meadow-hero { margin-block-end: 0; }
  .hero-grass {
    display: block;
    left: 0; top: calc(round(nearest, 82%, var(--meadow-grid)) + var(--meadow-grid));
    width: calc(50% - 4 * var(--meadow-grid)); height: calc(3 * var(--meadow-grid));
    background-size: auto 350%; background-position: 25% 92%;
    clip-path: polygon(0 0, calc(100% - var(--meadow-grid)) 0,
      calc(100% - var(--meadow-grid)) var(--meadow-grid), 100% var(--meadow-grid),
      100% calc(2 * var(--meadow-grid)), calc(100% - var(--meadow-grid)) calc(2 * var(--meadow-grid)),
      calc(100% - var(--meadow-grid)) 100%, 0 100%);
  }
}
@media (min-width:1041px) and (pointer:fine), (min-width:1377px) {
  .hero-layout {
    align-self: start; padding-block: var(--meadow-grid) 0;
    grid-template-columns: minmax(0, 1fr) calc(6 * var(--meadow-grid)); gap: clamp(24px, 2.3vw, 40px);
  }
  .demo-player { align-self: start; }
  .hero-copy { padding-right: 0; }
  .meadow-backdrop {
    bottom: calc(-2 * var(--step));
    --grass-bottom: round(down, calc(100% - 2 * var(--step)), var(--step));
    --last-column: calc(var(--step) + round(nearest, 50vw, var(--step)));
    clip-path: polygon(0 0, 100% 0, 100% calc(var(--grass-bottom) + 2 * var(--step)),
      var(--last-column) calc(var(--grass-bottom) + 2 * var(--step)),
      var(--last-column) calc(var(--grass-bottom) + var(--step)),
      calc(var(--last-column) - var(--step)) calc(var(--grass-bottom) + var(--step)),
      calc(var(--last-column) - var(--step)) var(--grass-bottom),
      calc(2 * var(--step)) var(--grass-bottom), calc(2 * var(--step)) calc(2 * var(--step)),
      var(--step) calc(2 * var(--step)), var(--step) var(--step), 0 var(--step));
  }
}
.stack-strip { padding-block: clamp(36px, 3.4vw, 52px); margin-block-start: 0; background-color: #F7F6EE; }
.stack-strip .eyebrow { font: 12px/1.5 var(--mono); margin: 0 0 clamp(28px, 2.5vw, 38px); }
.stack-viewport { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent); }
.stack-track, .stack-group, .stack-group li { display: flex; align-items: center; }
.stack-track { width: max-content; animation: stack-flow 34s linear infinite; }
.stack-group { list-style: none; margin: 0; padding: 0; }
.stack-group li { padding-inline: clamp(20px, 2.3vw, 40px); gap: 8px; font-size: 23px; white-space: nowrap; }
.stack-group img { width: 28px; height: 28px; object-fit: contain; }
@keyframes stack-flow { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .stack-viewport { mask-image: none; }
  .stack-track { width: 100%; animation: none; }
  .stack-group { flex-wrap: wrap; gap: 16px; }
  .stack-group li { padding: 0; }
  .stack-group[aria-hidden] { display: none; }
}
.customer-story #trusted-by { padding: 36px 0 0; margin: 24px auto 0; background: transparent; }
.case-stat strong { font-variant-numeric: tabular-nums; }
.footer-layout { align-items: start; gap: 40px; }
.footer-brand { margin-top: 2px; flex: none; }
.footer-groups { display: grid; grid-template-columns: auto auto auto minmax(128px,1fr); align-items: start; gap: clamp(24px,3vw,44px); }
.footer-groups > * { display: grid; align-content: start; gap: 6px; min-width: 0; }
.footer-contact .footer-groups a { font: 13px/1.5 var(--mono); }
.footer-groups > * > :is(span, label) { font: 11px/1.5 var(--mono); margin-bottom: 4px; color: var(--appear-green); }
.footer-language select { appearance: none; -webkit-appearance: none; width: 100%; min-width: 128px; min-height: 36px; padding: 6px 38px 6px 12px; border: 1px solid #d8dcd7; border-radius: 6px; color: #131a15; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23536157' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") right 12px center / 14px 14px no-repeat; font: 12px/1.5 var(--mono); cursor: pointer; }
.footer-contact :is(a, select):focus-visible { outline: 2px solid #007c55; outline-offset: 4px; }
@media (max-width: 1100px) {
  .footer-layout { flex-direction: column; gap: 28px; }
  .footer-groups { width: 100%; grid-template-columns: 1fr 1.35fr 1fr 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .footer-layout { gap: 28px; }
  .footer-groups { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-explore { order: 0; }
  .footer-groups .legal-links { order: 1; }
  .footer-connect { order: 2; grid-column: 1 / -1; }
  .footer-language { order: 3; max-width: 160px; }
  .footer-contact .footer-groups a { padding-block: 3px; }
}
.section-label, .eyebrow, .step-kicker, .human-preview-body .preview-kicker,
.footer-contact :is(address, .legal-links) > span { color: var(--appear-green); }
.footer-pasture {
  --pasture-height: round(up, clamp(320px, 42vw, 640px), var(--meadow-grid));
  position: relative; width: 100%; height: var(--pasture-height); overflow: hidden;
  margin-block-start: calc(var(--pasture-snap, 0px) + var(--meadow-grid));
  /* One off-center rise, followed by a longer shoulder, on the page grid. */
  --rise: calc(50% - 2 * var(--meadow-grid));
  --fall: calc(50% + var(--meadow-grid));
  --shoulder: calc(50% + 3 * var(--meadow-grid));
  --fade: rgb(0 0 0 / 52%);
  /* Pick the grid cells containing the marked horizontal positions. */
  --muted-cell: calc(50% + round(down, -30%, var(--meadow-grid)));
  --right-cell: calc(50% + round(up, 45%, var(--meadow-grid)) - var(--meadow-grid));
  mask:
    linear-gradient(to right,
      transparent var(--rise),
      var(--fade) var(--rise) calc(var(--rise) + var(--meadow-grid)),
      black calc(var(--rise) + var(--meadow-grid)) var(--fall), transparent var(--fall))
      0 calc(2 * var(--meadow-grid)) / 100% var(--meadow-grid) no-repeat,
    linear-gradient(to right,
      black var(--muted-cell), rgb(0 0 0 / 65%) var(--muted-cell) calc(var(--muted-cell) + var(--meadow-grid)),
      black calc(var(--muted-cell) + var(--meadow-grid)) calc(var(--shoulder) - var(--meadow-grid)),
      var(--fade) calc(var(--shoulder) - var(--meadow-grid)) var(--shoulder), transparent var(--shoulder))
      0 calc(3 * var(--meadow-grid)) / 100% var(--meadow-grid) no-repeat,
    linear-gradient(to right,
      black var(--right-cell), rgb(0 0 0 / 32%) var(--right-cell) calc(var(--right-cell) + var(--meadow-grid)),
      black calc(var(--right-cell) + var(--meadow-grid)))
      0 calc(4 * var(--meadow-grid)) / 100% var(--meadow-grid) no-repeat,
    linear-gradient(transparent calc(5 * var(--meadow-grid)), black calc(5 * var(--meadow-grid)));
}
.pasture-photo {
  position: absolute; left: 50%; top: 88%; transform: translate(-50%, -88%);
  width: max(100%, calc(var(--pasture-height) * 7 / 4)); aspect-ratio: 7 / 4;
  /* The middle 512px of the 1536px photo keeps its proportions; the outer grass fills the frame. */
  border-image: url('assets/story/footer-hillside.webp?v=lone-sheep') 0 512 fill / 0 calc(100% * 5 / 14) stretch;
}
@media (max-width: 599px) {
  .footer-pasture {
    --rise: calc(50% - var(--meadow-grid));
    --shoulder: calc(50% + 2 * var(--meadow-grid));
  }
}
.footer-legal { justify-content: center; text-align: left; padding: 6px 0 max(24px, env(safe-area-inset-bottom)); z-index: 1; text-shadow: 0 1px 3px #14250d; }

/* Separate the company strip from the customer story. */
.customer-story #trusted-by .section-inner { position: relative; padding-top: 32px; }
#trusted-by .section-inner::before {
  content: ""; position: absolute; inset-inline: 0; top: var(--logo-line-offset, 0px);
  height: 1px; background: #d7dbd0; opacity: var(--logo-line-opacity, 1); pointer-events: none;
}
.customer-summary .case-metrics { margin-top: 28px; }
@media (min-width: 640px) {
  .customer-summary { align-self: stretch; display: flex; flex-direction: column; }
  .customer-summary .case-metrics { margin-top: auto; padding-top: 48px; }
}

.built-for, .discovery-intro > p, .human-preview-body #preview-description { color: var(--description-color); }
.feature-detail { align-self: end; }
.footer-layout { transform: translateY(calc(var(--contact-shift, calc(var(--meadow-grid) - 20px)) + 32px)); }
.footer-pasture::before {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: .12;
  background: linear-gradient(to right, #fff 1px, transparent 1px), linear-gradient(to bottom, #fff 1px, transparent 1px);
  background-size: var(--meadow-grid) var(--meadow-grid);
  background-position: calc(50% + var(--meadow-grid) / 2) 0;
}
@media (max-width: 899px) {
  .footer-contact { padding-top: var(--meadow-grid); }
  .footer-layout { transform: translateY(32px); }
}
@media (prefers-reduced-motion: no-preference) {
  .feature-grid > article.fade-ready { opacity: 0; }
  .feature-grid > article.fade-in { opacity: 1; transition: opacity .85s ease-out; }
}
.quote-reserve, .quote-typing { grid-area: 1 / 1; }
.quote-reserve { opacity: 0; }
.quote-typing { pointer-events: none; }
.quote-typing .remaining { visibility: hidden; }
.customer-quote blockquote.is-typing { display: grid; }
.quote-typing .written { position: relative; }
blockquote[data-typing="revealing"] .written::after {
  content: ""; position: absolute; width: 1px; height: .75em;
  margin: .31em 0 0 1px; background: #d8f6c4;
}
@media (max-width: 760px) {
  .feature-grid article { display: flex; flex-direction: column; }
  .feature-grid .feature-film { order: -1; width: 100%; }
  .feature-grid .feature-copy { order: 0; width: 100%; }
}
@media (max-width: 639px) {
  .discovery-story > .both-worlds { padding-block: calc(3 * var(--cell) + 42px); }
}
@media (max-width: 599px) {
  .meadow-backdrop {
    inset-inline: 0; background-color: #b5dff8; background-size: cover; background-position: center calc(50% + var(--step));
    --outer: calc(50% + 2 * var(--step)); --inner: calc(50% + var(--step));
    clip-path: polygon(var(--outer) var(--step), 100% var(--step), 100% 100%, 0 100%,
      0 calc(5 * var(--step)), calc(50% - var(--step)) calc(5 * var(--step)),
      calc(50% - var(--step)) calc(4 * var(--step)), 50% calc(4 * var(--step)),
      50% calc(3 * var(--step)), var(--inner) calc(3 * var(--step)),
      var(--inner) calc(2 * var(--step)), var(--outer) calc(2 * var(--step)));
  }
  #approach .mini-scene { display: none; }
  #approach .statement-line { display: block; margin: 0; }
  #approach .statement-title { display: block; text-align: left; width: 100%; font-size: clamp(30px, 7.9vw, 42px); line-height: 1.08; }
}
@media (max-width: 599px) and (prefers-reduced-motion: no-preference) {
  .trust-viewport { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent); }
  .trust-track { display: flex; width: max-content; animation: stack-flow 22s linear infinite; }
  .trust-track .trust-logos { display: flex; flex-flow: row nowrap; gap: 0; }
  .trust-track .trust-logos > .customer-mark { flex: none; width: 130px; padding-inline: 12px; }
}
@media (min-width: 600px), (prefers-reduced-motion: reduce) {
  .trust-logos[aria-hidden="true"] { display: none; }
}
@media (max-width: 599px) {
  .footer-contact { padding-top: clamp(28px, 8vw, 36px); }
  .view-switch {
    position: fixed; top: max(12px, env(safe-area-inset-top)); bottom: auto;
    left: 50%; transform: translateX(-50%); margin: 0; width: max-content;
  }
  .nav-wrap { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); }
  .nav-wrap #site-navigation {
    top: auto; bottom: calc(100% + 8px); flex-flow: column nowrap; gap: 0;
    align-items: stretch; padding: 8px; max-height: calc(100svh - 135px); overflow-y: auto;
  }
  .nav-wrap #site-navigation a { display: block; padding: 12px 14px; }
  .footer-legal { padding-bottom: calc(var(--bar-height) + max(24px, env(safe-area-inset-bottom))); }
}


.hero-copy h1 { margin-bottom: 16px; }
.hero-copy .trial { margin-top: clamp(20px, 2.3vw, 32px); }
@media (min-width: 600px) {
  .engine-preview { align-items: stretch; }
  .engine-preview .human-browser { margin-top: 0; }
  .engine-preview .code-browser { display: flex; flex-direction: column; height: auto; min-height: 400px; contain: size; }
  .code-browser > :is(.browser-chrome, .agent-file-label) { flex: none; }
  .code-browser > :is(#source-code, .live-website-preview) { flex: 1; min-height: 0; height: 0; }
}
@media (min-width: 600px) and (max-width: 760px) {
  .engine-preview .code-browser { min-height: 320px; }
}
@media (min-width: 761px) {
  .nav-wrap #site-navigation { position: absolute; left: 50%; transform: translateX(-50%); }
}
@media (min-width: 761px) and (max-width: 899px) {
  .nav-wrap #site-navigation { font-size: 10px; gap: 12px; }
  .nav-actions .button { font-size: 9px; padding-inline: 8px; }
}
@media (min-width: 640px) {
  .process-chapter { align-items: stretch; }
  .step-window { display: flex; flex-direction: column; }
  .step-window .story-film { margin-block: auto; }
}

.stack-group li { font-family:Arial,Helvetica,sans-serif; font-size:20px; line-height:28px; }
.stack-group img { display:block; flex:none; }
.walk-step-nav { display:flex; gap:8px; margin:0 0 28px; position:relative; z-index:5; }
.walk-step-nav a { font:13px/1.4 var(--mono); padding:10px 18px; border:1px solid #cfd3cc; border-radius:99px; background:#F7F6EE; }
.walk-step-nav a[aria-current="step"] { background:#090909; border-color:#090909; color:white; }

/* Keep the footer compact; its grass still snaps to the page grid. */
.meadow-footer { padding-top:48px; }
.meadow-footer .footer-contact { padding-top:0; }
.meadow-footer .footer-layout { transform:none; }
.meadow-footer .footer-pasture { margin-block-start:var(--pasture-snap,0px); }
#trusted-by .section-inner::before { display:none; }
