/* A photographic journey. The semantic chapters also are the static fallback. */
:root { --header-height: 76px; --scene-view: calc(100svh - var(--header-height)); }
html { scroll-behavior: auto; scroll-padding-top: var(--header-height); }
.fp-story { position: relative; isolation: isolate; background: var(--carbon); color: white; overflow-anchor: none; }
.fp-scene { position: relative; min-height: 130svh; padding-block: 8svh 40svh; scroll-margin-top: 0; }
.fp-copy { position: sticky; top: calc(var(--header-height) + 8svh); z-index: 2; }
.fp-copy h1, .fp-copy h2 { max-width: 900px; margin-top: 24px; font-size: clamp(44px, 5.2vw, 78px); line-height: 1.14; font-weight: 720; }
.fp-location { display: flex; align-items: center; gap: 20px; font-size: 13px; color: #e0e8e6; }
.fp-location span { color: #b0cfc9; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.fp-lead { max-width: 660px; margin-top: 24px; color: #e0e7e8; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.7; }
.fp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 30px; }
.fp-skip { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; color: white; border-bottom: 1px solid #a7b8b9; font-size: 15px; }
.fp-skip:hover { color: #b0d9d2; }
.fp-note { margin-top: 18px; color: #c3cdcf; font-size: 13px; }
.fp-records { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; font-size: 14px; color: #e5eeed; }
.fp-records span { padding-bottom: 9px; border-bottom: 1px solid #91b2ad; }
.fp-end-link { margin-top: 28px; }
.fp-entry .fp-copy { text-align: center; }
.fp-entry h1, .fp-entry .fp-lead { margin-inline: auto; }
.fp-entry .fp-location, .fp-entry .fp-actions { justify-content: center; }
.fp-static { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fp-static picture { display: block; height: 100%; }
.fp-landscape { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.fp-cab-frame { position: absolute; inset: 0; }
.fp-cab-frame[hidden] { display: none; }
.fp-cab { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: fill; pointer-events: none; }
.fp-static::after, .fp-stage::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgb(7 14 18 / 82%), rgb(7 14 18 / 68%) 38%, rgb(7 14 18 / 8%) 72%, rgb(7 14 18 / 24%)); }
/* Stage has no document height, so changing motion cannot move anchors. */
.fp-stage { display: none; }
.journey-motion .fp-stage { display: block; position: sticky; top: var(--header-height); height: var(--scene-view); margin-bottom: calc(0px - var(--scene-view)); overflow: hidden; pointer-events: none; }
.journey-motion .fp-static { display: none; }
.journey-motion .fp-scene { padding-bottom: 0; }
.journey-motion .fp-copy { height: 0; opacity: var(--copy-opacity, 0); pointer-events: none; }
.journey-motion .is-reading .fp-copy { pointer-events: auto; }
.fp-frame { position: absolute; inset: 0; overflow: hidden; }
.fp-frame[hidden] { display: none; }
.fp-window { position: absolute; inset: 0; overflow: hidden; }
/* Both scenery slots and the blade stay behind the stationary cabin. */
.fp-frame .fp-cab-frame { z-index: 2; }
.fp-stage .fp-pillar { z-index: 1; }
.fp-stage::after { z-index: 3; }
.fp-stage .fp-progress { z-index: 4; }
.fp-frame .fp-landscape { transform-origin: 50% 58%; will-change: transform; }
.fp-frame .fp-cab[hidden] { display: none; }
.fp-pillar { position: absolute; top: -5%; bottom: -5%; width: clamp(14px, 2vw, 30px); border-radius: 999px; background: linear-gradient(90deg, #10181c, #738188 38%, #1a2328 60%, #090e12); border-inline: 2px solid #4b565e; box-shadow: 0 0 16px rgb(0 0 0 / 45%); }
.fp-pillar[hidden] { display: none; }
.fp-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 24px; z-index: 1; display: flex; gap: 5px; }
.fp-progress i { flex: 1; height: 2px; background: rgb(230 238 237 / 28%); }
.fp-progress i.is-current { background: #c5e4dd; }
.workflow { background: var(--carbon-soft); }
.workflow .section-heading { display: block; }
.workflow .section-heading h2 { max-width: 900px; }
.workflow .section-heading p { max-width: 660px; }
.workflow .muted { color: #c2cecf; }
@media (max-width: 900px) {
  .site-header { gap: 12px; }
  .fp-scene { min-height: 110svh; padding-block: 7svh 33svh; }
  .fp-copy { top: calc(var(--header-height) + 7svh); }
}
@media (max-width: 640px) {
  :root { --header-height: 68px; }
  .wordmark { width: 124px; }
  .motion-toggle { white-space: nowrap; padding: 8px; }
  .fp-entry .fp-copy { text-align: left; }
  .fp-entry .fp-location, .fp-entry .fp-actions { justify-content: flex-start; }
  .fp-copy h1, .fp-copy h2 { margin-top: 22px; font-size: clamp(31px, 9.8vw, 48px); line-height: 1.18; }
  .fp-location { gap: 16px; font-size: 12px; }
  .fp-lead { margin-top: 22px; font-size: 16px; line-height: 1.65; }
  .fp-lead br { display: none; }
  .fp-actions { gap: 13px; margin-top: 24px; align-items: flex-start; flex-direction: column; }
  .fp-actions .button { font-size: 14px; gap: 18px; min-height: 48px; }
  .fp-skip { font-size: 13px; min-height: 42px; }
  .fp-note { font-size: 12px; margin-top: 14px; }
  .fp-records { gap: 12px 21px; font-size: 13px; }
  .fp-static::after, .fp-stage::after { background: linear-gradient(180deg, rgb(7 14 18 / 91%), rgb(7 14 18 / 70%) 48%, rgb(7 14 18 / 10%) 77%, rgb(7 14 18 / 22%)); }
  .fp-pillar { width: 16px; }
  .fp-progress { bottom: 18px; }
}
/* Short windows keep copy in normal flow. Native scrolling never traps text. */
@media (max-height: 650px) {
  .fp-copy { position: relative; top: auto; }
  .fp-scene { padding-block: 44px 30svh; }
  .journey-motion .fp-scene { padding-bottom: 30svh; }
  .journey-motion .fp-copy { height: auto; opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-copy { position: relative; top: auto; }
}
body:not(.journey-motion) .fp-copy { position: relative; top: auto; }

/* Real workplace photographs carry the reading sections beyond the journey. */
.case, .process { padding: 0 0 clamp(64px, 7vw, 104px); background: var(--paper); }
.workplace-scene { position: relative; isolation: isolate; min-height: 680px; display: flex; align-items: center; overflow: hidden; }
.workplace-photo { position: absolute; inset: 0; z-index: -2; }
.workplace-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.workplace-scene::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #f4f6f5 0%, rgb(244 246 245 / 97%) 22%, rgb(244 246 245 / 90%) 37%, rgb(244 246 245 / 20%) 65%, transparent 80%); }
.workplace-copy { padding-block: 80px; }
.workplace-copy h2 { max-width: 650px; margin-top: 30px; font-size: clamp(34px, 4.1vw, 62px); }
.case .case-lead { max-width: 440px; font-size: clamp(21px, 2vw, 28px); margin-top: 28px; }
.case .case-detail, .workplace-description { max-width: 440px; color: #53636c; margin-top: 24px; font-size: 17px; line-height: 1.8; }
.workplace-caption { padding-block: 20px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.case .material-example { margin: 0; padding: 32px 0 0; background: none; border: 0; }
.case .material-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 26px; }
.case .material-fields div { display: block; border-top: 1px solid #c1cbd0; border-bottom: 0; padding-top: 18px; }
.case .material-fields dt { font-size: 19px; }
.case .material-fields dd { margin-top: 8px; font-size: 14px; }
.case-fields-note { margin-top: 28px; color: var(--muted); font-size: 13px; }
.process { border-top: 1px solid var(--line); }
.process-scene { min-height: 570px; }
.process-grid { display: block; margin-top: 44px; }
.process-intro { display: flex; justify-content: space-between; gap: 32px; align-items: start; }
.process-intro p { max-width: 530px; margin: 0; font-size: 15px; }
.process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 36px; }
.process-list li { display: block; border: 0; padding: 24px 0 0; }
.process-list li > span { display: block; margin-bottom: 20px; }
.process-list h3 { font-size: 22px; }
.process-list p { margin-top: 14px; max-width: 260px; line-height: 1.8; }
@media (max-width: 1000px) {
 .workplace-scene::after { background: linear-gradient(90deg, #f4f6f5, rgb(244 246 245 / 93%) 40%, rgb(244 246 245 / 35%) 78%); }
 .case .material-fields, .process-list { gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
 .workplace-scene, .process-scene { display: flex; flex-direction: column; min-height: 0; }
 .workplace-copy { padding-block: 56px 28px; order: -1; }
 .workplace-copy h2 { margin-top: 24px; font-size: clamp(30px, 8.5vw, 48px); }
 .workplace-photo { position: relative; z-index: 0; display: block; width: 100%; height: 310px; }
 .workplace-photo img { object-position: 68% center; }
 .workplace-scene::after { display: none; }
 .case .case-lead { font-size: 22px; }
 .case .case-detail, .workplace-description { font-size: 16px; margin-top: 20px; }
 .workplace-caption { font-size: 11px; }
 .case .material-fields { gap: 24px 16px; }
 .case .material-fields dt { font-size: 17px; }
 .case .material-fields dd { font-size: 12px; }
 .process-grid { margin-top: 32px; }
 .process-intro { display: block; }
 .process-intro p { margin-top: 16px; }
 .process-list { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
 .process-list li { display: grid; grid-template-columns: 32px 1fr; gap: 18px; border-bottom: 1px solid var(--line); padding: 22px 0; }
 .process-list li > span { margin: 4px 0 0; }
 .process-list p { max-width: none; }
}
