/* CORE Labs homepage — Refokus-inspired editorial system */

.home-ref {
  --rf-bg: #0a0a0a;
  --rf-bg-2: #111111;
  --rf-fg: #f3f3f0;
  --rf-muted: rgba(243, 243, 240, 0.58);
  --rf-line: rgba(243, 243, 240, 0.12);
  --rf-accent: #8ae67f;
  --rf-accent-ink: #08140a;
  --rf-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rf-display: "Syne", sans-serif;
  --rf-body: "DM Sans", sans-serif;
  background: var(--rf-bg);
  color: var(--rf-fg);
  font-family: var(--rf-body);
  overflow-x: clip;
}
/* Green progress rail on the right replaces the native scrollbar */
html:has(.home-ref) {
  scrollbar-width: none;
}
html:has(.home-ref)::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.home-ref ::selection {
  background: var(--rf-accent);
  color: var(--rf-accent-ink);
}

.home-ref a { color: inherit; text-decoration: none; }
.home-ref h1,
.home-ref h2,
.home-ref h3 {
  font-family: var(--rf-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

html.rf-smooth { scroll-behavior: auto; }

.rf-wrap {
  width: min(100%, 92rem);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3.5vw, 3.5rem);
}

.rf-kicker {
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rf-accent);
}

/* loader */
.rf-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--rf-bg);
  transition: clip-path 1s var(--rf-ease), visibility 0s 1.05s;
  clip-path: inset(0 0 0 0);
}
.home-ref.is-ready .rf-loader {
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  pointer-events: none;
}
.rf-loader__bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}
.rf-loader__bar span {
  display: block;
  height: 100%;
  width: calc(var(--load, 0) * 100%);
  background: var(--rf-accent);
}
.rf-loader__count {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: flex-start;
  gap: 0.15rem;
  font-family: var(--rf-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: rgba(243, 243, 240, 0.28);
}
.rf-loader__count i {
  font-style: normal;
  color: var(--rf-accent);
  font-size: 0.45em;
  margin-top: 0.18em;
}

.rf-progress {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 80;
  width: 2px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.rf-progress span {
  display: block;
  height: 100%;
  background: var(--rf-accent);
  transform: scaleY(var(--page-progress, 0));
  transform-origin: top;
}

.rf-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--rf-fg);
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: difference;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.35s var(--rf-ease), height 0.35s var(--rf-ease), opacity 0.2s;
}
.rf-cursor.is-visible { opacity: 1; }
.rf-cursor.is-hover {
  width: 3.5rem;
  height: 3.5rem;
  background: transparent;
  border: 1px solid var(--rf-fg);
}

/* nav — Refokus pattern: Menu | mark | Contact */
.rf-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem clamp(1.25rem, 3.5vw, 3.5rem);
  background: linear-gradient(to bottom, rgba(7, 10, 8, 0.72), transparent);
  opacity: 0;
  transform: translateY(-0.75rem);
  transition: opacity 0.9s var(--rf-ease), transform 0.9s var(--rf-ease);
}
.home-ref.is-ready .rf-nav {
  opacity: 1;
  transform: none;
}
.rf-nav__menu,
.rf-nav__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.05rem;
  border: 1px solid rgba(243, 243, 240, 0.78);
  border-radius: 999px;
  background: transparent;
  color: var(--rf-fg);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.rf-nav__menu { justify-self: start; grid-column: 1; }
.rf-nav__logo {
  grid-column: 2;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 2rem;
}
.rf-nav__logo img { width: 100%; display: block; }
.rf-nav__contact { justify-self: end; grid-column: 3; }
.rf-nav__menu:hover,
.rf-nav__contact:hover {
  background: var(--rf-fg);
  color: var(--rf-bg);
}
.rf-nav__links { display: none; }

/* menu — left-docked panel, page stays visible behind it */
.rf-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.rf-menu.is-open { pointer-events: auto; }
.rf-menu__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 6, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.6s var(--rf-ease);
}
.rf-menu.is-open .rf-menu__scrim { opacity: 1; }

