/* ============================================================================
   RESI ONLINE — Editorial Luxury Redesign
   Aesthetic: refined editorial real-estate catalog. Generous whitespace,
   confident serif display type, restrained palette, image-first storytelling.
   ============================================================================ */

:root {
  /* Palette — RESI brand: blue + lime green + white */
  --c-bg:        #ffffff;   /* primary surface: pure white */
  --c-bg-soft:   #e8eff9;   /* soft blue tint (matches admin header) */
  --c-bg-tint:   #f4f7fc;   /* even softer blue for very subtle sections */
  --c-ink:       #1f1e26;   /* deep blue-navy body text */
  --c-ink-soft:  #525968;   /* muted blue-gray for secondary text */
  --c-line:      #d6e1f0;   /* soft blue divider line */
  --c-brand:     #3a69b1;   /* RESI brand blue (logo wordmark) */
  --c-brand-dk:  #2d5290;
  --c-brand-lt:  #6b8fcb;
  --c-accent:    #c0d717;   /* RESI lime green (logo roof accent) */
  --c-accent-dk: #a8bd0e;
  --c-white:     #ffffff;
  --c-dark:      #1f1e26;   /* used where 'black' would be too harsh */

  /* Type */
  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max:    1320px;
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Container */
.rx-container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Reusable type */
.rx-eyebrow {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.rx-eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--c-accent);
}
.rx-display {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0;
}
.rx-display em { font-style: italic; color: var(--c-brand); font-weight: 400; }

/* Buttons */
.rx-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all .35s cubic-bezier(.2,.7,.2,1);
  cursor: pointer;
}
.rx-btn--primary  { background: var(--c-brand); color: var(--c-white); }
.rx-btn--primary:hover { background: var(--c-brand-dk); }
.rx-btn--ghost    { background: transparent;    color: var(--c-white); border-color: rgba(255,255,255,.5); }
.rx-btn--ghost:hover { background: var(--c-white); color: var(--c-ink); border-color: var(--c-white); }
.rx-btn--outline  { background: transparent;    color: var(--c-brand); border-color: var(--c-brand); }
.rx-btn--outline:hover { background: var(--c-brand); color: var(--c-white); }
.rx-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.rx-icon--arrow { width: 18px; height: 18px; transition: transform .35s ease; }
.rx-btn:hover .rx-icon--arrow { transform: translateX(6px); }
.rx-card__visit .rx-icon--arrow { width: 14px; height: 14px; transition: transform .3s ease; }
.rx-card:hover .rx-card__visit .rx-icon--arrow { transform: translateX(4px); }

/* ============================================================================
   HEADER — single white bar, sticky, refined
   ============================================================================ */
.rx-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
/* Scrolled state — solid white with blur + subtle bottom border */
.rx-header.is-scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--c-line);
}
/* When mobile drawer is open, force the solid state for clarity */
.rx-header.is-menu-open {
  background: var(--c-bg-soft);
  border-bottom-color: transparent;
}
.rx-header .rx-container { max-width: 1260px; }
.rx-header__inner > * { flex-shrink: 0; }
.rx-nav__list a,
.rx-header__cta,
.rx-header__contact span,
.rx-header__contact a { white-space: nowrap; }
.rx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

/* === Logo: always show its original colors and size === */
.rx-logo img {
  height: 56px;
  width: auto;
  display: block;
}

.rx-nav { display: flex; align-items: center; gap: 22px; }
.rx-nav__list {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* === Nav text: white over hero, dark when scrolled === */
.rx-nav__list a {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-white);
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color .35s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.rx-header.is-scrolled .rx-nav__list a,
.rx-header.is-menu-open .rx-nav__list a {
  color: var(--c-ink);
  text-shadow: none;
}
.rx-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--c-white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .35s ease;
}
.rx-header.is-scrolled .rx-nav__list a::after { background: var(--c-brand); }
.rx-nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }

