/* Rev C — rounded, card-led landing page over the existing Truo content. */

:root {
  --revc-canvas: #f0f0f0;
  --revc-radius: clamp(24px, 3vw, 48px);
  --revc-card-radius: clamp(22px, 2vw, 32px);
  --revc-gap: clamp(12px, 1.5vw, 22px);
  --revc-section-y: clamp(80px, 8vw, 124px);
}

body.page-home {
  background: var(--revc-canvas);
}

.page-home .shell {
  max-width: 1536px;
  padding-inline: clamp(20px, 4vw, 64px);
}

.page-home .header {
  position: absolute;
  inset: 12px 12px auto;
  z-index: 50;
  color: var(--truo-ink);
  background: transparent;
  border: 0;
}

.page-home .header::before { display: none; }

.page-home .header__inner {
  min-height: 72px;
  padding-inline: clamp(18px, 3vw, 42px);
}

.page-home .header__brand img { height: 30px; }

.page-home .header__nav {
  position: absolute;
  left: 50%;
  padding: 4px;
  color: var(--truo-ink);
  background: rgb(255 255 255 / 58%);
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: var(--truo-radius-pill);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.page-home .header__nav > a,
.page-home .header__nav > div > button {
  height: 36px;
  padding-inline: 15px;
  border-radius: var(--truo-radius-pill);
}

.page-home .header__actions .btn {
  border-radius: var(--truo-radius-pill);
}

.page-home .header__actions .btn--secondary {
  background: rgb(255 255 255 / 55%);
  border-color: rgb(255 255 255 / 44%);
  backdrop-filter: blur(14px);
}

.page-home .hero {
  width: calc(100% - 24px);
  max-width: 1536px;
  min-height: calc(100svh - 24px);
  margin: 12px auto;
  overflow: hidden;
  background: var(--truo-ink);
  border-radius: var(--revc-radius);
}

.page-home .hero__inner {
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 24px);
  padding: clamp(112px, 14vh, 152px) clamp(20px, 5vw, 72px) clamp(182px, 23vh, 230px);
  text-align: center;
}

.page-home .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(10 16 24 / 6%), rgb(10 16 24 / 10%) 52%, rgb(10 16 24 / 30%));
}

.page-home .hero__lede {
  width: min(100%, 900px);
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--revc-card-radius);
  transform: translateY(clamp(-104px, -9vh, -64px));
}

.page-home .hero__eyebrow {
  justify-content: center;
  width: fit-content;
  margin-inline: auto;
  padding: 9px 15px;
  color: var(--truo-ink);
  text-shadow: none;
  background: rgb(255 255 255 / 60%);
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: var(--truo-radius-pill);
  backdrop-filter: blur(16px);
}

.page-home .hero__eyebrow::before {
  width: 8px;
  height: 8px;
  background: var(--truo-blue);
  border-radius: 50%;
}

.page-home .hero__title {
  max-width: 17ch;
  margin: 22px auto 0;
  font-size: clamp(2.7rem, 2rem + 4vw, 5.6rem);
  line-height: 0.98;
  color: #f7f8fa;
  text-shadow: 0 2px 36px rgb(8 12 18 / 32%);
}

.page-home .hero__actions {
  justify-content: center;
  margin-top: clamp(26px, 3vw, 38px);
}

.page-home .hero__actions .btn {
  min-height: 52px;
  border-radius: var(--truo-radius-pill);
}

.page-home .hero__actions .btn--primary {
  color: var(--truo-white);
  background: var(--truo-ink);
  border-color: var(--truo-ink);
}

.page-home .hero__stats {
  position: absolute;
  bottom: clamp(18px, 2vw, 30px);
  right: clamp(18px, 2vw, 30px);
  left: auto;
  width: min(760px, calc(100% - 60px));
  margin: 0;
  padding: clamp(18px, 2vw, 26px);
  text-align: left;
  background: rgb(255 255 255 / 34%);
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: var(--revc-card-radius);
  backdrop-filter: blur(22px);
}

.page-home .hero__stats li + li { border-color: rgb(255 255 255 / 24%); }

.page-home .hero__stats b {
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.5rem);
}

.page-home .hero__stats span {
  margin-left: 0;
  color: rgb(255 255 255 / 88%);
}

.page-home .hero__stats i { color: rgb(255 255 255 / 68%); }

