:root {
  --rpf-font-display: 'Libre Franklin', 'Source Sans 3', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --rpf-font-text: 'Source Sans 3', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --rpf-ink: #0B0B0B;
  --rpf-ink-text: #0E1720;
  --rpf-muted: #4C5765;
  --rpf-label: #6B6B6B;
  --rpf-rule: #D3D8E0;
  --rpf-paper: #F4F3F1;
  --rpf-white: #FEFEFC;
  --rpf-size-body: clamp(16px, 0.9rem + 0.6vw, 18px);
  --rpf-size-body-lg: clamp(17px, 0.95rem + 0.7vw, 19.5px);
  --rpf-size-label: 13.5px;
  --rpf-header-h: 104px;
  --rpf-ease: cubic-bezier(.2, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--rpf-header-h);
}

body {
  margin: 0;
  background: var(--rpf-white);
  color: var(--rpf-ink-text);
  font-family: var(--rpf-font-text);
  font-size: var(--rpf-size-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--rpf-font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; }

a { color: var(--rpf-ink-text); text-decoration: none; }
a:hover { color: var(--rpf-label); }
:focus-visible { outline: 2px solid var(--rpf-ink); outline-offset: 3px; }

.rpf-skip {
  position: absolute;
  left: -9999px;
}
.rpf-skip:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: var(--rpf-ink);
  color: var(--rpf-white);
  padding: 12px 18px;
  border-radius: 2px;
}

/* ---------- layout ---------- */
.rpf-shell {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding: 80px 24px;
}
.rpf-split {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.rpf-split__aside { flex: 0 1 150px; min-width: 150px; }
.rpf-split__body { flex: 1 1 560px; min-width: 0; display: grid; gap: 28px; }
.rpf-section { border-top: 1px solid var(--rpf-rule); }
.rpf-section--paper { background: var(--rpf-paper); }
.rpf-section--ink { background: var(--rpf-ink); color: var(--rpf-white); }
.rpf-heading-block { display: grid; gap: 14px; }
.rpf-eyebrow {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--rpf-ink);
}
.rpf-section--ink .rpf-eyebrow { color: var(--rpf-paper); }
.rpf-h2 { font-size: clamp(26px, 3.4vw, 36px); }
.rpf-lede { font-size: var(--rpf-size-body); color: var(--rpf-muted); max-width: 64ch; }
.rpf-section--ink .rpf-lede { color: var(--rpf-paper); }
.rpf-note {
  font-size: 16px;
  color: var(--rpf-muted);
  border-left: 2px solid var(--rpf-ink);
  padding-left: 14px;
  max-width: 66ch;
}

/* ---------- buttons ---------- */
.rpf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 2px;
  font-size: var(--rpf-size-body);
  font-weight: 600;
  background: var(--rpf-ink);
  color: var(--rpf-white);
  border: 1px solid var(--rpf-ink);
  transition: background-color 140ms var(--rpf-ease), color 140ms var(--rpf-ease);
}
.rpf-btn:hover { background: #262626; color: var(--rpf-white); }
.rpf-btn:active { transform: scale(.99); background: #000; }
.rpf-btn--light { background: var(--rpf-white); color: var(--rpf-ink); border-color: var(--rpf-white); }
.rpf-btn--light:hover { background: var(--rpf-paper); color: var(--rpf-ink); }
.rpf-btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}
.rpf-btn--ghost-light:hover { background: #fff; color: var(--rpf-ink); }
.rpf-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }

/* ---------- header ---------- */
.rpf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--rpf-white);
  border-bottom: 1px solid var(--rpf-rule);
  transition: background-color 220ms var(--rpf-ease), border-color 220ms var(--rpf-ease);
}
.rpf-header[data-stuck="0"] { background: transparent; border-bottom-color: transparent; }
.rpf-header__row {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.rpf-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rpf-brand img { height: 46px; width: auto; flex: 0 0 auto; display: block; }
.rpf-brand__text { display: grid; gap: 3px; min-width: 0; }
.rpf-brand__mark {
  font-family: "Times New Roman", Times, "Liberation Serif", serif;
  font-weight: 700;
  font-size: 29px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.rpf-brand__sub {
  font-size: var(--rpf-size-label);
  letter-spacing: 0.02em;
  color: var(--rpf-muted);
  line-height: 1.35;
}
.rpf-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.rpf-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--rpf-muted);
}
.rpf-nav a.rpf-btn { color: var(--rpf-white); }
.rpf-burger {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: none;
  border: 1px solid var(--rpf-rule);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
}
.rpf-burger span { display: grid; gap: 5px; width: 20px; }
.rpf-burger span span { display: block; height: 1.5px; background: var(--rpf-ink); }

