/* ============================================================
   Real Estate App Development  (/service/real-estate-app-development)
   Evergreen + brass on warm paper. Fraunces (display) / Manrope (body).
   `re-` prefix; reveal armed by `.re-anim` on <html>.
   Motion: drawn blueprint lines + masked headline in the hero, tilt art,
   cursor spotlight over the solutions grid, parallax banners, sticky
   photo stage driven by the types list (clip wipe), stacked case
   brochures, scroll-turned feature phone, 3D tilt trend cards, flowing
   connected-platform diagram, scanning security cards, flip-in tech
   chips, lift-shaft process, sweep-filled why cards.
   ============================================================ */

body:has(.re-page) {
  overflow-x: clip;
}

.re-page {
  --re-ink: #13241b;
  --re-ink-2: #1b3326;
  --re-green: #205827;
  --re-green-2: #2e7a3c;
  --re-sage: #e6ece2;
  --re-mist: #f1f4ee;
  --re-paper: #f7f3ec;
  --re-brass: #e3b261;
  --re-brass-lt: #f6dfae;
  --re-body: #56625b;
  --re-line: #e4ddd1;
  --re-hdr: 76px;
  --re-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --re-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --re-serif: "Fraunces", Georgia, serif;

  position: relative;
  background: #fff;
  color: var(--re-ink);
  overflow-x: clip;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
}

.re-page .container {
  max-width: 1240px;
}

.re-page :where(h1, h2, h3) {
  margin: 0;
  color: var(--re-ink);
}

.re-page :where(p, dd, dl, figure) {
  margin: 0;
}

.re-page :where(p, dd) {
  color: var(--re-body);
}

.re-page :where(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.re-page :where(img) {
  max-width: 100%;
  height: auto;
}

/* style.css forces `h1-h6, p { font-family: Gabarito !important }` site-wide */
.re-page :is(h1, h2, h3) {
  font-family: var(--re-serif) !important;
}

.re-page p {
  font-family: "Manrope", system-ui, sans-serif !important;
}

.re-page .re-hero__tag {
  font-family: var(--re-serif) !important;
}

/* Body copy is justified, except inside blocks that are centred. */
.re-page :where(p, dd) {
  text-align: justify;
  text-justify: inter-word;
}

.re-page :is(.re-head:not(.re-head--split), .re-final) :where(p) {
  text-align: center;
}

@media (max-width: 991.98px) {
  .re-page :is(.re-head--split, .re-hero__layout, .re-idea__card, .re-connect__layout) :where(p) {
    text-align: center;
  }
}

/* narrow columns: hyphenate so justified lines don't open rivers */
@media (max-width: 767.98px) {
  .re-page :where(p, dd) {
    hyphens: auto;
  }
}

.re-page strong {
  font-weight: 700;
  color: inherit;
}

.re-page :focus-visible {
  outline: 3px solid var(--re-brass);
  outline-offset: 3px;
}

/* ---------- reveal (animation, so it never leaks into hover transitions) ---------- */
@keyframes re-rise {
  from { opacity: 0; translate: 0 36px; }
  to { opacity: 1; translate: 0 0; }
}

:where(.re-anim) .re-reveal {
  opacity: 0;
}

:where(.re-anim) .re-reveal.is-in {
  animation: re-rise 0.95s var(--re-ease) both;
}

/* ---------- section furniture ---------- */
.re-sec {
  position: relative;
  padding: 110px 0;
}

.re-head {
  max-width: 860px;
  margin: 0 auto 60px;
  text-align: center;
}

.re-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 48px;
  max-width: none;
  text-align: left;
}

.re-title {
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.re-title em,
.re-hero__title em,
.re-final__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--re-green);
}

.re-title--light {
  color: #fff;
}

.re-title--light em {
  color: var(--re-brass-lt);
}

.re-sub {
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.75;
}

.re-sub + .re-sub {
  margin-top: 10px;
}

.re-head--split .re-sub {
  margin: 0;
}

.re-sub--light {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   BUTTON: label and arrow disc swap sides, ink fill sweeps in
   ============================================================ */
.re-btn {
  --re-btn-icon-w: 44px;
  --re-btn-gap: 16px;
  --re-btn-pad-l: 28px;
  --re-btn-pad-r: 8px;

  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--re-btn-gap);
  width: max-content;
  max-width: 100%;
  padding: 8px var(--re-btn-pad-r) 8px var(--re-btn-pad-l);
  border-radius: 999px;
  background: var(--re-green);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.25;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 14px 30px -14px rgba(32, 88, 39, 0.7);
  transition:
    color 0.45s var(--re-ease),
    box-shadow 0.4s var(--re-ease),
    transform 0.4s var(--re-ease),
    padding 0.55s var(--re-ease-io);
}

.re-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--re-ink);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.6s var(--re-ease-io);
}

.re-btn:hover::before,
.re-btn:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.re-btn__label {
  flex: none;
  white-space: nowrap;
  transition: transform 0.55s var(--re-ease-io);
}

.re-btn__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--re-btn-icon-w);
  height: var(--re-btn-icon-w);
  border-radius: 50%;
  background: #fff;
  color: var(--re-green);
  transition: transform 0.55s var(--re-ease-io), background 0.4s, color 0.4s;
}

.re-btn__icon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.45s var(--re-ease-io);
}