.page-home .js .hero__inner,
.js .page-home .hero__inner {
  opacity: 1;
  transform: none;
  animation: revc-rise 700ms var(--truo-ease) both;
}

@keyframes revc-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
}

@media (max-width: 1024px) {
  .page-home .header__inner { padding-inline: 10px; }
}

@media (max-width: 760px) {
  .page-home .hero { min-height: 820px; }
  .page-home .hero__inner { min-height: 820px; padding-bottom: 330px; }
  .page-home .hero__title { font-size: clamp(2.55rem, 12vw, 4rem); }
  .page-home .hero__stats {
    right: 16px;
    bottom: 20px;
    left: 16px;
    grid-template-columns: 1fr;
    width: auto;
    gap: 14px;
  }
  .page-home .hero__stats li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: start; }
  .page-home .hero__stats li + li { padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 20%); border-left: 0; }
  .page-home .hero__stats span { margin-top: 0; }
}

@media (max-width: 520px) {
  .page-home .hero { min-height: 880px; margin: 8px; border-radius: 26px; }
  .page-home .header { inset: 8px 8px auto; }
  .page-home .hero__inner { min-height: 880px; padding-inline: 14px; }
  .page-home .hero__lede { padding-inline: 0; transform: translateY(-48px); }
  .page-home .hero__actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .page-home .hero__inner { animation: none; }
}

/* Card system ------------------------------------------------------------- */

.page-home main > .section,
.page-home .footer {
  width: calc(100% - 2 * var(--revc-gap));
  max-width: 1536px;
  margin-inline: auto;
}

.page-home main > .section {
  margin-top: var(--revc-gap);
  padding-block: var(--revc-section-y);
  border-radius: var(--revc-radius);
}

.page-home .section--tight {
  padding-block: clamp(64px, 7vw, 108px);
}

.page-home .section--ink + .section--ink { padding-top: clamp(72px, 8vw, 124px); }
.page-home .section--ink + .section--ink > .shell::before { display: none; }

.page-home .eyebrow {
  width: fit-content;
  padding: 8px 13px;
  letter-spacing: 0.08em;
  background: rgb(36 87 197 / 7%);
  border-radius: var(--truo-radius-pill);
}

.page-home .eyebrow::before {
  width: 7px;
  height: 7px;
  opacity: 1;
  border-radius: 50%;
}

.page-home .h2 {
  letter-spacing: -0.045em;
}

.page-home .cost,
.page-home .people,
.page-home #problem {
  color: var(--truo-ink);
  background: transparent;
}

.page-home .cost .eyebrow,
.page-home .people .eyebrow,
.page-home #problem .eyebrow {
  color: var(--truo-blue-dark);
}

.page-home .people .lead,
.page-home #problem .lead {
  color: var(--truo-slate);
}

.page-home .cost__title,
.page-home .people__title,
.page-home .stage-section__title,
.page-home #problem-heading,
.page-home #roles-heading,
.page-home #continuity-heading,
.page-home #finance-heading {
  max-width: 16ch !important;
  margin-top: 24px !important;
}

/* Metrics / problem cards ------------------------------------------------- */

