/* Our story: "Two worlds". A diptych seam opens on both halves of the business, then the
   story runs in bands of the site's own palette. Tokens, type and reveals come from styles.css and motion.css. */

/* Shared parts */
.story-photo{margin:0;min-width:0}
.story-photo img{width:100%;height:auto;aspect-ratio:var(--ratio,4/3);object-fit:cover;object-position:var(--focus,50% 50%);background:#e6e8e1}
.story-photo figcaption,.story-document figcaption{padding-top:10px;max-width:44ch;font-size:var(--type-small);line-height:1.6;color:#59675d}
.story-photo.has-tag{position:relative}
.story-photo .story-tag{position:absolute;left:12px;right:12px;bottom:12px;width:max-content;max-width:calc(100% - 24px);padding:7px 10px;background:#14221fd9;color:#fff;font-size:var(--type-small);line-height:1.45}
.story-line{display:block;overflow:clip;padding-bottom:.09em;margin-bottom:-.09em}
.story-line>span{display:block;animation:sunshine-line 1.15s var(--motion-ease) both;animation-delay:calc(.45s + var(--i,0)*.14s)}
.story-actions{display:flex;flex-wrap:wrap;align-items:center;gap:18px 30px;margin-top:30px}
.story-head{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px 64px;align-items:end;margin-bottom:52px}
.story-head h2,.worlds-intro h2,.worlds-local-copy h2,.worlds-care h2,.worlds-promise h2{font-size:clamp(2.125rem,3.5vw,3.25rem);line-height:1.06;letter-spacing:-.045em}
.story-head p{max-width:48ch;font-size:var(--type-reading);line-height:1.75;color:var(--muted)}
.story-facts{margin-block:34px 0}
.story-facts dd{font-size:1.25rem;line-height:1.35}
.story-checklist{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.story-checklist li{display:flex;align-items:center;gap:16px;padding-block:15px;border-bottom:1px solid var(--line);font-size:1.125rem;font-weight:500;letter-spacing:-.015em;line-height:1.4}
.story-checklist svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:#a44822;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.story-backed{margin-top:22px}
.story-next{background:var(--paper);padding-block:clamp(64px,8vw,104px)}
.story-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px}
.story-steps li{border-top:1px solid #c9cfc4;padding-top:22px}
.story-steps span{font-size:.875rem;color:#a44822;font-variant-numeric:tabular-nums}
.story-steps h3{margin:16px 0 12px;font-size:1.375rem;letter-spacing:-.03em;line-height:1.2}
.story-steps p{color:var(--muted);line-height:1.75}
.story-next-foot{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 64px;align-items:start;margin-top:64px;padding-top:44px;border-top:1px solid #c9cfc4}
.story-next-foot h3{margin-bottom:14px;font-size:1.625rem;letter-spacing:-.035em;line-height:1.15}
.story-next-foot p{max-width:52ch;color:var(--muted);line-height:1.75}
.story-links{list-style:none;margin:0;padding:0;border-top:1px solid #c9cfc4}
.story-links a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding-block:13px;border-bottom:1px solid #c9cfc4;font-weight:500;transition:color .25s}
.story-links a>span:first-child,.story-links .arrow{transition:transform .45s var(--motion-ease)}
.story-links a:hover{color:#a44822}
.story-links a:hover>span:first-child{transform:translateX(6px)}
.story-links a:hover .arrow{transform:translate(3px,-3px)}

/* Hero: two photos, one seam, then the dark band with the heading and first action. */
.worlds-hero{background:var(--dark);color:#fff}
/* Short enough that the heading and first action stay on screen on laptops. */
.worlds-stage{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:clamp(260px,calc(100svh - var(--header-height,87px) - 31px - 300px),720px)}
.worlds-panel{position:relative;min-width:0;margin:0;overflow:hidden}
.worlds-panel img{width:100%;height:calc(100% + 60px);margin-top:-30px;object-fit:cover;object-position:var(--focus,50% 50%)}
.worlds-panel:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#0f1c16e6 0%,#0f1c1673 32%,#0f1c1600 60%)}
.worlds-panel figcaption{position:absolute;z-index:1;left:clamp(22px,3.2vw,52px);right:clamp(22px,3vw,40px);bottom:clamp(22px,3vw,40px)}
.worlds-panel:first-child figcaption{left:var(--gutter)}
.worlds-label{display:block;font-size:clamp(1.625rem,3.3vw,3.125rem);font-weight:500;line-height:1.04;letter-spacing:-.045em}
.worlds-sub{display:block;max-width:34ch;margin-top:10px;font-size:.9375rem;line-height:1.55;color:#e3e9e0}
.worlds-seam{position:absolute;z-index:2;top:0;bottom:0;left:50%;width:2px;margin-left:-1px;background:#fff;transform-origin:top}
.worlds-band .wrap{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px 64px;align-items:end;padding-block:clamp(32px,4vw,52px) clamp(40px,5vw,60px)}
.worlds-band .breadcrumb{margin-bottom:20px;color:#b9c6b9}
.worlds-band h1{font-size:clamp(2.5rem,4.3vw,4.125rem);line-height:1.04;letter-spacing:-.05em}
.worlds-band p{max-width:50ch;font-size:var(--type-reading);line-height:1.7;color:#c9d4c5}
.worlds-band .story-actions{margin-top:24px}
.worlds-band .text-link{border-color:#ffffff66;color:#fff}

/* Story bands */
.worlds-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:32px clamp(40px,6vw,100px);align-items:start}
.worlds-lead{max-width:36ch;font-size:clamp(1.25rem,1.9vw,1.625rem);line-height:1.45;letter-spacing:-.02em}
.worlds-journey-band{background:var(--paper)}
/* Each stage draws the line on to the next one: grey track as background, orange fill as :after. */
.worlds-journey{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));list-style:none;margin:0;padding:0}
.worlds-journey li{position:relative;padding:44px 28px 0 0}
.worlds-journey li:not(:last-child){background:linear-gradient(#c9cfc4,#c9cfc4) 0 7px/100% 1px no-repeat}
.worlds-journey li:not(:last-child):after{content:'';position:absolute;top:6px;left:0;right:0;height:3px;background:var(--accent);transform-origin:left;transition:transform .38s cubic-bezier(.45,0,.55,1);transition-delay:calc(.35s + var(--i,0)*.38s)}
.worlds-journey li:before{content:'';position:absolute;z-index:1;top:0;left:0;box-sizing:border-box;width:15px;height:15px;border:3px solid var(--accent);border-radius:50%;background:var(--paper);transition:border-color .3s var(--motion-ease),background .3s var(--motion-ease);transition-delay:calc(.35s + var(--i,0)*.38s)}
.worlds-journey li:last-child:before{background:var(--accent)}
.worlds-journey.motion-reveal:not(.is-visible) li:after{transform:scaleX(0)}
.worlds-journey.motion-reveal:not(.is-visible) li:before{border-color:#c9cfc4;background:var(--paper)}
.worlds-step{font-size:.875rem;color:#a44822;font-variant-numeric:tabular-nums}
.worlds-journey h3{margin:12px 0 10px;font-size:1.375rem;line-height:1.2;letter-spacing:-.03em}
.worlds-journey p{max-width:24ch;line-height:1.65;color:var(--muted)}
.worlds-journey-foot{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px clamp(40px,6vw,100px);align-items:start;margin-top:clamp(56px,6vw,80px);padding-top:40px;border-top:1px solid #c9cfc4}
.worlds-journey-foot h3{margin-bottom:14px;font-size:1.625rem;letter-spacing:-.035em}
.worlds-journey-foot>div p:not(.note){max-width:54ch;margin-bottom:14px;line-height:1.75;color:var(--muted)}
.worlds-focus{margin:0}
.worlds-focus:before{content:'';display:block;width:40px;height:3px;margin-bottom:22px;background:var(--accent)}
.worlds-focus p{max-width:24ch;font-size:clamp(1.5rem,2.5vw,2.25rem);line-height:1.28;letter-spacing:-.035em}
.worlds-team{background:var(--dark);color:#fff}
.worlds-team .story-head p{color:#c9d4c5}
.worlds-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px clamp(40px,6vw,100px)}
.worlds-team-grid article{padding-top:24px;border-top:1px solid #53665a}
.worlds-team-grid h3{margin-bottom:14px;font-size:1.625rem;letter-spacing:-.035em}
.worlds-team-grid p{max-width:56ch;line-height:1.75;color:#c9d4c5}
.worlds-lifecycle{max-width:60ch;margin-top:48px;padding-top:28px;border-top:1px solid #53665a;font-size:clamp(1.125rem,1.6vw,1.375rem);line-height:1.55;letter-spacing:-.015em;color:#e6ece4}
.worlds-local{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:48px clamp(40px,6vw,100px);align-items:start}
.worlds-local-copy{position:sticky;top:calc(var(--header-height,87px) + 40px)}
.worlds-local-copy h2{margin-bottom:24px}
.worlds-local-copy p{max-width:50ch;line-height:1.75;color:var(--muted)}
.worlds-places{list-style:none;margin:28px 0;padding:0;border-top:1px solid var(--line)}
.worlds-places li{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding-block:14px;border-bottom:1px solid var(--line)}
.worlds-places strong{font-size:clamp(1.5rem,2.4vw,2rem);font-weight:500;line-height:1.2;letter-spacing:-.04em}
.worlds-places span{font-size:.875rem;font-weight:600;letter-spacing:.1em;color:#a44822}
.worlds-local-media{display:grid;gap:16px}
.worlds-local-media .is-landscape img{--ratio:4/3}
.worlds-local-media .is-portrait img{--ratio:4/5}
.worlds-care-band{background:var(--cream)}
.worlds-care{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1fr);gap:40px clamp(40px,6vw,100px);align-items:center}
.worlds-care-photo img{--ratio:4/5}
.worlds-care-lead{max-width:26ch;margin:24px 0 20px;font-size:clamp(1.375rem,2vw,1.75rem);line-height:1.35;letter-spacing:-.025em}
.worlds-care-copy p:not(.worlds-care-lead){max-width:50ch;margin-bottom:14px;line-height:1.75;color:#5a6053}
.worlds-care .text-link{margin-top:10px;border-color:#dccbbb}
.worlds-group-band{background:var(--paper)}
/* The founding certificate stands beside the heading and the timeline it proves. */
.worlds-origin{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:48px clamp(40px,6vw,100px);align-items:start}
.worlds-origin .story-head{grid-template-columns:1fr;margin-bottom:44px}
.worlds-timeline{list-style:none;margin:0;padding:0;border-top:1px solid #c9cfc4}
.worlds-timeline li{padding-block:22px 26px;border-bottom:1px solid #c9cfc4}
.worlds-timeline strong{display:block;margin-bottom:10px;font-size:clamp(1.75rem,2.8vw,2.5rem);font-weight:500;line-height:1.08;letter-spacing:-.045em}
.worlds-timeline li:first-child strong{color:#a44822}
.worlds-timeline p{max-width:44ch;line-height:1.7;color:var(--muted)}
/* A white sheet on paper: a Paper Rule edge instead of a shadow. */
.story-document{justify-self:end;width:100%;max-width:480px;margin:0}
.story-document img{width:100%;height:auto;border:1px solid #c9cfc4;background:#fff}
.story-document figcaption{text-wrap:pretty}
.story-document .text-link{display:flex;width:max-content;margin-top:14px;border-color:#c9cfc4;color:var(--ink)}
.worlds-mosaic{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;margin-top:clamp(48px,6vw,72px)}
.worlds-mosaic img{height:clamp(220px,24vw,360px);aspect-ratio:auto}
.worlds-supply{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:32px clamp(40px,6vw,100px);align-items:start;margin-top:clamp(48px,6vw,72px);padding-top:40px;border-top:1px solid #c9cfc4}
.worlds-supply h3{margin-bottom:14px;font-size:1.625rem;letter-spacing:-.035em}
.worlds-supply p{max-width:48ch;line-height:1.75;color:var(--muted)}
.worlds-supply-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.worlds-supply-media img{--ratio:4/5}
.worlds-promise{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px clamp(40px,6vw,100px);align-items:start}
.worlds-promise h2{margin-bottom:22px}
.worlds-promise p{max-width:44ch;line-height:1.75;color:var(--muted)}

/* Motion: the seam opens once on arrival; reveals and heading lines below come from motion.js. */
.worlds-seam{animation:worlds-seam .9s var(--motion-ease) both}
.worlds-panel:first-child{animation:worlds-open-left 1.3s var(--motion-ease) .25s both}
.worlds-panel:nth-child(2){animation:worlds-open-right 1.3s var(--motion-ease) .25s both}
.worlds-panel figcaption{animation:hero-in 1s var(--motion-ease) .95s both}
.worlds-band .breadcrumb,.worlds-band p,.worlds-band .story-actions{animation:hero-in .9s var(--motion-ease) .55s both}
@keyframes worlds-seam{from{transform:scaleY(0)}to{transform:none}}
@keyframes worlds-open-left{from{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0)}}
@keyframes worlds-open-right{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
@keyframes worlds-drift-up{from{translate:0 0}to{translate:0 -30px}}
@keyframes worlds-drift-down{from{translate:0 0}to{translate:0 30px}}
@supports (animation-timeline:view()){
  @media (min-width:901px) and (prefers-reduced-motion:no-preference){
    .worlds-panel img{animation:worlds-drift-up linear both;animation-timeline:view();animation-range:cover 50% cover 100%}
    .worlds-panel:nth-child(2) img{animation-name:worlds-drift-down}
  }
}
@media (prefers-reduced-motion:reduce){
  .story-line>span,.worlds-seam,.worlds-panel,.worlds-panel figcaption,.worlds-band .breadcrumb,.worlds-band p,.worlds-band .story-actions{animation:none!important}
}
.motion-paused .story-line>span,.motion-paused .worlds-seam,.motion-paused .worlds-panel,.motion-paused .worlds-panel img,.motion-paused .worlds-panel figcaption,.motion-paused .worlds-band *{animation:none!important}

/* Tablets */
@media (max-width:900px){
  .story-head{grid-template-columns:1fr;margin-bottom:36px}
  .story-steps{grid-template-columns:1fr;gap:26px}
  .story-next-foot{grid-template-columns:1fr;gap:36px}
  .worlds-band .wrap,.worlds-intro,.worlds-journey-foot,.worlds-team-grid,.worlds-local,.worlds-care,.worlds-supply,.worlds-promise{grid-template-columns:1fr}
  .worlds-local-copy{position:static}
  .worlds-journey{grid-template-columns:1fr}
  .worlds-journey li{padding:0 0 32px 44px}
  .worlds-journey li:last-child{padding-bottom:0}
  .worlds-journey li:not(:last-child){background-position:7px 0;background-size:1px 100%}
  .worlds-journey li:not(:last-child):after{top:0;bottom:0;left:6px;right:auto;width:3px;height:auto;transform-origin:top}
  .worlds-journey.motion-reveal:not(.is-visible) li:after{transform:scaleY(0)}
  .worlds-journey p{max-width:44ch}
  .worlds-origin{grid-template-columns:1fr}
  .worlds-origin .story-head{margin-bottom:36px}
  .story-document{justify-self:start}
  .worlds-mosaic{grid-template-columns:repeat(2,minmax(0,1fr))}
  .worlds-mosaic .is-wide{grid-column:1/-1}
  .worlds-mosaic img{height:clamp(180px,40vw,320px)}
}
/* Phones */
@media (max-width:640px){
  .story-head h2,.worlds-intro h2,.worlds-local-copy h2,.worlds-care h2,.worlds-promise h2{font-size:clamp(2rem,9vw,2.5rem)}
  .story-checklist li{font-size:1.0625rem}
  .worlds-stage{height:clamp(300px,48svh,440px)}
  /* On phones the first action comes straight after the heading, so it stays on screen. */
  .worlds-band .wrap>div:last-child{display:flex;flex-direction:column}
  .worlds-band .story-actions{order:-1;margin:0 0 24px}
  .worlds-label{font-size:clamp(1.375rem,6.4vw,1.75rem)}
  .worlds-sub{display:none}
  .worlds-panel figcaption{left:16px;right:12px;bottom:18px}
  .worlds-panel:first-child figcaption{left:var(--gutter)}
  .worlds-band h1{font-size:clamp(2.25rem,9.8vw,2.875rem)}
  .worlds-focus p{font-size:1.5rem}
}
