/* =============================================================================
   The Web Dr: homepage "Position One" (namespace im-rf)
   Everything is scoped to .im-rf-encase. Shared chrome (header, offcanvas, footer,
   the wd:cta block) is not touched. See DESIGN.md.
   ============================================================================= */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens + local reset ---------- */
.im-rf-encase {
  --rf-paper: #f7f8fb;
  --rf-white: #ffffff;
  --rf-mist: #eef0f4;
  --rf-ink: #0b1220;
  --rf-ink-2: #1c2433;
  --rf-body: #4b5563;
  --rf-muted: #626b79;
  --rf-line: rgba(11, 18, 32, 0.09);
  --rf-line-2: rgba(11, 18, 32, 0.16);
  --rf-blue: #1f5eff;
  --rf-blue-2: #3d8bff;
  --rf-cyan: #35c8ff;
  --rf-blue-soft: #e9f0ff;
  --rf-night: #0b1220;
  --rf-night-2: #121b2e;
  --rf-night-line: rgba(255, 255, 255, 0.1);
  --rf-night-body: #aeb8ca;
  --rf-night-muted: #8592a8;
  --rf-display: "Kanit", system-ui, sans-serif;
  --rf-text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rf-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --rf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rf-gut: clamp(16px, 4.2vw, 56px);
  --rf-max: 1320px;
  --rf-shadow: 0 1px 2px rgba(11, 18, 32, 0.05), 0 22px 44px -26px rgba(11, 18, 32, 0.3);
  font-family: var(--rf-text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--rf-body);
  -webkit-font-smoothing: antialiased;
}
.im-rf-encase *,
.im-rf-encase *::before,
.im-rf-encase *::after { box-sizing: border-box; }
/* :where() keeps these at single-class weight, so every component rule below wins */
.im-rf-encase :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; padding: 0; }
.im-rf-encase :where(ul, ol) { list-style: none; }
.im-rf-encase :where(p) { font-size: inherit; line-height: inherit; color: inherit; font-weight: inherit; }
.im-rf-encase :where(a) { color: inherit; text-decoration: none; }
.im-rf-encase :where(img) { display: block; max-width: 100%; height: auto; }
.im-rf-encase :where(h1, h2, h3) { font-family: var(--rf-display); color: var(--rf-ink); }
.im-rf-encase a:focus-visible,
.im-rf-encase summary:focus-visible { outline: 2px solid var(--rf-blue); outline-offset: 4px; border-radius: 10px; }
.im-rf-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.im-rf-wrap {
  width: 100%;
  max-width: calc(var(--rf-max) + 2 * var(--rf-gut));
  margin: 0 auto;
  padding: 0 var(--rf-gut);
}
.im-rf-sec { position: relative; padding: clamp(72px, 7.6vw, 116px) 0; }

/* ---------- shared pieces ---------- */
.im-rf-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: clamp(36px, 4.4vw, 60px);
  border-bottom: 1px solid var(--rf-line-2);
}
.im-rf-encase .im-rf-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 12px/1 var(--rf-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rf-ink);
}
.im-rf-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.im-rf-head__pos {
  margin-left: auto;
  font: 500 12px/1 var(--rf-mono);
  letter-spacing: 0.12em;
  color: var(--rf-muted);
}
.im-rf-head__pos::before { content: "POS "; }