.re-btn:hover,
.re-btn:focus-visible {
  padding-left: var(--re-btn-pad-r);
  padding-right: var(--re-btn-pad-l);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -16px rgba(19, 36, 27, 0.7);
}

.re-btn:hover .re-btn__label,
.re-btn:focus-visible .re-btn__label {
  transform: translateX(calc(var(--re-btn-icon-w) + var(--re-btn-gap)));
}

/* --re-btn-label-w is published by the page script */
.re-btn:hover .re-btn__icon,
.re-btn:focus-visible .re-btn__icon {
  transform: translateX(calc(-1 * (var(--re-btn-label-w, 200px) + var(--re-btn-gap))));
  background: var(--re-brass);
  color: var(--re-ink);
}

.re-btn:hover .re-btn__icon svg,
.re-btn:focus-visible .re-btn__icon svg {
  transform: rotate(45deg);
}

.re-btn--brass {
  background: var(--re-brass);
  color: var(--re-ink);
  box-shadow: 0 14px 30px -14px rgba(227, 178, 97, 0.7);
}

.re-btn--brass::before {
  background: #fff;
}

.re-btn--brass .re-btn__icon {
  background: var(--re-ink);
  color: var(--re-brass-lt);
}

.re-btn--brass:hover,
.re-btn--brass:focus-visible {
  color: var(--re-ink);
}

.re-btn--brass:hover .re-btn__icon,
.re-btn--brass:focus-visible .re-btn__icon {
  background: var(--re-green);
  color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.re-hero {
  position: relative;
  padding: 120px 0 170px;
  overflow: clip;
  isolation: isolate;
  background:
    linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0) 80%),
    var(--re-hero-bg) right bottom / cover no-repeat,
    #fff;
}

.re-hero__plan {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.re-hero__plan path {
  fill: none;
  stroke: rgba(32, 88, 39, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s var(--re-ease-io) 0.2s;
}

.re-hero__plan circle {
  fill: var(--re-brass);
  opacity: 0;
  transition: opacity 0.6s ease 1.8s;
}

.re-hero.is-ready .re-hero__plan path {
  stroke-dashoffset: 0;
}

.re-hero.is-ready .re-hero__plan circle {
  opacity: 0.8;
}

.re-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 40px;
}

.re-hero__tag,
.re-hero__text,
.re-hero__actions {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.8s ease, translate 0.9s var(--re-ease);
}

.re-hero__title {
  margin: 0 0 22px;
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.re-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.re-line > span {
  display: inline-block;
  translate: 0 110%;
  transition: translate 1.1s var(--re-ease);
}

.re-line:nth-child(2) > span { transition-delay: 0.12s; }
.re-line:nth-child(3) > span { transition-delay: 0.24s; }

.re-hero__tag {
  max-width: 560px;
  font-family: var(--re-serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--re-ink-2);
  transition-delay: 0.45s;
}

.re-hero__text {
  max-width: 580px;
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.78;
  transition-delay: 0.55s;
}

.re-hero__actions {
  margin-top: 34px;
  transition-delay: 0.7s;
}

.re-hero.is-ready :is(.re-hero__tag, .re-hero__text, .re-hero__actions) {
  opacity: 1;
  translate: 0 0;
}

.re-hero.is-ready .re-line > span {
  translate: 0 0;
}

.re-hero__media {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  perspective: 1000px;
  opacity: 0;
  scale: 0.92;
  transition: opacity 1s ease 0.3s, scale 1.2s var(--re-ease) 0.3s;
}

.re-hero.is-ready .re-hero__media {
  opacity: 1;
  scale: 1;
}

.re-hero__art {
  position: relative;
  z-index: 1;
  display: block;
  filter: drop-shadow(0 40px 50px rgba(19, 36, 27, 0.28));
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--re-ease);
  animation: re-float 7s ease-in-out infinite;
}

@keyframes re-float {
  50% { translate: 0 -14px; }
}

.re-hero__ring {
  position: absolute;
  inset: 8% -6%;
  border: 1px dashed rgba(227, 178, 97, 0.7);
  border-radius: 50%;
  animation: re-spin 40s linear infinite;
}

.re-hero__ring::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--re-brass);
  box-shadow: 0 0 0 6px rgba(227, 178, 97, 0.2);
}

@keyframes re-spin {
  to { rotate: 360deg; }
}

/* ============================================================
   TRUST BAR (overlaps the hero)
   ============================================================ */
.re-trust {
  position: relative;
  z-index: 2;
  margin-top: -88px;
}

.re-trust__bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 34px 16px;
  border: 1px solid var(--re-line);
  border-radius: 30px;
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(227, 178, 97, 0.16), transparent 70%),
    #fff;
  box-shadow: 0 40px 70px -40px rgba(19, 36, 27, 0.55);
}

.re-trust__item {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 6px 18px;
  text-align: center;
}

.re-trust__item + .re-trust__item {
  border-left: 1px solid var(--re-line);
}

.re-trust__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--re-green);
  box-shadow: 0 0 0 6px var(--re-sage);
  transition: background 0.4s, transform 0.6s var(--re-ease);
}

.re-trust__item:hover .re-trust__icon {
  background: var(--re-brass);
  transform: rotate(-12deg) scale(1.06);
}

.re-trust__icon img {
  width: 28px;
  height: 28px;
}

