/* RENOVON home — section styles + motion staging. Colors via tokens.css only. */

/* ================= 2 · HERO — engineered environment ================= */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 120px;
  position: relative; overflow: hidden;
}

.hero__env { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* fine system grid (two parallax layers via background) */
.env-grid {
  position: absolute; inset: -10% -5%;
  background-image:
    linear-gradient(color-mix(in srgb, var(--light-stone) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--light-stone) 4%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 100% at 70% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 70% 40%, #000 30%, transparent 78%);
  will-change: transform;
}

/* fine technical lines with tick feel */
.env-line { position: absolute; background: color-mix(in srgb, var(--renovon-teal) 55%, transparent); }
.env-line--h { right: 0; top: 24%; width: 34%; height: 1px; }
.env-line--v { right: 12%; top: 0; width: 1px; height: 30%; }

/* O-ring — the transition object */
.hero__ring {
  position: absolute;
  right: clamp(-190px, -8vw, -50px); top: 50%;
  width: min(52vw, 640px); aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: .3;
  will-change: transform;
}
.hero__ring circle { stroke: var(--premium-gold); fill: none; }

/* scattered fragments that organize on scroll */
.env-frags { position: absolute; right: 5%; top: 18%; width: min(30vw, 360px); height: 56%; }
.frag {
  position: absolute; display: block; border-radius: 3px;
  transform: translate(var(--fx, 0), var(--fy, 0)) rotate(var(--fr, 0deg));
  will-change: transform;
}
.frag--outline { border: 1px solid color-mix(in srgb, var(--renovon-teal) 65%, transparent); background: transparent; }
.frag--teal { background: color-mix(in srgb, var(--renovon-teal) 30%, transparent); }
.frag--gold { background: color-mix(in srgb, var(--premium-gold) 22%, transparent); }
.frag--bar { background: color-mix(in srgb, var(--light-stone) 14%, transparent); height: 3px !important; }
/* final (organized) positions — a calm column grid */
.frag:nth-child(1) { left: 0;    top: 6%;  width: 54px; height: 34px; }
.frag:nth-child(2) { left: 34%;  top: 4%;  width: 40px; height: 40px; }
.frag:nth-child(3) { left: 66%;  top: 12%; width: 74px; }
.frag:nth-child(4) { left: 8%;   top: 34%; width: 34px; height: 34px; }
.frag:nth-child(5) { left: 42%;  top: 30%; width: 60px; height: 26px; }
.frag:nth-child(6) { left: 70%;  top: 38%; width: 56px; }
.frag:nth-child(7) { left: 4%;   top: 62%; width: 66px; height: 22px; }
.frag:nth-child(8) { left: 44%;  top: 60%; width: 30px; height: 30px; }
.frag:nth-child(9) { left: 72%;  top: 66%; width: 44px; height: 28px; }
html.no-motion .frag { transform: none; }

.hero__inner { position: relative; z-index: 2; max-width: 880px; }
.hero h1 { max-width: 18ch; }
.hero h1 .w { display: inline-block; will-change: transform, opacity; }
.hero h1 .accent { color: var(--premium-gold); }
.hero .subhead { font-size: var(--fs-lead); opacity: .88; max-width: 58ch; margin-top: 26px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero .tagline {
  margin-top: 46px; font-family: var(--font-brand); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--premium-gold); font-size: .8rem;
}

/* ================= 3 · CREDIBILITY TICKER (insight tape) ================= */
.cred {
  background: var(--charcoal); color: var(--light-stone);
  padding: 15px 0; position: relative; z-index: 2; overflow: hidden;
  border-top: 1px solid rgba(245,244,240,.06);
  border-bottom: 1px solid rgba(245,244,240,.06);
}
/* soft fade at both edges so items enter/exit gracefully */
.cred::before, .cred::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.cred::before { left: 0; background: linear-gradient(90deg, var(--charcoal), transparent); }
.cred::after { right: 0; background: linear-gradient(-90deg, var(--charcoal), transparent); }

.ticker { width: 100%; }
.ticker__track {
  display: flex; width: max-content;
  animation: cred-tick 60s linear infinite;
  will-change: transform;
}
.cred:hover .ticker__track { animation-play-state: paused; }
@keyframes cred-tick { to { transform: translateX(-50%); } }

.ticker__group {
  display: inline-flex; align-items: center; gap: 18px;
  padding-right: 18px; white-space: nowrap;
  font-family: var(--font-brand); font-weight: 600; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; opacity: .8;
}
.ticker__group i { font-style: normal; color: var(--premium-gold); opacity: .8; }
.ticker__leaf { display: inline-flex; }
.ticker__leaf svg { width: 12px; height: 13px; color: var(--premium-gold); }

/* reduced motion: no tape movement — show a static, wrapped strip */
html.no-motion .ticker__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
html.no-motion .ticker__group { white-space: normal; justify-content: center; flex-wrap: wrap; row-gap: 6px; }
html.no-motion .ticker__group[aria-hidden="true"] { display: none; }

/* ================= 4 · PROBLEM ================= */
.problem .split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 54px; }
.problem .split .col { padding: 30px 32px; }
.problem .split h3 { color: var(--renovon-teal); display: flex; align-items: center; gap: 12px; }
.problem .split h3::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  border: 2.5px solid var(--premium-gold);
}
.problem .split p { margin-top: 10px; font-size: .96rem; opacity: .82; }