.rf-menu__panel {
  position: absolute;
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
  left: calc(0.75rem + env(safe-area-inset-left, 0px));
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  width: min(24.5rem, calc(100vw - 1.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.35rem 1.35rem 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rf-line);
  border-radius: 1.1rem;
  background: rgba(12, 14, 12, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.55);
  transform: translateX(calc(-100% - 1rem));
  transition: transform 0.7s var(--rf-ease);
  scrollbar-width: thin;
}
.rf-menu.is-open .rf-menu__panel { transform: none; }

.rf-menu__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid rgba(243, 243, 240, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--rf-fg);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.rf-menu__close svg {
  width: 0.62rem;
  height: 0.62rem;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}
.rf-menu__close:hover {
  background: var(--rf-fg);
  border-color: var(--rf-fg);
  color: var(--rf-bg);
}

.rf-menu__nav { display: flex; flex-direction: column; }
.rf-menu__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 0.2rem;
  border: 0;
  border-top: 1px solid var(--rf-line);
  background: transparent;
  color: var(--rf-fg);
  font-family: var(--rf-body);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  opacity: 1;
  transform: none;
  transition: color 0.25s;
}
.rf-menu__row--split {
  gap: 0.75rem;
  cursor: default;
}
.rf-menu__link {
  flex: 1;
  min-width: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  transition: color 0.25s;
}
.rf-menu__link:hover { color: var(--rf-accent); }
.rf-menu__plus {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin: -0.35rem -0.15rem -0.35rem 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
}
.rf-menu__plus:hover {
  color: var(--rf-accent);
  background: rgba(243, 243, 240, 0.06);
}
.rf-menu__nav > *:last-child .rf-menu__row,
.rf-menu__nav > a:last-child { border-bottom: 1px solid var(--rf-line); }
/* Enter-only — never reverse-fade under a click / close. */
.rf-menu.is-open .rf-menu__row {
  animation: rf-menu-row-in 0.55s var(--rf-ease) both;
  animation-delay: calc(var(--rf-i, 0) * 45ms + 120ms);
}
@keyframes rf-menu-row-in {
  from {
    opacity: 0;
    transform: translateX(-0.6rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rf-menu__row:not(.rf-menu__row--split):hover { color: var(--rf-accent); }

.rf-menu__sign {
  position: relative;
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
  opacity: 0.6;
}
.rf-menu__sign::before,
.rf-menu__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: currentColor;
}
.rf-menu__sign::after {
  transform: rotate(90deg);
  transition: transform 0.4s var(--rf-ease), opacity 0.4s var(--rf-ease);
}
.rf-menu__group.is-open .rf-menu__sign::after { transform: none; opacity: 0; }
.rf-menu__group.is-open > .rf-menu__row { color: var(--rf-accent); }
.rf-menu__group.is-open .rf-menu__plus { color: var(--rf-accent); }

.rf-menu__sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--rf-ease);
}
.rf-menu__subInner {
  display: grid;
  gap: 0.15rem;
  padding: 0.35rem 0 0.75rem;
}
.rf-menu__item {
  display: grid;
  grid-template-columns: 1.85rem 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.35rem;
  border-radius: 0.6rem;
  transition: background 0.25s;
}
.rf-menu__item:hover { background: rgba(243, 243, 240, 0.06); }
.rf-menu__item img {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.45rem;
  object-fit: cover;
  border: 1px solid var(--rf-line);
}
.rf-menu__item span { display: grid; gap: 0.1rem; }
.rf-menu__item b {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.rf-menu__item em {
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--rf-muted);
}

/* Proof / examples — larger preview tiles (drop images into .rf-menu__thumb later) */
.rf-menu__item--proof {
  grid-template-columns: 4.4rem 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.4rem;
}
.rf-menu__thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 3.15rem;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(243, 243, 240, 0.14);
  background:
    linear-gradient(145deg, rgba(138, 230, 127, 0.1), transparent 60%),
    rgba(243, 243, 240, 0.03);
}
.rf-menu__thumb::before {
  content: attr(data-index);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--rf-accent);
}
.rf-menu__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}
.rf-menu__thumb:has(img[src]:not([src=""]))::before { opacity: 0; }
.rf-menu__item--proof b { font-size: 0.88rem; }
.rf-menu__item--proof em { font-size: 0.74rem; }

.rf-menu__foot {
  margin-top: auto;
  display: grid;
  gap: 1.1rem;
  opacity: 0;
  transition: opacity 0.6s var(--rf-ease) 0.35s;
}
.rf-menu.is-open .rf-menu__foot { opacity: 1; }
.rf-menu__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}
.rf-menu__cols ul {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rf-menu__cols a {
  font-size: 0.76rem;
  color: var(--rf-muted);
  transition: color 0.25s;
}
.rf-menu__cols a:hover { color: var(--rf-fg); }
.rf-menu__mail {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.9rem 0 0;
  border: 0;
  border-top: 1px solid var(--rf-line);
  background: transparent;
  color: var(--rf-fg);
  font-family: var(--rf-body);
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s;
}
.rf-menu__mail:hover { color: var(--rf-accent); }

/* Copy confirmation shared by the menu and page footer */
.rf-menu__mail i,
.rf-footer__mail i,
.rf-apply__mail i {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rf-accent-ink);
  background: var(--rf-accent);
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  opacity: 0;
  transform: translateX(-0.35rem);
  transition: opacity 0.3s var(--rf-ease), transform 0.3s var(--rf-ease);
}
.rf-menu__mail.is-copied i,
.rf-footer__mail.is-copied i,
.rf-apply__mail.is-copied i {
  opacity: 1;
  transform: none;
}
.rf-footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.25s;
}
.rf-footer__mail:hover { color: var(--rf-accent); }
.rf-menu__place {
  margin: 0;
  font-size: 0.72rem;
  color: var(--rf-muted);
}

