/* Reference homepage full-bleed composition with screen-by-screen jumping */
.reference-home { --ref-header: 100px; }
html:has(body.reference-home), html.is-home { scroll-padding-top: 0; }
.reference-home .ref-main { padding: 0; }
.ref-main > section,
.ref-main > section + section {
  margin: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
.reference-home .site-footer {
  margin-block-start: 0 !important;
}
.ref-main *, .ref-section-nav * { box-sizing: border-box; }
.ref-main h1, .ref-main h2, .ref-main h3, .ref-main p { margin: 0; }
.ref-main a { text-decoration: none; }
.ref-hero { position: relative; height: 100svh; min-height: 700px; isolation: isolate; color: #fff; }
.ref-hero-image, .ref-platform-image, .ref-project-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ref-hero-image { object-position: center; transition: object-position 600ms ease; }
.ref-hero-shade { position: absolute; inset: 0; z-index: -1; background: rgba(8, 16, 20, .39); }
.ref-hero-copy { position: absolute; top: 36.5%; left: 5%; width: 90%; text-align: center; }
.ref-hero h1 { display: flex; justify-content: center; align-items: center; gap: 28px; color: rgba(255,255,255,.55); font-size: clamp(48px, 3.75vw, 72px); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.ref-hero h1 b { font-size: 30px; font-weight: 500; }
.ref-hero h1 .is-active { color: #fff; box-shadow: inset 0 -10px #205391; }
.ref-hero-copy > p { margin-top: 15px; color: #fff; font-size: 20px; line-height: 1.6; }
.ref-hero-circle { display: grid; place-items: center; width: 74px; height: 74px; margin: 66px auto 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; font-size: 20px; transition: border-color 200ms, background 200ms; }
.ref-hero-circle:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.ref-slide-controls { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; width: 230px; height: 80px; padding: 0 17px; background: #205391; }
.ref-slide-controls button { display: grid; place-items: center; width: 42px; height: 52px; border: 0; background: none; color: #fff; font: 300 34px/1 var(--font-sans); cursor: pointer; }
.ref-slide-controls button:hover { background: rgba(255,255,255,.1); }
.ref-slide-controls > span { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.45); font-size: 13px; }
.ref-slide-controls strong { color: #fff; font-size: 15px; }
.ref-slide-controls i { height: 9px; border-left: 1px solid rgba(255,255,255,.4); }
.ref-platform, .ref-project, .ref-press { position: relative; min-height: 100svh; padding-top: var(--ref-header); isolation: isolate; scroll-margin-top: 0; }
.ref-platform { color: #fff; background: #081921; }
.ref-platform-shade { position: absolute; inset: 0; background: rgba(8,25,33,.76); z-index: -1; }
.ref-section-heading { position: relative; z-index: 2; padding-top: clamp(100px, 6.3vw, 120px); text-align: center; pointer-events: none; }
.ref-section-heading > p { color: #205391; font-size: 18px; font-weight: 700; line-height: 1.4; }
.ref-section-heading h2 { margin-top: 12px; color: #252525; font-size: clamp(46px, 4.2vw, 80px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.ref-section-heading > span { display: block; margin-top: 10px; color: #6c7073; font-size: 17px; }
.ref-platform-heading h2 { color: #fff; }
.ref-platform-heading > span { color: rgba(255,255,255,.56); }
.ref-platform-grid { position: absolute; inset: var(--ref-header) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.ref-platform-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 245px 40px 0; color: #fff; border-right: 1px solid rgba(255,255,255,.05); transition: background 250ms; }
.ref-platform-item.is-active { background: rgba(15,72,139,.86); }
.ref-platform-number { position: absolute; top: 37%; font-size: 100px; font-weight: 200; line-height: 1; color: rgba(255,255,255,.12); }
.ref-platform-copy { position: relative; width: min(100%, 350px); text-align: center; }
.ref-platform-copy h3 { color: #fff; font-size: clamp(25px, 2.2vw, 42px); font-weight: 700; letter-spacing: -.015em; }
.ref-platform-local { margin-top: 15px !important; color: rgba(255,255,255,.8); font-size: 17px; }
.ref-platform-description { max-width: 290px; margin: 32px auto 0 !important; color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.9; opacity: 0; transition: opacity 200ms; }
.ref-plus { display: grid; place-items: center; width: 80px; height: 80px; margin: 85px auto 0; border: 1px solid rgba(255,255,255,.7); color: #fff; font-size: 34px; font-weight: 200; opacity: 0; transition: opacity 200ms; }
.ref-platform-item.is-active .ref-platform-description, .ref-platform-item.is-active .ref-plus { opacity: 1; }
.ref-project { background: #fff; }
.ref-project-image { object-position: center; }
.ref-product-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; width: min(1400px, calc(100% - 120px)); margin: 125px auto 0; align-items: center; }
.ref-product-card { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-width: 0; height: 350px; padding: 65px 20px 35px; color: #363636; background: #fff; transition: background 220ms, color 220ms, transform 220ms, box-shadow 220ms; }
.ref-product-card h3 { color: inherit; font-size: clamp(24px, 2.25vw, 43px); font-weight: 650; line-height: 1.15; white-space: nowrap; letter-spacing: -.03em; }
html[lang=en] .ref-product-card h3 { font-size: clamp(24px, 1.9vw, 36px); }
.ref-product-card > p { margin-top: 23px; color: #6c7073; font-size: 17px; text-align: center; line-height: 1.5; }
.ref-product-card > img { width: 90px; height: 90px; margin-top: auto; opacity: .5; }
.ref-product-card.is-active { color: #fff; background: #205391; transform: scale(1.08); box-shadow: 0 3px 12px rgba(0,0,0,.26); }
.ref-product-card.is-active > p { color: rgba(255,255,255,.6); }
.ref-product-card.is-active > img { filter: invert(1); opacity: .65; }
.ref-product-note { position: relative; z-index: 1; margin-top: 42px !important; color: #6c7073; font-size: 13px; text-align: center; }
.ref-press { padding-bottom: clamp(64px, 5vw, 96px); background: #fff; }
.ref-press::before { position: absolute; z-index: -1; content: ""; top: calc(var(--ref-header) + 195px); left: 27%; right: 0; bottom: 0; background: #f8f8f8; }
.ref-press-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 40px; width: min(1400px, calc(100% - 120px)); margin: 65px auto 0; }
.ref-contact-card { min-height: 540px; padding: 48px 50px; color: #fff; background: #062838 url('/assets/design/lab-reference-contact.webp') center / cover no-repeat; }
.ref-contact-card h3 { color: #fff; font-size: 42px; font-weight: 650; letter-spacing: -.03em; }
.ref-contact-card > p { margin-top: 20px; color: rgba(255,255,255,.65); font-size: 17px; line-height: 1.7; white-space: pre-line; }
.ref-contact-card > span { display: block; margin-top: 42px; font-size: 13px; color: rgba(255,255,255,.65); }
.ref-contact-card:hover > span { color: #fff; }
.ref-news-list { align-self: start; margin-top: 49px; border-top: 2px solid #353535; }
.ref-article { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 30px; align-items: center; padding: 30px; border-bottom: 1px solid #ddd; }
.ref-article > img { width: 240px; height: 152px; object-fit: cover; }
.ref-article h3 { overflow: hidden; color: #333; font-size: 23px; font-weight: 650; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.ref-article p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 12px; color: #6c7073; font-size: 14px; line-height: 1.7; }
.ref-article time { display: block; margin-top: 22px; color: #6c7073; font-size: 13px; }
.ref-article:hover h3 { color: #205391; }
.ref-view-more { display: block; margin-top: 24px; color: #205391; font-size: 13px; text-align: right; }
.ref-section-nav { position: fixed; z-index: 22; top: 46%; right: 26px; display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.ref-section-nav a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 28px; min-width: 130px; }
.ref-section-nav span { visibility: hidden; color: #205391; font-size: 12px; font-weight: 700; }
.ref-section-nav i { width: 5px; height: 5px; border-radius: 50%; background: #53595c; }
.ref-section-nav .is-active span { visibility: visible; }
.ref-section-nav .is-active i { background: #205391; box-shadow: 0 0 0 4px rgba(32,83,145,.1); }
.ref-section-nav a:hover span, .ref-section-nav a:focus-visible span { visibility: visible; }
.reference-home .floating-contact, .reference-home .float-cta, .reference-home .float-panel { display: none; }
@media (min-width: 981px) {
  html:has(body.reference-home), html.is-home {
    scroll-snap-type: y mandatory;
  }
  .ref-main > section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
  .reference-home .site-footer {
    scroll-snap-align: end;
    scroll-snap-stop: normal;
  }
  .ref-project,
  .ref-press {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: clamp(24px, 3.5vh, 48px);
  }
  .ref-project .ref-section-heading,
  .ref-press .ref-section-heading {
    padding-top: 0;
  }
  .ref-product-grid {
    margin: clamp(20px, 3.5vh, 48px) auto 0;
  }
  .ref-product-card {
    height: clamp(270px, 31vh, 330px);
    padding: clamp(32px, 3.8vh, 48px) 16px 24px;
  }
  .ref-product-note {
    margin-top: clamp(16px, 2vh, 28px) !important;
  }
  .ref-press-grid {
    margin-top: clamp(20px, 3.5vh, 44px);
  }
  .ref-contact-card {
    min-height: clamp(360px, 42vh, 480px);
  }
}
@media (max-width: 1500px) {
  .reference-home { --ref-header: 80px; }
  .ref-hero { min-height: 650px; }
  .ref-platform .ref-section-heading { padding-top: 85px; }
  .ref-section-heading h2 { font-size: 56px; }
  .ref-section-heading > span { font-size: 13px; }
  .ref-platform-item { padding-top: 220px; }
  .ref-platform-description { font-size: 13px; }
  .ref-plus { margin-top: 55px; width: 62px; height: 62px; }
  .ref-product-grid { width: min(1100px, calc(100% - 160px)); gap: 22px; margin-top: 95px; }
  .ref-product-card { height: 290px; padding: 48px 15px 30px; }
  .ref-product-card > p { font-size: 13px; }
  .ref-product-card > img { width: 70px; height: 70px; }
  .ref-press-grid { width: min(1100px, calc(100% - 160px)); grid-template-columns: 330px minmax(0,1fr); gap: 36px; margin-top: 60px; }
  .ref-contact-card { min-height: 420px; padding: 37px; }
  .ref-contact-card h3 { font-size: 32px; }
  .ref-contact-card p { font-size: 14px; }
  .ref-news-list { margin-top: 35px; }
  .ref-article { grid-template-columns: 180px minmax(0,1fr); gap: 22px; padding: 22px; }
  .ref-article > img { width: 180px; height: 118px; }
  .ref-article h3 { font-size: 17px; }
  .ref-article p { font-size: 12px; }
  .ref-article time { margin-top: 14px; font-size: 11px; }
}
@media (max-width: 980px) {
  html:has(body.reference-home), html.is-home { scroll-snap-type: none; }
  .ref-hero, .ref-platform, .ref-project, .ref-press, .reference-home .site-footer { scroll-snap-align: none; }
  .reference-home { --ref-header: 80px; }
  .ref-hero { min-height: 600px; }
  .ref-hero h1 { gap: 15px; font-size: 48px; }
  .ref-hero-copy > p { max-width: 520px; margin: 20px auto 0; font-size: 16px; }
  .ref-section-nav { display: none; }
  .ref-platform, .ref-project, .ref-press { min-height: 800px; }
  .ref-section-heading { padding: 65px 24px 0; }
  .ref-section-heading h2 { font-size: 42px; }
  .ref-section-heading p { font-size: 14px; }
  .ref-platform-item { padding: 215px 20px 30px; }
  .ref-platform-copy h3 { font-size: 24px; }
  .ref-platform-local { font-size: 14px; }
  .ref-platform-description { opacity: 1; font-size: 12px; }
  .ref-plus { opacity: 1; width: 50px; height: 50px; margin-top: 35px; }
  .ref-product-grid { width: calc(100% - 60px); gap: 15px; margin-top: 85px; }
  .ref-product-card { height: 260px; padding: 40px 10px 25px; }
  .ref-product-card h3, html[lang=en] .ref-product-card h3 { font-size: 22px; }
  .ref-product-card p { font-size: 12px; }
  .ref-product-card img { width: 55px; height: 55px; }
  .ref-press-grid { width: calc(100% - 60px); grid-template-columns: 240px minmax(0,1fr); gap: 24px; }
  .ref-contact-card { padding: 28px; min-height: 385px; }
  .ref-contact-card h3 { font-size: 27px; }
  .ref-article { grid-template-columns: 110px minmax(0,1fr); gap: 15px; padding: 20px 0; }
  .ref-article img { width: 110px; height: 90px; }
}
@media (max-width: 600px) {
  .reference-home { --ref-header: 64px; }
  .ref-hero { min-height: 620px; }
  .ref-hero-image { object-position: 58% center; }
  .ref-hero-copy { top: 38%; left: 5%; width: 90%; }
  .ref-hero h1 { gap: 10px; font-size: clamp(27px, 7.7vw, 40px); letter-spacing: -.04em; }
  .ref-hero h1 b { font-size: 17px; }
  .ref-hero h1 .is-active { box-shadow: inset 0 -6px #205391; }
  .ref-hero-copy > p { max-width: 320px; font-size: 13px; line-height: 1.8; }
  .ref-hero-circle { width: 58px; height: 58px; margin-top: 40px; font-size: 15px; }
  .ref-slide-controls { width: 174px; height: 58px; padding: 0 7px; }
  .ref-platform, .ref-project, .ref-press { min-height: 0; padding-top: 64px; }
  .ref-section-heading { padding: 60px 20px 0; }
  .ref-section-heading h2 { margin-top: 10px; font-size: 32px; line-height: 1.16; }
  .ref-section-heading > span { max-width: 300px; margin: 14px auto 0; font-size: 12px; line-height: 1.7; }
  .ref-platform-grid { position: relative; inset: auto; display: block; margin-top: 45px; }
  .ref-platform-item { min-height: 280px; padding: 40px 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .ref-platform-number { left: 25px; top: 25px; font-size: 65px; }
  .ref-platform-copy h3 { font-size: 28px; }
  .ref-platform-description { max-width: 270px; margin-top: 22px !important; font-size: 13px; }
  .ref-plus { margin-top: 25px; width: 42px; height: 42px; font-size: 26px; }
  .ref-platform-local { margin-top: 10px !important; }
  .ref-project { padding-bottom: 60px; }
  .ref-project-image { object-position: 65% center; }
  .ref-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; width: calc(100% - 40px); margin-top: 45px; }
  .ref-product-card { height: 215px; padding: 32px 12px 25px; }
  .ref-product-card h3, html[lang=en] .ref-product-card h3 { font-size: 25px; }
  .ref-product-card.is-active { transform: none; }
  .ref-product-card:last-child { grid-column: 1 / -1; flex-direction: row; justify-content: space-around; height: 120px; padding: 25px 20px; }
  .ref-product-card:last-child p { margin: 0; max-width: 65px; }
  .ref-product-card:last-child img { margin: 0; width: 42px; height: 42px; }
  .ref-product-note { max-width: 300px; margin: 28px auto 0 !important; font-size: 11px; }
  .ref-press { padding-bottom: 65px; }
  .ref-press::before { left: 15%; }
  .ref-press-grid { display: block; width: calc(100% - 40px); margin-top: 45px; }
  .ref-contact-card { display: block; min-height: 250px; padding: 32px; background-position: center 40%; }
  .ref-contact-card h3 { font-size: 30px; }
  .ref-contact-card p { max-width: 245px; }
  .ref-contact-card span { margin-top: 28px; font-size: 11px; }
  .ref-news-list { margin-top: 32px; }
  .ref-article { gap: 14px; grid-template-columns: 98px minmax(0,1fr); }
  .ref-article img { width: 98px; height: 94px; }
  .ref-article h3 { font-size: 15px; -webkit-line-clamp: 2; }
  .ref-article p { font-size: 11px; -webkit-line-clamp: 2; margin-top: 6px; }
  .ref-article time { margin-top: 8px; font-size: 10px; }
  .ref-view-more { font-size: 11px; }
}
@media (min-width: 601px) and (max-width: 640px) {
  .reference-home { --ref-header: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .ref-main *, .ref-section-nav * { transition: none !important; scroll-behavior: auto; }
}
