/* Page-specific refinements for the recruiter-focused homepage concept. */

.audit-page .main-header {
  height: auto;
  min-height: 88vh;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.audit-page .main-header .container {
  width: 100%;
}

.audit-page .audit-hero-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(540px, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
}

.audit-page .audit-hero-copy h1 {
  font-size: clamp(58px, 5.4vw, 80px);
}

.audit-page .audit-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  margin-bottom: 1.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #303030;
  border-radius: 999px;
  background: #080808;
  color: #d0d0d0;
  font-family: "Space Grotesk", monospace;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.audit-page .audit-eyebrow__role,
.audit-page .audit-eyebrow__tenure {
  display: inline-flex;
  align-items: center;
}

.audit-page .audit-eyebrow__role i {
  width: 6px;
  height: 6px;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: #d9e85c;
  box-shadow: 0 0 0 3px rgb(217 232 92 / 10%);
}

.audit-page .audit-eyebrow__tenure {
  padding-left: 0.75rem;
  border-left: 1px solid #3b3b3b;
  color: #929292;
  white-space: nowrap;
}

.audit-page .audit-hero-copy > p:not(:first-child) {
  visibility: visible;
}

.web-system {
  width: 100%;
  max-width: 720px;
  justify-self: end;
  color: var(--white);
}

.web-system.is-intro {
  animation: web-system-arrive 380ms ease-out 320ms both;
}

.web-system__stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  aspect-ratio: 5 / 4;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid #222;
  border-radius: var(--border-radius);
  background:
    linear-gradient(#151515 1px, transparent 1px),
    linear-gradient(90deg, #151515 1px, transparent 1px),
    #050505;
  background-size: 56px 56px;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease-out, border-color 180ms ease-out;
}

.web-system__connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transform: translateZ(-12px);
}

.web-system__connections path {
  fill: none;
  stroke: #545454;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0.42;
  transition: stroke 180ms ease, stroke-width 180ms ease, opacity 180ms ease;
}

.web-system.is-intro .web-system__connections path {
  animation: web-system-line-in 260ms ease-out both;
}

.web-system.is-intro .web-system__connections path:nth-of-type(n) { animation-delay: 620ms; }

.web-system__connections path.is-active {
  stroke: #d9e85c;
  stroke-width: 1.5;
  opacity: 0.95;
}

.web-system__connections circle {
  fill: #777;
  opacity: 0.65;
}

.web-system.is-intro .web-system__connections circle {
  animation: web-system-dot-in 220ms ease-out 680ms both;
}

.web-system__core {
  position: absolute;
  left: 49%;
  top: 46%;
  width: 180px;
  min-height: 142px;
  padding: 1.1rem;
  border: 1px solid #5a5a5a;
  background: #080808;
  transform: translate(-50%, -50%) translateZ(28px);
  box-shadow: 0 18px 38px rgb(0 0 0 / 45%);
  z-index: 3;
}

.web-system.is-intro .web-system__core {
  animation: web-system-core-in 300ms ease-out 500ms both;
}

.web-system__coordinate,
.web-system__status,
.web-system__proof-label {
  display: block;
  font-family: "Space Grotesk", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.web-system__coordinate {
  margin-bottom: 1rem;
  font-size: 9px;
  color: #777;
}

.web-system__core h2 {
  margin: 0 0 1rem;
  font-size: 22px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.web-system__status {
  font-size: 9px;
  color: var(--text-gray);
}

.web-system__status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: #d9e85c;
}

.web-system__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 4;
  min-width: 82px;
  padding: 0.62rem 0.8rem;
  border: 1px solid #454545;
  border-radius: 999px;
  background: #080808;
  color: #8d8d8d;
  font-family: "Space Grotesk", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transform: translate(-50%, -50%) translateZ(var(--z));
  box-shadow: 0 10px 25px rgb(0 0 0 / 34%);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease,
    opacity 180ms ease, background 180ms ease;
}

.web-system.is-intro .web-system__node {
  animation: web-system-node-in 240ms ease-out both;
}

.web-system.is-intro .web-system__node:nth-child(1) { animation-delay: 700ms; }
.web-system.is-intro .web-system__node:nth-child(2) { animation-delay: 725ms; }
.web-system.is-intro .web-system__node:nth-child(3) { animation-delay: 750ms; }
.web-system.is-intro .web-system__node:nth-child(4) { animation-delay: 775ms; }
.web-system.is-intro .web-system__node:nth-child(5) { animation-delay: 800ms; }
.web-system.is-intro .web-system__node:nth-child(6) { animation-delay: 825ms; }
.web-system.is-intro .web-system__node:nth-child(7) { animation-delay: 850ms; }

.web-system__node:hover,
.web-system__node:focus-visible,
.web-system__node.is-active {
  color: var(--white);
  border-color: #d9e85c;
  background: #10110a;
  outline: none;
  transform: translate(-50%, -50%) translateZ(calc(var(--z) + 28px)) scale(1.06);
}

.web-system__node:focus-visible {
  box-shadow: 0 0 0 3px rgb(217 232 92 / 24%), 0 12px 28px rgb(0 0 0 / 45%);
}

.web-system__node.is-selected::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d9e85c;
  transform: translateX(-50%);
}