@media (max-width: 1000px) {
  .rpf-burger { display: inline-flex; }
  .rpf-nav { display: none; width: 100%; order: 3; padding-top: 8px; }
  .rpf-nav[data-open="1"] { display: grid; gap: 2px; }
  .rpf-nav[data-open="1"] a {
    width: 100%;
    font-size: 20px;
    color: var(--rpf-ink-text);
    border-top: 1px solid var(--rpf-rule);
    min-height: 52px;
  }
  .rpf-nav[data-open="1"] a.rpf-btn {
    justify-content: center;
    border-top: 0;
    margin-top: 10px;
    color: var(--rpf-white);
    font-size: 17px;
  }
  .rpf-header__row { flex-wrap: wrap; }
}

/* ---------- hero ---------- */
.rpf-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--rpf-ink);
}
.rpf-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--rpf-ink);
  transition: transform 120ms linear;
}
.rpf-hero__bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rpf-hero__veil { position: absolute; inset: 0; background: rgba(11, 11, 11, .66); z-index: -1; }
.rpf-hero__inner {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding: 80px 24px 88px;
  display: grid;
  gap: 22px;
  max-inline-size: 1140px;
}
.rpf-hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 20ch;
  color: #fff;
}
.rpf-hero p { font-size: var(--rpf-size-body-lg); color: #E4E2DE; max-width: 62ch; }

/* ---------- areas ---------- */
.rpf-areas { display: grid; }
.rpf-area {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 0;
  border-top: 1px solid var(--rpf-rule);
  min-width: 0;
}
.rpf-area--last { border-bottom: 1px solid var(--rpf-rule); }
.rpf-area__num {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--rpf-label);
  flex: 0 0 40px;
  padding-top: 6px;
}
.rpf-area__body { flex: 1 1 420px; min-width: 0; display: grid; gap: 12px; }
.rpf-area__body h3 { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.18; }
.rpf-area__body p { font-size: var(--rpf-size-body); color: var(--rpf-muted); max-width: 66ch; }
.rpf-tags { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.rpf-tags li {
  font-size: var(--rpf-size-label);
  letter-spacing: 0.02em;
  color: var(--rpf-muted);
  border: 1px solid var(--rpf-rule);
  border-radius: 2px;
  padding: 5px 9px;
}

/* ---------- situations ---------- */
.rpf-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.rpf-case {
  display: flex;
  gap: 16px;
  padding: 20px 24px 20px 0;
  border-top: 1px solid var(--rpf-rule);
}
.rpf-case__num {
  font-size: var(--rpf-size-label);
  letter-spacing: 0.02em;
  color: var(--rpf-label);
  padding-top: 3px;
}
.rpf-case p { font-size: var(--rpf-size-body); line-height: 1.55; }

/* ---------- office (ink) ---------- */
.rpf-pillars {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.rpf-pillar {
  display: grid;
  gap: 8px;
  align-content: start;
  border-top: 2px solid rgba(255, 255, 255, .38);
  padding-top: 18px;
}
.rpf-pillar h3 { font-size: clamp(19px, 1.5vw, 22px); color: #fff; }
.rpf-pillar p { font-size: var(--rpf-size-body); color: var(--rpf-paper); }
.rpf-credentials {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding-top: 24px;
}
.rpf-credentials strong { display: block; font-size: var(--rpf-size-body-lg); color: #fff; }
.rpf-credentials span {
  font-size: var(--rpf-size-label);
  letter-spacing: 0.02em;
  color: var(--rpf-paper);
  line-height: 1.7;
}

/* ---------- gallery ---------- */
.rpf-gallery { display: grid; gap: 24px; border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 40px; }
.rpf-gallery__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rpf-ink);
  border: 1px solid rgba(255, 255, 255, .22);
  outline-offset: 3px;
  touch-action: pan-y;
}
.rpf-gallery__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms var(--rpf-ease);
}
.rpf-gallery__frame img[data-active] { opacity: 1; }
.rpf-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 11, .72);
  color: var(--rpf-white);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 2px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  font-family: var(--rpf-font-text);
}
.rpf-gallery__nav:hover { background: var(--rpf-ink); }
.rpf-gallery__nav--prev { left: 16px; }
.rpf-gallery__nav--next { right: 16px; }
.rpf-gallery__dots { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rpf-gallery__dot {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.rpf-gallery__dot i {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, .38);
  transition: background-color 140ms var(--rpf-ease);
}
.rpf-gallery__dot[aria-current="true"] i { background: var(--rpf-white); }
.rpf-gallery__status {
  font-size: var(--rpf-size-label);
  letter-spacing: 0.02em;
  color: var(--rpf-paper);
  margin-left: 8px;
}

/* ---------- lawyer ---------- */
.rpf-lawyer { display: flex; gap: 56px; flex-wrap: wrap; align-items: center; }
.rpf-lawyer__media { flex: 1 1 360px; min-width: 0; position: relative; }
.rpf-lawyer__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--rpf-ink);
  border: 1px solid var(--rpf-rule);
  will-change: transform;
}
.rpf-lawyer__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.rpf-lawyer__corner {
  position: absolute;
  left: -14px;
  bottom: -14px;
  width: 120px;
  height: 120px;
  border-left: 1px solid var(--rpf-ink);
  border-bottom: 1px solid var(--rpf-ink);
  pointer-events: none;
}
.rpf-lawyer__body { flex: 1 1 420px; min-width: 0; display: grid; gap: 20px; }
.rpf-lawyer__body h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
.rpf-lawyer__body p { font-size: var(--rpf-size-body-lg); line-height: 1.62; color: var(--rpf-muted); max-width: 60ch; }