/* hero — left editorial copy, right 3D mark (Refokus composition) */
.rf-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: 7.5rem 0 5rem;
  overflow: hidden;
  background: #070a08;
}
.rf-hero__webgl {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.1s var(--rf-ease);
}
.has-webgl-hero .rf-hero__webgl { opacity: 1; }
.rf-hero__drag { display: none; }
.rf-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 10, 8, 0.92) 0%, rgba(7, 10, 8, 0.6) 26%, rgba(7, 10, 8, 0.18) 42%, transparent 54%),
    linear-gradient(0deg, rgba(7, 10, 8, 0.6) 0%, transparent 20%),
    linear-gradient(180deg, rgba(7, 10, 8, 0.45) 0%, transparent 16%);
}
.rf-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 42rem);
  margin-inline: 0 auto;
  margin-left: clamp(1.25rem, 3.5vw, 3.5rem);
  padding-inline: 0;
  justify-self: start;
}
.rf-hero__kicker,
.rf-hero__title span,
.rf-hero__sub,
.rf-hero__body {
  opacity: 0;
  transform: translate3d(0, 2.5rem, 0);
  filter: blur(8px);
  transition: opacity 1.1s var(--rf-ease), transform 1.1s var(--rf-ease), filter 1.1s var(--rf-ease);
}
.home-ref.is-ready .rf-hero__kicker,
.home-ref.is-ready .rf-hero__title span,
.home-ref.is-ready .rf-hero__sub,
.home-ref.is-ready .rf-hero__body {
  opacity: 1;
  transform: none;
  filter: none;
}
.home-ref.is-ready .rf-hero__kicker { transition-delay: 0.2s; }
.home-ref.is-ready .rf-hero__title span:nth-child(1) { transition-delay: 0.32s; }
.home-ref.is-ready .rf-hero__title span:nth-child(2) { transition-delay: 0.42s; }
.home-ref.is-ready .rf-hero__title span:nth-child(3) { transition-delay: 0.52s; }
.home-ref.is-ready .rf-hero__sub { transition-delay: 0.62s; }
.home-ref.is-ready .rf-hero__body { transition-delay: 0.72s; }

.rf-hero__title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(4.2rem, 11vw, 9rem);
  font-weight: 800;
  line-height: 0.86;
}
.rf-hero__title span { display: block; }
.rf-hero__title span:nth-child(2) { margin-left: 0.28em; }
.rf-hero__title span:nth-child(3) {
  margin-left: 0.08em;
  color: var(--rf-fg);
}
.rf-hero__sub {
  max-width: 28rem;
  margin: 1.75rem 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.45;
  color: var(--rf-fg);
}
.rf-hero__body {
  max-width: 28rem;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--rf-muted);
}
.rf-hero__scroll {
  position: absolute;
  z-index: 2;
  right: clamp(1.25rem, 3.5vw, 3.5rem);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rf-muted);
  opacity: 0;
  transition: opacity 1s var(--rf-ease) 0.9s;
}
.home-ref.is-ready .rf-hero__scroll { opacity: 1; }
.rf-hero__scroll i {
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, var(--rf-accent), transparent);
  animation: rf-scroll 1.8s ease-in-out infinite;
}
@keyframes rf-scroll {
  0%, 100% { transform: scaleY(0.55); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

.rf-statement__bridge { display: none; }

/* Mobile hero — Refokus composition: full-bleed field + large mark behind copy */
@media (max-width: 900px) {
  .rf-nav__logo { width: 4rem; }
  .rf-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    padding:
      calc(5.75rem + env(safe-area-inset-top, 0px))
      0
      calc(4.5rem + env(safe-area-inset-bottom, 0px));
    background: #040704;
  }
  .rf-hero__webgl {
    /* Sit under the copy — never paint over headline/sub. */
    inset: auto 0 0 0;
    top: 56%;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 44%;
    z-index: 0;
    /* pan-y: vertical scroll always works. JS only steals a sideways logo hit. */
    pointer-events: auto;
    touch-action: pan-y;
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
  }
  .rf-hero__drag { display: none !important; }
  .rf-hero__scroll {
    z-index: 4;
    pointer-events: none;
  }
  .rf-hero__hint { display: none; }
  .rf-hero__veil {
    z-index: 1;
    background:
      linear-gradient(180deg, rgba(4, 7, 4, 0.72) 0%, rgba(4, 7, 4, 0.45) 42%, rgba(4, 7, 4, 0.12) 58%, rgba(4, 7, 4, 0.55) 82%, rgba(4, 7, 4, 0.95) 100%),
      linear-gradient(90deg, rgba(4, 7, 4, 0.35) 0%, transparent 58%);
  }
  .rf-hero__inner {
    box-sizing: border-box;
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 clamp(1.25rem, 5vw, 1.75rem) 0.75rem;
    flex: 0 0 auto;
    background: linear-gradient(180deg, #040704 70%, rgba(4, 7, 4, 0));
  }
  .rf-hero__title,
  .rf-hero__sub,
  .rf-hero__kicker {
    text-shadow: 0 1px 18px rgba(4, 7, 4, 0.85);
  }
  .rf-hero__body { display: none; }
  .rf-hero__kicker {
    margin: 0;
    max-width: 100%;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    overflow-wrap: anywhere;
  }
  .rf-hero__title {
    margin: 1.1rem 0 0;
    padding-bottom: 0.15em;
    font-size: clamp(3.1rem, 14.5vw, 4.2rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.06em;
    max-width: 11ch;
  }
  .rf-hero__title span:nth-child(2),
  .rf-hero__title span:nth-child(3) { margin-left: 0; }
  .rf-hero__sub {
    margin: 1.65rem 0 0;
    max-width: 20rem;
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--rf-fg);
  }
  /* Entrance travel was stacking Booked. into the sub while loading. */
  .rf-hero__kicker,
  .rf-hero__title span,
  .rf-hero__sub,
  .rf-hero__body {
    transform: translate3d(0, 1.1rem, 0);
    filter: blur(4px);
  }
  .rf-hero__scroll {
    left: 50%;
    right: auto;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    flex-direction: column;
    gap: 0.55rem;
    align-items: center;
  }
  .rf-hero__scroll i { height: 2.4rem; }
  .rf-statement__bridge {
    display: block;
    max-width: 34rem;
    margin: 0 0 clamp(2rem, 5vw, 3rem);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--rf-muted);
  }
}

/* statement */
.rf-statement {
  padding: clamp(6rem, 14vw, 11rem) 0;
  border-top: 1px solid var(--rf-line);
}
.rf-statement__title {
  max-width: 16ch;
  margin: 0 0 clamp(3rem, 7vw, 5rem);
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.02;
}
.rf-statement__title em {
  font-style: normal;
  color: var(--rf-accent);
}
.rf-statement__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  max-width: 56rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rf-line);
}
.rf-statement__grid p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--rf-muted);
}