.web-system__nodes:has(.web-system__node.is-active) .web-system__node:not(.is-active) {
  opacity: 0.58;
  transform: translate(-50%, -50%) translateZ(calc(var(--z) - 8px)) scale(0.98);
}

.web-system__proof {
  position: absolute;
  left: 53%;
  right: 4%;
  bottom: 4%;
  z-index: 5;
  min-height: 128px;
  padding: 1rem 1.1rem;
  border-top: 1px solid #4b4b4b;
  background: rgb(5 5 5 / 92%);
  transform: translateZ(20px);
  transition: opacity 110ms ease, transform 110ms ease;
}

.web-system.is-intro .web-system__proof {
  animation: web-system-proof-in 280ms ease-out 900ms both;
}

.web-system__proof::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #d9e85c;
  transform: scaleX(0);
  transform-origin: left;
  animation: web-system-cycle 4.5s linear 1.2s infinite;
}

.web-system.is-paused .web-system__proof::after {
  animation-play-state: paused;
}

.web-system.is-locked .web-system__proof::after {
  display: none;
}

.web-system__proof.is-changing {
  opacity: 0.25;
  transform: translateZ(20px) translateY(3px);
}

.web-system__proof p {
  visibility: visible;
}

.web-system__proof-label {
  margin: 0 0 0.45rem;
  color: #d9e85c;
  font-size: 10px;
  line-height: 1.3;
}

.web-system__proof-copy {
  max-width: 310px;
  margin: 0;
  color: #aaa;
  font-size: 13px;
  line-height: 1.4;
}

.web-system__proof-result {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.7rem;
}

.web-system__proof-result strong {
  color: var(--white);
  font-family: "Space Grotesk", monospace;
  font-size: 26px;
  line-height: 1;
}

.web-system__proof-result span {
  color: #888;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.web-system__hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 6;
  margin: 0;
  color: #686868;
  font-family: "Space Grotesk", monospace;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.web-system.is-intro .web-system__hint {
  animation: web-system-hint-in 240ms ease-out 940ms both;
}

@keyframes web-system-cycle {
  to { transform: scaleX(1); }
}

@keyframes web-system-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes web-system-line-in {
  from { opacity: 0; }
}

@keyframes web-system-dot-in {
  from { opacity: 0; }
}

@keyframes web-system-core-in {
  from { opacity: 0; }
}

@keyframes web-system-node-in {
  from { opacity: 0; }
}

@keyframes web-system-proof-in {
  from { opacity: 0; }
}

@keyframes web-system-hint-in {
  from { opacity: 0; transform: translateY(-4px); }
}

.audit-page #results .focus {
  row-gap: 1.5rem;
}

.audit-page #results .focus > h2,
.audit-page #results .focus > p {
  grid-column: 1 / span 6;
}

.audit-page #results .stats-bar {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #262626;
}

.audit-page #results .result {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #262626;
}

.audit-page #results .result h3 {
  font-size: clamp(56px, 6vw, 82px);
}

.audit-page #results .result p {
  max-width: 560px;
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.audit-page .audit-work .work-item--featured {
  grid-column: 1 / -1;
}

.audit-page .audit-work .work-item--featured .work-info {
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
}