/* ---------- faq ---------- */
.rpf-faq { display: grid; }
.rpf-faq__item { border-top: 1px solid var(--rpf-rule); }
.rpf-faq__item:last-child { border-bottom: 1px solid var(--rpf-rule); }
.rpf-faq__q {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--rpf-font-display);
  font-weight: 600;
  font-size: clamp(20px, 1.7vw, 23px);
  line-height: 1.25;
  color: var(--rpf-ink-text);
}
.rpf-faq__sign { font-family: var(--rpf-font-text); font-size: 20px; color: var(--rpf-label); flex: 0 0 auto; }
.rpf-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms var(--rpf-ease);
}
.rpf-faq__item[data-open="1"] .rpf-faq__a { grid-template-rows: 1fr; }
.rpf-faq__a > div { overflow: hidden; }
.rpf-faq__a p { padding: 0 0 22px; font-size: var(--rpf-size-body); line-height: 1.62; color: var(--rpf-muted); max-width: 66ch; }

/* ---------- footer ---------- */
.rpf-footer {
  background: var(--rpf-ink);
  color: var(--rpf-paper);
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.rpf-footer__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.rpf-footer__col { display: grid; gap: 14px; align-content: start; }
.rpf-footer__col h2 {
  font-size: var(--rpf-size-label);
  letter-spacing: 0.02em;
  color: var(--rpf-white);
  font-weight: 600;
}
.rpf-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rpf-footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 16px;
  color: rgba(254, 254, 252, .8);
  transition: color 140ms var(--rpf-ease);
}
.rpf-footer__col a:hover { color: var(--rpf-white); }
.rpf-footer__brand { justify-items: start; }
.rpf-footer__brand img { height: 64px; width: auto; display: block; }
.rpf-footer__brand span { font-size: var(--rpf-size-label); letter-spacing: 0.02em; line-height: 1.7; max-width: 26ch; }
.rpf-footer__legal {
  display: grid;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding-top: 32px;
}
.rpf-footer__legal p { font-size: 17px; line-height: 1.95; width: 100%; max-width: none; text-align: left; word-spacing: normal; overflow-wrap: break-word; }
.rpf-footer__legal p strong { color: var(--rpf-white); }
.rpf-footer__legal .rpf-footer__disclaimer { font-size: 15px; color: #E4E2DE; max-width: none; }
.rpf-footer__copy { font-size: var(--rpf-size-label); letter-spacing: 0.02em; color: #E4E2DE; line-height: 1.8; }

/* ---------- floating action ---------- */
.rpf-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  min-height: 48px;
  padding: 0 18px;
  font-size: 15px;
  border-color: var(--rpf-white);
}

/* ---------- reveal ---------- */
.rpf-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 620ms var(--rpf-ease), transform 620ms var(--rpf-ease);
}
.rpf-reveal[data-shown] { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: 70ms; }
[data-d="2"] { transition-delay: 140ms; }
[data-d="3"] { transition-delay: 210ms; }
[data-d="4"] { transition-delay: 280ms; }
[data-d="5"] { transition-delay: 350ms; }
[data-d="6"] { transition-delay: 420ms; }
.rpf-area__body h3 { opacity: 1 !important; transform: none !important; clip-path: none !important; }
h1.rpf-reveal, h2.rpf-reveal, h3.rpf-reveal {
  clip-path: none;
  transition: opacity 760ms var(--rpf-ease), transform 760ms var(--rpf-ease), clip-path 900ms var(--rpf-ease);
}
h1.rpf-reveal[data-shown], h2.rpf-reveal[data-shown], h3.rpf-reveal[data-shown] { clip-path: inset(0 0 -12% 0); }

