/* ========================================================
   Approach Page Redesign Style overrides
   Covers glass polyhedron background container, custom J-curve,
   EDGE grids, and interactive funnel diagrams.
   ======================================================== */

/* Fixed WebGL Background canvas container (similar to home.stage) */
html.fx3d .approach-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(120% 92% at 74% 8%, #fbf5ec 0%, #f4ecdc 45%, #eee2cf 100%);
}

/* Override glass section wrappers on approach page for WebGL transparency */
html.fx3d body.approach .sec-glass {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: none;
  box-shadow: none;
}

/* ---------- J-Curve Chart ---------- */
.j-curve-container {
  margin: 32px 0 16px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px -15px rgba(60, 48, 36, 0.06);
}

html.fx3d .j-curve-container {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px -20px rgba(60, 48, 36, 0.14);
}

.j-curve-svg {
  width: 100%;
  height: auto;
  display: block;
}

.svg-label {
  font-size: 11px;
  fill: var(--ink-soft);
  letter-spacing: 0.05em;
  font-weight: 500;
  font-family: var(--font);
}

html.fx3d .svg-label {
  fill: var(--ink-soft);
}

.svg-label.font-bold {
  font-weight: 600;
  fill: var(--ink);
}

html.fx3d .svg-label.font-bold {
  fill: var(--ink);
}

.svg-label.font-accent {
  fill: var(--accent-deep);
}

html.fx3d .svg-label.font-accent {
  fill: var(--accent-deep);
}

/* ---------- Investment funnel · centered, flanked by steps ---------- */
.funnel-viz {
  display: grid;
  grid-template-columns: 1fr clamp(190px, 24vw, 290px) 1fr;
  grid-template-rows: repeat(5, 84px);
  align-items: stretch;
  column-gap: 22px;
  row-gap: 9px;
  margin-top: 50px;
}

.fn-seg {
  align-self: stretch;
  filter: drop-shadow(0 6px 11px rgba(180, 90, 20, 0.16));
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}

.fn-seg.s1 {
  clip-path: polygon(3% 0, 97% 0, 89.8% 100%, 10.2% 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, 0) 36%), linear-gradient(180deg, #ffdcb6, #ffce9f);
}

.fn-seg.s2 {
  clip-path: polygon(10.2% 0, 89.8% 0, 82.6% 100%, 17.4% 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 36%), linear-gradient(180deg, #ffc48e, #ffb676);
}

.fn-seg.s3 {
  clip-path: polygon(17.4% 0, 82.6% 0, 75.4% 100%, 24.6% 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 36%), linear-gradient(180deg, #ffa75e, #ff9544);
}

.fn-seg.s4 {
  clip-path: polygon(24.6% 0, 75.4% 0, 68.2% 100%, 31.8% 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, 0) 36%), linear-gradient(180deg, #f6842a, #ed7916);
}

.fn-seg.s5 {
  clip-path: polygon(31.8% 0, 68.2% 0, 61% 100%, 39% 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 36%), linear-gradient(180deg, #dd6410, #c65300);
}

.fn-seg.hot {
  transform: scale(1.035);
  filter: drop-shadow(0 12px 18px rgba(180, 90, 20, 0.3));
}

.fn-step {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.4s var(--ease);
}

.fn-left {
  justify-content: flex-end;
  text-align: right;
}

.fn-right {
  justify-content: flex-start;
  text-align: left;
}

.fn-txt {
  max-width: 250px;
}

.fn-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 3px;
}

.fn-left .fn-head {
  justify-content: flex-end;
}

.fn-right .fn-head {
  justify-content: flex-start;
}

.fn-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  transition: color 0.4s var(--ease);
}

.fn-step strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}

