/* Three connected views with a large spatial drawing. The shared process
   renderer keeps ownership of the drawing; this file owns page typography,
   placement and the moving/resting/no-script presentations. */
:root {
  --start-hero-title-size: clamp(54px, 5.15vw, 78px);
  --start-hero-sentence-size: clamp(36px, 3.3vw, 50px);
  --start-hero-title-leading: 1.025;
  --start-hero-copy-width: 32vw;
  --start-hero-edge: var(--website-frame-edge);
  --start-hero-caption-size: 11px;
  --start-hero-service-size: 16px;
  --start-hero-lead-size: 19px;
  --start-hero-copy-gap: 26px;
  --start-hero-map-left: 42%;
  --start-hero-map-top: 14%;
  --start-hero-map-bottom: 22%;
}

.website-main:has(> .start-page) {
  padding: 0;
}

.start-hero {
  --hero-sequence-header-height: var(--website-frame-header-height);
  --website-font-size-map-step: 14px;
  --website-font-size-map-tool: 15px;
  --website-font-size-map-role: 11px;
}

.start-hero__stage {
  position: relative;
}

.start-hero__drawing,
.start-hero__title-block,
.start-hero__scroll,
.start-hero__case-caption {
  display: none;
}

.start-hero__copy {
  margin: 0 var(--start-hero-edge);
  padding: 60px 0;
  border-top: 1px solid var(--website-color-line);
}

.start-hero__copy[data-hero-sequence-text="opening"] {
  padding-top: 130px;
  border: 0;
}

.start-hero__copy h1,
.start-hero__copy h2 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: var(--start-hero-title-leading);
  text-wrap: balance;
}

.start-hero__copy h1 {
  font-size: var(--start-hero-title-size);
  font-weight: 700;
}

.start-hero__copy h2 {
  font-size: var(--start-hero-sentence-size);
  font-weight: 400;
}

.start-hero__eyebrow,
.start-hero__caption {
  margin: 0 0 22px;
  color: var(--website-color-ink-2);
  font-size: var(--start-hero-caption-size);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.start-hero__lead {
  max-width: 28ch;
  margin: var(--start-hero-copy-gap) 0 0;
  font-size: var(--start-hero-lead-size);
  line-height: 1.45;
}

.start-hero__addition {
  max-width: 35ch;
  margin: var(--start-hero-copy-gap) 0 0;
  color: var(--website-color-ink-2);
  font-size: var(--website-font-size-text);
  line-height: 1.5;
}

.start-hero__services {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 32px;
  margin: 0 var(--start-hero-edge) 48px;
  padding: 0;
  list-style: none;
}

.start-hero__services li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--website-color-line);
  font-size: var(--start-hero-service-size);
  line-height: 1.3;
}

.start-hero__services li span {
  color: var(--website-color-ink-2);
  font-size: var(--start-hero-caption-size);
  font-variant-numeric: tabular-nums;
}

.start-hero__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}

.start-hero__hint {
  color: var(--website-color-ink-2);
  font-size: var(--website-font-size-small);
}

.start-hero__still {
  display: none;
}

.start-hero__static {
  max-width: 1000px;
}

.start-hero__static .hero-sequence__static-view {
  position: relative;
}

/* One pinned stage keeps the active sentence beside its drawing. */
.start-hero-moving .start-hero {
  position: relative;
}

.start-hero-moving .start-hero__track {
  height: calc(var(--start-hero-viewport, 100vh) * 6.5);
}

.start-hero-moving .start-hero__stage {
  position: sticky;
  top: 0;
  height: var(--start-hero-viewport, 100vh);
  overflow: hidden;
}

.start-hero-moving .start-hero__drawing {
  position: absolute;
  inset: var(--start-hero-map-top) 28px var(--start-hero-map-bottom) var(--start-hero-map-left);
  display: block;
}

.start-hero__drawing .hero-sequence__map,
.start-hero__case {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.start-hero__case {
  overflow: visible;
  pointer-events: none;
}

.start-hero-moving .start-hero__copy {
  position: absolute;
  top: 47%;
  left: var(--start-hero-edge);
  width: var(--start-hero-copy-width);
  margin: 0;
  padding: 0;
  border: 0;
  visibility: hidden;
  transform: translateY(calc(-50% + var(--start-hero-copy-drift, 0px)));
}

.start-hero-moving .start-hero__copy[data-hero-sequence-text="opening"] {
  top: 20%;
  width: 42%;
  transform: translateY(var(--start-hero-copy-drift, 0px));
}

.start-hero-moving .start-hero__copy[data-hero-sequence-text="closing"] h2 {
  font-size: var(--start-hero-title-size);
  font-weight: 700;
}

.start-hero-moving .start-hero__services {
  position: absolute;
  right: var(--start-hero-edge);
  bottom: 63px;
  left: var(--start-hero-edge);
  margin: 0;
}

.start-hero-moving .start-hero__title-block {
  position: absolute;
  right: var(--start-hero-edge);
  bottom: 148px;
  left: var(--start-hero-map-left);
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--website-color-line);
  font-size: 14px;
}