/* === Contact strip: white over hero, dark when scrolled === */
.rx-header__contact {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 500;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,0.35);
  color: var(--c-white);
  transition: color .35s ease, border-color .35s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.rx-header.is-scrolled .rx-header__contact {
  border-left-color: var(--c-line);
  color: var(--c-ink-soft);
  text-shadow: none;
}
.rx-header__contact span { display: inline-flex; align-items: center; gap: 7px; }
.rx-header__contact a { transition: color .35s ease; color: var(--c-white); }
.rx-header.is-scrolled .rx-header__contact a { color: var(--c-ink); }
.rx-header__contact a:hover,
.rx-header.is-scrolled .rx-header__contact a:hover { color: var(--c-brand); }
.rx-header__contact .rx-icon {
  width: 13px; height: 13px;
  color: var(--c-white);
  flex-shrink: 0;
  transition: color .35s ease;
}
.rx-header.is-scrolled .rx-header__contact .rx-icon { color: var(--c-brand); }

/* === CTA button: keep brand blue in both states, just add a subtle ring on transparent === */
.rx-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--c-brand);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background .25s ease, border-color .35s ease;
}
.rx-header.is-scrolled .rx-header__cta { border-color: transparent; }
.rx-header__cta:hover { background: var(--c-brand-dk); color: var(--c-white); }

/* === Body must reserve space because header is now fixed === */
body { padding-top: 0; }
.rx-hero { margin-top: 0; }  /* hero sits flush under transparent header */

/* Burger */
.rx-burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  position: relative;
  transition: border-color .35s ease;
}
.rx-header.is-scrolled .rx-burger,
.rx-header.is-menu-open .rx-burger { border-color: var(--c-line); }
.rx-burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--c-white);
  transition: transform .3s ease, opacity .3s ease, top .3s ease, background .35s ease;
}
.rx-header.is-scrolled .rx-burger span,
.rx-header.is-menu-open .rx-burger span { background: var(--c-ink); }
.rx-burger span:nth-child(1) { top: 15px; }
.rx-burger span:nth-child(2) { top: 21px; }
.rx-burger span:nth-child(3) { top: 27px; }
.rx-burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.rx-burger.is-open span:nth-child(2) { opacity: 0; }
.rx-burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile nav drawer */
.rx-mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--c-bg-soft);
  z-index: 99;
  padding: 90px 28px 32px;
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.6,0,.2,1);
  overflow-y: auto;
}
.rx-mobile-drawer.is-open { transform: translateY(0); }
.rx-mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.rx-mobile-drawer li { border-bottom: 1px solid var(--c-line); }
.rx-mobile-drawer li a {
  display: block;
  padding: 20px 0;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color .25s ease;
}
.rx-mobile-drawer li a:hover { color: var(--c-brand); }
.rx-mobile-drawer li.is-cta {
  border-bottom: none;
  margin-top: 20px;
}
.rx-mobile-drawer li.is-cta a {
  background: var(--c-brand);
  color: var(--c-white);
  padding: 16px 22px;
  text-align: center;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.16em;
}
.rx-mobile-drawer li.is-cta a:hover { background: var(--c-brand-dk); color: var(--c-white); }
.rx-mobile-drawer__footer {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
  font-size: 14px;
  color: var(--c-ink-soft);
}
.rx-mobile-drawer__footer a { color: var(--c-brand); font-weight: 500; }
.rx-mobile-drawer__footer p { margin: 12px 0; display: flex; align-items: center; gap: 12px; }
.rx-mobile-drawer__footer .rx-icon { width: 16px; height: 16px; color: var(--c-brand); flex-shrink: 0; }

/* ============================================================================
   HERO — editorial format: large image, asymmetric caption, slide indicator
   ============================================================================ */