/* ================= 5 · THE SHIFT (light) ================= */
.tf { overflow: hidden; }
.tf__labels {
  display: flex; justify-content: space-between; align-items: baseline;
  max-width: 720px; margin: 36px auto 0;
  font-family: var(--font-brand); font-weight: 700; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.tf__labels .before { opacity: .5; }
.tf__labels .after { color: var(--renovon-teal); }
.tf__labels .track {
  flex: 1; height: 1px; margin: 0 22px; align-self: center;
  background: color-mix(in srgb, currentColor 16%, transparent);
  position: relative;
}
.tf__labels .track i {
  position: absolute; left: 0; top: -2px; height: 5px; width: 100%;
  background: var(--premium-gold); border-radius: 3px;
  transform: scaleX(0); transform-origin: left; display: block;
}
.tf__stage { position: relative; max-width: 720px; margin: 24px auto 0; }
.tf__ropes {
  position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px);
  pointer-events: none; z-index: 0;
}
.tf__ropes path { fill: none; stroke-linecap: round; }
.ropes-messy path { stroke: color-mix(in srgb, var(--renovon-teal) 52%, transparent); stroke-width: 1.6; }
.ropes-clean path { stroke: color-mix(in srgb, var(--renovon-teal) 74%, transparent); stroke-width: 1.8; opacity: 0; }
html.no-motion .ropes-messy { display: none; }
html.no-motion .ropes-clean path { opacity: 1; }

