/* =========================================================
   RentFinder case study — dark theme
   Matches the portfolio's global tokens while keeping
   RentFinder's yellow / green brand palette as accents.
   Self-contained: this page does NOT load style.css.
   ========================================================= */

:root {
  /* Portfolio tokens (identical to style.css) */
  --ink: #F5F3EE;
  --ink-soft: #C4C7D1;
  --muted: #868B99;
  --paper: #0A0A0E;
  --paper-raise: #15161C;
  --line: #262832;
  --gold: #E2A93E;
  --gold-deep: #F0BE5C;
  --navy-deep: #060609;

  /* RentFinder brand accents */
  --rf-yellow: #FFE174;
  --rf-green: #597766;
  --rf-green-light: #84B777;
  --rf-tan: #CFB48B;
  --rf-grey: #656872;
  --rf-ink: #363B44;
  --rf-band: #12211B;        /* deep green band on dark */
  --rf-band-line: #27453A;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --container: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; color: var(--ink); }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: clamp(80px, 9vw, 128px) 0; }
.section.tight-top { padding-top: 0; }
.section + .section { padding-top: clamp(80px, 9vw, 128px); }

/* ---------- Header ---------- */
.rf-header {
  position: sticky; top: 0; z-index: 100; padding: 20px 0;
  background: rgba(10, 10, 14, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.rf-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rf-logo { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.rf-logo span { color: var(--gold); }
.rf-nav {
  display: flex; align-items: center; gap: 4px;
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: 100px; padding: 5px;
}
.rf-nav a {
  padding: 9px 18px; border-radius: 100px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  transition: background .2s ease, color .2s ease;
}
.rf-nav a:hover, .rf-nav a.active { background: var(--ink); color: var(--paper); }
.rf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; padding: 11px 22px; border-radius: 100px;
  border: 1px solid #3A3D49; color: var(--ink); background: transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.rf-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); transform: translateY(-2px); }
.header-cta { display: flex; align-items: center; gap: 14px; }

/* ---------- Hero ---------- */
.rf-hero {
  background: linear-gradient(160deg, #16241D 0%, #101A16 55%, var(--paper) 100%);
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
}
.rf-hero::after {
  content: ""; position: absolute; right: -6%; top: -20%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,225,116,.14), transparent 68%);
}
.rf-hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding-top: 70px; }
.rf-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.rf-eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--gold-deep); }
.rf-hero h1 { font-size: clamp(36px, 5.4vw, 60px); margin-bottom: 22px; }
.rf-hero-rule { width: 62px; height: 3px; background: var(--rf-yellow); border-radius: 3px; margin-bottom: 24px; }
.rf-hero-desc { font-size: 17px; max-width: 460px; color: var(--ink-soft); margin-bottom: 36px; }
.rf-hero-meta { display: flex; gap: 54px; flex-wrap: wrap; padding-bottom: 70px; }
.rf-hero-meta span.l { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 5px; font-weight: 700; }
.rf-hero-meta span.v { font-family: var(--font-display); font-size: 18px; }
.rf-hero-visual { align-self: center; }
.rf-hero-visual img { width: 100%; max-width: 500px; margin-left: auto; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 900px) {
  .rf-hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .rf-hero-meta { padding-bottom: 40px; }
  .rf-hero-visual img { margin: 0 auto; }
}

/* ---------- Bands ---------- */
.band-green { background: var(--rf-band); border-top: 1px solid var(--rf-band-line); border-bottom: 1px solid var(--rf-band-line); }
.band-raise { background: var(--paper-raise); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.center-title { text-align: center; font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; }
.center-lead { text-align: center; max-width: 800px; margin: 0 auto 56px; font-size: 16.5px; color: var(--ink-soft); line-height: 1.7; }
.mini-title { text-align: center; font-size: 23px; margin: 72px 0 34px; }

/* Section kicker — small numbered label above each title */
.kicker {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rf-yellow); margin-bottom: 16px;
}
.kicker::before, .kicker::after { content: ""; width: 26px; height: 1px; background: rgba(255,225,116,.45); }

/* ---------- Cards ---------- */
.rf-card { background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; }
.band-green .rf-card, .band-raise .rf-card { background: rgba(255,255,255,.04); border-color: var(--rf-band-line); }
.rf-card h2 { font-size: 24px; margin-bottom: 14px; }
.rf-card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.card-rule { width: 48px; height: 3px; background: var(--rf-yellow); border-radius: 3px; margin-bottom: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .two-col, .three-col { grid-template-columns: 1fr; } }

.dot-list li { position: relative; padding-left: 20px; margin-bottom: 10px; color: var(--ink-soft); font-size: 15px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--rf-yellow); }