.rx-hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  max-height: 900px;
  overflow: hidden;
  background: var(--c-dark);
}
.rx-hero__slides {
  position: absolute; inset: 0;
}
.rx-hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.rx-hero__slide.is-active { opacity: 1; }
.rx-hero__slide::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(31,30,46,.78) 0%, rgba(45,82,144,.45) 45%, rgba(45,82,144,.10) 100%),
    linear-gradient(to top, rgba(31,30,46,.55) 0%, rgba(31,30,46,0) 60%);
}
.rx-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding-bottom: 80px;
}
.rx-hero__copy { max-width: 740px; color: var(--c-white); }
.rx-hero__eyebrow {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-white);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.4);
  margin-bottom: 28px;
}
.rx-hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 32px;
}
.rx-hero__title em { font-style: italic; color: var(--c-accent); font-weight: 400; }
.rx-hero__cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Slide indicator (right side, vertical) */
.rx-hero__indicator {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.rx-hero__dot {
  width: 36px;
  height: 2px;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  padding: 12px 0;
  position: relative;
  transition: background .3s ease;
}
.rx-hero__dot::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%; height: 2px;
  background: rgba(255,255,255,.3);
  transform: translateY(-50%);
  transition: background .3s ease, width .5s ease;
}
.rx-hero__dot.is-active::after { background: var(--c-white); width: 60px; }
.rx-hero__dot { background: transparent; }

.rx-hero__counter {
  position: absolute;
  left: var(--gutter);
  top: 120px;
  z-index: 2;
  color: var(--c-white);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.rx-hero__counter span:first-child { font-size: 18px; }

/* ============================================================================
   ABOUT — magazine spread: large quote left, image collage right
   ============================================================================ */
.rx-about {
  padding: clamp(70px, 12vw, 140px) 0;
  background: var(--c-bg);
}
.rx-about__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.rx-about__copy .rx-eyebrow { margin-bottom: 28px; }
.rx-about__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  color: var(--c-ink);
}
.rx-about__title em { font-style: italic; color: var(--c-brand); font-weight: 400; }
.rx-about__lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--c-ink-soft);
  margin: 0 0 36px;
  max-width: 540px;
}
.rx-about__visual {
  position: relative;
  width: 100%;
}
.rx-about__visual--main {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.rx-about__stat {
  position: absolute;
  left: -32px;
  bottom: 32px;
  background: var(--c-brand);
  color: var(--c-white);
  padding: 24px 32px;
  z-index: 3;
  border-bottom: 4px solid var(--c-accent);
  box-shadow: 0 12px 40px rgba(58,105,177,.25);
}
.rx-about__stat strong {
  display: block;
  font-family: var(--f-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--c-white);
}
.rx-about__stat span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

/* ============================================================================
   PROJECTS — refined gallery: bordered cards, no overlay clutter
   ============================================================================ */
.rx-projects {
  padding: clamp(70px, 12vw, 130px) 0;
  background: var(--c-bg-soft);
  position: relative;
}
.rx-projects::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 60px;
  background: var(--c-accent);
  transform: translateX(-50%);
}
.rx-projects__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 70px;
  flex-wrap: wrap;
}
.rx-projects__title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 16px 0 0;
  max-width: 700px;
}
.rx-projects__title em { font-style: italic; color: var(--c-brand); font-weight: 400; }
.rx-projects__intro {
  font-size: 16px;
  color: var(--c-ink-soft);
  max-width: 360px;
  margin: 0;
}

