/* Experience field — left-weighted network, khaki copy rail on the right. */

/* Clip at the real section box so Track Record meets W2WT cleanly. */
.experience-section.section-tint {
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
  /* top/right/bottom hard-cut; left may spill */
  clip-path: inset(0 0 0 -100vw);
  overflow: visible;
  /* Panel copy swaps must not yank the scroll position. */
  overflow-anchor: none;
}

.experience-field {
  position: relative;
  min-height: 45vw;
  margin: 0;
  overflow-anchor: none;
}

/* Network sits under all copy; spills left off-canvas via overflow */
.experience-field__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  pointer-events: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.experience-field__svg {
  display: block;
  /* Sized only via JS width/height attrs (1 user unit = 1 CSS px).
     width/height: 100% stretched a short viewBox when the field grew,
     so hub spokes drifted off the HTML logo badges until resize caught up. */
  overflow: visible;
  max-width: none;
}

.experience-field__edge {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linecap: square;
  opacity: 0.14;
  vector-effect: non-scaling-stroke;
}

.experience-field__edge--hub {
  stroke: var(--green-ink);
  opacity: 0.28;
}

@media (max-width: 860px) {
  .experience-field__edge--hub {
    stroke-width: 1.75;
  }
}

.experience-field__edge--focus {
  stroke: var(--green-ink);
}

/* Sit above edges so spokes never show through logo orbs */
.experience-field__logo-cover {
  fill: #fff;
  stroke: none;
  pointer-events: none;
}

.experience-field__dot {
  fill: var(--ink);
  opacity: 0.3;
}

.experience-field__dot--accent {
  fill: var(--green);
  opacity: 1;
}

.experience-field__dot-halo {
  fill: var(--green);
  opacity: 0.45;
  pointer-events: none;
}

.experience-field__hub {
  fill: var(--green);
  opacity: 1;
  filter:
    drop-shadow(0 0 8px rgba(var(--green-rgb), 0.9))
    drop-shadow(0 0 20px rgba(var(--green-rgb), 0.7));
}

.experience-field__hub-halo {
  fill: var(--green);
  opacity: 0.55;
}

/* Debug local axes from hub: X red, Y green, Z blue */
.experience-field__axes {
  pointer-events: none;
}

.experience-field__axis {
  fill: none;
  opacity: 0.95;
  vector-effect: non-scaling-stroke;
}

.experience-field__axis-label {
  paint-order: stroke fill;
  stroke: rgba(244, 244, 240, 0.95);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.experience-field__axis-handle {
  pointer-events: auto;
  cursor: grab;
  stroke: rgba(244, 244, 240, 0.95);
  stroke-width: 2;
}

.experience-field__axis-handle:active {
  cursor: grabbing;
}

/* Axes above the mesh for debugging, but never above the explainer panel. */
.experience-field--debug-axes .experience-field__stage {
  z-index: 2;
}

.experience-field--debug-axes .experience-field__badges {
  z-index: 1;
}

.experience-field--debug-axes .experience-field__content {
  z-index: 4;
}

.experience-debug {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 80;
  width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(244, 244, 240, 0.96);
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.16);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink);
  pointer-events: auto;
}

.experience-debug__title {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experience-debug__readout {
  margin: 0 0 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.experience-debug__row {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
}

.experience-debug__row label {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 600;
}

.experience-debug__row input[type="range"] {
  width: 100%;
  margin: 0;
}

.experience-debug__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

/* Mobile-only hub XY tuner — hidden on desktop. */
.experience-debug--hub-y {
  display: none;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  width: auto;
  touch-action: none;
}

.experience-debug--hub-y input[type="range"] {
  touch-action: none;
}

/* Desktop hub XY tuner — hidden on compact. */
.experience-debug--hub-desktop {
  display: none;
  right: 0.75rem;
  bottom: 0.75rem;
  left: auto;
  width: min(22rem, calc(100vw - 1.5rem));
}

@media (max-width: 860px) {
  .experience-debug--hub-y {
    display: block;
  }

  .experience-debug--hub-desktop {
    display: none;
  }
}

@media (min-width: 861px) {
  .experience-debug--hub-desktop {
    display: block;
  }
}

/* Logos stay under the card so copy is never covered */
.experience-field__badges {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.experience-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0;
  padding: 0.42rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  pointer-events: auto;
  opacity: 1;
  transform-origin: center center;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  /* Always glowing — solid ring in green-ink, pale glow. */
  border-color: var(--green-ink);
  box-shadow:
    0 0 0 3px rgba(var(--green-rgb), 0.45),
    0 12px 30px rgba(26, 26, 26, 0.16),
    0 0 24px rgba(var(--green-rgb), 0.75);
}

.experience-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  border-radius: 50%;
  background: #fff;
  transform: scale(var(--badge-glyph, 1));
  transform-origin: center center;
  transition: transform 520ms var(--ease);
}

.experience-badge:hover,
.experience-badge:focus-visible {
  outline: none;
  border-color: var(--green-ink);
}

.experience-badge.is-focus {
  /* Visuals driven by --focus; class is for state/ARIA only. */
}

.experience-badge.is-back {
  /* Visuals driven by --focus; class is for state/ARIA only. */
}

.experience-field__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  min-height: inherit;
  /* Section padding lives here so the network can fill to the section edges. */
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(3.25rem, 7vw, 5rem);
  pointer-events: none;
}

.experience-field__content .section-head {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.35rem 0 0;
  border-radius: var(--radius);
  pointer-events: auto;
  background: transparent;
}