.start-hero__title-block .start-hero__caption {
  margin: 0;
}

.start-hero__view-count {
  margin-left: auto;
  color: var(--website-color-ink-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.start-hero__view-count b {
  font-weight: 400;
}

.start-hero__steps {
  display: flex;
  gap: clamp(12px, 2vw, 32px);
  font-size: 12px;
  color: var(--website-color-ink-2);
}

.start-hero__steps .is-active {
  color: var(--website-color-ink);
}

.start-hero__title-block::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--website-color-light-band);
  transform: scaleX(var(--start-hero-progress, 0));
  transform-origin: left;
}

.start-hero__drawing .process-graph__map-sheet {
  stroke: color-mix(in srgb, var(--website-color-ink-2) 36%, var(--website-color-sheet));
  stroke-width: 1px;
}

.start-hero[data-portal-opening] .start-hero__drawing {
  will-change: transform;
}

/* The same process drawing settles inside the finished application's frame. */
.start-hero__workspace {
  position: absolute;
  inset: 0;
  border: 1px solid var(--website-color-line);
  border-radius: 14px;
  background: var(--website-color-sheet);
  box-shadow: 0 18px 40px var(--website-shadow-color);
  opacity: var(--start-hero-software, 0);
  pointer-events: none;
}

.start-hero__workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--website-color-line);
  font-size: 12px;
  color: var(--website-color-ink-2);
}

.start-hero__workspace-header b {
  color: var(--website-color-ink);
  margin-right: 6px;
}

.start-hero__workspace-status {
  font-size: 10px;
}

.start-hero__workspace-status::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--website-color-light-band);
}

.start-hero__suite-title {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 11px;
  color: var(--website-color-ink-2);
}

.start-hero__suite-title b {
  color: var(--website-color-ink);
  letter-spacing: 0.05em;
}

.start-hero .process-graph__map {
  position: relative;
}

.start-hero :is(.hero-sequence__map, .hero-sequence__still-map, .hero-sequence__static-view) {
  --process-graph-accent-band-width: calc(var(--hero-sequence-band-width) * max(0.7, var(--hero-sequence-scale)) * (1 - var(--start-hero-software, 0) * 0.65));
}

.start-hero [data-process-graph-plane="suite"] .process-graph__map-sheet {
  fill: var(--website-color-surface);
  fill-opacity: 1;
}

.start-hero__lane-titles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--start-hero-lanes, 0);
}