.fn-txt p {
  margin: 0;
  max-width: none;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* leader line + dot toward the funnel */
.fn-lead {
  flex: none;
  position: relative;
  width: 32px;
  height: 1px;
}

.fn-left .fn-lead {
  background: linear-gradient(90deg, rgba(210, 80, 0, 0), rgba(210, 80, 0, .5));
}

.fn-right .fn-lead {
  background: linear-gradient(90deg, rgba(210, 80, 0, .5), rgba(210, 80, 0, 0));
}

.fn-lead::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(252, 105, 0, 0.12);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.fn-left .fn-lead::after {
  right: -2px;
}

.fn-right .fn-lead::after {
  left: -2px;
}

/* hover linking (driven by approach.js so both directions light up) */
.fn-step.hot strong {
  color: var(--accent-deep);
}

.fn-step.hot .fn-lead::after {
  transform: translateY(-50%) scale(1.4);
  box-shadow: 0 0 0 4px rgba(252, 105, 0, 0.18);
}

.fn-step:hover {
  transform: translateY(-1px);
}

@media (max-width: 780px) {
  .funnel-viz {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 34px;
  }

  .fn-seg {
    display: none;
  }

  .fn-lead {
    display: none;
  }

  .fn-step {
    justify-content: flex-start;
    text-align: left;
    padding: 14px 0;
    border-top: 1px solid rgba(40, 28, 16, 0.08);
  }

  .fn-step:first-of-type {
    border-top: none;
  }

  .fn-left .fn-head,
  .fn-right .fn-head {
    justify-content: flex-start;
  }

  .fn-txt {
    max-width: none;
  }
}

/* ---------- Focus Sectors · growth-theme cards ---------- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}

@media (max-width: 940px) {
  .theme-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .theme-grid {
    grid-template-columns: 1fr;
  }
}

.theme-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(40, 28, 16, 0.08);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: 0 12px 34px -20px rgba(60, 48, 36, 0.16);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.theme-card:hover {
  transform: translateY(-5px);
  border-color: rgba(210, 80, 0, 0.28);
  box-shadow: 0 26px 48px -24px rgba(60, 48, 36, 0.26);
}

.theme-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  color: var(--accent);
  background: linear-gradient(150deg, rgba(252, 105, 0, 0.15), rgba(252, 105, 0, 0.05));
  border: 1px solid rgba(210, 80, 0, 0.16);
  box-shadow: 0 6px 16px -10px rgba(210, 80, 0, 0.4);
  transition: transform 0.5s var(--ease);
}

.theme-card:hover .theme-ic {
  transform: translateY(-2px) rotate(-4deg);
}

.theme-ic svg {
  width: 23px;
  height: 23px;
}

.theme-card h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.theme-desc {
  margin: 0 0 20px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.5;
  max-width: none;
}

.theme-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.theme-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(40, 28, 16, 0.07);
  color: var(--ink-soft);
  font-size: 0.95rem;
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}

.theme-list li:first-child {
  border-top: none;
}

.theme-list li:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.theme-list .ic {
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(40, 28, 16, 0.07);
  box-shadow: 0 2px 6px -3px rgba(60, 48, 36, 0.12);
  color: var(--ink-soft);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.theme-list .ic svg {
  width: 16px;
  height: 16px;
}

.theme-list li:hover .ic {
  color: var(--accent);
  border-color: rgba(210, 80, 0, 0.28);
}

.theme-exclude {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 18px 24px;
  border-radius: 16px;
  background: rgba(60, 48, 36, 0.035);
  border: 1px dashed rgba(60, 48, 36, 0.22);
  max-width: none;
}

.theme-exclude-ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--accent-deep);
  background: rgba(210, 80, 0, 0.06);
  border: 1px solid rgba(210, 80, 0, 0.16);
}

.theme-exclude-ic svg {
  width: 19px;
  height: 19px;
}

.theme-exclude p {
  margin: 0;
  max-width: none;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.theme-exclude strong {
  color: var(--ink);
  font-weight: 600;
}

/* J-curve · stage markers, baseline + sweet-spot tag */
.axis-label {
  font-size: 9.5px;
  fill: var(--ink-faint);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.sweet-tag {
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.j-dot {
  fill: rgba(60, 48, 36, 0.32);
}

.j-dot.hot {
  fill: var(--accent);
}

.j-curve-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.glow-dot {
  animation: pulse-glow 2.4s infinite ease-in-out;
  transform-origin: center;
  transform-box: fill-box;
}

/* Sumeru entry mark on the J-curve */
.entry-logo {
  filter: drop-shadow(0 0 10px rgba(252, 105, 0, 0.35));
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }

  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

/* ---------- EDGE Grid ---------- */
.edge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

@media(max-width: 768px) {
  .edge-grid {
    grid-template-columns: 1fr;
  }
}

.edge-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  transition: transform var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), background var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}

html.fx3d .edge-card {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
}

.edge-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--accent);
  box-shadow: 0 12px 24px -10px rgba(60, 48, 36, 0.1);
}

html.fx3d .edge-card:hover {
  background: rgba(255, 255, 255, 0.66);
  border-color: var(--accent);
  box-shadow: 0 16px 36px -15px rgba(60, 48, 36, 0.18);
}

.edge-letter {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1;
  font-family: var(--font);
}

html.fx3d .edge-letter {
  color: var(--accent-deep);
}

.edge-card-content h3 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

html.fx3d .edge-card-content h3 {
  color: var(--ink);
}