.im-rf-h2 {
  font-weight: 600;
  font-size: clamp(36px, 3.9vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.im-rf-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px 64px;
  align-items: end;
  margin-bottom: clamp(44px, 5.5vw, 80px);
}
.im-rf-encase .im-rf-intro p { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; max-width: 46ch; }

.im-rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 15px/1 var(--rf-text);
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.4s var(--rf-ease);
}
.im-rf-btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.4s var(--rf-ease); }
.im-rf-btn:hover svg { transform: translateX(3px); }
.im-rf-encase .im-rf-btn--ink { background: var(--rf-ink); color: #fff; box-shadow: 0 14px 26px -16px rgba(11, 18, 32, 0.75); }
.im-rf-encase .im-rf-btn--ink:hover { background: var(--rf-blue); color: #fff; box-shadow: 0 18px 32px -16px rgba(31, 94, 255, 0.75); }
.im-rf-encase .im-rf-btn--line { color: var(--rf-ink); border-color: var(--rf-line-2); background: transparent; }
.im-rf-encase .im-rf-btn--line:hover { border-color: var(--rf-ink); background: var(--rf-white); color: var(--rf-ink); }
.im-rf-encase .im-rf-btn--white { background: #fff; color: var(--rf-ink); }
.im-rf-encase .im-rf-btn--white:hover { background: var(--rf-blue-soft); color: var(--rf-ink); }
.im-rf-btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* =============================================================================
   01 Hero: the query and the #1 result
   ============================================================================= */
.im-rf-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(112px, 11vw, 148px) 0 clamp(56px, 6vw, 88px);
  background: var(--rf-paper);
}
.im-rf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rf-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--rf-line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(120% 62% at 50% 0%, #000 0%, transparent 74%);
  mask-image: radial-gradient(120% 62% at 50% 0%, #000 0%, transparent 74%);
  pointer-events: none;
}
.im-rf-hero::after {
  content: "";
  position: absolute;
  width: 980px;
  height: 980px;
  right: -360px;
  top: -520px;
  background: radial-gradient(closest-side, rgba(31, 94, 255, 0.16), rgba(53, 200, 255, 0.05) 55%, transparent 72%);
  pointer-events: none;
}
.im-rf-hero > .im-rf-wrap { position: relative; z-index: 1; }

.im-rf-bar { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.im-rf-query {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 540px;
  min-width: 0;
  min-height: 56px;
  padding: 10px 24px 10px 20px;
  background: var(--rf-white);
  border: 1px solid var(--rf-line-2);
  border-radius: 999px;
  box-shadow: var(--rf-shadow);
}
.im-rf-query__ico { width: 20px; height: 20px; flex: none; color: var(--rf-ink-2); }
.im-rf-encase .im-rf-query__text { font: 500 15.5px/1.35 var(--rf-text); color: var(--rf-ink); letter-spacing: 0.01em; }
.im-rf-query__caret {
  flex: none;
  width: 2px;
  height: 22px;
  margin-left: -6px;
  border-radius: 2px;
  background: var(--rf-blue);
  animation: im-rf-blink 1.05s steps(1) 0.6s 4;
}
@keyframes im-rf-blink { 50% { opacity: 0; } }

.im-rf-tabs { flex: 1 1 auto; min-width: 0; }
.im-rf-tabs ul { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.im-rf-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  font: 500 13px/1 var(--rf-mono);
  letter-spacing: 0.04em;
  color: var(--rf-body);
  border-radius: 10px;
  transition: color 0.25s, background-color 0.25s;
}
.im-rf-tabs a:hover { color: var(--rf-ink); background: rgba(11, 18, 32, 0.05); }
.im-rf-tabs a.is-current { color: var(--rf-ink); }
.im-rf-tabs a.is-current::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--rf-blue);
}

.im-rf-result {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px 64px;
  align-items: end;
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: clamp(26px, 3vw, 36px);
  border-top: 1px solid var(--rf-line-2);
}
.im-rf-crumb { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(16px, 2vw, 26px); }
.im-rf-crumb__rank {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rf-blue);
  color: #fff;
  font: 600 16px/34px var(--rf-display);
  text-align: center;
  box-shadow: 0 0 0 6px rgba(31, 94, 255, 0.12);
}
.im-rf-crumb__fav {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rf-white);
  border: 1px solid var(--rf-line);
}
.im-rf-crumb__fav img { width: 22px; height: 22px; }
.im-rf-crumb__txt { display: flex; flex-direction: column; gap: 3px; }
.im-rf-crumb__txt b { font: 600 14px/1.1 var(--rf-text); color: var(--rf-ink); }
.im-rf-crumb__txt span { font: 400 12.5px/1.1 var(--rf-mono); color: var(--rf-muted); }
.im-rf-crumb__txt i, .im-rf-res__url i { font-style: normal; padding: 0 2px; }

.im-rf-encase .im-rf-h1 {
  font-weight: 700;
  font-size: clamp(84px, 14.4vw, 214px);
  line-height: 0.84;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--rf-ink);
  margin-left: -0.04em;
}
.im-rf-h1 > span { display: block; animation: im-rf-rise 0.95s var(--rf-ease) both; }
.im-rf-h1 > .im-rf-h1__b { color: var(--rf-blue); animation-delay: 0.08s; }
@keyframes im-rf-rise { from { transform: translateY(0.2em); } to { transform: none; } }