.rx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}
.rx-card { position: relative; }
.rx-card__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-bg-tint);
  border: 1px solid var(--c-line);
}
.rx-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.rx-card:hover .rx-card__media img { transform: scale(1.06); }
.rx-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(58,105,177,.45) 0%, rgba(58,105,177,0) 55%);
  opacity: 0;
  transition: opacity .4s ease;
}
.rx-card:hover .rx-card__media::after { opacity: 1; }
.rx-card__body {
  padding: 24px 4px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.rx-card__name {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  margin: 0;
  line-height: 1.15;
}
.rx-card__visit {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .25s ease;
}
.rx-card:hover .rx-card__visit { color: var(--c-brand); }
.rx-card__visit i { font-size: 10px; transition: transform .3s ease; }
.rx-card:hover .rx-card__visit i { transform: translateX(4px); }

.rx-projects__cta {
  margin-top: 70px;
  text-align: center;
}

/* ============================================================================
   CAPABILITIES — dark editorial section, numbered list
   ============================================================================ */
.rx-caps {
  padding: clamp(80px, 14vw, 160px) 0;
  background: var(--c-white);
  color: var(--c-ink);
  position: relative;
  overflow: hidden;
}
.rx-caps::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(58,105,177,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.rx-caps::after {
  content: "";
  position: absolute;
  bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(192,215,23,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.rx-caps__head {
  max-width: 700px;
  margin-bottom: 80px;
}
.rx-caps__head .rx-eyebrow { color: var(--c-accent-dk); margin-bottom: 24px; }
.rx-caps__head .rx-eyebrow::before { background: var(--c-accent); }
.rx-caps__title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--c-ink);
}
.rx-caps__title em { font-style: italic; color: var(--c-brand); font-weight: 400; }

.rx-caps__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.rx-caps__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 36px 32px 36px 0;
  border-top: 1px solid var(--c-line);
  transition: padding .3s ease;
}
.rx-caps__item:nth-child(odd) { padding-right: 48px; border-right: 1px solid var(--c-line); }
.rx-caps__item:nth-child(even) { padding-left: 48px; }
/* Top border only on the first row */
.rx-caps__item:nth-child(1),
.rx-caps__item:nth-child(2) { border-top: 1px solid var(--c-line); }
.rx-caps__num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 32px;
  color: var(--c-accent-dk);
  font-weight: 400;
  line-height: 1;
  padding-top: 4px;
}
.rx-caps__name {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-ink);
  margin: 0;
  transition: color .3s ease;
}
.rx-caps__item:hover .rx-caps__name { color: var(--c-brand); }

/* ============================================================================
   CONSULT — call-to-action banner with image
   ============================================================================ */
.rx-consult {
  padding: clamp(80px, 14vw, 150px) 0;
  background: var(--c-bg-tint);
  position: relative;
}
.rx-consult__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.rx-consult__copy { max-width: 540px; }
.rx-consult__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 24px 0 24px;
}
.rx-consult__title em { font-style: italic; color: var(--c-brand); font-weight: 400; }
.rx-consult__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink-soft);
  margin: 0 0 36px;
}
.rx-consult__channels {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--c-line);
  padding-top: 28px;
  margin-top: 32px;
}
.rx-consult__channel {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  color: var(--c-ink);
}
.rx-consult__channel .rx-icon {
  color: var(--c-brand);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.rx-consult__channel a { font-weight: 600; transition: color .25s ease; }
.rx-consult__channel a:hover { color: var(--c-brand); }

.rx-consult__visual {
  position: relative;
  aspect-ratio: 5/6;
  overflow: hidden;
}
.rx-consult__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.rx-consult__badge {
  position: absolute;
  bottom: 32px; right: 32px;
  background: var(--c-white);
  padding: 24px 28px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--c-ink);
  max-width: 240px;
  line-height: 1.3;
  box-shadow: -10px 10px 40px rgba(0,0,0,.1);
}
.rx-consult__badge strong {
  display: block;
  font-family: var(--f-sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: 8px;
}
.rx-consult__badge {
  border-left: 3px solid var(--c-accent);
}

/* ============================================================================
   FOOTER — simplified: brand + contact, slim legal strip
   ============================================================================ */
.rx-footer {
  background: var(--c-bg-soft);
  color: var(--c-ink-soft);
  padding: clamp(36px, 5vw, 50px) 0 0;
  border-top: 3px solid var(--c-accent);
}
.rx-footer .rx-container { max-width: 1260px; }
.rx-footer__main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  padding-bottom: 32px;
}
.rx-footer__brand img { width: 120px; margin-bottom: 10px; }
.rx-footer__tagline {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: var(--c-ink);
  margin: 0;
  max-width: 360px;
}
.rx-footer__contact h5 {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin: 0 0 12px;
}
.rx-footer__contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  color: var(--c-ink);
  transition: color .25s ease;
}
.rx-footer__contact-row:hover { color: var(--c-brand); }
.rx-footer__contact-row .rx-icon { width: 16px; height: 16px; color: var(--c-brand); flex-shrink: 0; }
.rx-footer__contact-row span { display: flex; flex-direction: column; line-height: 1.2; }
.rx-footer__contact-row small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin-bottom: 3px;
}
.rx-footer__contact-row strong {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
}