/* work rows — Refokus signature */
.rf-work { padding: 2rem 0 6rem; }
.rf-work__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.rf-work__head h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
}
.rf-work__list {
  border-top: 1px solid var(--rf-line);
}
.rf-work-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
  min-height: 5.75rem;
  padding: 1.1rem clamp(1.25rem, 3.5vw, 3.5rem);
  border-bottom: 1px solid var(--rf-line);
  overflow: hidden;
  transition: min-height 0.75s var(--rf-ease), background 0.45s var(--rf-ease), padding 0.75s var(--rf-ease);
}
.rf-work-row.is-active {
  min-height: min(56vh, 30rem);
  padding-block: 1.75rem;
  background: #0f0f0f;
}
.rf-work-row__copy {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
}
.rf-work-row__index {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--rf-accent);
}
.rf-work-row h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  transition: transform 0.55s var(--rf-ease);
}
.rf-work-row.is-active h3 { transform: translateX(0.35rem); }
.rf-work-row p {
  margin: 0;
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--rf-muted);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.45s var(--rf-ease), max-height 0.55s var(--rf-ease);
}
.rf-work-row.is-active p {
  opacity: 1;
  max-height: 6rem;
}
.rf-work-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.45s var(--rf-ease) 0.05s, max-height 0.55s var(--rf-ease);
}
.rf-work-row.is-active ul {
  opacity: 1;
  max-height: 4rem;
}
.rf-work-row li {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--rf-line);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rf-muted);
}
.rf-work-row__media {
  position: relative;
  width: min(100%, 28rem);
  justify-self: end;
  aspect-ratio: 16 / 11;
  border-radius: 0.4rem;
  overflow: hidden;
  background: #161616;
  opacity: 0;
  transform: translate3d(8%, 0, 0) scale(0.96);
  pointer-events: none;
  transition: opacity 0.55s var(--rf-ease), transform 0.7s var(--rf-ease);
}
.rf-work-row.is-active .rf-work-row__media {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.rf-work-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 0.9s var(--rf-ease);
}
.rf-work-row.is-active .rf-work-row__media img { transform: scale(1); }
/* Mockups / logos that shouldn’t be cropped by the 16:11 frame */
.rf-work-row__media--fit {
  background: #0c0c0c;
}
.rf-work-row__media--fit img {
  object-fit: contain;
  object-position: center;
  transform: none;
  padding: 6%;
  box-sizing: border-box;
}
.rf-work-row.is-active .rf-work-row__media--fit img { transform: none; }
.rf-work-row__media span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* services */
.rf-services {
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-top: 1px solid var(--rf-line);
}
.rf-services__intro h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
}
.rf-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.rf-service {
  min-height: 18rem;
  padding: 1.75rem;
  border: 1px solid var(--rf-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  transition: border-color 0.35s, transform 0.45s var(--rf-ease);
}
.rf-service:hover {
  border-color: rgba(138, 230, 127, 0.45);
  transform: translateY(-0.25rem);
}
.rf-service h3 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.rf-service p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--rf-muted);
}