.im-rf-result__body { padding-bottom: 0.4vw; }
.im-rf-encase .im-rf-snippet {
  font-size: clamp(17px, 1.38vw, 20px);
  line-height: 1.55;
  color: var(--rf-ink-2);
  max-width: 36ch;
}
.im-rf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.im-rf-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rf-line-2);
  border-bottom: 1px solid var(--rf-line-2);
}
.im-rf-facts li { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; }
.im-rf-facts li:first-child { padding-left: 0; }
.im-rf-facts li + li { border-left: 1px solid var(--rf-line); }
.im-rf-facts b { font: 600 clamp(28px, 2.6vw, 40px)/1 var(--rf-display); letter-spacing: -0.025em; color: var(--rf-ink); }
.im-rf-facts span { font: 500 12px/1.35 var(--rf-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rf-muted); }

/* ---------- the wall: image results, full-bleed and tilted ----------
   Twelve real client pages on a plane tipped back in 3D. Columns drift in opposite
   directions as the hero scrolls past (--p is set by im-rf-home.js; it stays 0.5,
   meaning no offset, under reduced motion or without JS). */
.im-rf-hero { padding-bottom: 0; }
.im-rf-wall {
  --p: 0.5;
  position: relative;
  height: clamp(440px, 50vw, 720px);
  margin: clamp(4px, 1vw, 16px) 0 0;
  overflow: hidden;
  overflow: clip;
  perspective: 2200px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 62%, transparent 98%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 62%, transparent 98%);
  animation: im-rf-lift 1.3s 0.15s var(--rf-ease) both;
}
@keyframes im-rf-lift { from { transform: translateY(40px); } to { transform: none; } }
.im-rf-wall__plane {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.7vw, 26px);
  transform: translate(-50%, -44%) rotateX(26deg) rotateZ(-11deg);
  transform-style: preserve-3d;
  pointer-events: none;
}
.im-rf-wall__col {
  --dir: 1;
  flex: none;
  width: clamp(128px, 16vw, 236px);
  margin-top: var(--o, 0px);
  transform: translate3d(0, calc((var(--p) - 0.5) * var(--dir) * 220px), 0);
  will-change: transform;
}
.im-rf-wall__col:nth-child(even) { --dir: -1; --o: 140px; }
.im-rf-wall__col:nth-child(3n) { --o: 64px; }
.im-rf-wall__col img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--rf-white);
  box-shadow: 0 0 0 1px rgba(11, 18, 32, 0.07), 0 34px 60px -34px rgba(11, 18, 32, 0.55);
}
.im-rf-wall__tag {
  position: absolute;
  left: var(--rf-gut);
  bottom: 40%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--rf-line);
  box-shadow: var(--rf-shadow);
  font: 500 12px/1 var(--rf-mono);
  letter-spacing: 0.06em;
  color: var(--rf-ink-2);
}
.im-rf-wall__tag b { padding: 6px 9px; border-radius: 999px; background: var(--rf-ink); color: #fff; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- logos band ---------- */
.im-rf-logos { background: var(--rf-white); border-top: 1px solid var(--rf-line); border-bottom: 1px solid var(--rf-line); }
.im-rf-logos__in {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.im-rf-logos__side { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.im-rf-encase .im-rf-logos__t { font: 500 12px/1.55 var(--rf-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rf-ink-2); }
.im-rf-pause {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--rf-line-2);
  background: var(--rf-white);
  color: var(--rf-ink);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.im-rf-pause:hover { border-color: var(--rf-ink); }
.im-rf-pause:focus-visible { outline: 2px solid var(--rf-blue); outline-offset: 3px; }
.im-rf-pause svg { width: 14px; height: 14px; }
.im-rf-pause .i-play, .im-rf-pause[aria-pressed="true"] .i-pause { display: none; }
.im-rf-pause[aria-pressed="true"] .i-play { display: inline; }
.im-rf-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.im-rf-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: im-rf-marq 72s linear infinite;
}
.im-rf-marquee:hover .im-rf-marquee__track,
.im-rf-marquee:focus-within .im-rf-marquee__track,
.im-rf-marquee.is-paused .im-rf-marquee__track { animation-play-state: paused; }
.im-rf-marquee img {
  width: auto;
  height: 40px;
  margin-right: 56px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.86;
  transition: filter 0.35s, opacity 0.35s;
}
.im-rf-marquee img.is-tall { height: 52px; }
.im-rf-marquee img.is-wide { height: 30px; }
.im-rf-marquee img:hover { filter: none; opacity: 1; }
@keyframes im-rf-marq { to { transform: translateX(-50%); } }

/* =============================================================================
   02 Knowledge panel
   ============================================================================= */
.im-rf-about { background: var(--rf-paper); }
.im-rf-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(36px, 5.5vw, 96px);
  align-items: center;
}
.im-rf-encase .im-rf-lede { margin-top: 26px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.68; max-width: 54ch; }
.im-rf-fact {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 26px;
  border-top: 1px solid var(--rf-line-2);
}
.im-rf-fact b { font: 600 clamp(56px, 6.4vw, 96px)/0.86 var(--rf-display); letter-spacing: -0.045em; color: var(--rf-ink); }
.im-rf-fact span { max-width: 24ch; padding-bottom: 6px; font: 500 12.5px/1.5 var(--rf-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rf-muted); }

.im-rf-kp {
  background: var(--rf-white);
  border: 1px solid var(--rf-line);
  border-radius: 28px;
  padding: 12px;
  box-shadow: var(--rf-shadow);
}
.im-rf-kp__media { overflow: hidden; border-radius: 20px; background: #8b8d8f; aspect-ratio: 16 / 11; }
.im-rf-kp__media img { width: 100%; height: 100%; object-fit: cover; }
.im-rf-kp__body { padding: 22px 18px 14px; }
.im-rf-kp__id {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rf-line);
}
.im-rf-kp__name { font: 500 26px/1.1 var(--rf-display); color: var(--rf-ink); letter-spacing: -0.015em; }
.im-rf-kp__type { font: 500 12px/1.3 var(--rf-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rf-muted); }
.im-rf-kp__attrs li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rf-line);
  font-size: 16px;
  line-height: 1.5;
  color: var(--rf-ink-2);
}
.im-rf-kp__attrs li::before {
  content: attr(data-k);
  padding-top: 3px;
  font: 500 12px/1.4 var(--rf-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rf-muted);
}
.im-rf-kp .im-rf-btn { margin-top: 22px; }