.rx-footer__bottom {
  border-top: 1px solid var(--c-line);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--c-ink-soft);
}
.rx-footer__legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.rx-footer__legal a {
  color: var(--c-ink-soft);
  transition: color .25s ease;
}
.rx-footer__legal a:hover { color: var(--c-brand); }

@media (max-width: 1024px) {
  .rx-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .rx-about__grid,
  .rx-consult__inner { grid-template-columns: 1fr; }
  .rx-about__visual { max-width: 560px; margin: 0 auto; }
  .rx-about__stat { left: 12px; bottom: 12px; padding: 20px 24px; }
  .rx-about__stat strong { font-size: 36px; }
  .rx-consult__visual { max-width: 480px; margin: 0 auto; }
  .rx-caps__list { grid-template-columns: 1fr; }
  .rx-caps__item,
  .rx-caps__item:nth-child(odd),
  .rx-caps__item:nth-child(even) {
    padding: 32px 0 !important;
    border-right: none !important;
  }
}

@media (max-width: 1100px) {
  .rx-header__contact span:nth-child(2) { display: none; }  /* hide email at narrower widths */
}
@media (max-width: 980px) {
  .rx-header__contact { display: none; }                     /* hide phone+email entirely */
  .rx-nav__list { gap: 16px; }
  .rx-nav__list a { font-size: 11px; }
}

@media (max-width: 768px) {
  .rx-header__contact,
  .rx-nav,
  .rx-header__cta { display: none; }
  .rx-burger { display: block; }

  .rx-hero { height: auto; min-height: auto; max-height: none; }
  .rx-hero__slide { position: relative; aspect-ratio: 4/5; opacity: 0; }
  .rx-hero__slide.is-active { opacity: 1; }
  .rx-hero__slides {
    position: relative;
    height: auto;
    inset: auto;
  }
  .rx-hero__slides > .rx-hero__slide:not(.is-active) {
    display: none;
  }
  .rx-hero__inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    grid-template-columns: 1fr;
    padding-bottom: 40px;
    padding-top: 60px;
    align-items: end;
  }
  .rx-hero__indicator { display: none; }
  .rx-hero__counter { top: 90px; }

  .rx-grid { grid-template-columns: 1fr; gap: 32px; }
  .rx-projects__head { margin-bottom: 48px; }

  .rx-footer__main { grid-template-columns: 1fr; gap: 32px; }
  .rx-footer__bottom { justify-content: center; text-align: center; flex-direction: column; gap: 12px; }
  .rx-footer__legal { justify-content: center; }
}

@media (max-width: 480px) {
  .rx-btn { padding: 14px 22px; font-size: 12px; }
}


/* ============================================================================
   WHY RESI — light section with numbered article cards
   ============================================================================ */
.rx-why {
  padding: clamp(70px, 12vw, 130px) 0;
  background: var(--c-bg-tint);
  position: relative;
}
.rx-why__head {
  max-width: 820px;
  margin: 0 0 70px;
}
.rx-why__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 24px 0 24px;
  color: var(--c-ink);
}
.rx-why__title em { font-style: italic; color: var(--c-brand); font-weight: 400; }
.rx-why__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink-soft);
  margin: 0;
  max-width: 640px;
}
.rx-why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.rx-why__item {
  background: var(--c-white);
  padding: 40px 36px;
  border-top: 3px solid var(--c-accent);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.rx-why__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(58,105,177,.12);
}
.rx-why__num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  color: var(--c-brand);
  line-height: 1;
  margin-bottom: 18px;
}
.rx-why__name {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-ink);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.rx-why__copy {
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-ink-soft);
  margin: 0;
}

/* ============================================================================
   FAQ — accordion-style native <details>
   ============================================================================ */