.edge-card-content p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

html.fx3d .edge-card-content p {
  color: var(--ink-soft);
}

/* ---------- Vertical Investment Funnel ---------- */
.funnel-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  align-items: center;
  margin-top: 28px;
}

@media(max-width: 768px) {
  .funnel-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.funnel-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.funnel-svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.funnel-step-poly {
  fill: rgba(18, 25, 63, 0.02);
  stroke: rgba(18, 25, 63, 0.12);
  stroke-width: 1.5;
  transition: fill var(--dur-s) var(--ease), stroke var(--dur-s) var(--ease), filter var(--dur-s) var(--ease);
}

html.fx3d .funnel-step-poly {
  fill: rgba(34, 20, 10, 0.02);
  stroke: rgba(34, 20, 10, 0.12);
}

.funnel-step-poly.active {
  fill: rgba(210, 80, 0, 0.08);
  stroke: var(--accent);
}

html.fx3d .funnel-step-poly.active {
  fill: rgba(210, 80, 0, 0.1);
  stroke: var(--accent);
  filter: drop-shadow(0 0 8px rgba(210, 80, 0, 0.25));
}

.funnel-trace-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}

.funnel-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.funnel-step {
  display: flex;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all var(--dur-s) var(--ease);
}

html.fx3d .funnel-step {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.55);
}

.funnel-step.active {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--accent);
  box-shadow: 0 8px 24px -10px rgba(60, 48, 36, 0.08);
}

html.fx3d .funnel-step.active {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--accent);
  box-shadow: 0 12px 30px -15px rgba(60, 48, 36, 0.18);
}

.funnel-num {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-faint);
  font-family: var(--font);
  transition: color var(--dur-s) var(--ease);
}

.funnel-step.active .funnel-num {
  color: var(--accent-deep);
}

html.fx3d .funnel-step.active .funnel-num {
  color: var(--accent-deep);
}

.funnel-step-content strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
  transition: color var(--dur-s) var(--ease);
}

html.fx3d .funnel-step-content strong {
  color: var(--ink-soft);
}

.funnel-step.active .funnel-step-content strong {
  color: var(--ink);
}

html.fx3d .funnel-step.active .funnel-step-content strong {
  color: var(--ink);
}

.funnel-step-content span {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

html.fx3d .funnel-step-content span {
  color: var(--ink-soft);
}

/* ---------- Section 06: Conviction vs Walk Away Differentiation ---------- */
.conviction-cols {
  gap: 24px;
  margin-top: 24px;
}

.conviction-card {
  padding: 26px 28px;
  border-radius: 16px;
  transition: border-color var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}

.conviction-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.conviction-card ul {
  margin: 0;
  padding-left: 20px;
}

.conviction-card li {
  margin-bottom: 12px;
  line-height: 1.5;
}

.conviction-card li:last-child {
  margin-bottom: 0;
}

/* Leader line hover linking */
.fn-step.hot strong {
  color: var(--accent-deep);
}

@media(max-width: 860px) {
  .funnel-viz {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
  }

  .fn-seg {
    display: none;
  }

  .fn-step {
    justify-content: flex-start !important;
    text-align: left !important;
    background: rgba(255, 255, 255, 0.55);
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(210, 80, 0, 0.18);
    box-shadow: 0 4px 14px -6px rgba(60, 48, 36, 0.08);
  }

  .fn-step .fn-head {
    justify-content: flex-start !important;
  }

  .fn-lead {
    display: none;
  }

  .fn-txt {
    max-width: none;
  }
}

/* Subtle Tint (What we look for / What we walk away from - with Brand Orange Font Color) */
.conviction-look-for {
  background: rgba(46, 125, 50, 0.05);
  border: 1px solid rgba(46, 125, 50, 0.16);
}

.conviction-look-for h3 {
  color: var(--accent) !important;
  font-weight: 700;
}

.conviction-look-for ul li::marker {
  color: #2e7d32;
}

.conviction-walk-away {
  background: rgba(210, 80, 0, 0.04);
  border: 1px solid rgba(210, 80, 0, 0.20);
}

.conviction-walk-away h3 {
  color: var(--accent) !important;
  font-weight: 700;
}

.conviction-walk-away ul li::marker {
  color: var(--accent-deep);
}

html.fx3d .conviction-look-for {
  background: rgba(46, 125, 50, 0.06);
  border-color: rgba(46, 125, 50, 0.20);
}

html.fx3d .conviction-walk-away {
  background: rgba(210, 80, 0, 0.05);
  border-color: rgba(210, 80, 0, 0.24);
}