/* =============================================================================
   03 The climb
   ============================================================================= */
.im-rf-climb { background: var(--rf-white); }
.im-rf-steps {
  --rise: 64px;
  --gap: 32px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
}
.im-rf-step { position: relative; margin-top: calc(var(--rise) * (3 - var(--k))); padding: 34px 8px 0 24px; }
.im-rf-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: calc(100% + var(--gap));
  height: 2px;
  background: var(--rf-blue);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.6, 0, 0.2, 1) calc(var(--k) * 0.6s);
}
.im-rf-step:last-child::before { width: 100%; }
.im-rf-step::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: var(--rise);
  background: var(--rf-blue);
  transform-origin: center bottom;
  transition: transform 0.18s linear calc(var(--k) * 0.6s - 0.18s);
}
.im-rf-step:first-child::after { display: none; }
.im-rf-step__dot {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rf-white);
  border: 2px solid var(--rf-blue);
  transition: transform 0.4s var(--rf-ease) calc(var(--k) * 0.6s);
}
.im-rf-climb__one {
  position: absolute;
  right: 0;
  top: -23px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rf-blue);
  color: #fff;
  font: 600 20px/44px var(--rf-display);
  text-align: center;
  box-shadow: 0 0 0 8px rgba(31, 94, 255, 0.12);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 2.2s;
}
.im-rf-step__num { font: 500 12px/1 var(--rf-mono); letter-spacing: 0.12em; color: var(--rf-muted); }
.im-rf-encase .im-rf-step h3 { margin-top: 14px; font-weight: 500; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1; letter-spacing: -0.02em; }
.im-rf-encase .im-rf-step p { margin-top: 12px; font-size: 16px; line-height: 1.62; max-width: 32ch; }

.im-rf-js .im-rf-steps:not(.is-drawn) .im-rf-step::before { transform: scaleX(0); }
.im-rf-js .im-rf-steps:not(.is-drawn) .im-rf-step::after { transform: scaleY(0); }
.im-rf-js .im-rf-steps:not(.is-drawn) .im-rf-step__dot,
.im-rf-js .im-rf-steps:not(.is-drawn) .im-rf-climb__one { transform: scale(0); }

/* =============================================================================
   04 Organic results
   ============================================================================= */