.audit-page .audit-work .work-item--supporting {
  padding-top: 1.5rem;
  border-top: 1px solid #262626;
}

.audit-page .audit-work .work-item--supporting .work-info {
  grid-template-columns: 1fr;
}

.audit-page .audit-work .work-item--text {
  display: flex;
  align-items: center;
  min-height: 100%;
}

.audit-page .audit-work .work-item--text .work-info {
  width: 100%;
}

.audit-page #tools .chips {
  grid-column: 1 / span 8;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}

.audit-page #tools .chips li {
  margin: 0;
  line-height: 1.25;
  white-space: normal;
}

@media (max-width: 767px) {
  .audit-page .audit-eyebrow {
    gap: 0.6rem;
    margin-bottom: 1.4rem;
    padding: 0.5rem 0.65rem;
    font-size: 9px;
    letter-spacing: 0.055em;
  }

  .audit-page .audit-eyebrow__tenure {
    padding-left: 0.6rem;
  }

  .audit-page .main-header {
    min-height: auto;
    margin-bottom: var(--spacing-medium);
  }

  .audit-page .audit-hero-layout {
    display: block;
  }

  .audit-page .audit-hero-copy {
    margin-bottom: 4rem;
  }

  .web-system {
    max-width: none;
  }

  .web-system__stage {
    display: grid;
    grid-template-areas:
      "core"
      "nodes"
      "proof";
    gap: 1.25rem;
    min-height: 0;
    padding: 3.25rem 1rem 1rem;
    aspect-ratio: auto;
    transform: none;
  }

  .web-system__connections {
    display: none;
  }

  .web-system__core {
    position: relative;
    grid-area: core;
    left: auto;
    top: auto;
    width: 100%;
    min-height: 0;
    transform: none;
    box-shadow: none;
  }

  .web-system__core h2 {
    font-size: 22px;
  }

  .web-system__nodes {
    position: relative;
    grid-area: nodes;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-top: 1.25rem;
    border-top: 1px solid #2c2c2c;
  }

  .web-system__node {
    position: relative;
    left: auto;
    top: auto;
    min-width: 0;
    transform: none;
  }

  .web-system.is-intro .web-system__core,
  .web-system.is-intro .web-system__node,
  .web-system.is-intro .web-system__proof {
    animation-name: web-system-mobile-item-in;
  }

  .web-system__node:hover,
  .web-system__node:focus-visible,
  .web-system__node.is-active,
  .web-system__nodes:has(.web-system__node.is-active) .web-system__node:not(.is-active) {
    transform: none;
  }

  .web-system__proof {
    position: relative;
    grid-area: proof;
    left: auto;
    right: auto;
    bottom: auto;
    min-height: 142px;
    transform: none;
  }

  .web-system__proof.is-changing {
    transform: translateY(2px);
  }

  .audit-page #results .focus {
    display: block;
  }

  .audit-page #results .stats-bar {
    margin-top: 2rem;
  }

  .audit-page #results .result {
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.25rem 0;
  }

  .audit-page #results .result h3 {
    font-size: 52px;
    letter-spacing: -2px;
  }

  .audit-page #results .result p {
    font-size: 15px;
  }

  .audit-page .audit-work .work-item--text {
    min-height: auto;
  }
}

@media (min-width: 768px) and (max-width: 1120px) {
  .audit-page .audit-hero-layout {
    grid-template-columns: 1fr;
  }

  .audit-page .audit-hero-copy {
    max-width: 760px;
  }

  .web-system {
    width: min(100%, 720px);
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .web-system.is-intro,
  .web-system.is-intro .web-system__core,
  .web-system.is-intro .web-system__node,
  .web-system.is-intro .web-system__proof,
  .web-system.is-intro .web-system__hint,
  .web-system.is-intro .web-system__connections path,
  .web-system.is-intro .web-system__connections circle {
    animation: none;
  }

  .web-system__stage,
  .web-system__node,
  .web-system__connections path {
    transition: none;
  }

  .web-system__stage {
    transform: none;
  }

  .web-system__proof::after {
    display: none;
  }
}

@keyframes web-system-mobile-item-in {
  from { opacity: 0; transform: translateY(8px); }
}