/* ---------- Our Rule (4 process cards) ---------- */
.rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rule-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .25s, border-color .25s;
}
.rule-card:hover { transform: translateY(-4px); border-color: #3A3D49; }
.rule-num {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 17px; margin-bottom: 16px; color: var(--navy-deep);
}
.n1 { background: var(--rf-yellow); }
.n2 { background: var(--rf-green-light); }
.n3 { background: var(--rf-tan); }
.n4 { background: #A8C8E8; }
.rule-card h3 { font-size: 19px; margin-bottom: 10px; }
.rule-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
@media (max-width: 1000px) { .rule-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rule-grid { grid-template-columns: 1fr; } }

/* ---------- Research stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card { background: rgba(255,255,255,.04); border: 1px solid var(--rf-band-line); border-radius: var(--radius); padding: 26px; text-align: center; }
.stat-card .big { font-family: var(--font-display); font-size: 30px; color: var(--rf-yellow); display: block; margin-bottom: 6px; }
.stat-card span.lbl { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 800px) { .stat-strip { grid-template-columns: 1fr; } }

.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.q-item { display: flex; gap: 14px; align-items: flex-start; }
.q-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,225,116,.14); border: 1px solid rgba(255,225,116,.32);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--rf-yellow);
}
.q-item p { margin: 0; font-size: 15px; color: var(--ink-soft); padding-top: 3px; }
@media (max-width: 800px) { .q-grid { grid-template-columns: 1fr; } }

/* ---------- Insight stats ---------- */
.insight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.insight-card { background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.insight-pct { font-family: var(--font-display); font-size: 32px; color: var(--rf-yellow); margin-bottom: 4px; }
.insight-bar { height: 6px; border-radius: 6px; background: var(--line); margin-bottom: 16px; overflow: hidden; }
.insight-bar i { display: block; height: 100%; border-radius: 6px; background: var(--rf-green-light); }
.insight-card h4 { font-size: 17px; margin-bottom: 8px; }
.insight-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }
@media (max-width: 1000px) { .insight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .insight-grid { grid-template-columns: 1fr; } }

/* ---------- Problems & solutions ---------- */
.ps-list { display: grid; gap: 14px; }
.ps-row {
  display: grid; grid-template-columns: 44px 1fr 1fr; gap: 22px; align-items: start;
  background: rgba(255,255,255,.04); border: 1px solid var(--rf-band-line);
  border-radius: var(--radius); padding: 22px 24px;
}
.ps-num { font-family: var(--font-display); font-size: 20px; color: var(--rf-yellow); }
.ps-problem { font-size: 15.5px; color: var(--ink); font-weight: 600; }
.ps-solution { font-size: 14.5px; color: var(--ink-soft); position: relative; padding-left: 22px; }
.ps-solution::before { content: "→"; position: absolute; left: 0; color: var(--rf-green-light); font-weight: 700; }
@media (max-width: 860px) { .ps-row { grid-template-columns: 34px 1fr; } .ps-solution { grid-column: 2; padding-left: 22px; } }

/* ---------- Competitive analysis ---------- */
.comp-table { background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.comp-row { display: grid; grid-template-columns: 180px 1fr 1fr 1fr; gap: 24px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.comp-row:last-child { border-bottom: 0; }
.comp-head { background: rgba(255,255,255,.04); font-weight: 800; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.comp-name { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.comp-logo {
  width: 100%; max-width: 140px; aspect-ratio: 5/2;
  background: rgba(255,255,255,.05); border: 1px dashed #3A3D49; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted); text-align: center; margin-bottom: 12px; padding: 6px;
}
.comp-row ul li { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; padding-left: 16px; position: relative; }
.comp-row ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--rf-green-light); }
.comp-opp li::before { background: var(--rf-yellow); }
@media (max-width: 1000px) { .comp-row { grid-template-columns: 1fr; gap: 12px; } .comp-head { display: none; } }

/* ---------- Persona ---------- */
.persona-card { display: grid; grid-template-columns: 300px 1fr; background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; }
.persona-photo img { width: 100%; height: 100%; object-fit: cover; }
.persona-body { padding: 34px 32px; }
.persona-body h3 { font-size: 26px; margin-bottom: 2px; }
.persona-role { font-size: 14.5px; color: var(--muted); display: block; margin-bottom: 18px; }
.persona-facts { display: flex; gap: 34px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.persona-facts div span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.persona-facts div strong { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { font-size: 12.5px; padding: 6px 14px; border-radius: 100px; background: rgba(132,183,119,.14); border: 1px solid rgba(132,183,119,.3); color: var(--rf-green-light); }
.persona-quote {
  background: linear-gradient(135deg, var(--rf-yellow), #E8C84F); color: #2A2410;
  border-radius: var(--radius-sm); padding: 20px 22px;
  font-family: var(--font-display); font-style: italic; font-size: 16.5px; margin-bottom: 24px;
}
.persona-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.persona-cols h4 { font-size: 15px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--rf-yellow); display: inline-block; }
.persona-cols li { font-size: 14px; }
@media (max-width: 900px) {
  .persona-card { grid-template-columns: 1fr; }
  .persona-photo img { max-height: 320px; }
  .persona-cols { grid-template-columns: 1fr; }
}

/* ---------- Journey map ---------- */
.journey-scroll { overflow-x: auto; padding-bottom: 8px; }
.journey-grid { display: grid; grid-template-columns: repeat(6, minmax(210px, 1fr)); gap: 16px; min-width: 1080px; }
.journey-col { background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.journey-head { padding: 16px 18px; font-family: var(--font-display); font-size: 15.5px; color: var(--navy-deep); text-align: center; }
.jh1 { background: #BFE3C4; } .jh2 { background: #F6C7C7; } .jh3 { background: #EFE7A8; }
.jh4 { background: #F7CFA4; } .jh5 { background: #AEE8E2; } .jh6 { background: #E3C9EF; }
.journey-body { padding: 18px; flex: 1; }
.journey-body p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 12px; }
.journey-feel { border-top: 1px solid var(--line); padding: 14px 18px; font-size: 13px; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; }
.journey-feel .emo { font-size: 19px; line-height: 1; }

/* ---------- Style guide ---------- */
.type-showcase { text-align: center; background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 46px 30px; margin-bottom: 26px; }
.type-showcase .big-type { font-family: var(--font-display); font-size: clamp(44px, 9vw, 96px); letter-spacing: .04em; color: var(--rf-yellow); line-height: 1; margin-bottom: 18px; }
.type-showcase p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; font-size: 15px; }
.swatch-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.swatch { border-radius: var(--radius-sm); padding: 18px 16px; min-height: 116px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid rgba(255,255,255,.08); }
.swatch strong { font-size: 13px; font-weight: 800; }
.swatch span { font-size: 12px; opacity: .8; }
.swatch.on-dark { color: #fff; }
.swatch.on-light { color: #2A2410; }
.swatch.primary { grid-column: span 2; min-height: 140px; }
@media (max-width: 900px) { .swatch-row { grid-template-columns: repeat(3, 1fr); } .swatch.primary { grid-column: span 3; } }
@media (max-width: 520px) { .swatch-row { grid-template-columns: repeat(2, 1fr); } .swatch.primary { grid-column: span 2; } }

.placeholder-box {
  border: 1px dashed #3A3D49; border-radius: var(--radius);
  background: rgba(255,255,255,.03); padding: 46px 24px; text-align: center;
  color: var(--muted); font-size: 14px;
}

/* ---------- Split feature (filters / details) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy h3 { font-size: 22px; margin-bottom: 14px; }
.split-copy p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 16px; }
.split img { border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 26px; } .split.reverse .split-copy { order: 0; } }

/* ---------- Image frames ---------- */
.frame {
  background: #FFFFFF; border-radius: var(--radius);
  padding: clamp(16px, 2.4vw, 32px); overflow-x: auto;
  box-shadow: 0 34px 70px -36px rgba(0,0,0,.8);
}
.frame img { border-radius: 6px; margin: 0 auto; }
.frame--warm { background: #FFFAF4; }
.band-green .frame, .band-raise .frame { box-shadow: 0 34px 70px -36px rgba(0,0,0,.85); }
/* Screens that already carry their own soft background */
.shot img { border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1); }
.bleed-img img { width: 100%; }
.bleed-wrap { position: relative; }
.bleed-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,14,.7), rgba(10,10,14,0) 30%, rgba(10,10,14,.5)); pointer-events: none; }
.bleed-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: center; padding-top: 46px; }
.bleed-overlay h2 { font-size: clamp(26px, 3.4vw, 38px); }

/* ---------- Solutions grid ---------- */
.solutions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.solutions-grid > div { background: rgba(255,255,255,.04); border: 1px solid var(--rf-band-line); border-radius: var(--radius-sm); padding: 20px 22px; font-size: 14.5px; color: var(--ink-soft); }
.solutions-grid strong { color: var(--ink); }
@media (max-width: 800px) { .solutions-grid { grid-template-columns: 1fr; } }

/* ---------- Takeaways ---------- */
.takeaway-card { border-radius: var(--radius); padding: 30px; }
.tk-1 { background: #1F1B0C; border: 1px solid #4A3F15; }
.tk-2 { background: #12211B; border: 1px solid var(--rf-band-line); }
.tk-3 { background: var(--paper-raise); border: 1px solid var(--line); }
.takeaway-card h3 { font-size: 21px; margin-bottom: 14px; }
.tk-1 h3 { color: var(--rf-yellow); }
.tk-2 h3 { color: var(--rf-green-light); }
.tk-3 h3 { color: var(--gold-deep); }
.takeaway-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---------- Thanks ---------- */
.thanks { text-align: center; padding: 80px 0 96px; }
.thanks h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.thanks p { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.thanks a.mail { font-family: var(--font-display); font-size: 20px; color: var(--gold-deep); }

/* ---------- Next projects ---------- */
.next-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.next-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, border-color .25s; display: block; }
.next-card:hover { transform: translateY(-4px); border-color: #3A3D49; }
.next-card .tag2 { font-size: 12.5px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 8px; }
.next-card h4 { font-size: 18px; }
@media (max-width: 860px) { .next-projects { grid-template-columns: 1fr; } }

/* ---------- Footer — identical to the homepage ---------- */
.eyebrow {
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--gold-deep); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 100px; border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-primary { background: transparent; color: var(--ink); border-color: #3A3D49; }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #3A3D49; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }

.site-footer {
  background: var(--navy-deep);
  color: #EDEBE3;
  margin-top: 120px;
  padding: 100px 0 40px;
}
.footer-cta { text-align: center; max-width: 640px; margin: 0 auto 70px; }
.footer-cta .eyebrow { color: var(--gold); }
.footer-cta .eyebrow::before { background: var(--gold); }
.footer-cta h2 { color: #FFFFFF; font-size: clamp(32px, 5vw, 52px); margin: 18px 0 16px; }
.footer-cta p { color: #B7BCC9; font-size: 17px; margin-bottom: 32px; }
.footer-cta .btn-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.footer-cta .btn-primary { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.footer-cta .btn-primary:hover { background: #fff; border-color: #fff; }
.footer-cta .btn-ghost { border-color: #4C5568; color: #EDEBE3; }
.footer-cta .btn-ghost:hover { background: #EDEBE3; color: var(--navy-deep); }

.footer-bottom {
  border-top: 1px solid #232E42; padding-top: 30px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; font-size: 14px; color: #8891A3;
  margin-top: 0;
}
.footer-social { display: flex; gap: 22px; }
.footer-social a { color: #C7CBD6; font-weight: 600; transition: color .2s; }
.footer-social a:hover { color: var(--gold); }


/* =========================================================
   Mobile navigation — hamburger + slide-down panel
   ========================================================= */
.rf-header { position: sticky; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: border-color .2s ease;
}
.nav-toggle:hover { border-color: #3A3D49; }
.nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .3s cubic-bezier(.22,.68,.28,1), opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--rf-yellow); outline-offset: 3px; }
.nav-cta-mobile { display: none; }

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .rf-nav.site-nav {
    display: flex !important;
    position: absolute;
    top: 100%; left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper-raise);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 26px 50px -22px rgba(0,0,0,.75);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .28s ease, transform .28s cubic-bezier(.22,.68,.28,1), visibility .28s;
    width: auto;
  }
  .rf-nav.site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .rf-nav.site-nav a {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15.5px;
    text-align: left;
  }
  .rf-nav.site-nav a:hover, .rf-nav.site-nav a.active { background: var(--ink); color: var(--paper); }
  .rf-nav.site-nav .nav-cta-mobile {
    display: block;
    margin-top: 6px;
    background: var(--rf-yellow);
    color: var(--navy-deep);
    font-weight: 700;
    text-align: center;
  }
  .rf-nav.site-nav .nav-cta-mobile:hover { background: var(--rf-yellow); color: var(--navy-deep); opacity: .9; }
}

/* Tighter gutters on small screens */
@media (max-width: 600px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
}


/* ---------- Mobile refinements ---------- */
html, body { overflow-x: clip; max-width: 100%; }  /* clip, not hidden — keeps position:sticky working */
img, svg { max-width: 100%; height: auto; }

@media (max-width: 780px) {
  .section { padding: 64px 0; }
  .site-footer { margin-top: 70px; padding: 70px 0 34px; }
  .footer-cta { margin-bottom: 46px; }
  .footer-cta .btn-row .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .center-lead { margin-bottom: 36px; }
  .mini-title { margin: 46px 0 24px; }
}