.im-rf-svc { background: var(--rf-paper); }
.im-rf-results { border-top: 1px solid var(--rf-line-2); }
.im-rf-res {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 400px);
  gap: 24px 48px;
  align-items: center;
  padding: clamp(32px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--rf-line-2);
}
.im-rf-res__pos { align-self: start; display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.im-rf-res__pos span:first-child { font: 600 44px/0.9 var(--rf-display); letter-spacing: -0.035em; color: var(--rf-ink); }
.im-rf-res__pos span:last-child { font: 500 12px/1 var(--rf-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rf-muted); }
.im-rf-encase .im-rf-res__url { display: flex; align-items: center; gap: 4px; font: 400 13px/1.4 var(--rf-mono); color: var(--rf-muted); overflow-wrap: anywhere; }
.im-rf-encase .im-rf-res h3 { margin-top: 10px; font-weight: 500; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -0.025em; }
.im-rf-res h3 a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.5s var(--rf-ease), color 0.25s;
}
.im-rf-res:hover h3 a,
.im-rf-res h3 a:focus-visible { color: var(--rf-blue); background-size: 100% 2px; }
.im-rf-encase .im-rf-res__snip { margin-top: 14px; max-width: 58ch; font-size: 17px; line-height: 1.62; }
.im-rf-res__links { display: flex; flex-wrap: wrap; margin-top: 16px; font: 400 13px/1.6 var(--rf-mono); color: var(--rf-body); }
.im-rf-res__links li:not(:last-child)::after { content: "·"; padding: 0 12px; color: var(--rf-muted); }
.im-rf-res .im-rf-btn { margin-top: 24px; }
.im-rf-res__thumb {
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  border: 1px solid var(--rf-line);
  background: var(--bg, var(--rf-mist));
}
.im-rf-res__thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.8s var(--rf-ease); }
.im-rf-res__thumb.is-cover img { object-fit: cover; object-position: center top; }
.im-rf-res:hover .im-rf-res__thumb img { transform: scale(1.035); }

/* =============================================================================
   05 Image results
   ============================================================================= */
.im-rf-work { background: var(--rf-white); }
.im-rf-tiles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 36px 28px;
}
.im-rf-tile--lead { grid-column: span 7; grid-row: span 2; }
.im-rf-tile--feat { grid-column: span 5; }
.im-rf-tiles--mini {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 20px;
  margin-top: clamp(40px, 4.6vw, 64px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--rf-line);
}
.im-rf-tile a { display: flex; flex-direction: column; height: 100%; }
.im-rf-tile__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 20px;
  background: var(--rf-mist);
}
.im-rf-tile--lead .im-rf-tile__frame { flex: 1 1 auto; aspect-ratio: auto; min-height: 420px; }
.im-rf-tile__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.9s var(--rf-ease);
}
.im-rf-tile--feat .im-rf-tile__frame img { object-fit: cover; }
.im-rf-tile--lead .im-rf-tile__frame img { padding: 6% 4% 0; object-position: center bottom; }
.im-rf-tile--mini .im-rf-tile__frame { aspect-ratio: 4 / 3; border-radius: 14px; }
.im-rf-tile--mini .im-rf-tile__frame img { object-fit: cover; object-position: top center; }
.im-rf-tile--mini img[src*="full-sbb"] { object-position: left top; }
.im-rf-tile a:hover .im-rf-tile__frame img { transform: scale(1.03); }
.im-rf-tile__cap { display: grid; gap: 6px; padding-top: 18px; }
.im-rf-tile__cat { font: 500 12px/1.45 var(--rf-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--rf-muted); }
.im-rf-encase .im-rf-tile h3 { font-weight: 500; font-size: clamp(24px, 2vw, 30px); line-height: 1.12; letter-spacing: -0.02em; transition: color 0.25s; }
.im-rf-encase .im-rf-tile--mini h3 { font: 600 17px/1.3 var(--rf-text); letter-spacing: -0.005em; }
.im-rf-tile a:hover h3 { color: var(--rf-blue); }
.im-rf-encase .im-rf-tile__m { display: flex; align-items: flex-start; gap: 8px; font: 500 15px/1.45 var(--rf-text); color: var(--rf-ink-2); }
.im-rf-encase .im-rf-tile--mini .im-rf-tile__m { font-size: 14px; color: var(--rf-body); }
.im-rf-tile__m::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.6em; border-radius: 50%; background: var(--rf-ink); }
.im-rf-more { margin-top: clamp(40px, 4.6vw, 60px); display: flex; justify-content: flex-start; }

/* =============================================================================
   06 The terms
   ============================================================================= */