/* process */
.rf-process {
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--rf-line);
}
.rf-process__head h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
}
.rf-process__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rf-line);
}
.rf-process__card {
  min-height: 18rem;
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--rf-line);
}
.rf-process__card:last-child { border-right: 0; }
.rf-process__card span {
  display: block;
  margin-bottom: 4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--rf-accent);
}
.rf-process__card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.7rem;
}
.rf-process__card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--rf-muted);
}

/* cta */
.rf-cta {
  padding: clamp(6rem, 12vw, 10rem) 0;
  border-top: 1px solid var(--rf-line);
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(138, 230, 127, 0.1), transparent 65%),
    var(--rf-bg);
}
.rf-cta h2 {
  max-width: 12ch;
  margin: 0 0 3rem;
  font-size: clamp(3.2rem, 8vw, 7rem);
}
.rf-cta h2 em {
  font-style: normal;
  color: var(--rf-accent);
}
.rf-cta__row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rf-line);
}
.rf-cta__row p {
  max-width: 28rem;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--rf-muted);
}
.rf-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 15rem;
  padding: 1rem 1rem 1rem 1.35rem;
  background: var(--rf-accent);
  color: var(--rf-accent-ink);
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.35s var(--rf-ease);
}
.rf-button:hover { transform: translateY(-2px); }
.rf-button i {
  position: relative;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(8, 20, 10, 0.12);
  font-style: normal;
  font-size: 0; /* hide any leftover unicode arrows (render as emoji on iOS) */
  color: transparent;
}
.rf-button i::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-top: 1.5px solid var(--rf-accent-ink);
  border-right: 1.5px solid var(--rf-accent-ink);
  transform: translate(-1px, 1px) rotate(45deg);
}

/* footer */
.rf-footer {
  border-top: 1px solid var(--rf-line);
  padding: 1.75rem 0;
}
.rf-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--rf-muted);
}
.rf-footer__inner > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--rf-fg);
}
.rf-footer img { width: 1.2rem; }

/* subpage hero — same language as the home hero, no WebGL */
.rf-phero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 52rem);
  display: flex;
  align-items: flex-end;
  padding: clamp(7.5rem, 14vw, 10.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 48% 58% at 88% 12%, rgba(138, 230, 127, 0.18), transparent 68%),
    radial-gradient(ellipse 40% 50% at 8% 88%, rgba(138, 230, 127, 0.06), transparent 70%),
    var(--rf-bg);
}
.rf-phero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(90deg, rgba(138, 230, 127, 0.22) 0 1px, transparent 1px 48px);
  -webkit-mask-image: radial-gradient(ellipse 62% 78% at 82% 22%, #000 6%, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 78% at 82% 22%, #000 6%, transparent 72%);
  opacity: 0.5;
}
.rf-phero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 243, 240, 0.18) 20%, rgba(243, 243, 240, 0.18) 80%, transparent);
}
.rf-phero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.75fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: end;
  width: 100%;
}
.rf-phero__copy {
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
}
.rf-phero h1 {
  margin: 0;
  font-size: clamp(2.85rem, 6.6vw, 5.35rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.rf-phero h1 em { font-style: normal; color: var(--rf-accent); }
.rf-phero__lead {
  margin: 0;
  max-width: 32rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--rf-muted);
}
.rf-phero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.35rem;
}
.rf-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.35rem;
  border: 1px solid rgba(243, 243, 240, 0.45);
  color: var(--rf-fg);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.rf-ghost:hover {
  background: var(--rf-fg);
  border-color: var(--rf-fg);
  color: var(--rf-bg);
}
.rf-phero__jump {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 0 0.15rem;
  border-top: 1px solid rgba(243, 243, 240, 0.14);
}
.rf-phero__jump-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rf-accent);
}
.rf-jump {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rf-jump a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(243, 243, 240, 0.1);
  color: var(--rf-fg);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.25s, padding-left 0.25s;
}
.rf-jump li:last-child a { border-bottom: 0; }
.rf-jump a b {
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rf-muted);
  transition: color 0.25s;
}
.rf-jump a:hover {
  color: var(--rf-accent);
  padding-left: 0.35rem;
}
.rf-jump a:hover b { color: var(--rf-accent); }