.page-home .cost__list {
  gap: var(--revc-gap);
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.page-home .cost__card {
  position: relative;
  isolation: isolate;
  min-height: 440px;
  overflow: hidden;
  padding: clamp(26px, 3vw, 42px);
  color: var(--truo-ink);
  background: var(--truo-white);
  border: 1px solid rgb(30 50 90 / 5%);
  border-radius: var(--revc-card-radius);
  box-shadow: 0 1px 0 rgb(23 25 31 / 3%);
  transition: transform var(--truo-duration-slow) var(--truo-ease),
              box-shadow var(--truo-duration-slow) var(--truo-ease);
}

.page-home .cost__card::after {
  position: absolute;
  right: -0.06em;
  bottom: -0.18em;
  z-index: -1;
  font-family: var(--truo-font-display);
  font-size: clamp(10rem, 16vw, 16rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.12em;
  color: rgb(23 25 31 / 2.5%);
  transition: transform 600ms var(--truo-ease);
}

.page-home .cost__card:nth-child(1)::after { content: "01"; }
.page-home .cost__card:nth-child(2)::after { content: "02"; }
.page-home .cost__card:nth-child(3)::after { content: "03"; }

.page-home .cost__card:hover {
  background: var(--truo-white);
  box-shadow: 0 12px 36px rgb(23 25 31 / 6%);
  transform: translateY(-4px);
}

.page-home .cost__card:hover::after { transform: scale(1.05); }
.page-home .cost__rank { color: var(--truo-blue-dark); }
.page-home .cost__rank span { color: var(--truo-slate); }
.page-home .cost__figure { color: var(--truo-ink); }
.page-home .cost__head { color: var(--truo-ink); }
.page-home .cost__proof { color: var(--truo-slate); }
.page-home .cost__cite { position: relative; z-index: 1; color: #737b87; }
.page-home .cost__cite a { color: var(--truo-ink); border-bottom-color: var(--truo-line); }
.page-home .cost__cite a:hover { color: var(--truo-blue-dark); border-bottom-color: currentcolor; }

/* Product-stage card ------------------------------------------------------ */

.page-home .stage-section {
  padding-block: var(--revc-section-y);
  background: var(--truo-white);
}

.page-home .stage-section > .shell:first-child {
  text-align: center;
}

.page-home .stage-section > .shell:first-child .eyebrow {
  margin-inline: auto;
}

.page-home .stage-section__title {
  margin-inline: auto;
}

.page-home .stage {
  margin-top: clamp(42px, 5vw, 72px);
}

.page-home .stage__frame {
  overflow: hidden;
  border: 1px solid rgb(30 50 90 / 8%);
  border-radius: var(--revc-card-radius);
  box-shadow: 0 18px 55px rgb(23 25 31 / 10%);
}

.page-home .stage__bar { background: #f7f7f7; }

.page-home .stage__note {
  background: var(--truo-white);
  border-radius: 0 0 var(--revc-card-radius) var(--revc-card-radius);
}

/* People card grid -------------------------------------------------------- */

.page-home .people__grid {
  gap: var(--revc-gap);
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.page-home .person {
  min-height: 330px;
  padding: clamp(26px, 2.8vw, 40px);
  color: var(--truo-ink);
  background: var(--truo-white);
  border: 1px solid rgb(30 50 90 / 5%);
  border-radius: var(--revc-card-radius);
  box-shadow: 0 1px 0 rgb(23 25 31 / 3%);
  transition: transform var(--truo-duration-slow) var(--truo-ease),
              box-shadow var(--truo-duration-slow) var(--truo-ease);
}

.page-home .person:hover,
.page-home .person--lead,
.page-home .person--lead:hover {
  background: var(--truo-white);
}

.page-home .person:hover {
  box-shadow: 0 12px 36px rgb(23 25 31 / 6%);
  transform: translateY(-4px);
}

.page-home .person--lead {
  min-height: 260px;
  color: var(--truo-white);
  background: var(--truo-ink);
  border-color: var(--truo-ink);
}

.page-home .person--lead:hover { background: var(--truo-ink-hover); }
.page-home .person__role { color: var(--truo-slate); }
.page-home .person__tag { color: var(--truo-blue-dark); background: var(--truo-blue-tint); border-radius: var(--truo-radius-pill); }
.page-home .person__quote { color: var(--truo-ink); }
.page-home .person--lead .person__quote { color: var(--truo-white); }
.page-home .person__cost,
.page-home .person__fix { color: var(--truo-slate); }
.page-home .person--lead .person__cost,
.page-home .person--lead .person__fix { color: #c3c8d1; }
.page-home .person__fix b { color: var(--truo-blue-dark); }
.page-home .person--lead .person__fix b { color: var(--site-blue-on-ink); }

/* Product-story gallery --------------------------------------------------- */

.page-home .chapters-section {
  height: 300svh;
  padding-block: 0;
  background: var(--truo-white);
}

.page-home .chapters-section__sticky {
  top: 0;
  min-height: 100svh;
  padding-block: var(--revc-section-y);
}

.page-home .chapters-section__sticky > .eyebrow,
.page-home .chapters-section__sticky > .h2 {
  align-self: center;
  text-align: center;
}

.page-home .chapters__viewport {
  border: 1px solid rgb(30 50 90 / 8%);
  border-radius: var(--revc-card-radius);
  box-shadow: 0 18px 55px rgb(23 25 31 / 10%);
}

.page-home .chapter__caption {
  min-height: 58px;
  padding: 11px 18px;
}

.page-home .chapter__num { font-size: 11px; }
.page-home .chapter__title { font-size: clamp(0.875rem, 0.82rem + 0.25vw, 1rem); }

.page-home .chapters__arrow {
  border-color: rgb(30 50 90 / 10%);
  box-shadow: 0 4px 14px rgb(23 25 31 / 5%);
}

/* Fragment cards ---------------------------------------------------------- */

.page-home .fragments { gap: var(--revc-gap); }

.page-home .fragment {
  min-height: 360px;
  padding: clamp(24px, 2.6vw, 36px);
  color: var(--truo-ink);
  background: var(--truo-white);
  border: 1px solid rgb(30 50 90 / 5%);
  border-radius: var(--revc-card-radius);
  box-shadow: 0 1px 0 rgb(23 25 31 / 3%);
  transition: transform var(--truo-duration-slow) var(--truo-ease),
              box-shadow var(--truo-duration-slow) var(--truo-ease);
}

.page-home .fragment:hover {
  box-shadow: 0 12px 36px rgb(23 25 31 / 6%);
  transform: translateY(-4px);
}

.page-home .fragment__head,
.page-home .fragment__row,
.page-home .fragment__foot { border-color: var(--truo-line); }
.page-home .fragment__system,
.page-home .fragment__row dt,
.page-home .fragment__foot { color: var(--truo-slate); }
.page-home .fragment__row dd[data-missing] { color: var(--truo-error); }
.page-home .fragment__row dd[data-stale] { color: var(--truo-warning); }

/* Role cards -------------------------------------------------------------- */

.page-home #solutions {
  padding-block: var(--revc-section-y);
  background: var(--truo-white);
}

.page-home .roles__tablist {
  margin-top: 42px;
  border: 0;
}

.page-home .roles__panel {
  margin-top: 20px;
  padding: clamp(24px, 4vw, 56px);
  background: var(--truo-white);
  border: 1px solid rgb(30 50 90 / 5%);
  border-radius: var(--revc-card-radius);
}

.page-home .roles__crop {
  border-color: rgb(30 50 90 / 8%);
  border-radius: calc(var(--revc-card-radius) - 6px);
  box-shadow: 0 12px 34px rgb(23 25 31 / 8%);
}

.page-home .roles__crop figcaption { padding: 16px 18px; }

/* Continuity card --------------------------------------------------------- */

.page-home #continuity {
  position: relative;
  overflow: hidden;
  padding-block: var(--revc-section-y);
  background: var(--truo-ink);
}

.page-home #continuity::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -8%;
  width: min(520px, 40vw);
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgb(255 255 255 / 2%), 0 0 0 160px rgb(255 255 255 / 1%);
  pointer-events: none;
}

.page-home #continuity > .shell { position: relative; z-index: 1; }

.page-home .thread__filter {
  background: rgb(255 255 255 / 4%);
  backdrop-filter: blur(10px);
}

.page-home #continuity .thread__filter[aria-pressed="true"] {
  color: var(--truo-ink);
  background: var(--truo-white);
  border-color: var(--truo-white);
}

.page-home .thread__event,
.page-home .thread__record {
  background: rgb(255 255 255 / 6%);
  border-color: rgb(255 255 255 / 9%);
  border-radius: 20px;
}

.page-home .thread__event:hover { background: rgb(255 255 255 / 9%); }
.page-home .thread__event::before { background: var(--truo-ink); }

/* Finance cards ----------------------------------------------------------- */

.page-home #trade-finance {
  background: transparent;
  border: 0;
}

.page-home #trade-finance .grid-3 { gap: var(--revc-gap); }

.page-home #trade-finance .card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: clamp(26px, 3vw, 40px);
  border-color: rgb(30 50 90 / 5%);
  border-radius: var(--revc-card-radius);
  transition: transform var(--truo-duration-slow) var(--truo-ease),
              box-shadow var(--truo-duration-slow) var(--truo-ease);
}

