/* =========================================================
   Custom styles on top of webflow.css
   (used to be pasted into the <head> of every page)
   ========================================================= */

/* ---------- Text reveal (see head.js) ---------- */
.text-is-animated { visibility: hidden; }
.text-is-animated.tr-ready { visibility: visible; }

/* a mask around every word; padding leaves room for ascenders/descenders */
.tr-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: 0.14em;
  margin-block: -0.14em;
  max-width: 100%;
}
.tr-word > span {
  display: inline-block;
  transform: translateY(110%);
}
.tr-playing .tr-word > span {
  transform: translateY(0);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--tr-d, 0s);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .tr-word > span { transform: none !important; transition: none !important; }
}

/* ---------- Stable viewport height on mobile (see head.js) ---------- */
:root {
  --vh-lock: 100svh; /* small viewport height — for content */
  --vh-full: 100lvh; /* large viewport height — for backgrounds/overlays */
}
@supports not (height: 100svh) {
  :root { --vh-lock: 100vh; --vh-full: 100vh; }
}

/* !important overrides Height / Min H set in the Webflow Size panel */
.h-fixed {
  height: var(--vh-lock) !important;
  min-height: var(--vh-lock) !important;
}
.min-h-fixed {
  height: auto !important;
  min-height: var(--vh-lock) !important;
}
.h-fixed-full {
  height: var(--vh-full) !important;
  min-height: var(--vh-full) !important;
}

/* ---------- Lenis smooth scroll ---------- */
/* page height must stay auto: 100%/100vh + overflow:hidden cut the page under Lenis */
html, body { height: auto; min-height: 100%; }

/* clip, not hidden: hidden breaks position: sticky */
html { overflow-x: clip; }

[data-lenis-prevent] {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Selection ---------- */
::selection {
  background: #74f21b;
  color: #383838;
}

/* ---------- Copy-to-clipboard tooltip (main.js) ---------- */
.copy-tip {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, 4px);
  margin-bottom: 8px;
  padding: 0.4em 0.7em;
  background: #5f5f5f;
  color: #fff;
  font-family: inherit;
  font-size: 0.8em;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
}
.copy-tip.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Draggable horizontal gallery (main.js) ---------- */
.gallery_frame {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: #111 rgba(0, 0, 0, .08);
}
.gallery_frame.is-dragging { cursor: grabbing; }

.gallery_frame .gallery_img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none; /* so the browser doesn't drag the image itself */
}

.gallery_frame::-webkit-scrollbar { height: 6px; }
.gallery_frame::-webkit-scrollbar-track { background: rgba(0, 0, 0, .08); border-radius: 99px; }
.gallery_frame::-webkit-scrollbar-thumb { background: #111; border-radius: 99px; }

/* ---------- Button hover for .b2b-btn without a Webflow interaction ----------
   Same motion as the Webflow "b2b-btn-hover" interaction: the label slides up,
   its copy slides in from below and the background fills from the bottom. */
.btn-css-hover .b2b-btn-div-txt,
.btn-css-hover .b2b-btn-div-txt-up {
  transition: transform .3s cubic-bezier(.25, 1, .5, 1);
}
.btn-css-hover .b2b-btn-div-txt-up { transform: translateY(2em); }
.btn-css-hover .b2b-btn-bg {
  height: 0;
  transition: height .3s cubic-bezier(.77, 0, .175, 1);
}
@media (hover: hover) and (min-width: 992px) {
  .btn-css-hover:hover .b2b-btn-div-txt { transform: translateY(-2em); }
  .btn-css-hover:hover .b2b-btn-div-txt-up { transform: translateY(0); }
  .btn-css-hover:hover .b2b-btn-bg { height: 100%; }
}

/* ---------- Page transitions (head.js starts them, main.js handles leaving) ----------
   business pages ("blur"): the page dissolves into a fully white blur, the next one
     appears out of it
   recruiter pages ("fade"): plain white fade with a thin accent progress line
   At rest the cover has no backdrop-filter, so it costs nothing while scrolling. */
html[data-transition] body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

/* --- blur --- */
html[data-transition="blur"] body::after { background-color: rgba(255, 255, 255, 0); }
html[data-transition="blur"].pt-enter body::after {
  animation: pt-blur-in 1.2s cubic-bezier(.45, 0, .2, 1) .1s backwards;
}
html[data-transition="blur"].pt-leave body::after {
  animation: pt-blur-out .9s cubic-bezier(.55, 0, .55, 1) forwards;
}
@keyframes pt-blur-out {
  0%   { background-color: rgba(255, 255, 255, 0);   -webkit-backdrop-filter: blur(0);    backdrop-filter: blur(0); }
  55%  { background-color: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  100% { background-color: rgba(255, 255, 255, 1);   -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); }
}
@keyframes pt-blur-in {
  0%   { background-color: rgba(255, 255, 255, 1);   -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); }
  45%  { background-color: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  100% { background-color: rgba(255, 255, 255, 0);   -webkit-backdrop-filter: blur(0);    backdrop-filter: blur(0); }
}

/* --- fade --- */
html[data-transition="fade"] body::after { background-color: #fff; opacity: 0; }
html[data-transition="fade"].pt-enter body::after { animation: pt-clear .4s cubic-bezier(.4, 0, .2, 1) .05s both; }
@keyframes pt-clear { from { opacity: 1; } to { opacity: 0; } }
html[data-transition="fade"].pt-leave body::after {
  opacity: 1;
  transition: opacity .3s cubic-bezier(.4, 0, .2, 1);
}
html[data-transition="fade"] body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  height: 2px;
  background-color: var(--b2b-accent, #1154d9);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
html[data-transition="fade"].pt-leave body::before {
  transform: scaleX(.85);
  transition: transform .9s cubic-bezier(.1, .7, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  html.pt-enter body::after, html.pt-leave body::after { animation: none; transition: none; }
}

