/* Draft 5, December refinement. Preserve the native cloud journey and CGP.
   DESIGN_VARIANCE 8 / MOTION_INTENSITY 8 / VISUAL_DENSITY 3.
   Each photograph keeps its original pixels; its mask follows the subject. */
.cf-cloud-media{overflow:hidden}
.cf-category-photo .cf-cloud-media{height:auto;mask-image:var(--cf-contour);-webkit-mask-image:var(--cf-contour);mask-mode:alpha}
.cf-contour-ice{--cf-contour:url('/cf-assets/contour-ice.svg')}
.cf-contour-garden{--cf-contour:url('/cf-assets/contour-garden.svg')}
.cf-contour-gathering{--cf-contour:url('/cf-assets/contour-gathering.svg')}
.cf-people-one .cf-cloud-media{
  -webkit-mask-image:url('/cf-assets/editorial/wide-mist.png');
  mask-image:url('/cf-assets/editorial/wide-mist.png');
}
[data-world] .cf-cloud-media > img{position:absolute;inset:0;width:100%;height:100%;transform:none;object-fit:cover;object-position:center bottom}
.cf-category-photo{width:46vw;max-width:760px;left:calc(100% + 3vw);top:-40px;pointer-events:none}
.division-link-ship:nth-child(even) .cf-category-photo{left:auto;right:calc(100% + 3vw)}
.cf-contour-ice .cf-cloud-media{aspect-ratio:1700/633}
.cf-contour-garden .cf-cloud-media{aspect-ratio:1000/1080}
.cf-contour-gathering .cf-cloud-media{aspect-ratio:1800/1110}
.cf-contour-ice{top:75px;width:50vw;max-width:860px}
.cf-contour-garden{top:-30px;width:43vw;max-width:700px}
.cf-contour-gathering{top:50px}
.cf-static-convoy{--cf-print:url('/cf-assets/editorial/road-print.png');margin:0}
.cf-contour-ice{--cf-print:url('/cf-assets/editorial/ice-print.png')}
.cf-contour-garden{--cf-print:url('/cf-assets/editorial/garden-print.png')}
.cf-contour-gathering{--cf-print:url('/cf-assets/editorial/gathering-print.png')}
.cf-static-convoy>img{display:block;width:100%;height:auto}
:is(.cf-static-convoy,.cf-category-photo)::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:var(--cf-print) center / 100% 100% no-repeat;
}
/* These figures also provide the static, reduced-motion composition. */
#WhatWeDo .division-link-ship.cf-convoy-stage{min-height:780px;isolation:isolate}
.cf-static-convoy{display:block;position:absolute;left:63%;top:-120px;width:60vw;max-width:980px;height:auto;pointer-events:none;z-index:-1;filter:saturate(.88);mask-image:linear-gradient(#000 84%,transparent)}
#WhatWeDo .cf-convoy-stage .division-content{mix-blend-mode:normal;position:relative;z-index:1;max-width:400px}
#WhatWeDo .cf-convoy-stage :is(h3,h4,.link-block,.cf-category-description){color:var(--cf-green)}
/* No light panel or title halo: the native globe remains the background. */
.cf-explorer-stage:after,.cf-globe-heading:before,.cf-globe-card:before{display:none}
.cf-globe-heading,#GlobalConnectivity .cf-globe-heading h2,.cf-globe-card,.cf-explorer-footer{color:#f3f1e9;text-shadow:0 1px 5px #09141370}
.cf-globe-tabs{border-color:#f3f1e94d}
.cf-globe-tabs button{opacity:.82}
.cf-globe-tabs button.active{border-color:var(--cf-orange);opacity:1;color:#fff}
.cf-globe-point{color:#f3f1e9}
.cf-globe-point>a{background:#152721db;color:#fff;backdrop-filter:blur(8px)}
.cf-globe-point.active>a{color:#24332f}
.cf-globe-point:before{background:#eef1e39c}
.cf-explorer-footer>a{border-color:#f3f1e97a}
/* One bounded content width for the gallery and partner row. */
.cf-journal{padding:110px 0 65px}
.cf-content-container{width:calc(100% - var(--cf-gutter)*2);max-width:1200px;margin-inline:auto}
.cf-journal-grid{gap:28px}
.cf-partner-row{gap:30px}
/* Mont Fort's footer arrangement: compact links on the left, contact columns
   on the right, with the brand and legal line beneath. */
.cf-footer{padding:105px max(var(--cf-gutter),calc((100vw - 1200px)/2)) 35px}
.cf-footer-columns{display:grid;grid-template-columns:1fr 1.4fr;gap:8vw;margin:90px 0 80px}
.cf-footer-menu{display:grid;grid-template-columns:1fr 1fr;gap:35px}
.cf-footer-links{display:flex;flex-direction:column;align-items:start;gap:20px}
.cf-footer-links a{font-size:10px;line-height:1.6;text-transform:uppercase;letter-spacing:.08em}
.cf-footer-legals{opacity:.8}
.cf-footer-offices{display:grid;grid-template-columns:1.25fr 1fr;gap:40px}
.cf-footer-office .cf-eyebrow{font-size:10px;margin-bottom:23px}
.cf-footer-office>p:not(.cf-eyebrow){font-size:12px;line-height:1.9;margin-bottom:22px}
.cf-footer-office>a{display:block;font-size:10px;line-height:1.8;margin-top:8px;overflow-wrap:anywhere;width:fit-content}
.cf-footer :is(.cf-footer-links,.cf-footer-office) a:hover{color:var(--cf-orange)}
.cf-footer-bottom{display:grid;grid-template-columns:1fr 1.4fr auto;gap:8vw;align-items:center;padding-top:35px}
.cf-footer-bottom img{width:180px;margin:0}
.cf-footer-bottom button{margin:0;white-space:nowrap;min-height:44px}
.cf-motion-paused .cf-static-convoy{position:absolute;left:63%;top:-20px;width:60vw;max-width:980px;margin:0;transform:none!important}
.cf-motion-paused #WhatWeDo .cf-convoy-stage{min-height:500px}
.cf-motion-paused #GlobalConnectivity{background:#14231f}
.cf-motion-paused #GlobalConnectivity .cf-globe-heading h2{color:#f3f1e9!important}
.cf-motion-paused .cf-explorer-footer{color:#f3f1e9}
@media(min-width:768px) and (max-width:1100px){
 .cf-static-convoy,.cf-motion-paused .cf-static-convoy{left:58%;width:54vw}
 .cf-footer-columns{gap:40px;grid-template-columns:1fr 1.2fr}
 .cf-footer-offices{gap:20px}
 .cf-category-photo{width:43vw}
 .cf-contour-ice{width:52vw}
}
@media(max-width:767px){
 #WhatWeDo .division-link-ship.cf-convoy-stage{min-height:720px}
 .cf-static-convoy{top:265px;left:-12%;width:115%;max-width:none}
 #WhatWeDo .cf-convoy-stage .division-content{max-width:310px}
 .cf-category-photo,.division-link-ship:nth-child(even) .cf-category-photo{position:relative;left:-8%;right:auto;top:auto;width:116%;max-width:none;margin:35px 0 0}
 .cf-category-photo .cf-cloud-media{height:auto}
 .cf-contour-garden{margin-bottom:-70px}
 .cf-globe-card{top:49%}
 .cf-globe-heading,#GlobalConnectivity .cf-globe-heading h2,.cf-explorer-footer{color:#f3f1e9}
 .cf-explorer-footer>a{border-color:#f3f1e97a}
 .cf-journal{padding:70px 0 45px}
 .cf-content-container{width:calc(100% - 48px);max-width:560px}
 .cf-journal-grid{gap:28px}
 .cf-partner-row{gap:30px;padding-top:35px}
 .cf-footer{padding:70px 24px 30px}
 .cf-footer-columns{grid-template-columns:1fr;gap:48px;margin:60px 0 50px}
 .cf-footer-menu{gap:25px}
 .cf-footer-links{gap:16px}
 .cf-footer-links a{min-height:28px}
 .cf-footer-offices{gap:25px}
 .cf-footer-office>a{min-height:34px}
 .cf-footer-bottom{grid-template-columns:1fr auto;gap:25px;font-size:9px}
 .cf-footer-bottom>a:first-child{grid-column:1/-1}
 .cf-footer-bottom img{width:160px}
 .cf-footer-bottom button{font-size:9px}
 .cf-motion-paused .cf-static-convoy{position:relative;top:auto;left:-6%;width:112%;max-width:none;margin-top:25px}
 .cf-motion-paused #WhatWeDo .cf-convoy-stage{min-height:0}
}
@media(prefers-reduced-motion:reduce){.cf-static-convoy,.cf-cloud-media{transform:none!important}}

.cf-globe-heading h2,.cf-globe-card h3{text-shadow:none}

/* All three lines travel with the sticky destination stage. */
@media(max-width:767px){
  .cf-globe-heading{display:grid;grid-template-columns:1fr auto;gap:4px 12px}
  .cf-globe-heading>.cf-eyebrow{grid-column:1;grid-row:1;max-width:none;margin:0}
  #GlobalConnectivity .cf-globe-heading>h2{grid-column:2;grid-row:1/3;margin:0}
  .cf-globe-heading>p:last-child{grid-column:1;grid-row:2;margin:0;font-size:11px;line-height:1.45}
}
@media(max-width:359px){
  #GlobalConnectivity .cf-globe-heading>h2{font-size:22px}
}

/* Preserve the document geometry and alternative text when its photograph
   has a resident texture in the landscape. Each asset can fall back alone. */
body:not(.cf-motion-paused):not(.cf-scene-fallback) [data-world-state]:not([data-world-state="static"]){opacity:0!important;pointer-events:none}
.cf-category-photo[data-world-state="static"] .cf-cloud-media{mask-image:radial-gradient(ellipse,#000 43%,transparent 72%);-webkit-mask-image:radial-gradient(ellipse,#000 43%,transparent 72%)}
/* Let the club introduction arrive as the first bank of mist rises. */
.hero[data-astro-cid-wmudpb2w]{height:104svh}
#WhoWeAre{min-height:0;padding-block:6svh clamp(56px,12svh,128px)}
#WhoWeAre h2{margin-bottom:clamp(24px,5svh,56px)}
#WhoWeAre .text-block{margin-top:0}
#WhatWeDo .divisions-container{margin-top:0}
body:not(.cf-motion-paused) #WhatWeDo .divisions-container{row-gap:0}
body:not(.cf-motion-paused) #WhatWeDo .division-link-ship{min-height:clamp(540px,100svh,1080px)}
body:not(.cf-motion-paused) #WhatWeDo{padding-block:0}
body:not(.cf-motion-paused) #WhatWeDo .division-link-ship:last-child{min-height:82svh}
.cf-motion-paused #WhatWeDo{padding-block:9svh}
body:not(.cf-motion-paused) #Sustainability{min-height:0;padding:8svh 0}
body:not(.cf-motion-paused) #Sustainability .cf-people{min-height:178svh}
body:not(.cf-motion-paused) #WhatWeDo .division-link-ship:last-child :is(h3,h4,.cf-category-description,.link-block){color:#293a3b}
@media(max-width:767px){
 body:not(.cf-motion-paused) #WhatWeDo .division-link-ship{min-height:clamp(595px,105svh,980px)}
 body:not(.cf-motion-paused) #WhatWeDo .division-link-ship:last-child{min-height:92svh}
 body:not(.cf-motion-paused) .cf-people-one{top:94svh}
 body:not(.cf-motion-paused) #Sustainability .cf-people{min-height:170svh}
}

/* A single sheet of colour rises over the forest and continues under the gallery. */
.cf-journal{--paper:#d9ded5;--dissolve:clamp(210px,44svh,480px);background:transparent;isolation:isolate}
.cf-journal::before{
  inset:calc(0px - var(--dissolve)) 0 -1px;
  height:auto;
  z-index:-1;
  background:var(--paper);
  --paper-mask:
    radial-gradient(ellipse 75vw calc(var(--dissolve)*.76) at 15% var(--dissolve),#000 12%,transparent 100%),
    linear-gradient(to bottom,transparent 0,rgb(0 0 0/.06) calc(var(--dissolve)*.17),
      rgb(0 0 0/.33) calc(var(--dissolve)*.42),rgb(0 0 0/.78) calc(var(--dissolve)*.68),
      rgb(0 0 0/.98) calc(var(--dissolve)*.91),#000 var(--dissolve));
  -webkit-mask-image:var(--paper-mask);
  mask-image:var(--paper-mask);
}
.cf-memory{
  position:relative;
  border:1px solid #31414033;
  padding:3px;
  background:#e9eae2;
}
.cf-memory::after{
  content:"";
  position:absolute;
  left:3px;
  bottom:0;
  width:clamp(24px,3vw,42px);
  height:2px;
  background:var(--cf-orange);
  pointer-events:none;
}
.cf-journal .cf-memory img{height:auto;display:block;aspect-ratio:3/2}
.cf-journal .cf-memory:nth-child(2) img{aspect-ratio:4/5;object-position:50% 34%}
.cf-journal .cf-memory:nth-child(3) img{aspect-ratio:1/1;object-position:64% 41%}
.cf-memory::before,.cf-destination-image::after{
  content:"";
  position:absolute;
  z-index:1;
  pointer-events:none;
  left:3px;
  bottom:clamp(8px,2vw,20px);
  width:clamp(70px,37%,155px);
  aspect-ratio:420/160;
  background:url('/cf-assets/editorial/club-signature.png') left bottom/contain no-repeat;
  filter:drop-shadow(0 1px 2px #17242188);
}
.cf-memory:nth-child(2)::before{top:9px;bottom:auto}
.cf-destination-image::after{left:0;bottom:9px;width:clamp(45px,36%,100px)}
.cf-destination-image img[src$="/alpine.webp"]{object-position:50% 72%}
.cf-destination-image img[src$="/istrian.webp"]{object-position:52% 65%}
.cf-destination-image img[src$="/adriatic.webp"]{object-position:52% 52%}

.cf-motion-paused .cf-journal{--dissolve:clamp(75px,12svh,145px)}
.cf-motion-paused #Sustainability{min-height:0;padding-block:6svh}
.cf-motion-paused #Sustainability .cf-people{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
  align-items:center;
  align-content:center;
  isolation:isolate;
  gap:32px 6vw;
  min-height:95svh;
}
.cf-motion-paused .cf-people :is(h2,.cf-eyebrow){position:relative;z-index:1;grid-column:1/-1;margin:0}
.cf-motion-paused .cf-people-copy{grid-column:2;grid-row:3;margin:0}
.cf-people:has(.cf-people-one[data-world-state="static"]){isolation:isolate}
.cf-motion-paused .cf-people-one,.cf-people-one[data-world-state="static"]{
  position:absolute;inset:0 auto 0 50%;transform:translateX(-50%);width:100vw;max-width:none;height:100%;margin:0;z-index:-1;
}
.cf-motion-paused .cf-people-one video,.cf-people-one[data-world-state="static"] video{filter:brightness(.49);transform:none}
@media(max-width:767px){
  .cf-motion-paused #Sustainability .cf-people{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:24px}
  .cf-motion-paused .cf-people-copy{margin-left:10%}
}

.cf-home-partners{
  margin-top:clamp(65px,9vw,140px);
  padding-top:clamp(32px,5vw,72px);
  border-top:1px solid #31414040;
}
.cf-home-partners .cf-journal-heading{margin-bottom:clamp(26px,4vw,48px)}
.cf-home-partners h2{margin:0;font-size:clamp(25px,3.8vw,60px)}
.cf-home-partners .logo-wall{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid #31414029;
  gap:1px;
  background:#31414029;
  padding:0;
  margin:0;
  list-style:none;
}
.cf-home-partners .logo-wall li{
  display:grid;
  place-items:center;
  min-height:clamp(86px,8.5vw,130px);
  background:#edf0e9;
}
.cf-home-partners .logo-wall a{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
}
.cf-home-partners .logo-wall a:is(:hover,:focus-visible){background:#fff}
.cf-home-partners .logo-wall img{
  width:clamp(85px,10vw,148px);
  max-width:76%;
  height:54px;
  object-fit:contain;
  mix-blend-mode:multiply;
}
@media(min-width:701px){
  .cf-home-partners li:nth-child(4n+1):nth-last-child(2),
  .cf-home-partners li:nth-child(4n+2):last-child{grid-column:span 2}
}
@media(max-width:700px){
  .cf-home-partners .logo-wall{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cf-home-partners .logo-wall img{width:106px;height:40px}
  .cf-home-partners .cf-journal-heading{align-items:start;gap:14px}
}

/* Leave room for the viewport controls alongside right-aligned content. */
.cf-film-caption, .cf-explorer-footer { right: max(var(--cf-gutter), var(--cf-corner-clearance)); }
.cf-footer { padding-right: max(var(--cf-gutter), var(--cf-corner-clearance), calc((100vw - 1200px)/2)); }

.cf-hero-copy {
  --hero-orange: #ffab70;
}
.cf-hero-copy .cf-eyebrow {
  color: var(--hero-orange);
  font-size: clamp(10px, .75vw, 12px);
  font-weight: 600;
  letter-spacing: .12em;
}
.cf-hero-copy h1 span {
  color: var(--hero-orange);
}
@media (min-width: 768px) and (forced-colors: none) {
  @supports (-webkit-text-stroke: 1px currentColor) {
    .cf-hero-copy h1 span {
      color: transparent;
      -webkit-text-stroke: clamp(1.25px, .12vw, 2px) var(--hero-orange);
    }
  }
}
