:root {
  color-scheme: light;
  --ink: #24262d; --ink-2: #1d1f25; --paper: #ece8e0; --paper-2: #f5f2ec; --line: #cfc9bd;
  --muted: #5d5f66; --brand: #e7472f; --brand-ink: #c2341e;
  --display: "Archivo", "Albert Sans", sans-serif; --sans: "Albert Sans", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.rf { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.rf::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.rf a { color: inherit; }
.rf :focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.rf-wrap { width: min(1360px, calc(100% - 40px)); margin-inline: auto; }
.rf-mono { font-family: var(--mono); }
.rf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rf-skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; }
.rf-skip:focus { left: 12px; }
.rf-kicker { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-ink); }
.rf-kicker--light, .rf-hero .rf-kicker { color: #f47a63; }

/* header */
.rf-header { position: sticky; top: 0; z-index: 50; background: rgba(236,232,224,.93); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.rf-header__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.rf-logo img { display: block; width: clamp(150px, 18vw, 210px); height: auto; }
.rf-nav { display: flex; flex-wrap: wrap; gap: 4px 2px; margin-left: auto; }
.rf-nav a { position: relative; padding: 8px 12px; font-size: 14px; font-weight: 500; text-decoration: none; }
.rf-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.rf-nav a:hover::after, .rf-nav a[aria-current="page"]::after { transform: scaleX(1); }

.rf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; border: 1px solid transparent; font: 600 14px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .25s; }
.rf-btn:hover { transform: translateY(-2px); }
.rf-btn--primary { background: var(--brand-ink); color: #fff; }
.rf-btn--primary:hover { background: #ad2c18; }
.rf-btn--ghost { border-color: rgba(245,242,236,.4); color: var(--paper-2); }
.rf-btn--line { border-color: var(--ink); background: transparent; color: var(--ink); }
.rf-btn--line:hover { background: var(--ink); color: var(--paper-2); }

/* hero */
.rf-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper-2); padding: 28px 0 64px; isolation: isolate; }
.rf-hero__grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(245,242,236,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(245,242,236,.06) 1px, transparent 1px); background-size: 64px 64px; }
.rf-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--brand) 30%, var(--brand) 70%, transparent); transform: translateX(-100%); animation: rf-sweep 6s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes rf-sweep { to { transform: translateX(100%); } }
.rf-hero h1 { margin: 0; font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: clamp(3rem, 11vw, 9.5rem); line-height: .9; letter-spacing: -.04em; animation: rf-rise .9s var(--ease) both; }
.rf-hero h1.rf-hero__title--detail { font-size: clamp(2rem, 5.4vw, 4.6rem); line-height: 1; max-width: 22ch; overflow-wrap: anywhere; hyphens: auto; }
.rf-hero__lead { max-width: 62ch; margin: 24px 0 0; color: rgba(245,242,236,.78); font-size: clamp(1rem, 1.6vw, 1.2rem); animation: rf-rise .9s .1s var(--ease) both; }
.rf-archive-source { margin: 14px 0 0; color: rgba(245,242,236,.62); font-size: 13px; }
.rf-archive-source a { color: var(--paper-2); text-underline-offset: 3px; }
.rf-hero__logo { display: inline-flex; margin-bottom: 20px; padding: 14px 18px; background: var(--paper-2); }
.rf-hero__logo img { display: block; width: 220px; height: 64px; max-width: 60vw; object-fit: contain; }
@keyframes rf-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.rf-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 48px 0 0; border-top: 1px solid rgba(245,242,236,.2); }
.rf-stats div { padding: 18px 18px 0 0; border-right: 1px solid rgba(245,242,236,.12); }
.rf-stats div + div { padding-left: 18px; }
.rf-stats div:last-child { border-right: 0; }
.rf-stats dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(245,242,236,.6); }
.rf-stats dd { margin: 4px 0 0; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }

.rf-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 40px; padding: 0; list-style: none; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.rf-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.rf-crumbs--light { color: rgba(245,242,236,.7); }
.rf-crumbs a { text-decoration: none; } .rf-crumbs a:hover { color: #f47a63; }

/* tools */
.rf-archive { padding: 40px 0 88px; }
.rf-tools { position: sticky; top: 76px; z-index: 20; display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin-bottom: 28px; padding: 16px; background: var(--paper-2); border: 1px solid var(--line); }
.rf-tools[hidden] { display: none; }
.rf-field { display: grid; gap: 6px; min-width: 200px; }
.rf-field--grow { flex: 1 1 300px; }
.rf-field label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rf-field input, .rf-field select { min-height: 46px; padding: 10px 12px; border: 1px solid #a9a397; border-radius: 0; background: #fbfaf7; color: var(--ink); font: 500 15px var(--sans); }
.rf-field input:focus, .rf-field select:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.rf-count { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--muted); }

/* grid & card */
.rf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rf-grid[hidden] { display: none; }
.rf-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.rf-card[hidden] { display: none; }
.rf-card__link { position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 22px 20px; text-decoration: none; transition: background-color .3s var(--ease); }
.rf-card__link::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.rf-card__link:hover { background: #fbfaf7; }
.rf-card__link:hover::before, .rf-card__link:focus-visible::before { transform: scaleY(1); }
.rf-card__no { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.rf-card__year { position: absolute; top: 22px; right: 22px; font-size: 11px; color: var(--brand-ink); }
.rf-card__head { min-height: 4.6em; margin: 14px 0 18px; }
.rf-card__name { margin: 0; font-family: var(--display); font-stretch: 100%; font-weight: 800; font-size: 1.22rem; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; hyphens: auto; }
.rf-card__name--small { margin-top: 10px; font-size: .95rem; font-weight: 700; }
.rf-logo-slot { display: flex; align-items: center; justify-content: center; height: 84px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); }
.rf-logo-slot img { display: block; width: 100%; height: 60px; object-fit: contain; }
.rf-card__spec { display: grid; gap: 0; margin: 0 0 18px; font-size: 13.5px; }
.rf-card__spec div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); }
.rf-card__spec dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.rf-card__spec dd { margin: 0; overflow-wrap: anywhere; }
.rf-card__more { margin-top: auto; font-weight: 600; font-size: 13.5px; color: var(--brand-ink); }
.rf-card__more span { display: inline-block; transition: transform .3s var(--ease); }
.rf-card__link:hover .rf-card__more span { transform: translateX(4px); }