.im-rf-pay { overflow: hidden; background: var(--rf-night); color: var(--rf-night-body); }
.im-rf-pay::before {
  content: "";
  position: absolute;
  width: 1100px;
  height: 1100px;
  right: -380px;
  top: -560px;
  background: radial-gradient(closest-side, rgba(31, 94, 255, 0.3), rgba(53, 200, 255, 0.06) 55%, transparent 72%);
  pointer-events: none;
}
.im-rf-pay > .im-rf-wrap { position: relative; z-index: 1; }
.im-rf-pay .im-rf-head { border-bottom-color: var(--rf-night-line); }
.im-rf-encase .im-rf-pay .im-rf-kicker { color: #fff; }
.im-rf-pay .im-rf-head__pos { color: var(--rf-night-muted); }
.im-rf-pay__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.im-rf-encase .im-rf-pay h2 { color: #fff; }
.im-rf-encase .im-rf-pay__lead { margin-top: 24px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.66; color: var(--rf-night-body); max-width: 46ch; }
.im-rf-pay__stats { margin: 36px 0 36px; border-top: 1px solid var(--rf-night-line); }
.im-rf-pay__stats li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rf-night-line);
}
.im-rf-pay__stats li::after { content: ""; order: 2; flex: 1 1 auto; min-width: 24px; border-bottom: 1px dotted rgba(255, 255, 255, 0.28); transform: translateY(-4px); }
.im-rf-pay__stats span { order: 1; font: 500 12px/1.4 var(--rf-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rf-night-muted); }
.im-rf-pay__stats b { order: 3; font: 600 clamp(28px, 2.5vw, 38px)/1 var(--rf-display); letter-spacing: -0.03em; color: #fff; white-space: nowrap; }
.im-rf-pay__stats em { margin-left: 4px; font-style: normal; font-weight: 400; font-size: 0.5em; letter-spacing: 0; color: var(--rf-night-body); }
.im-rf-pay a:focus-visible { outline-color: var(--rf-cyan); }
.im-rf-pay__proof {
  padding: 12px;
  border-radius: 24px;
  background: var(--rf-night-2);
  border: 1px solid var(--rf-night-line);
  box-shadow: 0 60px 110px -60px rgba(0, 0, 0, 0.75);
}
.im-rf-pay__chrome { display: flex; gap: 7px; padding: 6px 6px 14px; }
.im-rf-pay__chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.im-rf-pay__proof img { width: 100%; border-radius: 14px; }
.im-rf-pay__proof figcaption { padding: 14px 6px 4px; font: 500 12px/1.4 var(--rf-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rf-night-muted); }

/* =============================================================================
   07 People also ask
   ============================================================================= */
.im-rf-paa { background: var(--rf-paper); }
.im-rf-paa__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 4.6vw, 64px); }
.im-rf-paa__side { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; column-gap: 64px; align-items: end; }
.im-rf-paa__side h2 { grid-row: 1 / span 2; align-self: start; }
.im-rf-encase .im-rf-paa__side p { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; max-width: 44ch; }
.im-rf-paa__side .im-rf-btn { justify-self: start; margin-top: 24px; }
.im-rf-encase .im-rf-paa__label {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rf-line-2);
  font: 500 12px/1 var(--rf-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rf-muted);
}
.im-rf-q { border-bottom: 1px solid var(--rf-line-2); }
.im-rf-q summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
}
.im-rf-q summary::-webkit-details-marker { display: none; }
.im-rf-encase .im-rf-q h3 {
  font: 500 clamp(18px, 1.45vw, 21px)/1.4 var(--rf-text);
  letter-spacing: -0.01em;
  color: var(--rf-ink);
  transition: color 0.25s;
}
.im-rf-q summary:hover h3 { color: var(--rf-blue); }
.im-rf-q__chev {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--rf-line-2);
  color: var(--rf-ink);
  transition: transform 0.4s var(--rf-ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.im-rf-q__chev svg { width: 15px; height: 15px; }
.im-rf-q[open] .im-rf-q__chev { transform: rotate(180deg); background: var(--rf-ink); border-color: var(--rf-ink); color: #fff; }
.im-rf-q__a { padding: 0 62px 26px 0; }
.im-rf-encase .im-rf-q__a p { max-width: 64ch; font-size: 16.5px; line-height: 1.7; }

/* =============================================================================
   08 Top stories
   ============================================================================= */
.im-rf-news { background: var(--rf-white); padding-bottom: clamp(56px, 6vw, 88px); }
.im-rf-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.im-rf-story { display: flex; flex-direction: column; height: 100%; }
.im-rf-story__img { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--rf-ink); isolation: isolate; }
.im-rf-story__img img { position: relative; z-index: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(1.04); transition: transform 0.9s var(--rf-ease); }
.im-rf-story__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, var(--rf-blue) 0%, var(--rf-blue-2) 55%, var(--rf-cyan) 100%);
  z-index: 1;
  mix-blend-mode: color;
  opacity: 0.62;
  pointer-events: none;
  transition: opacity 0.5s var(--rf-ease);
}
.im-rf-story:hover .im-rf-story__img::after { opacity: 0.4; }
.im-rf-encase .im-rf-story__src {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font: 500 12px/1 var(--rf-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rf-muted);
}
.im-rf-story__src img { width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: #fff; border: 1px solid var(--rf-line); }
.im-rf-story__src span + span::before { content: "·"; padding-right: 8px; }
.im-rf-encase .im-rf-story h3 { margin-top: 12px; font: 600 20px/1.32 var(--rf-text); letter-spacing: -0.01em; transition: color 0.25s; }
.im-rf-encase .im-rf-story__dek { margin-top: 10px; font-size: 15.5px; line-height: 1.6; }
.im-rf-story__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  font: 500 13px/1 var(--rf-mono);
  letter-spacing: 0.04em;
  color: var(--rf-ink);
}
.im-rf-story__more svg { width: 14px; height: 14px; transition: transform 0.4s var(--rf-ease); }
.im-rf-story:hover h3 { color: var(--rf-blue); }
.im-rf-story:hover .im-rf-story__img img { transform: scale(1.035); }
.im-rf-story:hover .im-rf-story__more svg { transform: translateX(3px); }