.re-trust__num {
  font-family: var(--re-serif);
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1;
  color: var(--re-ink);
}

.re-trust__label {
  max-width: 220px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--re-body);
}

/* ============================================================
   SOLUTIONS: blueprint grid with cursor spotlight
   ============================================================ */
.re-sol {
  margin-top: -60px;
  padding-top: 170px;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(46, 122, 60, 0.35), transparent 70%),
    var(--re-ink);
}

.re-sol__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.re-sol__card {
  --mx: -400px;
  --my: -400px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 36px;
  background: var(--re-ink);
  isolation: isolate;
  transition: background 0.5s ease;
}

.re-sol__card:first-child {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(227, 178, 97, 0.16), transparent 60%),
    var(--re-ink);
}

.re-sol__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(227, 178, 97, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.js-spot:hover .re-sol__card::before {
  opacity: 1;
}

.re-sol__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 26px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--re-green-2), var(--re-green));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 26px -14px rgba(46, 122, 60, 0.9);
  color: #fff;
  font-size: 28px;
  transition: transform 0.6s var(--re-ease), background 0.4s;
}

.re-sol__icon img {
  width: 30px;
  height: 30px;
}

.re-sol__card:hover .re-sol__icon {
  transform: translateY(-4px) rotate(-6deg);
  background: linear-gradient(145deg, #f2c57c, var(--re-brass));
}

.re-sol__name {
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.28;
  color: #fff;
}

.re-sol__text {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.64);
}

.re-sol__card:first-child .re-sol__text {
  max-width: 460px;
  font-size: 15.5px;
}

/* blueprint corner marks draw in on hover */
.re-sol__corner {
  position: absolute;
  inset: 14px;
  pointer-events: none;
}

.re-sol__corner::before,
.re-sol__corner::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--re-brass);
  border-style: solid;
  opacity: 0;
  scale: 0.4;
  transition: opacity 0.35s ease, scale 0.5s var(--re-ease);
}

.re-sol__corner::before {
  top: 0;
  right: 0;
  border-width: 1.5px 1.5px 0 0;
  transform-origin: top right;
}

.re-sol__corner::after {
  bottom: 0;
  left: 0;
  border-width: 0 0 1.5px 1.5px;
  transform-origin: bottom left;
}

.re-sol__card:hover .re-sol__corner::before,
.re-sol__card:hover .re-sol__corner::after {
  opacity: 1;
  scale: 1;
}

/* ============================================================
   BANNER CTA (parallax photo)
   ============================================================ */
.re-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 540px;
  padding: 90px 0;
  overflow: clip;
  isolation: isolate;
}

.re-banner__media,
.re-final__media {
  --par: 0px;
  position: absolute;
  inset: -14% 0;
  z-index: -2;
  translate: 0 var(--par);
}

.re-banner__media img,
.re-final__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.re-banner__media img {
  object-position: 75% center;
}

.re-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(247, 243, 236, 0.96) 0%, rgba(247, 243, 236, 0.82) 42%, rgba(247, 243, 236, 0) 72%);
}

.re-banner__copy {
  max-width: 580px;
}

.re-banner__title {
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.re-banner__text {
  margin: 18px 0 32px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--re-ink-2);
}

/* ============================================================
   TYPES: list drives a sticky photo stage
   ============================================================ */
.re-types {
  background: var(--re-paper);
}

.re-types__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 64px;
}

.re-types__item {
  position: relative;
  padding: 24px 0 24px 32px;
  border-left: 2px solid var(--re-line);
  cursor: default;
  opacity: 0.42;
  transition: opacity 0.5s ease, border-color 0.5s ease;
}

.re-types__item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 2px;
  background: var(--re-brass);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--re-ease);
}

.re-types__item.is-on {
  opacity: 1;
}

.re-types__item.is-on::before {
  transform: scaleY(1);
}

.re-types__thumb {
  display: none;
}

.re-types__name {
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.25;
  transition: color 0.4s ease, translate 0.5s var(--re-ease);
}

.re-types__item.is-on .re-types__name {
  color: var(--re-green);
  translate: 8px 0;
}

.re-types__text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
}

.re-types__stage {
  position: sticky;
  top: calc(var(--re-hdr) + 40px);
}

.re-types__frame {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 30px;
  overflow: hidden;
  background: var(--re-sage);
  box-shadow: 0 50px 80px -50px rgba(19, 36, 27, 0.6);
}

.re-types__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  scale: 1.15;
  transition:
    clip-path 0.9s var(--re-ease-io),
    scale 1.4s var(--re-ease);
}

.re-types__shot.is-off {
  z-index: 1;
  clip-path: inset(0);
  scale: 1;
  transition: none;
}

.re-types__shot.is-on {
  z-index: 2;
  clip-path: inset(0);
  scale: 1;
}

.re-types__caption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 3;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(19, 36, 27, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.re-types__meter {
  height: 3px;
  margin: 22px 30px 0;
  border-radius: 3px;
  background: var(--re-line);
  overflow: hidden;
}

.re-types__meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--re-green), var(--re-brass));
  transform: scaleX(0);
  transform-origin: left;
}

/* ============================================================
   SUCCESS STORIES: stacked brochures
   ============================================================ */
.re-cases {
  background: #fff;
}

.re-case {
  --p: 0;
  margin-bottom: 40px;
}

.re-case:last-child {
  margin-bottom: 0;
}