.tf__field {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.tf-chip {
  position: relative; padding: 14px 18px 14px 22px; border-radius: 10px;
  font-family: var(--font-brand); font-weight: 600; font-size: .95rem; line-height: 1.35;
  background: color-mix(in srgb, var(--white) 90%, var(--light-stone));
  border: 1px solid color-mix(in srgb, var(--ink-navy) 10%, transparent);
  transform: translate(var(--sx, 0), var(--sy, 0)) rotate(var(--sr, 0deg));
  will-change: transform;
}
.tf-chip .b { display: block; opacity: .86; }
.tf-chip .a { position: absolute; inset: 14px 18px auto 22px; opacity: 0; color: var(--renovon-teal); }
.tf-chip .edge {
  position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  border-radius: 2px; background: var(--premium-gold);
  transform: scaleY(0); transform-origin: top;
}
html.no-motion .tf-chip { transform: none; }
html.no-motion .tf-chip .b { display: none; }
html.no-motion .tf-chip .a { position: static; opacity: 1; }
html.no-motion .tf-chip .edge { transform: none; }
html.no-motion .tf__labels .track i { transform: none; }

/* ================= 6 · WHAT WE DO (light, connected) ================= */
.caps__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  margin-top: 64px; position: relative;
  /* start-align: an expanding card must NOT stretch its siblings */
  align-items: start;
}
/* the system line connecting all five */
.caps__grid::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: -26px; height: 1px;
  background: color-mix(in srgb, var(--signal-cyan) 40%, transparent);
}
.cap-card { position: relative; padding: 30px 22px 26px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--white) 62%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--ink-navy) 9%, transparent);
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
  cursor: default;
}
.cap-card .node {
  position: absolute; top: -31px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  border: 2.5px solid var(--signal-cyan); background: var(--light-stone);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.cap-card:hover, .cap-card:focus-visible, .cap-card.open {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--premium-gold) 55%, transparent);
  box-shadow: 0 20px 44px color-mix(in srgb, var(--ink-navy) 10%, transparent);
}
.cap-card:hover .node, .cap-card.open .node {
  border-color: var(--signal-cyan);
  transform: translateX(-50%) scale(1.25);
  box-shadow: 0 0 10px color-mix(in srgb, var(--signal-cyan) 55%, transparent);
}
.cap-card .num {
  font-family: var(--font-brand); font-weight: 800; font-size: .76rem;
  letter-spacing: .12em; color: var(--premium-gold);
}
.cap-card h3 { margin-top: 12px; font-size: 1rem; }
.cap-card .short { margin-top: 10px; font-size: .86rem; opacity: .8; }
.cap-card .more {
  font-size: .82rem; color: var(--renovon-teal);
  max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
  transition: max-height .4s var(--ease-out), opacity .35s, margin-top .35s;
}
.cap-card:hover .more, .cap-card:focus-visible .more, .cap-card.open .more {
  max-height: 8em; opacity: 1; margin-top: 12px;
}

/* ================= 7 · WHY RENOVON — infographic left, message right ================= */
.model__layout {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 6vw, 90px); align-items: center;
}
.model__copy h2 { margin-top: 14px; }
.model__copy .rule {
  width: 64px; height: 3px; background: var(--premium-gold);
  margin-top: 26px; border-radius: 2px;
}
.model__wrap { text-align: center; }
.model__svg { width: min(620px, 100%); margin-inline: auto; overflow: visible; }
/* the O-ring's thin outer ring, holding the five dimensions on its orbit */
.model__orbit {
  fill: none; stroke: var(--premium-gold); stroke-width: 5.5;
}
.model__center circle { fill: none; stroke: var(--premium-gold); }
.model__node { cursor: pointer; }
.model__node rect {
  fill: var(--white);
  stroke: color-mix(in srgb, var(--ink-navy) 16%, transparent);
  stroke-width: 1.25;
  transition: stroke .25s;
}
.model__node text {
  font-family: var(--font-brand); font-weight: 700; font-size: 14.5px;
  letter-spacing: 1.8px; fill: var(--ink-navy); text-anchor: middle;
  transition: fill .25s;
}
.model__node:hover rect, .model__node.active rect { stroke: var(--premium-gold); stroke-width: 2; }
.model__node:hover text, .model__node.active text { fill: var(--renovon-teal); }
.model__desc {
  margin-top: 22px; font-size: .98rem; opacity: .85; min-height: 3.2em;
  font-family: var(--font-brand); font-weight: 600;
}
.model__list { display: none; }

/* ================= 7b · BRIDGE — grow from the inside out (light, flowing) ================= */
.bridge { padding-block: calc(var(--sect-y) * .8); }
/* aligned to the standard container grid like every other section */
.bridge .container { position: relative; }
.bridge__steps { position: relative; max-width: 780px; padding-left: 44px; }
.bridge__rail { position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px;
  background: color-mix(in srgb, var(--ink-navy) 10%, transparent); border-radius: 2px; }