/* no JS: everything visible */
.rpf-no-js .rpf-reveal { opacity: 1; transform: none; clip-path: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rpf-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .rpf-hero__bg, .rpf-lawyer__frame { transform: none !important; }
  * { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* Applied only after an observer has been attached successfully. */
.rpf-reveal[data-rpf-pending] { opacity: 0; transform: translate3d(0,14px,0); }
h1.rpf-reveal[data-rpf-pending], h2.rpf-reveal[data-rpf-pending], h3.rpf-reveal[data-rpf-pending] { clip-path: inset(0 0 108% 0); }
@media (prefers-reduced-motion: reduce) {
 .rpf-reveal[data-rpf-pending] { opacity:1; transform:none; clip-path:none; }
}
body.admin-bar .rpf-header { top:32px; }
@media (max-width:782px) { body.admin-bar .rpf-header { top:46px; } }
@media (max-width:600px) { body.admin-bar .rpf-header { top:0; } }
.rpf-shell article + article { margin-top:32px; }

/* Mobile refinement — 1.0.1. Desktop keeps the approved layout. */
.rpf-float__icon { display:none; flex-shrink:0; }
@media (max-width:1000px) {
 .rpf-header__row { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:12px; padding:12px 16px; }
 .rpf-brand { min-width:0; gap:10px; }
 .rpf-brand img { width:40px; height:auto; }
 .rpf-brand__mark { font-size:26px; }
 .rpf-brand__sub { font-size:12px; line-height:1.35; letter-spacing:0; }
 .rpf-burger { width:44px; height:44px; grid-column:2; grid-row:1; }
 .rpf-nav { grid-column:1 / -1; width:100%; min-width:0; max-height:calc(100dvh - 130px); overflow-y:auto; }
}
@media (max-width:760px) {
 .rpf-float { width:52px; height:52px; min-height:52px; padding:0; border-radius:50%; right:max(12px,env(safe-area-inset-right)); bottom:calc(12px + env(safe-area-inset-bottom)); }
 .rpf-float__icon { display:block; }
 .rpf-float__label { display:none; }
 .rpf-footer { padding-bottom:calc(64px + env(safe-area-inset-bottom)); }
}

/* Readability and units — 1.0.2 */
.rpf-footer__units { display: grid; gap: 18px; padding-block: 12px; }
.rpf-footer__units h2 { font-size: 22px; line-height: 1.4; color: var(--rpf-white); }
.rpf-footer__unit-list { display: grid; gap: 18px; }
/* Facade image is already treated; no additional color filter. */

/* Section headings aligned with the content — 1.0.5 */
.rpf-section-title { font-weight: 700; line-height: 1.2; }
.rpf-section--ink .rpf-section-title { color: var(--rpf-white); }
.rpf-section-aligned { display: block; }
@media (min-width: 795px) {
  .rpf-section-aligned > .rpf-split__body { margin-left: 186px; }
}
.rpf-social-link { display: inline-flex; align-items: center; gap: 9px; }
.rpf-social-link svg { flex-shrink: 0; }

/* Institutional name matches the units heading — 1.0.7 */
.rpf-footer__company-name { font-size: 22px; line-height: 1.4; font-weight: 700; }