.re-case__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  padding: 22px;
  border: 1px solid var(--re-line);
  border-radius: 34px;
  background: #f4ede1;
  box-shadow: 0 -20px 50px -40px rgba(19, 36, 27, 0.5);
  transform: scale(calc(1 - var(--p) * 0.06));
  transform-origin: center top;
  filter: brightness(calc(1 - var(--p) * 0.12));
}

.re-case:nth-child(2) .re-case__inner {
  border-color: #d9d6f5;
  background: #ebe9fc;
}

.re-case:nth-child(3) .re-case__inner {
  background: #f3e5da;
}

.re-case__media {
  align-self: center;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
}

.re-case__media img {
  display: block;
  width: 100%;
  transition: scale 1.2s var(--re-ease);
}

.re-case:hover .re-case__media img {
  scale: 1.05;
}

.re-case__body {
  align-self: center;
  padding: 6px 14px 6px 0;
}

.re-case__name {
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: clamp(28px, 2.8vw, 38px);
  letter-spacing: -0.02em;
}

.re-case__rows {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.re-case__row {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.re-case__row dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--re-green);
}

.re-case__row dt i {
  font-size: 16px;
}

.re-case__row dd {
  font-size: 14.6px;
  line-height: 1.6;
}

.re-case__row--problem {
  background: #fbe9e6;
}

.re-case__row--problem dt {
  color: #c2412d;
}

.re-case__row--solution {
  background: #e3f0e2;
}

.re-case__row--result {
  background: var(--re-ink);
}

.re-case__row--result dt {
  color: var(--re-brass-lt);
}

.re-case__row--result dd {
  color: rgba(255, 255, 255, 0.78);
}

/* ============================================================
   CTA 2: idea card with a phone that breaks out of the frame
   ============================================================ */
.re-idea {
  padding-top: 150px;
  background: linear-gradient(180deg, #fff 0%, var(--re-mist) 100%);
}

.re-idea__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 40px;
  padding: 64px 64px;
  border-radius: 36px;
  background: linear-gradient(130deg, var(--re-green) 0%, var(--re-ink) 75%);
  isolation: isolate;
}

.re-idea__orb {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
}

.re-idea__orb::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 178, 97, 0.45), transparent 65%);
  animation: re-drift 14s ease-in-out infinite alternate;
}

@keyframes re-drift {
  from { translate: -10% -30%; }
  to { translate: 140% 40%; }
}

.re-idea__title {
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12;
  color: #fff;
}

.re-idea__text {
  max-width: 560px;
  margin: 18px 0 32px;
  font-size: 16.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.76);
}

.re-idea__phone {
  --par: 0px;
  justify-self: center;
  width: 240px;
  margin: -140px 0 -110px;
  translate: 0 var(--par);
}

.re-idea__phone img {
  display: block;
  filter: drop-shadow(0 40px 40px rgba(0, 0, 0, 0.4));
  rotate: 6deg;
  transition: rotate 0.8s var(--re-ease);
}

.re-idea__card:hover .re-idea__phone img {
  rotate: 0deg;
}

/* ============================================================
   FEATURES: phone hub with wired cards
   ============================================================ */
.re-feat {
  padding-top: 170px;
  background: var(--re-mist);
  overflow: clip;
}

.re-feat__layout {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

/* dashed orbit behind the grid, centred on the phone */
.re-feat__layout::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78%, 760px);
  aspect-ratio: 1;
  border: 1px dashed rgba(32, 88, 39, 0.22);
  border-radius: 50%;
  translate: -50% -50%;
  animation: re-spin 80s linear infinite;
  pointer-events: none;
}

.re-feat__item {
  position: relative;
  padding: 26px 24px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 40px -32px rgba(19, 36, 27, 0.5);
  transition: border-color 0.4s ease, transform 0.5s var(--re-ease), box-shadow 0.5s ease;
}

.re-feat__item:hover {
  border-color: rgba(32, 88, 39, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -30px rgba(19, 36, 27, 0.55);
}

.re-feat__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--re-sage);
  transition: background 0.4s, transform 0.6s var(--re-ease);
}

.re-feat__item:hover .re-feat__icon {
  background: var(--re-brass-lt);
  transform: rotate(-8deg);
}

.re-feat__icon img {
  width: 26px;
  height: 26px;
}

.re-feat__name {
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
}

.re-feat__text {
  margin-top: 6px;
  font-size: 13.6px;
  line-height: 1.65;
}

.re-feat__hub {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1200px;
  pointer-events: none;
}

.re-feat__halo {
  position: absolute;
  inset: 12% -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 88, 39, 0.16), transparent 68%);
}

.re-feat__halo::before,
.re-feat__halo::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(32, 88, 39, 0.18);
  border-radius: 50%;
  animation: re-breathe 4.5s ease-in-out infinite;
}

.re-feat__halo::after {
  inset: -6%;
  animation-delay: -2.2s;
}

@keyframes re-breathe {
  50% { scale: 1.06; opacity: 0.4; }
}

.re-feat__phone {
  --turn: 0deg;
  position: relative;
  display: block;
  width: min(100%, 220px);
  filter: drop-shadow(0 40px 40px rgba(19, 36, 27, 0.3));
  transform: rotateY(var(--turn)) rotateZ(calc(var(--turn) * -0.15));
}