.bridge__rail i {
  position: absolute; inset: 0; display: block; border-radius: 2px;
  background: var(--premium-gold);
  transform: scaleY(0); transform-origin: top;
}
html.no-motion .bridge__rail i { transform: none; }
.bridge__statement {
  font-family: var(--font-brand); font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.15;
  margin-bottom: 34px;
}
.bridge__step {
  font-family: var(--font-brand); font-weight: 600;
  font-size: clamp(1.02rem, 1.6vw, 1.25rem); opacity: .85;
  padding: 13px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink-navy) 8%, transparent);
}
.bridge__step:last-child { border-bottom: 0; }

/* ================= 9 · METHOD (pinned, light→dark) ================= */
.method {
  position: relative;
  background: var(--m-bg, var(--light-stone));
  color: var(--m-fg, var(--ink-navy));
}
.method__pin {
  height: 100svh; display: flex; align-items: center; overflow: hidden;
}
.method__pin > .container { width: var(--container); }
.method__head h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.method__stage {
  display: grid; grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(36px, 5vw, 80px); align-items: center; margin-top: clamp(24px, 4vh, 48px);
}
.method__visual {
  position: relative; aspect-ratio: 1;
  width: 100%; max-width: min(340px, 36vh);
}
.method__visual svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.method__visual .track { stroke: color-mix(in srgb, currentColor 14%, transparent); fill: none; }
.method__visual .fill { stroke: var(--premium-gold); fill: none; stroke-linecap: round; }
.method__num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-brand); font-weight: 800;
  font-size: clamp(3.2rem, 6vw, 5rem); color: var(--premium-gold);
}
.method__steps { position: relative; min-height: 190px; }
.method-step { position: absolute; inset: 0; }
.method-step .k {
  font-family: var(--font-brand); font-weight: 700; font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--m-k, var(--renovon-teal));
}
.method-step h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 10px; }
.method-step p { margin-top: 12px; max-width: 46ch; opacity: .85; font-size: .95rem; }
.method__progress { display: flex; align-items: center; gap: 14px; margin-top: clamp(22px, 4vh, 44px); }
.method__progress .bar {
  flex: 1; height: 2px; background: color-mix(in srgb, currentColor 15%, transparent);
  border-radius: 2px; overflow: hidden;
}
.method__progress .bar i {
  display: block; height: 100%; width: 100%; background: var(--premium-gold);
  transform: scaleX(0); transform-origin: left;
}
.method__dots { display: flex; gap: 10px; }
.method__dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: color-mix(in srgb, currentColor 24%, transparent);
  transition: background .3s, transform .3s;
}
.method__dots span.on { background: var(--premium-gold); transform: scale(1.25); }

/* ================= 10b · CONTINUOUS IMPROVEMENT ================= */
.improve__inner { text-align: center; max-width: 760px; }
.improve__inner h2 { margin-inline: auto; }
.improve__loop {
  width: 30px; height: 30px; margin: 0 auto 24px;
  stroke: var(--premium-gold); fill: none;
}
.improve__line {
  font-family: var(--font-brand); font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--premium-gold); margin-top: 26px;
}
.improve__inner .lead { margin-inline: auto; margin-top: 16px; }

/* static fallback (mobile and/or reduced motion) */
.method--static .method__pin { height: auto; overflow: visible; padding: var(--sect-y) 0; }
.method--static .method__stage { grid-template-columns: 1fr; }
.method--static .method__visual, .method--static .method__progress { display: none; }
.method--static .method__steps { min-height: 0; }
.method--static .method-step { position: relative; opacity: 1 !important; transform: none !important; margin-bottom: 34px; }

/* short-viewport laptops (e.g. 1366×768): compact the pinned content */
@media (max-height: 820px) {
  .method__head h2 { font-size: 1.5rem; }
  .method__visual { max-width: min(300px, 32vh); }
  .method-step p { font-size: .88rem; }
  .method__pin { padding-block: 12px; }
}