/* service detail rows */
.rf-details { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(4rem, 9vw, 7rem); }
.rf-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "media copy";
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--rf-line);
}
/* Flip is controlled only by this class — DOM order stays media then copy. */
.rf-detail--flip { grid-template-areas: "copy media"; }
.rf-detail__media {
  grid-area: media;
  overflow: hidden;
  border: 1px solid rgba(243, 243, 240, 0.16);
  border-radius: 0.65rem;
  background: #121412;
  aspect-ratio: 16 / 11;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.rf-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--rf-ease);
}
.rf-detail:hover .rf-detail__media img { transform: scale(1.03); }
/* Brand logos sit as a lockup card instead of being cropped like a photo. */
.rf-detail__media--logo {
  position: relative;
  display: block;
  padding: 0;
  box-shadow: none;
}
.rf-detail__media--logo img {
  position: absolute;
  inset: clamp(2rem, 5.5vw, 3.75rem);
  width: auto;
  height: auto;
  max-width: calc(100% - 2 * clamp(2rem, 5.5vw, 3.75rem));
  max-height: calc(100% - 2 * clamp(2rem, 5.5vw, 3.75rem));
  margin: auto;
  object-fit: contain;
  object-position: center;
  min-width: 0;
  min-height: 0;
}
.rf-detail:hover .rf-detail__media--logo img { transform: scale(1.04); }
.rf-detail__media--light { background: #ffffff; border-color: rgba(243, 243, 240, 0.2); }
.rf-detail__media--ink { background: #000000; }
/* Dark UI screenshots get contain + padding so nothing gets cropped. */
.rf-detail__media--shot {
  position: relative;
  display: block;
  padding: 0;
  background: #0c0e0c;
}
.rf-detail__media--shot img {
  position: absolute;
  inset: 0.85rem;
  width: auto;
  height: auto;
  max-width: calc(100% - 1.7rem);
  max-height: calc(100% - 1.7rem);
  margin: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0.35rem;
  min-width: 0;
  min-height: 0;
}
.rf-detail:hover .rf-detail__media--shot img { transform: scale(1.02); }
.rf-detail__copy {
  grid-area: copy;
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}
.rf-detail__index {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rf-accent);
}
.rf-detail h2 { margin: 0; font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.rf-detail__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--rf-muted);
}
.rf-detail__list {
  display: grid;
  gap: 0.55rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}
.rf-detail__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--rf-muted);
}
.rf-detail__list li::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  margin-top: 0.52rem;
  border-radius: 50%;
  background: var(--rf-accent);
}
.rf-detail__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rf-fg);
}
.rf-detail__cta i {
  position: relative;
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  font-style: normal;
  font-size: 0;
  color: transparent;
  transition: transform 0.35s var(--rf-ease);
}
.rf-detail__cta i::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  color: inherit;
  transform: rotate(45deg);
}
.rf-detail__cta:hover { color: var(--rf-accent); }
.rf-detail__cta:hover i { transform: translate(0.15rem, -0.15rem); }

/* criteria list */
.rf-crit {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rf-line);
}
.rf-crit li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 0.2rem;
  border-bottom: 1px solid var(--rf-line);
  font-size: 1rem;
}
.rf-crit b {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--rf-accent);
}
.rf-note {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 1.2rem 1.5rem;
  border-left: 2px solid var(--rf-accent);
  background: rgba(138, 230, 127, 0.06);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .rf-phero {
    min-height: 0;
    align-items: stretch;
    padding-top: clamp(6.5rem, 18vw, 8.5rem);
  }
  .rf-phero__inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2.5rem;
  }
  .rf-phero__jump { max-width: 28rem; }
  .rf-detail,
  .rf-detail--flip {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "copy";
    gap: 1.5rem;
  }
  .rf-crit li { grid-template-columns: 2.2rem 1fr; }
  .rf-proof__grid { grid-template-columns: 1fr; }
  .rf-proof-card--wide { grid-template-columns: 1fr; }
  .rf-split__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .rf-split__media { min-height: 16rem; }
  .rf-process__grid { grid-template-columns: 1fr; }
  .rf-process__step,
  .rf-process__step:nth-child(2n) { border-right: 0; }
}