/* ============================================================
   REDEFINING: tilt cards on dark
   ============================================================ */
.re-trend {
  background: var(--re-ink);
  overflow: clip;
}

.re-trend__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  animation: re-pan 30s linear infinite;
}

@keyframes re-pan {
  to { background-position: 64px 64px; }
}

.re-trend__grid-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.re-trend__card {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  perspective: 900px;
}

.re-trend__inner {
  position: relative;
  height: 100%;
  padding: 34px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--re-ease), border-color 0.4s ease;
}

.re-trend__inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--gx) 0%, rgba(227, 178, 97, 0.28), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.re-trend__card:hover .re-trend__inner {
  border-color: rgba(227, 178, 97, 0.5);
}

.re-trend__card:hover .re-trend__inner::before {
  opacity: 1;
}

.re-trend__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f2c57c, var(--re-brass) 60%, #c08a3e);
  box-shadow: 0 0 0 8px rgba(227, 178, 97, 0.12);
  transform: translateZ(40px);
}

.re-trend__icon img {
  width: 26px;
  height: 26px;
}

.re-trend__name {
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  color: #fff;
  transform: translateZ(24px);
}

.re-trend__text {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.64);
}

/* ============================================================
   CTA 3: connected-platform diagram
   ============================================================ */
.re-connect {
  background: var(--re-paper);
}

.re-connect__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 60px;
}

.re-connect__copy .re-sub {
  margin-bottom: 32px;
}

.re-net {
  position: relative;
  justify-self: center;
  width: min(100%, 470px);
  aspect-ratio: 1;
}

.re-net__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.re-net__lines path {
  fill: none;
  stroke: var(--re-brass);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.re-net.is-in .re-net__lines path {
  animation:
    re-draw 1s var(--re-ease-io) 0.2s forwards,
    re-flow 1.6s linear 1.3s infinite;
}

@keyframes re-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes re-flow {
  from { stroke-dasharray: 0.04 0.035; stroke-dashoffset: 0; }
  to { stroke-dasharray: 0.04 0.035; stroke-dashoffset: -0.075; }
}

.re-net__orbit {
  fill: none;
  stroke: rgba(32, 88, 39, 0.2);
  stroke-dasharray: 3 7;
  transform-origin: center;
  animation: re-spin 50s linear infinite;
}

.re-net__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--re-ink);
  color: var(--re-brass-lt);
  font-size: 46px;
  translate: -50% -50%;
  box-shadow: 0 0 0 12px rgba(32, 88, 39, 0.1), 0 30px 50px -20px rgba(19, 36, 27, 0.6);
  scale: 0;
  transition: scale 0.8s var(--re-ease);
}

.re-net__hub::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(32, 88, 39, 0.35);
  border-radius: 50%;
  animation: re-pulse 2.6s ease-out infinite;
}

@keyframes re-pulse {
  from { scale: 1; opacity: 1; }
  to { scale: 1.6; opacity: 0; }
}

.re-net.is-in .re-net__hub {
  scale: 1;
}

.re-net__node {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 16px 30px -16px rgba(19, 36, 27, 0.45);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  translate: -50% -50%;
  opacity: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.re-net__node i {
  color: var(--re-green);
  font-size: 17px;
}

.re-net__node:hover {
  background: var(--re-green);
  color: #fff;
}

.re-net__node:hover i {
  color: var(--re-brass-lt);
}

@keyframes re-node-in {
  from { opacity: 0; scale: 0.6; }
  to { opacity: 1; scale: 1; }
}

.re-net.is-in .re-net__node {
  animation: re-node-in 0.7s var(--re-ease) both;
}

.re-net__node:nth-of-type(2) { animation-delay: 0.9s; }
.re-net__node:nth-of-type(3) { animation-delay: 1.05s; }
.re-net__node:nth-of-type(4) { animation-delay: 1.2s; }
.re-net__node:nth-of-type(5) { animation-delay: 1.35s; }
.re-net__node:nth-of-type(6) { animation-delay: 1.5s; }

/* ============================================================
   SECURITY: scanning vault cards
   ============================================================ */
.re-sec-trust {
  background: #fff;
}

.re-vault {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.re-vault__card {
  position: relative;
  padding: 40px 34px;
  border: 1px solid var(--re-line);
  border-radius: 28px;
  background: var(--re-paper);
  overflow: hidden;
  transition: transform 0.5s var(--re-ease), box-shadow 0.5s ease;
}

.re-vault__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 60px -40px rgba(19, 36, 27, 0.55);
}

.re-vault__card:nth-child(2) {
  border-color: transparent;
  background:
    radial-gradient(400px 220px at 100% 0%, rgba(227, 178, 97, 0.25), transparent 70%),
    var(--re-ink);
}

.re-vault__scan {
  position: absolute;
  inset: 0 0 auto;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(227, 178, 97, 0.22), transparent);
  translate: 0 -100%;
  pointer-events: none;
}

.re-vault__card.is-in .re-vault__scan {
  animation: re-scan 1.8s var(--re-ease-io) 0.3s;
}

@keyframes re-scan {
  to { translate: 0 260%; }
}

.re-vault__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: var(--re-green);
  color: #fff;
  font-size: 30px;
}

.re-vault__card:nth-child(2) .re-vault__icon {
  background: var(--re-brass);
  color: var(--re-ink);
}