.rx-faq {
  padding: clamp(70px, 12vw, 130px) 0;
  background: var(--c-white);
}
.rx-faq__head {
  max-width: 820px;
  margin: 0 auto 60px;
  text-align: center;
}
.rx-faq__head .rx-eyebrow { justify-content: center; }
.rx-faq__head .rx-eyebrow::before { display: none; }
.rx-faq__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
  color: var(--c-ink);
}
.rx-faq__title em { font-style: italic; color: var(--c-brand); font-weight: 400; }

.rx-faq__list {
  max-width: 900px;
  margin: 0 auto;
}
.rx-faq__item {
  border-bottom: 1px solid var(--c-line);
}
.rx-faq__item[open] { background: var(--c-bg-tint); }
.rx-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-ink);
  transition: color .25s ease;
}
.rx-faq__q::-webkit-details-marker { display: none; }
.rx-faq__q:hover { color: var(--c-brand); }
.rx-faq__toggle {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.rx-faq__toggle::before,
.rx-faq__toggle::after {
  content: "";
  position: absolute;
  background: var(--c-brand);
  transition: transform .3s ease, opacity .3s ease;
}
.rx-faq__toggle::before {
  top: 10px; left: 0;
  width: 22px; height: 2px;
}
.rx-faq__toggle::after {
  top: 0; left: 10px;
  width: 2px; height: 22px;
}
.rx-faq__item[open] .rx-faq__toggle::after { transform: rotate(90deg); opacity: 0; }
.rx-faq__a {
  padding: 0 24px 32px;
  max-width: 780px;
}
.rx-faq__a p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin: 0;
}

@media (max-width: 768px) {
  .rx-why__grid { grid-template-columns: 1fr; gap: 20px; }
  .rx-why__item { padding: 30px 26px; }
  .rx-faq__q { font-size: 18px; padding: 22px 16px; gap: 16px; }
  .rx-faq__a { padding: 0 16px 26px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================================
   INNER PAGES — pages without a hero need top padding to clear the fixed header
   ============================================================================ */
.rx-inner-top {
  padding-top: 110px;  /* clear the 92px-tall fixed header + breathing room */
}
@media (max-width: 768px) {
  .rx-inner-top { padding-top: 90px; }
}
/* On inner pages (no hero), the header is solid by default — JS forces .is-scrolled */
.rx-header.rx-header--solid {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--c-line);
}
.rx-header.rx-header--solid .rx-nav__list a,
.rx-header.rx-header--solid .rx-header__contact,
.rx-header.rx-header--solid .rx-header__contact a {
  color: var(--c-ink);
  text-shadow: none;
}
.rx-header.rx-header--solid .rx-nav__list a::after { background: var(--c-brand); }
.rx-header.rx-header--solid .rx-header__contact { border-left-color: var(--c-line); color: var(--c-ink-soft); }
.rx-header.rx-header--solid .rx-header__contact .rx-icon { color: var(--c-brand); }
.rx-header.rx-header--solid .rx-header__cta { border-color: transparent; }
.rx-header.rx-header--solid .rx-burger { border-color: var(--c-line); }
.rx-header.rx-header--solid .rx-burger span { background: var(--c-ink); }

/* Page title block for inner pages (sits inside .rx-inner-top wrapper) */
.rx-pagetitle {
  padding: 30px 0 50px;
  text-align: left;
}
.rx-pagetitle__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent-dk);
  margin-bottom: 18px;
}
.rx-pagetitle__eyebrow::before {
  content: "";
  width: 32px; height: 2px;
  background: var(--c-accent);
}
.rx-pagetitle__title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--c-ink);
}
.rx-pagetitle__title em { font-style: italic; color: var(--c-brand); font-weight: 400; }
.rx-pagetitle__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-ink-soft);
  max-width: 720px;
  margin: 0;
}
.rx-pagetitle__crumb {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin-top: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.rx-pagetitle__crumb a { color: var(--c-brand); transition: color .25s ease; }
.rx-pagetitle__crumb a:hover { color: var(--c-brand-dk); }
.rx-pagetitle__crumb span:not(.sep) { color: var(--c-ink); font-weight: 500; }
.rx-pagetitle__crumb .sep { color: var(--c-line); }