.start-hero__lane-titles > span {
  position: absolute;
  box-sizing: border-box;
  padding: 7px 8px;
  border-bottom: 1px solid var(--website-color-line);
  background: var(--website-color-sheet);
  color: var(--website-color-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateY(-50%);
}

@media (max-width: 1039px) {
  .start-hero__workspace { bottom: 10px; }
  .start-hero__workspace-header { padding: 10px; font-size: 9px; }
  .start-hero__workspace-status { font-size: 8px; }
  .start-hero__suite-title { padding: 8px 10px; font-size: 9px; }
  .start-hero__suite-title > span { display: none; }
  .start-hero__lane-titles > span { padding: 5px 3px; font-size: 8px; letter-spacing: 0; }
}

.start-hero-moving .start-hero__scroll {
  position: absolute;
  right: var(--start-hero-edge);
  bottom: 23px;
  left: var(--start-hero-edge);
  display: flex;
  justify-content: space-between;
  color: var(--website-color-ink-2);
  font-size: 12px;
}

.start-hero-moving .start-hero__case-caption {
  position: absolute;
  top: 92px;
  right: var(--start-hero-edge);
  left: var(--start-hero-map-left);
  display: grid;
  gap: 5px;
  color: var(--website-color-ink-2);
  font-size: 13px;
}

.start-hero__case-caption [data-case-tag] {
  color: var(--website-color-ink);
  font-weight: 700;
}

.start-hero-moving .start-hero__static,
.start-hero-resting .start-hero__static {
  display: none;
}

/* Reduced motion retains the complete story as quiet, readable sections. */
.start-hero-resting .start-hero__copy[data-hero-sequence-text="view"] {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 40px;
}

.start-hero-resting .start-hero__still {
  display: block;
  aspect-ratio: 1.6;
}

.start-hero-resting .start-hero__copy[data-view="3"] {
  align-items: start;
}

/* Fallblätter are cases, not people. Person symbols remain reserved for actual
   human actors in the detail views. */
.start-hero .process-graph__map-plane-icon {
  display: none;
}

@media (max-width: 1039px) {
  :root {
    --start-hero-title-size: clamp(32px, 9.6vw, 48px);
    --start-hero-sentence-size: 28px;
    --start-hero-copy-width: calc(100% - 36px);
    --start-hero-caption-size: 10px;
    --start-hero-service-size: 13px;
    --start-hero-lead-size: 16px;
    --start-hero-copy-gap: 15px;
    --start-hero-map-left: 14px;
    --start-hero-map-top: 145px;
    --start-hero-map-bottom: 32%;
  }

  .start-hero {
    --website-font-size-map-step: 11px;
    --website-font-size-map-tool: 12px;
    --website-font-size-map-role: 9px;
  }

  .start-hero [data-detail="true"] {
    --website-font-size-map-step: 12px;
    --website-font-size-map-tool: 14px;
    --website-font-size-map-role: 10px;
  }

  .start-hero__copy {
    padding: 36px 0;
  }

  .start-hero__copy[data-hero-sequence-text="opening"] {
    padding-top: 88px;
  }

  .start-hero__eyebrow {
    margin-bottom: 14px;
  }

  .start-hero__lead {
    max-width: 31ch;
    line-height: 1.4;
  }

  .start-hero__addition {
    font-size: 15px;
    line-height: 1.45;
  }

  .start-hero__services {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 30px;
  }

  .start-hero__services li {
    gap: 10px;
    padding-top: 7px;
    border: 0;
  }

  .start-hero__services li span {
    min-width: 17px;
  }

  .start-hero__services li:last-child {
    max-width: 310px;
  }

  .start-hero-moving .start-hero__track {
    height: calc(var(--start-hero-viewport, 100vh) * 5.6);
  }

  .start-hero-moving .start-hero__drawing {
    right: 14px;
  }

  .start-hero-moving .start-hero__copy {
    top: auto;
    bottom: 28px;
    transform: none;
  }

  .start-hero-moving .start-hero__copy[data-hero-sequence-text="opening"] {
    top: 88px;
    bottom: auto;
    width: var(--start-hero-copy-width);
    padding: 0;
  }

  .start-hero-moving .start-hero__copy[data-hero-sequence-text="opening"] .start-hero__eyebrow {
    display: none;
  }

  .start-hero-moving .start-hero__services {
    bottom: 18px;
    padding-top: 4px;
    border-top: 1px solid var(--website-color-line);
  }

  .start-hero-moving .start-hero__title-block {
    top: 65px;
    right: var(--start-hero-edge);
    bottom: auto;
    left: var(--start-hero-edge);
    gap: 7px;
    padding: 8px 0;
    font-size: 11px;
  }

  .start-hero__title-block .start-hero__caption,
  .start-hero-moving .start-hero__scroll {
    display: none;
  }

  .start-hero__view-count {
    font-size: 10px;
  }

  .start-hero__steps {
    gap: 14px;
    font-size: 10px;
  }

  .start-hero-moving .start-hero__case-caption {
    top: 103px;
    right: var(--start-hero-edge);
    left: var(--start-hero-edge);
    font-size: 11px;
    line-height: 1.2;
  }

  .start-hero__case-caption [data-case-description] {
    display: none;
  }

  .start-hero-moving .start-hero > .start-hero__copy[data-hero-sequence-text="closing"] {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    width: auto;
    margin: 0 var(--start-hero-edge);
    padding: 44px 0 58px;
    border-top: 1px solid var(--website-color-line);
    transform: none;
  }

  .start-hero-moving .start-hero > .start-hero__copy[data-hero-sequence-text="closing"] h2 {
    font-size: var(--start-hero-title-size);
  }

  .start-hero__action {
    margin-top: 20px;
  }

  .start-hero-resting .start-hero__copy[data-hero-sequence-text="view"] {
    display: block;
  }

  .start-hero-resting .start-hero__still {
    margin-top: 24px;
    aspect-ratio: 0.84;
  }

}

@media (min-width: 760px) and (max-width: 1039px) {
  :root {
    --website-frame-edge: 24px;
    --start-hero-edge: 24px;
    --start-hero-copy-width: calc(100% - 48px);
    --start-hero-title-size: 44px;
    --start-hero-sentence-size: 32px;
    --start-hero-map-left: 24px;
  }

  .start-hero-moving .start-hero__copy[data-hero-sequence-text="opening"] {
    top: 96px;
  }

  .start-hero-moving .start-hero__drawing {
    right: 24px;
  }

  .start-hero__services {
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 24px;
  }

  .start-hero-moving .start-hero__services {
    bottom: 30px;
  }

  .start-hero__services li {
    padding-top: 10px;
  }

  .start-hero-moving .start-hero__title-block {
    top: 73px;
  }

  .start-hero-moving .start-hero__case-caption {
    top: 112px;
  }

  .start-hero-moving .start-hero__copy:not([data-hero-sequence-text="opening"]) {
    max-width: 620px;
  }

  .hero-sequence__static-view--desktop {
    display: none;
  }

  .hero-sequence__static-view--mobile {
    display: block;
  }
}

@media (max-width: 759px) {
  :root {
    --start-hero-map-left: 20px;
  }

  .start-hero-moving .start-hero__drawing {
    right: 20px;
  }
}