.re-vault__name {
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.3;
}

.re-vault__card:nth-child(2) .re-vault__name {
  color: #fff;
}

.re-vault__list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.re-vault__list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--re-body);
}

.re-vault__card:nth-child(2) .re-vault__list li {
  color: rgba(255, 255, 255, 0.76);
}

.re-vault__list i {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--re-sage);
  color: var(--re-green);
  font-size: 14px;
}

.re-vault__card:nth-child(2) .re-vault__list i {
  background: rgba(227, 178, 97, 0.2);
  color: var(--re-brass-lt);
}

:where(.re-anim) .re-vault__list li {
  opacity: 0;
}

.re-vault__card.is-in .re-vault__list li {
  animation: re-tick 0.6s var(--re-ease) both;
  animation-delay: calc(0.5s + var(--j) * 0.12s);
}

@keyframes re-tick {
  from { opacity: 0; translate: -14px 0; }
  to { opacity: 1; translate: 0 0; }
}

.re-vault__card.is-in .re-vault__list i {
  animation: re-pop 0.5s var(--re-ease) both;
  animation-delay: calc(0.6s + var(--j) * 0.12s);
}

@keyframes re-pop {
  from { scale: 0; }
  60% { scale: 1.25; }
  to { scale: 1; }
}

/* ============================================================
   TECH STACK: directory board with flip-in chips
   ============================================================ */
.re-stack {
  background: var(--re-mist);
}

.re-stack__board {
  max-width: 1040px;
  margin: 0 auto;
}

.re-stack__row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--re-line);
  border-radius: 14px;
  transition: background 0.4s ease;
}

.re-stack__row:hover {
  background: #fff;
}

.re-stack__label {
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--re-green);
  transition: translate 0.4s var(--re-ease);
}

.re-stack__row:hover .re-stack__label {
  translate: 6px 0;
}

.re-stack__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  perspective: 600px;
}

.re-stack__chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 22px 7px 7px;
  border: 1px solid var(--re-line);
  border-radius: 999px;
  background: #fff;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--re-ink);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--re-ease);
}

.re-stack__chip img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
}

.re-stack__chip:hover {
  border-color: var(--re-green);
  background: var(--re-green);
  color: #fff;
  transform: translateY(-2px);
}

:where(.re-anim) .re-stack__chip {
  opacity: 0;
}

.re-stack__row.is-in .re-stack__chip {
  animation: re-flip 0.7s var(--re-ease) both;
  animation-delay: calc(0.25s + var(--j) * 0.09s);
}

@keyframes re-flip {
  from { opacity: 0; rotate: x -90deg; }
  to { opacity: 1; rotate: x 0deg; }
}

/* ============================================================
   PROCESS: lift shaft rising through the floors
   ============================================================ */
.re-proc {
  background: #fff;
}

.re-proc__tower {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.re-proc__shaft {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--re-line);
}

.re-proc__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--re-green), var(--re-brass));
  transform: scaleY(0);
  transform-origin: top;
}

.re-proc__car {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--re-ink);
  color: var(--re-brass-lt);
  font-size: 22px;
  translate: -50% -50%;
  box-shadow: 0 0 0 6px #fff, 0 16px 30px -12px rgba(19, 36, 27, 0.6);
}

.re-proc__floor {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 110px;
  padding: 26px 0;
}

.re-proc__floor::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 3px solid var(--re-line);
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.re-proc__floor.is-lit::before {
  border-color: var(--re-brass);
  background: var(--re-brass);
}

.re-proc__no {
  font-family: var(--re-serif);
  font-size: clamp(60px, 7vw, 104px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--re-line);
  transition: color 0.6s ease, -webkit-text-stroke-color 0.6s ease;
}

.re-proc__floor.is-lit .re-proc__no {
  color: var(--re-sage);
  -webkit-text-stroke-color: transparent;
}

.re-proc__floor:nth-child(odd) .re-proc__no {
  grid-column: 2;
  grid-row: 1;
}

.re-proc__floor:nth-child(odd) .re-proc__card {
  grid-column: 1;
  grid-row: 1;
}

.re-proc__floor:nth-child(even) .re-proc__no {
  justify-self: end;
}

.re-proc__card {
  padding: 30px 32px;
  border: 1px solid var(--re-line);
  border-radius: 24px;
  background: #fff;
  opacity: 0.45;
  translate: 0 20px;
  transition:
    opacity 0.6s ease,
    translate 0.7s var(--re-ease),
    border-color 0.5s ease,
    box-shadow 0.6s ease;
}

.re-proc__floor.is-lit .re-proc__card {
  opacity: 1;
  translate: 0 0;
  border-color: rgba(227, 178, 97, 0.5);
  box-shadow: 0 30px 50px -36px rgba(19, 36, 27, 0.5);
}

.re-proc__step {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--re-sage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--re-green);
}

.re-proc__name {
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
}

.re-proc__text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   WHY: cards with a rising evergreen fill
   ============================================================ */
.re-why {
  background: var(--re-paper);
}

.re-why__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.re-why__card {
  position: relative;
  padding: 32px 26px;
  border: 1px solid var(--re-line);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s ease, transform 0.5s var(--re-ease);
}

.re-why__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, var(--re-green), var(--re-ink));
  clip-path: circle(0% at 0% 0%);
  transition: clip-path 0.8s var(--re-ease-io);
}