/* ---------- page one ---------- */
.im-rf-pages { background: var(--rf-white); padding-bottom: clamp(64px, 7vw, 104px); }
.im-rf-pages__in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: clamp(40px, 4.6vw, 56px);
  border-top: 1px solid var(--rf-line);
}
.im-rf-pages ol { display: flex; align-items: center; gap: 4px; font: 500 14px/1 var(--rf-mono); color: var(--rf-muted); }
.im-rf-pages li { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.im-rf-pages li.is-on { background: var(--rf-blue); color: #fff; box-shadow: 0 0 0 6px rgba(31, 94, 255, 0.12); }
.im-rf-encase .im-rf-pages__note { font: 500 clamp(20px, 2vw, 26px)/1.2 var(--rf-display); letter-spacing: -0.01em; color: var(--rf-ink); }

/* ---------- rise-in (transform only; JS adds .im-rf-js unless reduced motion) ---------- */
.im-rf-js [data-rise] { transition: transform 1s var(--rf-ease); }
.im-rf-js [data-rise]:not(.is-in) { transform: translate3d(0, 28px, 0); }

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 1099px) {
  .im-rf-res { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 300px); gap: 20px 32px; }
  .im-rf-paa__grid, .im-rf-pay__grid { grid-template-columns: minmax(0, 1fr); }
  .im-rf-pay__proof { max-width: 760px; }

  /* climb becomes a vertical rail; each step draws its own segment as it scrolls in */
  .im-rf-steps { grid-template-columns: minmax(0, 1fr); row-gap: 44px; max-width: 640px; padding: 0 0 56px 48px; }
  .im-rf-step { margin-top: 0; padding: 0; }
  .im-rf-step::before { left: -26px; top: 6px; width: 2px; height: calc(100% + 44px); transform-origin: center top; transition-duration: 0.7s; transition-delay: 0s; }
  .im-rf-step:last-child::before { width: 2px; height: calc(100% + 26px); }
  .im-rf-step::after { display: none; }
  .im-rf-step__dot { left: -31px; top: 1px; transition-delay: 0s; }
  .im-rf-climb__one { left: -47px; right: auto; top: auto; bottom: -70px; transition-delay: 0.55s; }
  .im-rf-js .im-rf-steps:not(.is-drawn) .im-rf-step::before,
  .im-rf-js .im-rf-steps:not(.is-drawn) .im-rf-step__dot,
  .im-rf-js .im-rf-steps:not(.is-drawn) .im-rf-climb__one { transform: none; }
  .im-rf-js .im-rf-steps .im-rf-step:not(.is-on)::before { transform: scaleY(0); }
  .im-rf-js .im-rf-steps .im-rf-step:not(.is-on) .im-rf-step__dot,
  .im-rf-js .im-rf-steps .im-rf-step:not(.is-on) .im-rf-climb__one { transform: scale(0); }
}

@media (min-width: 700px) and (max-width: 1099px) {
  .im-rf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; max-width: none; }
  .im-rf-step::before { height: 100%; }
  .im-rf-step:last-child::before { height: calc(100% + 26px); }
}