/* Desktop: 60/40 lede | card, tops aligned. Mobile: stack in CSS below. */
.experience-field__split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(18rem, 2fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
  width: 100%;
  pointer-events: none;
}

.experience-field__split .body,
.experience-field__content [data-experience-lede] {
  position: relative;
  z-index: 1;
  max-width: 48ch;
  margin: 0;
  padding: 0.55rem 0 0;
  border-radius: var(--radius);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
}

.experience-field .text-green {
  color: var(--green-ink);
  font-weight: 600;
}

/* Explainer — logos pass behind; company mark escapes the top-right corner */
.experience-field__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  width: min(100%, 22.5rem);
  margin: 0;
  padding: 1.45rem 1.45rem 1.6rem;
  /* Fixed card height so company blurbs can run longer without reflow. */
  height: 350px;
  min-height: 350px;
  max-height: 350px;
  border-radius: var(--radius);
  background: #f4f4f0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--ink);
  pointer-events: auto;
  position: relative;
  left: 0;
  justify-self: end;
  z-index: 3;
  overflow: visible;
  overflow-anchor: none;
}

/* Glowing company mark — anchored to the corner, half outside the card */
.experience-field__mark {
  position: absolute;
  top: -1.55rem;
  right: -1.55rem;
  left: auto;
  width: 4.7rem;
  height: 4.7rem;
  margin: 0;
  padding: 0.55rem;
  border: 1.5px solid var(--green-ink);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(var(--green-rgb), 0.45),
    0 8px 18px rgba(26, 26, 26, 0.12),
    0 0 18px rgba(var(--green-rgb), 0.75);
  pointer-events: none;
  z-index: 2;
}

.experience-field__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.experience-field__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-transform: none;
  color: var(--ink);
}

.experience-field__copy {
  margin: 0;
  max-width: none;
  flex: 1 1 auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.experience-field__example {
  margin: 0.15rem 0 0;
  max-width: 38ch;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}

.experience-field__example[hidden] {
  display: none;
}

.experience-field__example-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.experience-field__link {
  margin-top: 0.45rem;
  align-self: flex-start;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.1rem;
  transition: color 160ms ease, border-color 160ms ease;
}

.experience-field__link:hover,
.experience-field__link:focus-visible {
  color: var(--green-ink);
  border-bottom-color: var(--green-ink);
  outline: none;
}

@media (max-width: 860px) {
  /* Kill horizontal rubber-band + scroll anchoring while the orbit runs. */
  html {
    overflow-x: hidden;
    overflow-anchor: none;
    overscroll-behavior-x: none;
  }

  body {
    overflow-x: hidden;
    overflow-anchor: none;
    overscroll-behavior-x: none;
  }

  /*
   * Desktop allows a left spill (clip-path -100vw). On mobile, clip the
   * section so orbit badges can't widen the document. Prefer `clip` over
   * `hidden` so we don't couple overflow-y into a scroll container.
   * Do NOT set overflow-x alone on .experience-field — older CSS couples
   * axes and was clipping the orbit vertically.
   */
  .experience-section.section-tint {
    /* Allow a little right spill so the corner company mark isn't clipped. */
    clip-path: inset(0 -1.75rem 0 0);
    overflow-x: clip;
    overflow-y: clip;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  .experience-field {
    min-height: 0;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  .experience-field__stage,
  .experience-field__badges {
    overflow: clip;
    contain: paint;
  }

  .experience-field__content {
    gap: 0.35rem;
    align-items: stretch;
    padding-top: clamp(2.75rem, 7vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 6vw, 3.25rem);
  }

  .experience-field__content .section-head {
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .experience-field__split {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .experience-field__split .body,
  .experience-field__content [data-experience-lede] {
    max-width: none;
    padding: 0.35rem 0 0;
  }

  .experience-field__panel {
    /* Clearance band + ~100px for the wider top-down mobile orbit */
    left: 0;
    width: min(100%, 22.5rem);
    max-width: none;
    margin: clamp(21.25rem, calc(52vw + 100px), 26.25rem) auto 0;
    height: 350px;
    min-height: 350px;
    max-height: 350px;
    padding: 1.35rem 1.25rem;
    justify-content: flex-start;
    justify-self: auto;
  }

  /*
   * Hit target stays large/tappable; chrome lives only on the scaled glyph.
   * Force-clear button border on is-focus/is-back too — otherwise the big
   * transparent button draws a bonus black/green ring around the small orb.
   */
  .experience-badge,
  .experience-badge.is-back,
  .experience-badge.is-focus,
  .experience-badge:hover,
  .experience-badge:focus-visible {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .experience-badge img {
    border: 1.5px solid var(--green-ink);
    box-shadow:
      0 0 0 3px rgba(var(--green-rgb), 0.45),
      0 12px 30px rgba(26, 26, 26, 0.16),
      0 0 24px rgba(var(--green-rgb), 0.75);
    transition: transform 520ms var(--ease);
  }

  .experience-badge.is-back img,
  .experience-badge.is-focus img,
  .experience-badge:hover img,
  .experience-badge:focus-visible img {
    border-color: var(--green-ink);
  }

  .experience-field__mark {
    /* Half-out top-right corner, matching desktop placement. */
    top: -1.15rem;
    right: -1.15rem;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0.45rem;
  }

  .experience-field__copy,
  .experience-field__example {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .experience-badge {
    transition: border-color 160ms ease, box-shadow 160ms ease;
  }
}