.re-why__card:hover {
  border-color: transparent;
  transform: translateY(-6px);
}

.re-why__card:hover::before {
  clip-path: circle(150% at 0% 0%);
}

.re-why__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--re-sage);
  color: var(--re-green);
  font-size: 26px;
  transition: background 0.5s ease, color 0.5s ease, rotate 0.7s var(--re-ease);
}

.re-why__card:hover .re-why__icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  rotate: 360deg;
}

.re-why__name {
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  transition: color 0.5s ease;
}

.re-why__text {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  transition: color 0.5s ease;
}

.re-why__card:hover .re-why__name {
  color: #fff;
}

.re-why__card:hover .re-why__text {
  color: rgba(255, 255, 255, 0.78);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.re-final {
  position: relative;
  padding: 140px 0;
  overflow: clip;
  isolation: isolate;
  text-align: center;
}

.re-final::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 300px at 50% 100%, rgba(227, 178, 97, 0.3), transparent 70%),
    linear-gradient(180deg, rgba(19, 36, 27, 0.88), rgba(19, 36, 27, 0.94));
}

.re-final__inner {
  max-width: 820px;
  margin: 0 auto;
}

.re-final__title {
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}

.re-final__title em {
  color: var(--re-brass-lt);
}

.re-final__text {
  margin: 22px auto 36px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.76);
}

/* ============================================================
   FAQ
   ============================================================ */
.re-faq {
  background: #fff;
}

.re-faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 64px;
}

.re-faq__aside {
  position: sticky;
  top: calc(var(--re-hdr) + 40px);
}

.re-faq__promo {
  margin-top: 28px;
  padding: 32px 28px;
  border-radius: 26px;
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(227, 178, 97, 0.35), transparent 70%),
    var(--re-ink);
}

.re-faq__promo h3 {
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.3;
  color: #fff;
}

.re-faq__promo p {
  margin: 10px 0 24px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}

.re-faq__promo .re-btn {
  --re-btn-pad-l: 22px;
  --re-btn-gap: 12px;
  --re-btn-icon-w: 40px;
  font-size: 14.5px;
}

.re-faq__item {
  border-bottom: 1px solid var(--re-line);
}

.re-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--re-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.4;
  color: var(--re-ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.3s ease;
}

.re-faq__q::-webkit-details-marker {
  display: none;
}

.re-faq__q:hover {
  color: var(--re-green);
}

.re-faq__mark {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--re-line);
  border-radius: 50%;
  transition: background 0.3s ease, border-color 0.3s ease, rotate 0.4s var(--re-ease);
}

.re-faq__mark::before,
.re-faq__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--re-ink);
  translate: -50% -50%;
  transition: opacity 0.3s ease;
}

.re-faq__mark::after {
  rotate: 90deg;
}

.re-faq__item[open] .re-faq__mark {
  border-color: var(--re-brass);
  background: var(--re-brass);
  rotate: 180deg;
}

.re-faq__item[open] .re-faq__mark::after {
  opacity: 0;
}

.re-faq__item[open] .re-faq__a {
  animation: re-rise 0.5s var(--re-ease);
}

.re-faq__a {
  padding: 0 60px 26px 0;
  font-size: 15.5px;
  line-height: 1.78;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 992px) {
  /* each brochure sticks a little lower than the one before; the page script
     adds .is-stacking only when the tallest card fits the viewport */
  .js-stack.is-stacking .re-case {
    position: sticky;
    top: calc(var(--re-hdr) + 24px + var(--i) * 20px);
  }
}

/* features: cards sit on an ellipse around the phone. --cx/--cy (cos/sin of
   each card's angle) come from the blade; the reveal animates `translate`,
   so centring uses `transform` and the two compose. */
@media (min-width: 1200px) {
  .re-feat__layout {
    --rx: 460px;
    --ry: 290px;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    height: 760px;
  }

  .re-feat__halo {
    inset: auto;
    width: 440px;
    height: 440px;
  }

  .re-feat__layout::before {
    width: calc(var(--rx) * 2);
    height: calc(var(--ry) * 2);
    aspect-ratio: auto;
    animation: none;
  }

  /* compact chip on the ring: icon + title; the description opens on hover/focus */
  .re-feat__item {
    position: absolute;
    top: calc(50% + var(--cy) * var(--ry));
    left: calc(50% + var(--cx) * var(--rx));
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    width: 260px;
    padding: 16px 18px;
    transform: translate(-50%, -50%);
    z-index: 1;
    cursor: default;
  }

  .re-feat__item:hover,
  .re-feat__item:focus-visible {
    z-index: 3;
    border-color: rgba(32, 88, 39, 0.3);
    transform: translate(-50%, calc(-50% - 4px));
    box-shadow: 0 30px 50px -24px rgba(19, 36, 27, 0.5);
  }

  .re-feat__icon {
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 14px;
  }

  .re-feat__icon img {
    width: 22px;
    height: 22px;
  }

  .re-feat__name {
    font-size: 16.5px;
  }

  .re-feat__text {
    grid-column: 1 / -1;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s var(--re-ease), margin 0.5s var(--re-ease), opacity 0.35s ease;
  }

  .re-feat__item:hover .re-feat__text,
  .re-feat__item:focus-visible .re-feat__text {
    max-height: 160px;
    margin-top: 12px;
    opacity: 1;
  }
}