@media (max-width: 860px) {
  .im-rf-result { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .im-rf-result__body { padding-bottom: 0; }
  .im-rf-encase .im-rf-snippet { max-width: 46ch; }
  .im-rf-paa__side { grid-template-columns: minmax(0, 1fr); }
  .im-rf-paa__side h2 { grid-row: auto; }
  .im-rf-encase .im-rf-paa__side p { margin-top: 20px; }
  .im-rf-intro { grid-template-columns: minmax(0, 1fr); }
  .im-rf-about__grid { grid-template-columns: minmax(0, 1fr); }
  .im-rf-logos__in { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .im-rf-tiles { grid-template-columns: minmax(0, 1fr); }
  .im-rf-tile--lead, .im-rf-tile--feat { grid-column: auto; grid-row: auto; }
  .im-rf-tile--lead .im-rf-tile__frame { flex: none; aspect-ratio: 5 / 5.2; min-height: 0; }
  .im-rf-tiles--mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .im-rf-tiles--mini li:last-child { grid-column: 1 / -1; }
  .im-rf-tiles--mini li:last-child .im-rf-tile__frame { aspect-ratio: 16 / 9; }
  .im-rf-stories { grid-template-columns: minmax(0, 1fr); }
  .im-rf-res {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas: "pos main" "thumb thumb";
    gap: 20px 16px;
  }
  .im-rf-res__pos { grid-area: pos; }
  .im-rf-res__main { grid-area: main; }
  .im-rf-res__thumb { grid-area: thumb; }
  .im-rf-res__pos span:first-child { font-size: 32px; }
}

@media (max-width: 640px) {
  .im-rf-hero { padding-top: 104px; }
  .im-rf-bar { gap: 10px; }
  .im-rf-query { flex: 1 1 100%; min-height: 52px; padding: 8px 18px 8px 16px; }
  .im-rf-encase .im-rf-query__text { font-size: 14.5px; }
  .im-rf-tabs a { height: 40px; padding: 0 10px; font-size: 12.5px; }
  .im-rf-tabs a.is-current::after { left: 10px; right: 10px; }
  .im-rf-encase .im-rf-h1 { font-size: clamp(80px, 31vw, 150px); }
  .im-rf-actions .im-rf-btn { flex: 1 1 auto; }
  .im-rf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .im-rf-facts li { padding: 18px 16px; }
  .im-rf-facts span { letter-spacing: 0.04em; }
  .im-rf-facts li:nth-child(odd) { padding-left: 0; }
  .im-rf-facts li:nth-child(3) { border-left: 0; }
  .im-rf-facts li:nth-child(n + 3) { border-top: 1px solid var(--rf-line); }
  .im-rf-wall { height: 460px; }
  .im-rf-wall__tag { bottom: 40%; gap: 8px; padding: 7px 12px 7px 7px; font-size: 11px; letter-spacing: 0.01em; white-space: nowrap; }
  .im-rf-wall__tag b { padding: 5px 8px; }
  .im-rf-marquee img { height: 32px; margin-right: 40px; }
  .im-rf-marquee img.is-tall { height: 42px; }
  .im-rf-marquee img.is-wide { height: 24px; }
  .im-rf-kp { border-radius: 22px; padding: 8px; }
  .im-rf-kp__media { border-radius: 16px; }
  .im-rf-kp__body { padding: 18px 12px 10px; }
  .im-rf-kp__attrs li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .im-rf-kp .im-rf-btn { width: 100%; }
  .im-rf-res { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pos" "main" "thumb"; }
  .im-rf-res__pos { flex-direction: row; align-items: baseline; gap: 12px; }
  .im-rf-pay__stats { margin: 30px 0; }
  .im-rf-pay .im-rf-btn, .im-rf-paa__side .im-rf-btn, .im-rf-more .im-rf-btn { width: 100%; }
  .im-rf-q__a { padding-right: 0; }
  .im-rf-pages li { width: 30px; height: 30px; }
  .im-rf-pages ol { gap: 2px; font-size: 13px; }
}

@media (max-width: 360px) {
  .im-rf-pages li { width: 26px; height: 26px; }
  .im-rf-pages ol { gap: 0; font-size: 12px; }
}

/* ---------- reduced motion: everything static and readable ---------- */
@media (prefers-reduced-motion: reduce) {
  .im-rf-encase *,
  .im-rf-encase *::before,
  .im-rf-encase *::after { animation: none !important; transition: none !important; }
  .im-rf-marquee { -webkit-mask-image: none; mask-image: none; }
  .im-rf-marquee__track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 20px; }
  .im-rf-marquee__track [aria-hidden="true"] { display: none; }
  .im-rf-pause { display: none; }
}