/* reveals */
.rf-reveal {
  opacity: 0;
  transform: translate3d(0, 2.2rem, 0);
  filter: blur(6px);
  transition:
    opacity 1s var(--rf-ease),
    transform 1s var(--rf-ease),
    filter 1s var(--rf-ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.rf-reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (max-width: 980px) {
  .rf-nav {
    grid-template-columns: auto 1fr auto;
    padding: calc(0.85rem + env(safe-area-inset-top, 0px)) clamp(1rem, 4vw, 1.5rem) 0.85rem;
  }
  .rf-nav__menu { grid-column: 1; }
  .rf-nav__logo {
    grid-column: 2;
    justify-self: center;
    width: 4rem;
  }
  .rf-nav__contact { grid-column: 3; }
  .rf-nav__menu,
  .rf-nav__contact {
    padding: 0.5rem 0.9rem;
    font-size: 0.64rem;
  }
  .rf-work-row,
  .rf-work-row.is-active {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 1.5rem;
  }
  .rf-work-row.is-active { padding-bottom: 1.75rem; }
  .rf-work-row p,
  .rf-work-row ul {
    opacity: 1;
    max-height: none;
  }
  .rf-work-row__media,
  .rf-work-row.is-active .rf-work-row__media {
    width: 100%;
    opacity: 1;
    transform: none;
    justify-self: stretch;
  }
  .rf-statement__grid,
  .rf-services__grid,
  .rf-process__track {
    grid-template-columns: 1fr;
  }
  .rf-process__card {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rf-line);
  }
  .rf-cta__row {
    flex-direction: column;
    align-items: flex-start;
  }
  .rf-button { width: 100%; }
  .rf-proof-card__btn { width: auto; }
  .rf-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .rf-footer__mail {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .rf-cursor { display: none; }
  .rf-jump li a {
    padding-block: 0.85rem;
  }
}

/* ── Proof page hero (distinct from services phero) ── */
.rf-proof-hero {
  position: relative;
  isolation: isolate;
  min-height: min(92svh, 48rem);
  display: flex;
  align-items: flex-end;
  padding: clamp(7.5rem, 14vw, 10.5rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 18% 88%, rgba(138, 230, 127, 0.1), transparent 60%),
    radial-gradient(ellipse 50% 60% at 92% 8%, rgba(138, 230, 127, 0.14), transparent 68%),
    var(--rf-bg);
}
.rf-proof-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(90deg, rgba(138, 230, 127, 0.18) 0 1px, transparent 1px 52px);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 100%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 100%, #000 10%, transparent 72%);
  opacity: 0.45;
}
.rf-proof-hero__inner {
  display: grid;
  gap: 1.35rem;
  max-width: 46rem;
  width: 100%;
}
.rf-proof-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}
.rf-proof-hero h1 em {
  font-style: normal;
  color: var(--rf-accent);
}
.rf-proof-hero__lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--rf-muted);
}
.rf-proof-hero__scroll {
  position: absolute;
  z-index: 2;
  right: clamp(1.25rem, 3.5vw, 3.5rem);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rf-muted);
  opacity: 0;
  transition: opacity 1s var(--rf-ease) 0.9s;
}
.home-ref.is-ready .rf-proof-hero__scroll { opacity: 1; }
.rf-proof-hero__scroll i {
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, var(--rf-accent), transparent);
  animation: rf-scroll 1.8s ease-in-out infinite;
}
.rf-proof-work { padding-top: clamp(3rem, 6vw, 5rem); }
.rf-work-row__media--slot {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 60% 55% at 70% 30%, rgba(138, 230, 127, 0.12), transparent 65%),
    repeating-linear-gradient(90deg, rgba(243, 243, 240, 0.05) 0 1px, transparent 1px 36px),
    #121412;
}
.rf-work-row__media--slot::before {
  content: attr(data-index);
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--rf-accent);
}
.rf-work-row__media--slot:has(img)::before { display: none; }
.rf-work-row__media--slot:has(img) > span { display: none; }
.rf-work-row[data-work-row] { cursor: default; }

/* ── Proof / case studies card grid (legacy / unused on main proof page) ── */
.rf-proof {
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--rf-line);
}
.rf-proof__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 40rem;
}
.rf-proof__head h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
}
.rf-proof__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.rf-proof-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--rf-line);
  background: linear-gradient(180deg, rgba(243, 243, 240, 0.03), transparent 55%);
  transition: border-color 0.35s, transform 0.45s var(--rf-ease);
}
.rf-proof-card:hover {
  border-color: rgba(138, 230, 127, 0.4);
  transform: translateY(-0.2rem);
}
.rf-proof-card--wide { grid-column: 1 / -1; }
.rf-proof-card--wide {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  grid-template-rows: none;
  align-items: stretch;
}
.rf-proof-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 70% 20%, rgba(138, 230, 127, 0.12), transparent 65%),
    repeating-linear-gradient(90deg, rgba(243, 243, 240, 0.05) 0 1px, transparent 1px 42px),
    #101210;
}
.rf-proof-card--wide .rf-proof-card__media { aspect-ratio: auto; min-height: 16rem; }
.rf-proof-card__media::before {
  content: attr(data-index);
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  font-family: var(--rf-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--rf-accent);
}
.rf-proof-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--rf-ease);
}
.rf-proof-card__media--contain img {
  object-fit: contain;
  object-position: center;
  background: #0c0e0c;
}
.rf-proof-card:hover .rf-proof-card__media img { transform: scale(1.04); }
.rf-proof-card:hover .rf-proof-card__media--contain img { transform: scale(1.02); }
.rf-proof-card__media:has(img)::before { opacity: 0; }
.rf-proof-card__body {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.rf-proof-card__tag {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rf-accent);
}
.rf-proof-card h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}
.rf-proof-card__body > p:last-of-type {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--rf-muted);
}
.rf-proof-card__btn {
  justify-self: start;
  min-width: 0;
  gap: 1.25rem;
  margin-top: 0.35rem;
  padding: 0.75rem 0.85rem 0.75rem 1.1rem;
}

/* image + copy split (PFS / about-style) */
.rf-split {
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--rf-line);
}
.rf-split__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.rf-split__media {
  overflow: hidden;
  border: 1px solid var(--rf-line);
  min-height: clamp(18rem, 40vw, 28rem);
  background: var(--rf-bg-2);
}
.rf-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}
.rf-split__copy {
  display: grid;
  gap: 1.15rem;
  max-width: 32rem;
}
.rf-split__copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
}
.rf-split__copy h2 em {
  font-style: normal;
  color: var(--rf-accent);
}
.rf-split__copy > p:last-child {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--rf-muted);
}