.rf-empty { padding: 56px 28px; border: 1px dashed #a9a397; background: var(--paper-2); text-align: center; }
.rf-empty[hidden] { display: none; }
.rf-empty p { max-width: 52ch; margin: 0 auto 20px; }

/* detail */
.rf-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding: 56px 0 40px; }
.rf-sheet { background: var(--paper-2); border: 1px solid var(--line); }
.rf-sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; padding: 18px 24px; border-bottom: 2px solid var(--ink); }
.rf-sheet__head h2 { margin: 0; font-family: var(--display); font-stretch: 112%; font-size: 1.5rem; }
.rf-sheet__head span { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.rf-sheet__list { margin: 0; }
.rf-sheet__list div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.rf-sheet__list dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.rf-sheet__list dd { margin: 0; font-size: 1.05rem; font-weight: 500; overflow-wrap: anywhere; }
.rf-source { margin: 0; padding: 16px 24px; font-size: 13.5px; color: var(--muted); }
.rf-source a { color: var(--brand-ink); font-weight: 600; overflow-wrap: anywhere; }
.rf-side { display: flex; flex-direction: column; gap: 24px; }
.rf-sols { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.rf-sols a { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s var(--ease); }
.rf-sols a:hover { padding-left: 8px; }
.rf-sols strong { font-family: var(--display); font-size: 1.1rem; }
.rf-sols a:hover strong { color: var(--brand-ink); }
.rf-sols span { font-size: 13.5px; color: var(--muted); }
.rf-back { display: inline-flex; gap: 8px; align-self: start; padding: 12px 0; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--brand); }
.rf-related { padding: 32px 0 88px; }
.rf-related__head h2 { margin: 0 0 24px; font-family: var(--display); font-stretch: 112%; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.02em; }
.rf-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* cta & footer */
.rf-cta { background: var(--ink-2); color: var(--paper-2); border-top: 3px solid var(--brand); }
.rf-cta__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; padding: 56px 0; }
.rf-cta h2 { margin: 0 0 10px; font-family: var(--display); font-stretch: 112%; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; }
.rf-cta p { margin: 0; color: rgba(245,242,236,.72); }
.rf-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.rf-footer { background: var(--ink); color: rgba(245,242,236,.75); padding: 56px 0 104px; font-size: 14px; }
.rf-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(245,242,236,.14); }
.rf-footer__logo { width: 190px; height: auto; filter: brightness(0) invert(.94); }
.rf-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rf-footer a { text-decoration: none; } .rf-footer a:hover { color: #f47a63; }
.rf-footer address { font-style: normal; display: grid; gap: 8px; align-content: start; }
.rf-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; font-size: 12px; color: rgba(245,242,236,.55); }

.rf-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; gap: 8px; }
.rf-float__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 18px; background: var(--brand-ink); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 10px 24px rgba(29,31,37,.25); transition: transform .25s var(--ease); }
.rf-float__btn:hover { transform: translateY(-2px); }
.rf-float__btn--wa { background: #075e54; }
.rf-float__btn svg { width: 18px; height: 18px; fill: currentColor; }
.rf-float__btn:focus-visible { outline: 3px solid var(--paper-2); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }

@media (max-width: 1080px) {
  .rf-header__call { display: none; }
  .rf-detail { grid-template-columns: 1fr; }
  .rf-grid--three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .rf-header__in { flex-wrap: wrap; gap: 6px; padding: 10px 0; min-height: 0; }
  .rf-nav { margin: 4px 0 0; width: 100%; overflow: visible; flex-wrap: wrap; gap: 0 4px; }
  .rf-nav a { white-space: nowrap; font-size: 13px; }
  .rf-tools { position: static; }
  .rf-field { min-width: 0; flex: 1 1 100%; }
  .rf-stats { grid-template-columns: 1fr 1fr; }
  .rf-stats div:nth-child(2) { border-right: 0; }
  .rf-stats div:nth-child(3) { padding-left: 0; }
  .rf-sheet__list div { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
  .rf-sheet__head, .rf-source { padding-inline: 18px; }
  .rf-grid--three, .rf-cta__in, .rf-footer__grid { grid-template-columns: 1fr; }
  .rf-cta__actions { justify-content: flex-start; }
  .rf-float { left: 0; right: 0; bottom: 0; padding: 10px 12px; background: rgba(236,232,224,.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .rf-float__btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