.page-home #trade-finance .card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -68px;
  width: 190px;
  aspect-ratio: 1;
  border: 32px solid rgb(23 25 31 / 2.5%);
  border-radius: 50%;
  transition: transform 600ms var(--truo-ease);
}

.page-home #trade-finance .card:hover {
  box-shadow: 0 12px 36px rgb(23 25 31 / 6%);
  transform: translateY(-4px);
}

.page-home #trade-finance .card:hover::after { transform: scale(1.08); }
.page-home #trade-finance .card__list { position: relative; z-index: 1; margin-top: auto; padding-top: 30px; }

/* FAQ card --------------------------------------------------------------- */

.page-home .faq-section {
  color: var(--truo-ink);
  padding-block: var(--revc-section-y);
  background: var(--truo-white);
}

.page-home .faq-section .eyebrow { color: var(--truo-blue-dark); }
.page-home .faq-section .prose { color: var(--truo-slate); }
.page-home .faq-section .link-arrow { color: var(--truo-blue-dark); border-bottom-color: var(--site-blue-line); }
.page-home .faq-section .faq__list { gap: 6px; }
.page-home .faq-section .faq__item {
  padding-inline: 18px;
  background: #f7f7f7;
  border-color: transparent;
  border-radius: 18px;
}
.page-home .faq-section .faq__item summary { padding-block: 16px; }
.page-home .faq-section .faq__answer { padding-bottom: 16px; }
.page-home .faq-section .faq__item summary:hover,
.page-home .faq-section .faq__item[open] summary { color: var(--truo-blue-dark); }
.page-home .faq-section .faq__item summary::after { border-color: var(--truo-slate); }
.page-home .faq-section .faq__item[open] summary::after { border-color: var(--truo-blue); }
.page-home .faq-section .faq__answer { color: var(--truo-slate); }

