/* ==========================================================================
   Ryujin Labs - homepage refresh (overrides on top of the original CSS)
   1. Tokens   2. Typography   3. Layout / centering   4. Nav
   5. Buttons  6. Cards        7. Featured slider      8. Misc
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root{
  --rl-ink:#161616;
  --rl-ink-2:#454545;          /* body copy: ~9:1 on white (was #5d5d5d) */
  --rl-surface:#f4f4f4;
  --rl-line:rgba(0,0,0,.08);
  --rl-gutter:clamp(1.25rem,5vw,4.5rem);
  --rl-content:73.5rem;        /* ONE content width for every section */
  --rl-read:46rem;             /* comfortable reading measure */
  --rl-radius:.75rem;
}

/* 2. Typography ------------------------------------------------------------
   Original: every heading line-height:1, no tracking, 14px body.            */
html{-webkit-text-size-adjust:100%}
body{
  font-size:1rem;
  line-height:1.6;
  letter-spacing:-.003em;
  color:var(--rl-ink-2);
  font-optical-sizing:auto;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,.heading-style-h1,.heading-style-h2,.heading-style-h3,.heading-style-h4{
  color:var(--rl-ink);
  text-wrap:balance;
}
h1,.heading-animated{
  font-size:clamp(2.5rem,5.4vw,4.75rem);
  line-height:1.06;
  letter-spacing:-.04em;
  font-weight:400;
}
.heading-span-animated{
  display:block;
  margin-top:.18em;
  line-height:1.12;
  letter-spacing:-.035em;
  max-width:18em;
}
.heading-style-h1{
  font-size:clamp(2.5rem,4.6vw,4rem);
  line-height:1.08;
  letter-spacing:-.035em;
}
.heading-style-h2{
  font-size:clamp(1.5rem,2.5vw,2.25rem);
  line-height:1.28;
  letter-spacing:-.022em;
  text-wrap:pretty;
  max-width:var(--rl-read);
}
h3{
  line-height:1.18;
  letter-spacing:-.025em;
}
p,.text-color-secondary{ text-wrap:pretty }
p{ line-height:1.6; color:var(--rl-ink-2) }
.home-hero_content{ gap:2rem }

/* 3. Layout / centering ----------------------------------------------------
   Left edges used to be 252px / 132px / 43px / 63px at 1440w. Everything now
   hangs off the same centred column.                                         */
.padding-global{ padding-left:var(--rl-gutter); padding-right:var(--rl-gutter) }
.container-small,
.container-medium,
.container-large,
.container-xlarge{ max-width:var(--rl-content); margin-left:auto!important; margin-right:auto!important }
.container-medium.navbar_container{ max-width:var(--rl-content) }
/* "Built together" + "Featured" were shoved right with padding-left:50% and a
   negative margin: put them back in the column. */
.unaligned-content{ padding-left:0 }
.unaligned-wrapper{ margin-left:0; max-width:100% }
.padding-section-xlarge{ padding-top:clamp(5rem,12vw,10rem); padding-bottom:clamp(5rem,12vw,10rem) }
.padding-section-large{ padding-top:clamp(4rem,8vw,7rem); padding-bottom:clamp(4rem,8vw,7rem) }
.padding-section-large.padding-top{ padding-bottom:0 }
.padding-section-large.padding-bottom{ padding-top:0 }

/* Scroll-pinned image: JS grew it from a half-size dark card; show final state */
.section_scroll-image{ padding:0 var(--rl-gutter) }
.scroll-image_content{ height:auto }
.scroll-image_wrapper{ max-width:var(--rl-content); margin:0 auto }
.page-wrapper .scroll-image_block,
.scroll-image_block{ width:100%; height:clamp(22rem,52vw,42rem); transform:none; border-radius:var(--rl-radius) }
.page-wrapper .scroll-image_image,
.page-wrapper .scroll-image_image-mobile{ opacity:1 }

/* What's on */
.whats-on_content{ align-items:center; gap:clamp(2rem,5vw,4.5rem) }
.section_whats-on .whats-on_image-wrapper{ border-radius:var(--rl-radius) }
.whats-on_content > *:last-child{ flex:1 }

/* 4. Nav -------------------------------------------------------------------
   Original: 10% grey tint + 4px blur => page text shows straight through it. */
.navbar_overlay{
  background:rgba(255,255,255,.9);
  -webkit-backdrop-filter:blur(20px) saturate(1.6);
  backdrop-filter:blur(20px) saturate(1.6);
  border-radius:var(--rl-radius);
  box-shadow:0 0 0 1px var(--rl-line),0 8px 28px rgba(0,0,0,.08);
}
.navbar_link,.navbar_link.is-current{ color:var(--rl-ink); font-size:.9375rem; letter-spacing:-.005em }
.navbar_link:hover{ color:#000; transform:none; text-decoration:underline; text-underline-offset:.35em; text-decoration-thickness:1px }
.navbar_logo-link{ width:8.5rem }
.container-medium.navbar_container{ padding:.5rem .5rem .5rem 1.25rem }
/* Hero logo repeated the nav logo right underneath it */
.home-hero_logos{ display:none }

/* 5. Buttons ---------------------------------------------------------------
   Original: pale grey pill on white with grey label, 2px-thin chevron.      */
.button_link{
  padding:.8125rem 3.5rem .8125rem 1.375rem;
  font-size:1rem; line-height:1.5; font-weight:500; letter-spacing:-.005em;
  cursor:pointer; border:0; background:none; font-family:inherit;
}
.button_bg{ border-radius:.625rem }
.button_icon-wrapper{ width:1.75rem; height:1.75rem; inset:50% .6875rem auto auto; transform:translateY(-50%) }
.button_icon-block,.button_icon-bg,.button_icon-hover-bg{ border-radius:.375rem }
.button_icon,.button_icon-down{ width:100%; height:100% }
.button:focus-within{ outline:2px solid var(--rl-ink); outline-offset:3px; border-radius:.625rem }
.button_link:focus-visible{ outline:none }
/* hero "Learn more" becomes a real primary (markup variant changed to black) */
.home-hero_button .button{ display:inline-block }
/* "See all articles" was a bare grey link */
.slider_button-wrapper .button_bg{ background:var(--rl-surface); box-shadow:inset 0 0 0 1px var(--rl-line) }
.slider_button-wrapper .button_link{ height:auto; padding:.8125rem 3.5rem .8125rem 1.375rem; color:var(--rl-ink) }
.slider_button-wrapper .button:hover .button_bg{ background:#e9e9e9 }
.slider_button-wrapper .button_icon-bg{ background:#fff }
/* card arrows */
.clusters_arrow-block{ width:2.75rem; height:2.75rem; background:#fff; box-shadow:0 0 0 1px var(--rl-line); transition:background .2s,transform .2s }
.clusters_arrow{ width:1.5rem; height:1.5rem }
.clusters_item-wrapper:hover .clusters_arrow-block,
.blog_card:hover .clusters_arrow-block{ background:var(--rl-ink) }
.clusters_item-wrapper:hover .clusters_arrow,
.blog_card:hover .clusters_arrow{ filter:invert(1) }

/* 6. Cards ----------------------------------------------------------------- */
.clusters_wrapper{ gap:1.25rem }
.clusters_list{ gap:1.25rem }
.clusters_item-wrapper,.blog_card{ background:var(--rl-surface); border-radius:var(--rl-radius); box-shadow:inset 0 0 0 1px var(--rl-line); transition:box-shadow .2s,transform .2s }
.clusters_item-wrapper:hover,.blog_card:hover{ box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 10px 30px rgba(0,0,0,.07) }
.clusters_text-wrapper{ padding:1.5rem }
.clusters_main-text-wrapper{ padding:0 2rem 2rem }
.clusters_item h3,.clusters_main-text-wrapper h3{ font-size:clamp(1.5rem,2vw,1.875rem); line-height:1.15 }
.clusters_text-wrapper p,.clusters_main-text-wrapper p,.blog_text-wrapper p{ font-size:.9375rem; line-height:1.55; color:var(--rl-ink-2) }
.clusters_partners{ align-items:flex-end }
.clusters_arrow-wrapper,.clusters_partners{ margin-top:auto }
.padding-bottom.padding-small{ padding-bottom:.75rem }
.padding-bottom.padding-medium{ padding-bottom:1.25rem }

/* 7. Featured slider (Swiper JS removed -> native scroll-snap) -------------- */
.section_slider{ overflow:visible }
.swiper.blog-slider{ width:100%; margin:0; padding:0; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch }
.swiper.blog-slider::-webkit-scrollbar{ display:none }
.swiper-wrapper{ display:flex; gap:1.25rem }
.swiper-slide.blog-slide{ flex:0 0 calc((100% - 2.5rem)/3); min-width:0; width:auto!important; scroll-snap-align:start; height:auto }
.blog_image{ height:13.5rem!important; aspect-ratio:16/9 }
.blog_text-wrapper{ padding:1.5rem }
.blog_text-wrapper h3{ font-size:1.375rem; line-height:1.22 }
.blog_tag .text-color-secondary{ font-size:.8125rem; font-weight:500; letter-spacing:.01em }
.slider_nav-wrapper{ justify-content:flex-end }
.swiper-button{ width:2.75rem; height:2.75rem; min-width:2.75rem; max-width:2.75rem; border-radius:.625rem; background:var(--rl-surface); box-shadow:inset 0 0 0 1px var(--rl-line); border:0 }
.swiper-button:hover{ background:#e6e6e6; transform:none }
.swiper-button.is-prev .swiper-button_icon{ transform:rotate(180deg) }
.swiper-button_icon{ width:1.5rem; height:1.5rem }
.swiper-button[disabled]{ opacity:.4; pointer-events:none }
.slider_subheader{ align-items:center; gap:1.5rem }

/* 8. CTA band + footer ------------------------------------------------------ */
.cta_wrapper{ padding:clamp(2rem,5vw,4rem); border-radius:var(--rl-radius) }
.cta_wrapper h2,.cta_wrapper .heading-style-h1{ color:#fff }
.cta_wrapper p{ color:rgba(255,255,255,.82); max-width:34rem }
.cta_wrapper .button[data-button-variant=white] .button_link,
.cta_wrapper .button_link{ color:var(--rl-ink) }
.footer_component,.footer{ border-radius:var(--rl-radius) var(--rl-radius) 0 0 }

/* Mobile menu (open state is toggled by site.js) */
@media (max-width:991px){
  .navbar.menu-open .site-nav__menu{ display:block!important; position:absolute; top:calc(100% + .5rem); left:0; right:0 }
  .navbar_menu-wrapper{ background:rgba(255,255,255,.97); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); border-radius:var(--rl-radius); padding:1.25rem; box-shadow:0 0 0 1px var(--rl-line),0 16px 40px rgba(0,0,0,.12); gap:1rem }
  .navbar_link{ font-size:1.125rem }
  .swiper-slide.blog-slide{ flex-basis:calc((100% - 1.25rem)/2) }
}
@media (max-width:767px){
  .swiper-slide.blog-slide{ flex-basis:82% }
  .slider_subheader{ flex-wrap:wrap }
  .whats-on_content{ gap:1.5rem }
}
@media (prefers-reduced-motion:reduce){ *{ scroll-behavior:auto!important; transition:none!important } }
html{ scroll-behavior:smooth }

/* fixes after first visual pass */
.section_home-hero .padding-section-large{ padding-top:clamp(8rem,13vw,10.5rem) }
.navbar_button-wrapper .navbar_link{ display:block; line-height:1.5 }
.page-wrapper .swiper.blog-slider{ overflow-x:auto!important; overflow-y:hidden!important }

/* beat the original .home-page slider rules (fixed 28.5rem slides) */
.home-page .swiper.blog-slider .swiper-slide.blog-slide,
.home-page .swiper.blog-slider .swiper-slide.blog-slide.swiper-slide-active{
  flex:0 0 calc((100% - 2.5rem)/3); min-width:0; width:auto!important; scroll-snap-align:start;
}
.home-page .swiper.blog-slider .blog_image{ aspect-ratio:16/10; height:auto!important; width:100%; object-position:center }
@media (max-width:991px){
  .home-page .swiper.blog-slider .swiper-slide.blog-slide{ flex-basis:calc((100% - 1.25rem)/2) }
}
@media (max-width:767px){
  .home-page .swiper.blog-slider .swiper-slide.blog-slide{ flex-basis:82% }
}

/* CTA band polish */
.cta_wrapper h2,.cta_wrapper .heading-style-h1{ margin-bottom:1.25rem }
.cta_wrapper .button{ margin-top:.5rem }



/* ==========================================================================
   Buttons + nav glass, copied from Subframe Motion (undo-removal page)
   dark #000000db / hover #000000c9 / radius 16px / 44px tall / inset bevel
   header glass: rgba(249,249,249,.8) + blur(12px)
   ========================================================================== */
html body .button{ display:inline-block; position:relative; border-radius:1rem; transition:transform .15s cubic-bezier(.4,0,.2,1) }
html body .button .button_bg{
  border-radius:1rem; corner-shape:squircle;
  background-color:#000000db;
  box-shadow:inset 0 4px 4px -2px #ffffff40, inset 0 -4px 4px -2px #00000040, inset -2px 0 2px -2px #ffffff1a, inset -2px 0 2px -2px #ffffff1a;
  transition:background-color .15s cubic-bezier(.4,0,.2,1), box-shadow .15s cubic-bezier(.4,0,.2,1);
}
html body .button .button_wrapper{ height:2.75rem; padding:0 1.25rem; gap:.5rem; display:flex; align-items:center; justify-content:center }
html body .button .button_link{ padding:0!important; height:auto; min-width:0; color:#fff; font-size:1rem; font-weight:500; line-height:1.5; letter-spacing:-.005em; white-space:nowrap; text-align:left }
html body .button:hover .button_bg,
html body .button[data-button-variant]:hover .button_bg{
  background-color:#000000c9!important;
  box-shadow:inset 0 2px 4px -2px #ffffff40, inset 0 -2px 4px -2px #00000040, inset -2px 0 2px -2px #ffffff1a, inset -2px 0 2px -2px #ffffff1a!important;
}
html body .button:active .button_bg{ background-color:#000000db!important; box-shadow:inset 0 2px 4px -2px transparent, inset 0 -2px 4px -2px #00000040, inset -2px 0 2px -2px transparent, inset -2px 0 2px -2px #ffffff1a!important }
html body .button[data-button-variant]:hover .button_link,
html body .button[data-button-variant] .button_link{ color:#fff!important }
html body .button:focus-within{ outline:2px solid #161616; outline-offset:3px; border-radius:1rem }
/* no arrow chips on buttons (card arrows are .clusters_arrow-block, untouched) */
html body .button .button_icon-wrapper{ display:none }
/* ...except Learn more: Subframe's plain white chevron after the label */
html body .home-hero_button .button .button_icon-wrapper{ display:flex; position:static; transform:none; width:1.375rem; height:1.375rem; inset:auto; margin-right:-.25rem }
html body .home-hero_button .button_icon-block{ width:100%; height:100%; border-radius:0; overflow:visible }
html body .home-hero_button .button_icon-down{ display:block; width:100%; height:100%; filter:invert(1); position:static }
html body .home-hero_button .button_hover-icon-down,
html body .home-hero_button .button_icon-bg{ display:none }
/* light buttons (CTA band, footer) keep the same shape, inverted colours */
html body .button[data-button-variant=white] .button_bg,
html body .button[data-button-variant=grey]:not(.x) .button_bg.light,
html body .cta_wrapper .button .button_bg,
html body .footer_component .button .button_bg{ background-color:#fff!important }
html body .cta_wrapper .button .button_link,
html body .footer_component .button .button_link{ color:#161616!important }
html body .cta_wrapper .button:hover .button_bg,
html body .footer_component .button:hover .button_bg{ background-color:#e9e9e9!important }

/* Nav: solid at top, Subframe frost glass once scrolled (class set by site.js) */
.navbar_overlay{ transition:background-color .25s ease, backdrop-filter .25s ease, box-shadow .25s ease }
html body .navbar.is-scrolled .navbar_overlay{
  background-color:rgba(249,249,249,.8);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  box-shadow:0 0 0 1px rgba(0,0,0,.06);
}

/* RULE: no button is narrower than 90px (5.625rem) */
html body .button{ min-width:5.625rem }
html body .button .button_wrapper{ min-width:inherit; width:100% }

/* Menu link hover: label rolls up (copy slides in from below) + underline
   draws in from the left and leaves to the right */
html body .navbar_link{ position:relative; display:inline-flex; padding:.3rem 0; text-decoration:none!important; transform:none!important }
html body .navbar_link .rl-clip{ display:block; overflow:hidden; height:1.5em; line-height:1.5 }
html body .navbar_link .rl-roll{ display:block; position:relative; transition:transform .5s cubic-bezier(.65,0,.15,1) }
html body .navbar_link .rl-roll::after{ content:attr(data-text); position:absolute; left:0; top:100%; color:#000 }
html body .navbar_link::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1.5px; border-radius:1px;
  background:currentColor; transform:scaleX(0); transform-origin:right center;
  transition:transform .5s cubic-bezier(.65,0,.15,1);
}
html body .navbar_link:hover .rl-roll,
html body .navbar_link:focus-visible .rl-roll{ transform:translateY(-100%) }
html body .navbar_link:hover::after,
html body .navbar_link:focus-visible::after{ transform:scaleX(1); transform-origin:left center }
html body .navbar_link:focus-visible{ outline:none }

/* Underline lives on the bottom edge of the nav bar, 3.5px thick */
html body .navbar_link::after{ bottom:calc(-1 * var(--rl-drop,0px)); height:3.5px; border-radius:0; background:#161616 }

/* Glare sweep on hover - larger buttons (not the nav Join) */
html body .button .button_bg{ overflow:hidden; isolation:isolate }
html body main .button .button_bg::after,
html body .footer_component .button .button_bg::after{
  content:""; position:absolute; top:-50%; bottom:-50%; left:0; width:55%;
  background:linear-gradient(100deg, transparent 0%, rgba(255,255,255,.08) 30%, rgba(255,255,255,.38) 50%, rgba(255,255,255,.08) 70%, transparent 100%);
  transform:translateX(-160%) skewX(-18deg);
  transition:none; pointer-events:none;
}
html body main .button:hover .button_bg::after,
html body .footer_component .button:hover .button_bg::after{
  transform:translateX(260%) skewX(-18deg);
  transition:transform .65s cubic-bezier(.4,0,.2,1);
}
/* on white buttons the glare is a soft grey sheen instead */
html body .cta_wrapper .button .button_bg::after,
html body .footer_component .button .button_bg::after{
  background:linear-gradient(100deg, transparent 0%, rgba(0,0,0,.03) 30%, rgba(0,0,0,.10) 50%, rgba(0,0,0,.03) 70%, transparent 100%);
}
@media (prefers-reduced-motion:reduce){ html body .button .button_bg::after{ display:none } }

/* v2: lighter fill, stronger glare, on every button (incl. nav Join) */
html body .button .button_bg{ background-color:#000000bf!important }      /* was #000000db; !important beats the original #292929 rule */
html body .button:hover .button_bg,
html body .button[data-button-variant]:hover .button_bg{ background-color:#000000ad!important }
html body .button:active .button_bg{ background-color:#000000bf!important }
html body .button .button_bg::after{
  content:""; position:absolute; top:-50%; bottom:-50%; left:0; width:60%;
  background:linear-gradient(100deg, transparent 0%, rgba(255,255,255,.12) 25%, rgba(255,255,255,.62) 50%, rgba(255,255,255,.12) 75%, transparent 100%);
  transform:translateX(-170%) skewX(-18deg);
  transition:none; pointer-events:none;
}
html body .button:hover .button_bg::after{
  transform:translateX(270%) skewX(-18deg);
  transition:transform .6s cubic-bezier(.4,0,.2,1);
}
html body .cta_wrapper .button .button_bg::after,
html body .footer_component .button .button_bg::after{
  background:linear-gradient(100deg, transparent 0%, rgba(0,0,0,.04) 25%, rgba(0,0,0,.16) 50%, rgba(0,0,0,.04) 75%, transparent 100%);
}
html body .cta_wrapper .button .button_bg,
html body .footer_component .button .button_bg{ background-color:#fff!important }
html body .cta_wrapper .button:hover .button_bg,
html body .footer_component .button:hover .button_bg{ background-color:#f0f0f0!important }
@media (prefers-reduced-motion:reduce){ html body .button .button_bg::after{ display:none } }

/* v3: 96% black fill; hover lifts to 88% */
html body .button .button_bg{ background-color:#000000f5!important }
html body .button:hover .button_bg,
html body .button[data-button-variant]:hover .button_bg{ background-color:#000000e0!important }
html body .button:active .button_bg{ background-color:#000000f5!important }
html body .cta_wrapper .button .button_bg,
html body .footer_component .button .button_bg{ background-color:#fff!important }
html body .cta_wrapper .button:hover .button_bg,
html body .footer_component .button:hover .button_bg{ background-color:#f0f0f0!important }

/* Headline font: Instrument Sans (Google Fonts, OFL), self-hosted variable font
   axes: wght 400-700, wdth 75-100 */
@font-face{ font-family:"Instrument Sans"; font-style:normal; font-weight:400 700; font-stretch:75% 100%; font-display:swap;
  src:url(fonts/instrument-sans-latin.woff2) format("woff2"); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face{ font-family:"Instrument Sans"; font-style:normal; font-weight:400 700; font-stretch:75% 100%; font-display:swap;
  src:url(fonts/instrument-sans-latin-ext.woff2) format("woff2"); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }
:root{ --rl-display:"Instrument Sans", "Inter", Arial, sans-serif }
/* !important: the original CSS has "html:has(.page-wrapper) body :not(script) {font-family:inherit; letter-spacing:inherit}" */
html body h1, html body h2, html body h3, html body h4,
html body .heading-animated, html body .heading-span-animated, html body .heading-style-h1, html body .heading-style-h2,
html body .heading-style-h3, html body .heading-style-h4{ font-family:var(--rl-display)!important }
html body h1, html body .heading-animated{ font-weight:600!important; letter-spacing:-.035em!important; line-height:1.04 }
html body .heading-span-animated{ font-weight:400!important; letter-spacing:-.03em!important; line-height:1.08 }
html body .heading-style-h1{ font-weight:500!important; letter-spacing:-.032em!important; line-height:1.04 }
html body .heading-style-h2{ font-weight:400!important; letter-spacing:-.018em!important; line-height:1.25 }
html body h3{ font-weight:500!important; letter-spacing:-.022em!important; line-height:1.14 }

/* Hero: headline -> button spacing 32px + 24px = 56px */
html body .home-hero_content{ row-gap:3.5rem }

/* ==========================================================================
   Hero entrance: focus pull (words sharpen out of a blur, then the button)
   ========================================================================== */
/* hidden until site.js has split the words (prevents a flash of static text) */
html.rl-js:not(.rl-ready) .home-hero_content h1,
html.rl-js:not(.rl-ready) .home-hero_button{ opacity:0 }

.rl-w{ display:inline-block; vertical-align:top }
.rl-wi{ display:inline-block; will-change:transform,opacity,filter }


/* B - focus pull: words sharpen out of a blur and drift up a touch */
html.rl-intro-b.rl-ready .rl-wi{
  opacity:0; filter:blur(14px); transform:translateY(.35em) scale(1.04);
  animation:rl-focus 1.1s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay:calc(var(--i) * var(--rl-step) + 180ms);
}
@keyframes rl-focus{ 60%{ opacity:1 } to{ opacity:1; filter:blur(0); transform:none } }

/* Button: lifts in after the last word, then one glare sweep */
html.rl-js.rl-ready .home-hero_button{
  opacity:0; transform:translateY(18px) scale(.96);
  animation:rl-btn-in .8s cubic-bezier(.16,1,.3,1) forwards; animation-delay:var(--rl-btn-delay,900ms);
}
@keyframes rl-btn-in{ to{ opacity:1; transform:none } }
html.rl-js.rl-ready .home-hero_button .button .button_bg::after{
  animation:rl-glare-once .9s cubic-bezier(.4,0,.2,1) 1 both;
  animation-delay:calc(var(--rl-btn-delay,900ms) + 350ms);
}
@keyframes rl-glare-once{ from{ transform:translateX(-170%) skewX(-18deg) } to{ transform:translateX(270%) skewX(-18deg) } }
/* let the normal hover glare still work after the intro */
html.rl-js.rl-ready .home-hero_button .button:hover .button_bg::after{ animation:none }

/* Hero: headline + button centred vertically in the viewport */
html body .section_home-hero .padding-section-large{
  min-height:100vh; min-height:100svh;
  padding-top:0; padding-bottom:0;
  display:flex; align-items:center;
}
html body .section_home-hero .container-small{ width:100% }

/* Next paragraph: words light up as you scroll through it */
.rl-lit-w{ color:#cfcfcf; transition:color .35s ease }
.rl-lit-w.is-lit{ color:#161616 }
@media (prefers-reduced-motion:reduce){
  .rl-lit-w{ color:inherit }
}
/* let "Brought together." flow straight into the paragraph */
html body .section_scroll-text .padding-section-xlarge{ padding-top:clamp(1rem,3vw,3rem) }

/* ==========================================================================
   Koi scroll scene: a line-drawn koi swims the route on a full-bleed black
   panel, circles the logo and its wake becomes the ring. Canvas drawn by site.js.
   ========================================================================== */
.rl-dragon{ position:relative; height:320vh }
.rl-dragon__sticky{ position:sticky; top:0; height:100vh; height:100svh }
.rl-dragon__panel{
  position:absolute; inset:0; overflow:hidden; background:#0a0a0a;
  clip-path:inset(var(--ct,7vh) var(--cx,5vw) var(--ct,7vh) var(--cx,5vw) round var(--cr,28px));
  will-change:clip-path;
}
.rl-dragon__canvas{ position:absolute; inset:0; display:block }

/* Hero: interactive dot field behind the text (canvas injected by site.js) */
html body .section_home-hero{ position:relative; overflow:hidden }
.rl-hero-bg{ position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; display:block }
html body .section_home-hero > .padding-global{ position:relative; z-index:1 }

/* Koi scene progress steps (bottom of the panel) */
.rl-steps{
  position:absolute; left:50%; bottom:clamp(2rem,7vh,4.5rem); transform:translateX(-50%);
  display:flex; align-items:center; gap:clamp(.6rem,1.4vw,1.25rem); white-space:nowrap; pointer-events:none;
  font:500 .75rem/1 "Inter",sans-serif!important; letter-spacing:.16em!important; text-transform:uppercase;
  color:rgba(255,255,255,.32); transition:opacity .4s ease;
}
.rl-step{ transition:color .4s ease }
.rl-step span{ color:rgba(255,255,255,.2); margin-right:.55rem; transition:color .4s ease }
.rl-step.is-on{ color:#fff }
.rl-step.is-on span{ color:rgba(255,255,255,.5) }
.rl-step__bar{ display:block; position:relative; width:clamp(2.5rem,8vw,7rem); height:1px; background:rgba(255,255,255,.14); overflow:hidden }
.rl-step__bar b{ position:absolute; inset:0; background:#fff; transform-origin:left center; transform:scaleX(var(--f,0)) }
@media (max-width:600px){ .rl-steps{ font-size:.625rem } .rl-step span{ display:none } }

/* "Built together" scroll-in: heading focus-pull, cards rise + unblur in sequence */
.rl-reveal-ready .rl-rw{
  display:inline-block; opacity:0; filter:blur(12px); transform:translateY(.3em);
  transition:opacity .9s cubic-bezier(.22,1,.36,1), filter .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
  transition-delay:var(--d,0ms);
}
.rl-reveal-ready .rl-reveal{
  opacity:0; filter:blur(8px); transform:translateY(48px) scale(.97); transform-origin:50% 100%;
  transition:opacity 1s cubic-bezier(.22,1,.36,1), filter 1s cubic-bezier(.22,1,.36,1), transform 1.1s cubic-bezier(.16,1,.3,1);
  transition-delay:var(--d,0ms);
}
.rl-reveal-ready .rl-reveal img{ transform:scale(1.12); transition:transform 1.6s cubic-bezier(.16,1,.3,1); transition-delay:var(--d,0ms) }
.rl-reveal-ready.is-in .rl-rw,
.rl-reveal-ready.is-in .rl-reveal{ opacity:1; filter:none; transform:none }
.rl-reveal-ready.is-in .rl-reveal img{ transform:none }
@media (prefers-reduced-motion:reduce){
  .rl-reveal-ready .rl-rw,.rl-reveal-ready .rl-reveal,.rl-reveal-ready .rl-reveal img{ opacity:1; filter:none; transform:none; transition:none }
}

/* Full-screen image: grows + fades into place as it scrolls in (driven by site.js, --g = 0..1) */
html body .section_scroll-image{ padding:0 }
html body .scroll-image_content{ height:auto }
html body .scroll-image_wrapper{ max-width:none; margin:0; height:100vh; height:100svh; display:flex; align-items:center; justify-content:center }
html body .page-wrapper .scroll-image_block,
html body .scroll-image_block{
  width:100%; height:100%; max-width:none;
  border-radius:calc((1 - var(--g,1)) * 28px);
  transform:scale(calc(.78 + .22 * var(--g,1)));
  opacity:calc(.15 + .85 * var(--g,1));
  will-change:transform,opacity;
}
html body .scroll-image_block img{ transform:scale(calc(1.18 - .18 * var(--g,1))); will-change:transform }

/* ==========================================================================
   Featured: modern carousel
   ========================================================================== */
html body .rl-feat{ overflow-x:clip }
html body .rl-feat .slider_subheader{ display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:1.5rem }
.rl-feat-controls{ display:flex; align-items:center; gap:1rem }
.rl-count{ display:flex; align-items:baseline; gap:.35rem; font:500 .875rem/1 "Inter",sans-serif!important; letter-spacing:.04em!important; color:#9a9a9a; margin-right:.5rem; font-variant-numeric:tabular-nums }
.rl-count b{ color:#161616; font-weight:600; font-size:1rem }
.rl-feat .slider_nav-buttons{ display:flex; gap:.5rem }
html body .rl-feat .swiper-button{
  width:2.75rem; height:2.75rem; min-width:2.75rem; max-width:2.75rem; border-radius:50%;
  background:#fff; box-shadow:inset 0 0 0 1px rgba(0,0,0,.12); transition:background .2s, box-shadow .2s, opacity .2s;
}
html body .rl-feat .swiper-button:hover{ background:#0a0a0a; box-shadow:none }
html body .rl-feat .swiper-button:hover .swiper-button_icon{ filter:invert(1) }
html body .rl-feat .swiper-button[disabled]{ opacity:.35 }

/* track runs to the right edge of the screen so the next card peeks in */
html body .page-wrapper .rl-feat .swiper.blog-slider{
  margin-right:calc((100% - 100vw) / 2); width:auto; padding-right:var(--rl-gutter);
  scroll-padding-left:0; cursor:grab;
}
html body .rl-feat .swiper.blog-slider.is-dragging{ cursor:grabbing; scroll-snap-type:none; scroll-behavior:auto }
html body .rl-feat .swiper.blog-slider.is-dragging *{ user-select:none }
html body .rl-feat .swiper-wrapper{ gap:clamp(1rem,2vw,1.75rem) }
html body.home-page .rl-feat .swiper.blog-slider .swiper-slide.blog-slide,
html body .rl-feat .swiper.blog-slider .swiper-slide.blog-slide,
html body .home-page .rl-feat .swiper.blog-slider .swiper-slide.blog-slide{ flex:0 0 clamp(17rem,34vw,30rem)!important; width:auto!important; min-width:0!important }

/* card: image-led, no box */
html body .rl-feat .blog_card{ background:none; box-shadow:none; border-radius:0; overflow:visible }
html body .rl-feat .blog_card:hover{ box-shadow:none }
.rl-media{ position:relative; border-radius:1.25rem; overflow:hidden; aspect-ratio:4/3; background:#eee; isolation:isolate }
html body .rl-feat .rl-media .blog_image{ width:100%; height:100%!important; aspect-ratio:auto; object-fit:cover; transition:transform 1.2s cubic-bezier(.16,1,.3,1) }
html body .rl-feat .blog_card:hover .rl-media .blog_image{ transform:scale(1.06) }
.rl-pill{
  position:absolute; left:1rem; top:1rem; padding:.45rem .8rem; border-radius:999px;
  background:rgba(255,255,255,.78); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  font:500 .75rem/1 "Inter",sans-serif!important; letter-spacing:.02em!important; color:#161616;
}
.rl-media-arrow{
  position:absolute; right:1rem; bottom:1rem; width:3rem; height:3rem; border-radius:50%;
  background:#0a0a0a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16L16 8M9.5 8H16V14.5'/%3E%3C/svg%3E") center/1.25rem no-repeat;
  opacity:0; transform:scale(.7) rotate(-45deg); transition:opacity .35s ease, transform .5s cubic-bezier(.16,1,.3,1);
}
html body .rl-feat .blog_card:hover .rl-media-arrow{ opacity:1; transform:none }
html body .rl-feat .blog_text-wrapper{ padding:1.25rem .25rem 0 }
html body .rl-feat .blog_text-wrapper > .padding-bottom:first-child{ display:none }   /* category now lives on the image */
html body .rl-feat .blog_text-wrapper > .padding-bottom:nth-child(2){ order:2; padding-bottom:.6rem }
html body .rl-feat .blog_text-wrapper > .padding-bottom:nth-child(3){ order:1; padding-bottom:.6rem }
html body .rl-feat .blog_text-wrapper > .padding-bottom:nth-child(4){ order:3 }
html body .rl-feat .blog_text-wrapper .text-color-secondary{ font-size:.8125rem; color:#8a8a8a }
html body .rl-feat .blog_text-wrapper h3{
  font-size:clamp(1.25rem,1.7vw,1.6rem); line-height:1.18; text-decoration:underline; text-decoration-color:transparent;
  text-underline-offset:.18em; text-decoration-thickness:1.5px; transition:text-decoration-color .3s ease;
}
html body .rl-feat .blog_card:hover h3{ text-decoration-color:currentColor }
html body .rl-feat .blog_text-wrapper p{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:.9375rem; color:#5d5d5d }
html body .rl-feat .clusters_arrow-wrapper{ display:none }

/* progress bar */
.rl-progress{ position:relative; height:2px; margin-top:clamp(2rem,4vw,3rem); background:rgba(0,0,0,.08); border-radius:2px; overflow:hidden }
.rl-progress span{ position:absolute; left:0; top:0; bottom:0; background:#161616; border-radius:2px; transition:transform .15s linear, width .2s }
html body .rl-feat .swiper.blog-slider .rl-media .blog_image{ position:absolute; inset:0; width:100%!important; height:100%!important; max-width:none; aspect-ratio:auto }
.rl-count i{ font-style:normal }

/* More breathing room between "Next event" and "Featured" (was 64px) */
html body .section_whats-on + .section_slider > .padding-global.padding-section-large{ padding-top:clamp(6rem,12vw,10rem) }   /* beats the original 4rem override */

/* ==========================================================================
   CTA: "Build with Ryujin Labs"
   ========================================================================== */
.rl-cta{ padding:clamp(5rem,10vw,8rem) 0 clamp(3rem,6vw,5rem) }
.rl-cta__panel{
  position:relative; overflow:hidden; isolation:isolate; border-radius:28px; background:#0a0a0a; color:#fff;
  padding:clamp(2.5rem,6vw,5.5rem); min-height:clamp(36rem,78vh,46rem); display:flex; align-items:center;
}
.rl-cta__dots{ position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none }
.rl-cta__glow{ position:absolute; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(38rem 30rem at var(--gx,75%) var(--gy,50%), rgba(255,255,255,.1), transparent 62%); transition:background .2s }
.rl-cta__mark{ position:absolute; z-index:1; right:clamp(-6rem,1vw,3rem); top:50%; width:clamp(18rem,38vw,32rem); height:auto; transform:translateY(-50%); overflow:visible }
.rl-cta__rot{ transform-box:view-box; transform-origin:70px 75px; animation:rl-spin 90s linear infinite }
@keyframes rl-spin{ to{ transform:rotate(360deg) } }
.rl-cta__petal{ transition:transform .2s linear }
.rl-cta__petal circle{ fill:rgba(255,255,255,0); stroke:rgba(255,255,255,.5); stroke-width:1.2; vector-effect:non-scaling-stroke; transition:fill .6s ease, stroke .6s ease }
.rl-cta__petal.is-on circle{ fill:rgba(255,255,255,.95); stroke:#fff }
.rl-cta__content{ position:relative; z-index:2; max-width:38rem; width:100% }
.rl-eyebrow{ display:flex; align-items:center; gap:.75rem; margin:0 0 1.5rem;
  font:500 .75rem/1 "Inter",sans-serif!important; letter-spacing:.16em!important; text-transform:uppercase; color:rgba(255,255,255,.55)!important }
.rl-eyebrow::before{ content:""; width:1.75rem; height:1px; background:rgba(255,255,255,.4) }
html body .rl-cta__title{ color:#fff!important; font-size:clamp(2.75rem,6.2vw,5.75rem)!important; font-weight:600!important; line-height:.98!important; letter-spacing:-.045em!important; margin:0 }
.rl-cta__title span{ display:block; color:rgba(255,255,255,.42) }
html body .rl-cta__lede{ color:rgba(255,255,255,.72)!important; font-size:1.125rem; line-height:1.55; margin:1.5rem 0 2.25rem; max-width:27rem }
.rl-paths{ list-style:none; margin:0 0 2.5rem; padding:0; border-top:1px solid rgba(255,255,255,.12) }
html body .rl-paths a{
  display:flex; align-items:center; gap:1.25rem; padding:1.05rem 0; border-bottom:1px solid rgba(255,255,255,.12);
  color:#fff!important; text-decoration:none; transition:padding .45s cubic-bezier(.16,1,.3,1), background .3s;
}
.rl-paths__n{ width:1.5rem; font:500 .75rem/1 "Inter",sans-serif!important; letter-spacing:.1em!important; color:rgba(255,255,255,.38) }
.rl-paths__t{ flex:1; font-family:var(--rl-display)!important; font-size:clamp(1.125rem,1.9vw,1.55rem); font-weight:500!important; letter-spacing:-.02em!important }
.rl-paths__a{
  flex:none; width:2.5rem; height:2.5rem; border-radius:50%; box-shadow:inset 0 0 0 1px rgba(255,255,255,.25);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16L16 8M9.5 8H16V14.5'/%3E%3C/svg%3E") center/1rem no-repeat;
  transition:transform .45s cubic-bezier(.16,1,.3,1), background-color .3s;
}
html body .rl-paths a:hover{ padding-left:.85rem }
html body .rl-paths a:hover .rl-paths__a{
  transform:rotate(45deg); background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16L16 8M9.5 8H16V14.5'/%3E%3C/svg%3E");
}
/* white buttons on dark (CTA + footer) */
html body .rl-cta .button .button_bg, html body .rl-footer .button .button_bg{ background-color:#fff!important }
html body .rl-cta .button:hover .button_bg, html body .rl-footer .button:hover .button_bg{ background-color:#ececec!important }
html body .rl-cta .button .button_link, html body .rl-footer .button .button_link{ color:#0a0a0a!important; padding:0 .25rem!important }
html body .rl-cta .button .button_bg::after, html body .rl-footer .button .button_bg::after{
  background:linear-gradient(100deg, transparent 0%, rgba(0,0,0,.04) 25%, rgba(0,0,0,.16) 50%, rgba(0,0,0,.04) 75%, transparent 100%) }
@media (max-width:900px){
  .rl-cta__mark{ opacity:.28; right:-30%; width:34rem }
  .rl-cta__panel{ align-items:flex-end }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.rl-footer{ position:relative; overflow:hidden; background:#0a0a0a; color:rgba(255,255,255,.65); border-radius:28px 28px 0 0; padding-top:clamp(4rem,8vw,6.5rem) }
.rl-footer__top{ display:grid; grid-template-columns:minmax(15rem,1fr) 2fr; gap:clamp(2.5rem,6vw,6rem) }
.rl-footer__logo img{ display:block; height:2rem; width:auto; filter:invert(1) }
html body .rl-footer__tag{ font-family:var(--rl-display)!important; font-size:clamp(1.5rem,2.4vw,2.1rem); font-weight:500!important; letter-spacing:-.03em!important; line-height:1.12; color:#fff!important; margin:1.75rem 0 2rem; max-width:16ch }
.rl-footer__cols{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2rem }
html body .rl-footer__col h3{ font:500 .75rem/1 "Inter",sans-serif!important; letter-spacing:.16em!important; text-transform:uppercase; color:rgba(255,255,255,.38)!important; margin:0 0 1.4rem }
html body .rl-footer__col > a, html body .rl-footer__col address, .rl-copy{
  display:block; color:rgba(255,255,255,.82)!important; font-size:.9375rem; line-height:1.5; text-decoration:none; font-style:normal; padding:.3rem 0;
  transition:color .2s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
html body .rl-footer__col > a:hover{ color:#fff!important; transform:translateX(4px) }
.rl-footer__col address{ margin-bottom:.6rem }
.rl-copy{ display:inline-flex; align-items:center; gap:.6rem; background:none; border:0; cursor:pointer; font-family:inherit }
.rl-copy__hint{ font-size:.6875rem; letter-spacing:.08em; text-transform:uppercase; padding:.25rem .5rem; border-radius:999px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.2); color:rgba(255,255,255,.55); transition:all .25s }
.rl-copy:hover .rl-copy__hint, .rl-copy.is-done .rl-copy__hint{ background:#fff; color:#0a0a0a; box-shadow:none }
.rl-socials{ display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.4rem }
html body .rl-social{ width:2.5rem; height:2.5rem; border-radius:50%; display:grid; place-items:center; color:#fff!important; box-shadow:inset 0 0 0 1px rgba(255,255,255,.18); transition:background .25s, color .25s, transform .35s cubic-bezier(.16,1,.3,1) }
html body .rl-social:hover{ background:#fff; color:#0a0a0a!important; transform:translateY(-2px) }
.rl-social .footer_social-icon{ width:1rem; height:1rem; display:block }
.rl-social .link-description{ display:none }
/* giant wordmark revealed by a spotlight that follows the mouse */
html body .rl-footer__word{
  margin-top:clamp(4rem,9vw,7.5rem); white-space:nowrap; line-height:.82; padding-bottom:.04em; user-select:none;
  font-family:var(--rl-display)!important; font-weight:600!important; letter-spacing:-.055em!important; font-size:15vw;
  background:radial-gradient(22rem circle at var(--mx,50%) var(--my,40%), rgba(255,255,255,.95), rgba(255,255,255,.09) 70%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.rl-footer__word .rl-l{ display:inline-block; transform:translateY(35%); opacity:0; transition:transform 1s cubic-bezier(.16,1,.3,1), opacity .8s ease; transition-delay:calc(var(--i) * 40ms) }
.rl-footer.is-in .rl-footer__word .rl-l{ transform:none; opacity:1 }
.rl-footer__bottom{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; margin-top:clamp(1.5rem,3vw,2.5rem); padding:1.5rem 0 2rem; border-top:1px solid rgba(255,255,255,.1); font-size:.8125rem; color:rgba(255,255,255,.45) }
html body .rl-footer__bottom a{ color:rgba(255,255,255,.78)!important; text-decoration:none }
html body .rl-footer__bottom a:hover{ color:#fff!important }
.rl-dot{ margin:0 .4rem; color:rgba(255,255,255,.25) }
.rl-footer__legal{ display:flex; align-items:center; gap:1.5rem }
.rl-top{ background:none; border:0; cursor:pointer; font:inherit; color:rgba(255,255,255,.78); padding:.5rem .9rem; border-radius:999px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.18); transition:background .25s,color .25s }
.rl-top:hover{ background:#fff; color:#0a0a0a }
@media (max-width:900px){
  .rl-footer__top{ grid-template-columns:1fr }
  .rl-footer__cols{ grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media (prefers-reduced-motion:reduce){
  .rl-cta__rot{ animation:none } .rl-footer__word .rl-l{ transform:none; opacity:1; transition:none }
}
.rl-cta__mark{ width:clamp(16rem,31vw,27rem); right:clamp(-5rem,-1vw,2rem) }
.rl-footer__word-in{ display:inline-block }