/* PFS detailed steps (extends .rf-process used on home) */
.rf-process__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rf-line);
}
.rf-process__step {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rf-line);
  border-right: 1px solid var(--rf-line);
  transition: background 0.35s;
}
.rf-process__step:nth-child(2n) { border-right: 0; }
.rf-process__step:hover { background: rgba(243, 243, 240, 0.025); }
.rf-process__num {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--rf-accent);
}
.rf-process__step h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.rf-process__step > p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--rf-muted);
}
.rf-process__step ul {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.rf-process__step li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(243, 243, 240, 0.55);
}
.rf-process__step li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--rf-accent);
}

/* ── Contact / apply page ── */
.rf-apply-page { min-height: 100svh; }
.rf-apply {
  position: relative;
  isolation: isolate;
}
.rf-apply__layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100svh - 4.5rem);
}
.rf-apply__visual {
  position: relative;
  display: none;
  overflow: hidden;
  min-height: 100%;
  background: var(--rf-bg-2);
}
.rf-apply__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}
.rf-apply__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.72) 72%, rgba(10, 10, 10, 0.9) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.35), transparent 55%);
}
.rf-apply__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 1rem;
  padding: clamp(2rem, 4vw, 3.25rem);
  max-width: 28rem;
}
.rf-apply__caption h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}
.rf-apply__caption h2 em {
  font-style: normal;
  color: var(--rf-accent);
}
.rf-apply__caption > p:last-child {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(243, 243, 240, 0.72);
}
.rf-apply__form {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(6.5rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem);
}
.rf-apply__form h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}
.rf-apply__lead {
  margin: 0 0 1.25rem;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--rf-muted);
}
.rf-apply__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rf-fg);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(138, 230, 127, 0.45);
  text-underline-offset: 0.2em;
  cursor: pointer;
  transition: color 0.25s;
}
.rf-apply__mail:hover { color: var(--rf-accent); }
.rf-apply__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.rf-apply__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.rf-field {
  margin-bottom: 1.15rem;
}
.rf-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rf-muted);
}
.rf-field label span {
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
  opacity: 0.7;
}
.rf-field input,
.rf-field textarea,
.rf-field select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(243, 243, 240, 0.14);
  border-radius: 0;
  background: rgba(243, 243, 240, 0.03);
  color: var(--rf-fg);
  font-family: var(--rf-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.rf-field input:focus,
.rf-field textarea:focus,
.rf-field select:focus {
  border-color: var(--rf-accent);
  background: rgba(138, 230, 127, 0.04);
  box-shadow: 0 0 0 3px rgba(138, 230, 127, 0.12);
}
.rf-field textarea {
  min-height: 8.5rem;
  resize: vertical;
}
.rf-field input::placeholder,
.rf-field textarea::placeholder { color: rgba(243, 243, 240, 0.28); }
.rf-field select option { background: #111; color: var(--rf-fg); }
.rf-checks {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.55rem;
}
.rf-check {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 2.6rem;
  padding: 0.35rem 0.15rem;
  color: rgba(243, 243, 240, 0.72);
  font-size: 0.92rem;
  cursor: pointer;
  transition: color 0.25s;
}
.rf-check:hover { color: var(--rf-fg); }
.rf-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--rf-accent);
  cursor: pointer;
}
.rf-apply__actions {
  margin-top: 0.35rem;
  min-height: 7rem;
}
.rf-apply__submit {
  width: 100%;
  min-width: 0;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: var(--rf-body);
}
.rf-apply__submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}
.rf-apply__success {
  display: none;
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(138, 230, 127, 0.35);
  background: rgba(138, 230, 127, 0.08);
  color: var(--rf-accent);
  font-size: 0.9rem;
  line-height: 1.5;
}
.rf-apply__success.is-visible { display: block; }
.rf-apply__note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--rf-muted);
}

@media (min-width: 640px) {
  .rf-apply__row { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (min-width: 1024px) {
  .rf-apply__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rf-apply__visual { display: block; }
  .rf-apply__form {
    max-width: none;
    margin: 0;
    padding: clamp(7rem, 10vw, 9rem) clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rf-loader { display: none; }
  .rf-hero__kicker,
  .rf-hero__title span,
  .rf-hero__sub,
  .rf-hero__hint,
  .rf-nav,
  .rf-hero__scroll,
  .rf-reveal,
  .rf-work-row,
  .rf-work-row__media,
  .rf-work-row p,
  .rf-work-row ul {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    max-height: none !important;
  }
  .rf-hero__scroll i { animation: none; }
}

/* Keep after field base styles so mobile wins over 0.95rem. */
@media (max-width: 980px) {
  .rf-field input,
  .rf-field textarea,
  .rf-field select {
    font-size: 16px;
  }
}