/* Conversion card and footer --------------------------------------------- */

.page-home #contact {
  position: relative;
  overflow: hidden;
  background: var(--site-blue-field);
}

.page-home #contact::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -70%;
  width: min(760px, 62vw);
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgb(255 255 255 / 4%), 0 0 0 180px rgb(255 255 255 / 2%);
  pointer-events: none;
}

.page-home #contact > .shell { position: relative; z-index: 1; }
.page-home .close__title { max-width: 13ch; font-size: clamp(2.8rem, 3.8vw, 4.7rem); }
.page-home .close__lead { max-width: 56ch; }
.page-home .close__actions .btn { border-radius: var(--truo-radius-pill); }

.page-home .footer {
  margin-top: var(--revc-gap);
  margin-bottom: var(--revc-gap);
  padding: clamp(54px, 6vw, 82px) clamp(8px, 2vw, 24px) 36px;
  background: var(--truo-white);
  border: 0;
  border-radius: var(--revc-radius);
}

.page-home .footer__col a { color: var(--truo-slate); }

@media (max-width: 1024px) {
  .page-home main > .section { padding-block: clamp(62px, 8vw, 92px); }
  .page-home main > .chapters-section { padding-block: 0; }
  .page-home .cost__card { min-height: 390px; }
  .page-home .person { min-height: 280px; }
  .page-home .roles__panel { padding: 24px; }
}

@media (max-width: 860px) {
  .page-home .cost__card,
  .page-home .fragment,
  .page-home #trade-finance .card { min-height: auto; }
  .page-home .cost__card::after { font-size: 12rem; }
  .page-home .chapters-section { border-radius: 32px; }
}

@media (max-width: 640px) {
  .page-home main > .section,
  .page-home .footer {
    width: calc(100% - 16px);
  }
  .page-home main > .section { margin-top: 8px; border-radius: 26px; }
  .page-home .shell { padding-inline: 20px; }
  .page-home .cost__card,
  .page-home .person,
  .page-home .fragment,
  .page-home #trade-finance .card { border-radius: 22px; }
  .page-home .person--lead { min-height: auto; }
  .page-home .chapter__caption { min-height: 54px; padding-inline: 14px; }
  .page-home .roles__panel { padding: 18px; border-radius: 22px; }
  .page-home .thread__event { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .page-home .close__meta { align-items: flex-start; }
  .page-home .footer { margin-top: 8px; margin-bottom: 8px; border-radius: 26px; }
}

/* The five feature cards share the exact inset requested at every viewport. */
.page-home main > .stage-section,
.page-home main > #solutions,
.page-home main > #continuity,
.page-home main > .faq-section,
.page-home .chapters-section__sticky {
  padding-block: 124px;
}