@media (max-width: 1199.98px) {
  .re-sol__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .re-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }



}

@media (max-width: 991.98px) {
  .re-sec {
    padding: 84px 0;
  }

  .re-head--split {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    text-align: center;
  }

  .re-head--split .re-sub {
    margin-top: 18px;
  }

  .re-hero {
    padding: 80px 0 150px;
    background:
      linear-gradient(180deg, #fff 45%, rgba(255, 255, 255, 0.6) 100%),
      var(--re-hero-bg) right bottom / cover no-repeat,
      #fff;
  }

  .re-hero__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    text-align: center;
  }

  .re-hero__tag,
  .re-hero__text {
    margin-inline: auto;
  }

  .re-hero__media {
    order: -1;
    width: min(72%, 320px);
  }

  .re-trust__bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }

  .re-trust__item:nth-child(3) {
    border-left: 0;
  }

  .re-sol__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .re-banner::after {
    background: linear-gradient(90deg, rgba(247, 243, 236, 0.95) 0%, rgba(247, 243, 236, 0.85) 60%, rgba(247, 243, 236, 0.4) 100%);
  }

  /* types: no sticky stage, each item carries its own photo */
  .re-types__layout {
    display: block;
  }

  .re-types__stage {
    display: none;
  }

  .re-types__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .re-types__item {
    padding: 14px 14px 22px;
    border: 0;
    border-radius: 22px;
    background: #fff;
    opacity: 1;
  }

  .re-types__item::before {
    display: none;
  }

  .re-types__item.is-on .re-types__name {
    color: var(--re-ink);
    translate: 0 0;
  }

  .re-types__thumb {
    display: block;
    aspect-ratio: 16 / 10;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
  }

  .re-types__thumb img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
  }

  .re-types__item,
  .re-types__name,
  .re-types__text {
    padding-inline: 4px;
  }

  .re-types__name {
    font-size: 21px;
    padding-inline: 4px;
  }

  .re-case__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    transform: none;
    filter: none;
  }

  .re-case__media {
    width: min(100%, 460px);
    justify-self: center;
  }

  .re-case__body {
    padding: 0 6px 6px;
  }

  .re-idea {
    padding-top: 110px;
  }

  .re-idea__card {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 0 40px 52px;
    text-align: center;
  }

  .re-idea__text {
    margin-inline: auto;
  }

  .re-idea__phone {
    order: -1;
    width: 190px;
    margin: -90px 0 0;
  }

  .re-feat {
    padding-top: 140px;
  }

  .re-feat__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .re-feat__layout::before {
    display: none;
  }

  .re-feat__hub {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 20px;
  }

  .re-trend__grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .re-connect__layout {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .re-vault {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px;
    margin: 0 auto;
  }

  /* process: shaft moves to the left edge */
  .re-proc__shaft {
    left: 23px;
  }

  .re-proc__car {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .re-proc__floor {
    display: block;
    padding: 16px 0 16px 64px;
  }

  .re-proc__floor::before {
    left: 23px;
  }

  .re-proc__no {
    display: none;
  }

  .re-faq__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .re-faq__aside {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .re-sol__grid,
  .re-types__list,
  .re-feat__layout,
  .re-trend__grid-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .re-sol__card:first-child {
    grid-column: auto;
  }

  .re-stack__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  /* side nodes are centred on the ring's edge; leave room for their half-width */
  .re-net {
    width: min(calc(100% - 90px), 400px);
  }

  .re-net__node {
    padding: 8px 12px;
    font-size: 12.5px;
  }

  .re-net__hub {
    width: 86px;
    height: 86px;
    font-size: 36px;
  }

  .re-case__inner {
    padding: 14px;
    border-radius: 26px;
  }
}

@media (max-width: 575.98px) {
  .re-trust__bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .re-trust__item + .re-trust__item {
    border-left: 0;
    padding-top: 22px;
    border-top: 1px solid var(--re-line);
  }

  .re-sol__card {
    padding: 28px 22px;
  }

  .re-idea__card {
    padding: 0 22px 40px;
    border-radius: 28px;
  }

  .re-idea__phone {
    width: 160px;
  }

  /* net: ring is too small for the labels on phones - hub on top, pills in a grid */
  .re-net {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 12px;
    width: 100%;
    aspect-ratio: auto;
  }

  .re-net__lines {
    display: none;
  }

  .re-net__hub {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1 / -1;
    justify-self: center;
    margin-bottom: 14px;
    translate: none;
  }

  .re-net__node {
    position: static;
    justify-content: center;
    translate: none;
  }

  .re-net__node:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .re-why__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .re-proc__card {
    padding: 24px 22px;
  }

  .re-faq__a {
    padding-right: 0;
  }

  .re-btn {
    --re-btn-pad-l: 20px;
    --re-btn-icon-w: 40px;
    --re-btn-gap: 12px;
    font-size: 14.5px;
  }

  /* max-content would size the button to the unwrapped label and push grid columns past the viewport */
  .re-btn {
    width: auto;
  }

  .re-btn__label {
    flex: 0 1 auto;
    min-width: 0;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .re-page *,
  .re-page *::before,
  .re-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  :where(.re-anim) .re-reveal,
  :where(.re-anim) .re-vault__list li,
  :where(.re-anim) .re-stack__chip {
    opacity: 1;
  }
}