/* ================= 10 · INDUSTRIES (cards) ================= */
.industries__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 60px;
}
.ind-card {
  padding: 28px 22px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--light-stone) 4%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--light-stone) 10%, transparent);
  transition: transform .3s var(--ease-out), border-color .3s;
}
.ind-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--premium-gold) 50%, transparent); }
.ind-card svg { width: 64px; height: 46px; stroke: color-mix(in srgb, currentColor 70%, transparent); margin-bottom: 20px; transition: stroke .3s; }
.ind-card svg .dot { fill: var(--premium-gold); stroke: none; }
.ind-card:hover svg { stroke: var(--premium-gold); }
.ind-card h3 { font-size: .98rem; }
.ind-card p { margin-top: 8px; font-size: .84rem; opacity: .75; }

/* ================= 11 · STATS ================= */
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.stat { text-align: center; }
.stat__ring { position: relative; width: 150px; margin: 0 auto; }
.stat__ring svg { transform: rotate(-90deg); }
.stat__ring .track { stroke: color-mix(in srgb, currentColor 14%, transparent); fill: none; }
.stat__ring .fill { stroke: var(--premium-gold); fill: none; stroke-linecap: round; }
.stat__ring .val {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-brand); font-weight: 800; font-size: 1.7rem;
  color: var(--premium-gold);
}
.stat h3 { margin-top: 22px; font-size: .95rem; letter-spacing: .04em; }
.stat p { margin-top: 8px; font-size: .87rem; opacity: .75; max-width: 30ch; margin-inline: auto; }
.stats__close { text-align: center; margin-top: 58px; margin-inline: auto; }

/* ================= 12 · PERSONAS ================= */
.personas .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 54px; }
.persona { padding: 36px 34px; }
.persona h3 { font-size: 1.35rem; }
.persona p { margin-top: 14px; opacity: .82; font-size: .95rem; }

/* ================= 13 · FINAL CTA ================= */
.cta-final { text-align: center; position: relative; overflow: hidden; }
.cta-final .container { position: relative; z-index: 2; }
.cta-final h2 { max-width: 16ch; margin-inline: auto; }
.cta-final .lead { margin-inline: auto; }
.cta-final .btn { margin-top: 36px; }
.cta-final .reassure {
  margin-top: 20px; font-size: .78rem; opacity: .6;
  font-family: var(--font-brand); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}

/* ================= responsive ================= */
@media (max-width: 1060px) {
  .caps__grid { grid-template-columns: repeat(3, 1fr); }
  .caps__grid::before, .cap-card .node { display: none; }
  .industries__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .problem .split, .personas .grid { grid-template-columns: 1fr; }
  .caps__grid, .industries__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: 1fr; gap: 56px; }
  .env-frags, .env-line { display: none; }
  .model__layout { grid-template-columns: 1fr; gap: 34px; }
  /* intersection model: swap SVG for a clean stacked list */
  .model__svg { display: none; }
  .model__list {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px;
  }
  .model__list li {
    font-family: var(--font-brand); font-weight: 700; font-size: .8rem;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 12px 20px; border-radius: 100px; background: var(--white);
    border: 1px solid color-mix(in srgb, var(--ink-navy) 14%, transparent);
  }
  .model__desc { min-height: 0; }
}
@media (max-width: 560px) {
  .caps__grid, .tf__field, .industries__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .tf__labels { flex-direction: column; gap: 8px; align-items: flex-start; }
  .tf__labels .track { width: 100%; margin: 6px 0; }
  .tf__ropes { display: none; } /* rope geometry assumes the two-column field */
  .tf__field { gap: 10px; }
  .tf-chip {
    padding: 12px 16px 12px 20px;
    transform: none;
    will-change: auto;
  }
  .tf-chip .b,
  .tf-chip .a {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .tf-chip .b {
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid color-mix(in srgb, var(--ink-navy) 9%, transparent);
    font-size: .82rem;
  }
  .tf-chip .a { font-size: .9rem; }
  .tf-chip .edge { transform: scaleY(1); }
  .bridge__steps { padding-left: 26px; }
}
