/* ==========================================================================
   Views: Technical (existing) · Recruiter · mode selection
   The existing Technical View is untouched; these rules only hide it while
   another view is active, and style the switch added to its header.
   Without JS no data-view is set, so the Technical View shows as before.
   ========================================================================== */
.vs,
.rv {
  display: none;
}

html[data-view="select"] .vs,
html[data-view="recruiter"] .rv {
  display: block;
}

html[data-view="select"] body > .skip-link,
html[data-view="select"] body > .site-header,
html[data-view="select"] body > #main,
html[data-view="select"] body > .site-footer,
html[data-view="recruiter"] body > .skip-link,
html[data-view="recruiter"] body > .site-header,
html[data-view="recruiter"] body > #main,
html[data-view="recruiter"] body > .site-footer {
  display: none;
}

/* the selector and recruiter view wait for the loader, like the technical page does */
.vs,
.rv {
  transition: opacity 500ms var(--ease-out);
}

.is-booting .vs,
.is-booting .rv {
  opacity: 0;
}

/* colour wash used while swapping views */
.view-veil {
  position: fixed;
  inset: 0;
  z-index: 350;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}

.view-veil.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Switch in the Technical View header
   ========================================================================== */
.view-switch {
  --paper: #f5f3ee;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 243, 238, 0.26);
  background: rgba(245, 243, 238, 0.06);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: background var(--dur-2), border-color var(--dur-2), color var(--dur-2);
}

.view-switch::after {
  /* one soft sheen that crosses the pill on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(245, 243, 238, 0.22) 50%, transparent 70%);
  transform: translateX(-110%);
}

.view-switch:hover,
.view-switch:focus-visible {
  background: rgba(245, 243, 238, 0.12);
  border-color: rgba(245, 243, 238, 0.5);
}

.view-switch:hover::after,
.view-switch.is-invite::after {
  transform: translateX(110%);
  transition: transform 900ms var(--ease-out);
}

.view-switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.view-switch__swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(245, 243, 238, 0.14);
  flex: none;
}

.view-switch__arrow {
  transition: transform var(--dur-2) var(--ease-out);
}

.view-switch:hover .view-switch__arrow {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .view-switch {
    padding: 0 10px 0 9px;
    gap: 6px;
  }

  .view-switch__long {
    display: none;
  }
}

@media (max-width: 360px) {
  .view-switch__swatch {
    display: none;
  }
}

/* contact: copy / write buttons on the email row (same as the Recruiter contact panel);
   the address wraps before the @ instead of being cut off */
.contact__link--email > span {
  white-space: normal;
  overflow-wrap: break-word;
  min-width: 0;
}

.contact__link--email .contact__btns {
  display: flex;
  gap: 2px;
  margin: -6px -6px -6px auto;
  flex: none;
}

.contact__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: var(--text-3);
  transition: background var(--dur-1), color var(--dur-1);
}

.contact__btn:hover {
  background: var(--bg-3);
  color: var(--text);
}

.contact__btn svg {
  width: 15px;
  height: 15px;
  color: inherit;
}

.contact__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.contact__link .contact__copied {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 200ms, transform 240ms var(--ease-out);
}

.contact__link .contact__copied.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

.contact__link .contact__copied:empty {
  padding: 0;
}

/* footer: the year sits next to the name (the separate copyright row was removed) */
.site-footer__year {
  margin-left: 8px;
  color: var(--text-3);
  font-weight: 400;
  white-space: nowrap;
}

/* The hero glow is 120vw wide and spilled past the screen edge on phones, which widened the
   page (and pushed fixed elements off-screen). Clip it sideways only; nothing visible changes. */
.hero {
  overflow-x: clip;
}

/* The Recruiter View switch is a floating button in the corner on every screen size,
   always showing its full label. */
.view-fab {
  display: none;
}

html:not([data-view="select"]):not([data-view="recruiter"]) .view-fab {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 22px 0 20px;
  border-radius: 26px;
  background: #f5f3ee;
  color: #121417;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 0 0 4px rgba(245, 243, 238, 0.12), 0 14px 30px -10px rgba(0, 0, 0, 0.8);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), opacity 500ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

html:not([data-view="select"]):not([data-view="recruiter"]) .view-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(245, 243, 238, 0.2), 0 18px 34px -10px rgba(0, 0, 0, 0.85);
}

.view-fab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

html:not([data-view="select"]):not([data-view="recruiter"]) .view-fab:active {
  transform: scale(0.96);
}

.is-booting .view-fab {
  opacity: 0;
}

.view-fab__mark,
.view-fab__mark svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.view-fab__arrow {
  display: inline-block;
  transition: transform var(--dur-2) var(--ease-out);
}

.view-fab:hover .view-fab__arrow {
  transform: translateX(3px);
}

/* beacon: a blue dot at the start of the button that keeps sending out a ring */
.view-fab__beacon {
  position: relative;
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: #1e5fcc;
  pointer-events: none;
}

.view-fab__beacon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #1e5fcc;
  animation: view-fab-beacon 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.view-fab__bubble {
  display: none;
}

/* "Switch to" only on phones */
.view-fab__hint {
  display: none;
}

@media (max-width: 640px) {
  .view-fab__hint {
    display: inline;
  }
}

@keyframes view-fab-beacon {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  80%,
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* keep the footer links clear of the floating button at the end of the page */
@media (min-width: 641px) {
  html:not([data-view="select"]):not([data-view="recruiter"]) .site-footer {
    padding-bottom: 96px;
  }
}

@media (max-width: 640px) {
  html:not([data-view="select"]):not([data-view="recruiter"]) .view-fab {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    height: 52px;
  }

  /* after the hero the button shrinks to a round beacon; it opens again near the bottom */
  html:not([data-view="select"]):not([data-view="recruiter"]) .view-fab {
    transition: transform 300ms var(--ease-out), padding 400ms var(--ease-out), gap 400ms var(--ease-out), width 400ms var(--ease-out), height 400ms var(--ease-out), border-radius 400ms var(--ease-out), opacity 500ms var(--ease-out);
  }

  .view-fab__label {
    display: inline-block;
    max-width: 240px;
    overflow: hidden;
    opacity: 1;
    transition: max-width 400ms var(--ease-out), opacity 250ms;
  }

  /* minimized: a small round beacon; every few seconds a speech bubble pops out of it */
  html:not([data-view="select"]):not([data-view="recruiter"]) .view-fab.is-min {
    justify-content: center;
    gap: 0;
    width: 52px;
    padding: 0;
    border-radius: 50%;
  }

  .view-fab.is-min .view-fab__label {
    max-width: 0;
    opacity: 0;
  }

  .view-fab.is-min .view-fab__beacon {
    width: 12px;
    height: 12px;
  }

  .view-fab__bubble {
    display: block;
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    padding: 9px 14px;
    border-radius: 14px;
    background: #f5f3ee;
    color: #3d4148;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(18, 20, 23, 0.08), 0 14px 30px -10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(8px) scale(0.85);
    transform-origin: calc(100% - 26px) 100%;
    pointer-events: none;
    transition: opacity 200ms, transform 300ms var(--ease-out);
  }

  .view-fab__bubble b {
    color: #121417;
    font-weight: 600;
  }

  .view-fab__bubble::after {
    /* tail pointing at the beacon */
    content: "";
    position: absolute;
    right: 20px;
    top: 100%;
    border: 6px solid transparent;
    border-top-color: #f5f3ee;
  }

  .view-fab.is-min.is-hint .view-fab__bubble {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity 200ms, transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* compact footer: tighter spacing and icon-only links (the text stays for screen readers),
     which keeps them on the left, clear of the floating button */
  .site-footer {
    padding: 18px 0 32px;
  }

  .site-footer__inner {
    gap: 8px;
  }

  .site-footer__links {
    gap: 2px;
    margin-left: -11px;
  }

  .site-footer__links a {
    justify-content: center;
    width: 40px;
    height: 40px;
    gap: 0;
    font-size: 0;
  }

  .site-footer__links svg {
    width: 18px;
    height: 18px;
  }
}

/* very narrow phones: slightly smaller footer icons so they stay clear of the floating pill */
@media (max-width: 360px) {
  .site-footer__links a {
    width: 36px;
    height: 36px;
  }
}

/* ==========================================================================
   Mode selection
   ========================================================================== */
.vs {
  --paper: #f5f3ee;
  --ink: #121417;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

.vs::before {
  /* the technical site's faint grid, carried over from the loader */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  opacity: 0.45;
}

.vs__glow {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(40% 50% at 28% 55%, rgba(245, 243, 238, 0.07), transparent 70%),
    radial-gradient(40% 50% at 72% 55%, rgba(92, 182, 255, 0.08), transparent 70%);
  transition: background 600ms var(--ease-out), opacity 600ms var(--ease-out);
}

.vs:has(.vs-card--recruiter:is(:hover, :focus-visible)) .vs__glow {
  background: radial-gradient(45% 60% at 28% 55%, rgba(245, 243, 238, 0.16), transparent 70%),
    radial-gradient(40% 50% at 72% 55%, rgba(92, 182, 255, 0.03), transparent 70%);
}

.vs:has(.vs-card--technical:is(:hover, :focus-visible)) .vs__glow {
  background: radial-gradient(40% 50% at 28% 55%, rgba(245, 243, 238, 0.03), transparent 70%),
    radial-gradient(45% 60% at 72% 55%, rgba(92, 182, 255, 0.18), transparent 70%);
}

.vs__inner {
  position: relative;
  width: min(1180px, 100%);
  margin-inline: auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 5vh, 56px) var(--gutter);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(20px, 4vh, 40px);
}

.vs__head {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.6vh, 24px);
  text-align: center;
}

.vs__id {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  text-align: left;
  line-height: 1.35;
}

.vs__id b {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.vs__role {
  font-family: var(--font-mono);
  font-size: 12px;
}

.vs__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050a14;
}

.vs__mark svg {
  width: 20px;
}

.vs__title {
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 18ch;
  color: var(--text);
}

.vs__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-self: center;
}

.vs__note {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

/* ---- business view: a slim banner under the two cards (plain link to the business site, arsohail.com) ---- */
.vs-biz {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: clamp(18px, 2vw, 24px) clamp(22px, 2.4vw, 32px);
  border-radius: 18px;
  background: var(--bg-1);
  box-shadow: 0 0 0 1px var(--line-2);
  color: var(--text);
  text-decoration: none;
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.vs-biz:is(:hover, :focus-visible) {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--accent-line), 0 24px 60px -36px rgba(92, 182, 255, 0.35);
}

.vs-biz:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.vs-biz__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 320px;
}

.vs-biz__for {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.vs-biz__name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
}

.vs-biz__desc {
  font-size: 15px;
  color: var(--text-2);
}

.vs-biz__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .vs-biz:is(:hover, :focus-visible) { transform: none; }
}

/* ---- cards ---- */
.vs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(420px, 60vh, 580px);
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out), opacity 400ms var(--ease-out),
    filter 400ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.vs-card--recruiter {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.vs-card--technical {
  background: radial-gradient(120% 80% at 100% 0%, rgba(92, 182, 255, 0.1), transparent 60%), var(--bg-1);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.vs-card--technical::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  opacity: 0.7;
}

.vs-card:is(:hover, :focus-visible) {
  transform: translateY(-6px);
}

.vs-card--recruiter:is(:hover, :focus-visible) {
  box-shadow: 0 40px 100px -40px rgba(245, 243, 238, 0.25), 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.vs-card--technical:is(:hover, :focus-visible) {
  box-shadow: 0 0 0 1px var(--accent-line), 0 40px 100px -40px rgba(92, 182, 255, 0.35);
}

.vs__cards:has(.vs-card:hover) .vs-card:not(:hover) {
  opacity: 0.66;
  filter: saturate(0.7);
}

.vs-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.vs-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.vs-card__num {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.6;
}

.vs-card--recruiter .vs-card__for {
  color: #5a5f68;
}

.vs-card--technical .vs-card__for {
  color: var(--text-3);
}

.vs-card__name {
  margin-top: clamp(18px, 3vh, 28px);
  line-height: 1;
}

.vs-card--recruiter .vs-card__name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(42px, 4.6vw, 64px);
  letter-spacing: -0.01em;
}

.vs-card--technical .vs-card__name {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  padding-block: 0.1em;
}

.vs-card__prompt {
  font-family: var(--font-mono);
  color: var(--accent);
  margin-right: 0.3em;
  font-weight: 500;
}

.vs-card__desc {
  margin-top: 10px;
  font-size: 16px;
}

.vs-card--recruiter .vs-card__desc {
  color: #4a4f57;
}

.vs-card--technical .vs-card__desc {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 14px;
}

.vs-card__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 22px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--dur-2), color var(--dur-2), gap var(--dur-2) var(--ease-out);
}

.vs-card--recruiter .vs-card__go {
  background: var(--ink);
  color: var(--paper);
}

.vs-card--technical .vs-card__go {
  background: var(--accent);
  color: #04111f;
}

.vs-card:is(:hover, :focus-visible) .vs-card__go {
  gap: 14px;
}

/* ---- live previews ---- */
.vs-card__preview {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-top: clamp(18px, 3vh, 28px);
  display: block;
  opacity: 0.55;
  transform: translateY(10px) scale(0.98);
  transform-origin: 50% 100%;
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
}

.vs-card:is(:hover, :focus-visible, .is-preview) .vs-card__preview {
  opacity: 1;
  transform: none;
}

/* recruiter: a miniature, editorial page that assembles itself */
.pv-r {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #fffefb;
  box-shadow: 0 1px 0 rgba(18, 20, 23, 0.05), 0 24px 50px -30px rgba(18, 20, 23, 0.35);
  overflow: hidden;
}

.pv-r i,
.pv-r b {
  display: block;
  border-radius: 999px;
}

.pv-r__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pv-r__nav i {
  width: 32px;
  height: 5px;
  background: #e3dfd6;
}

.pv-r__nav b {
  margin-left: auto;
  width: 58px;
  height: 14px;
  background: var(--ink);
}

.pv-r__hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  min-height: 0;
}

.pv-r__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

.pv-r__name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 0.95;
  color: var(--ink);
}

.pv-r__line {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #dcd8cf;
}

.pv-r__line--a {
  width: 92%;
}

.pv-r__line--b {
  width: 70%;
}

.pv-r__btns {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.pv-r__btns i {
  width: 56px;
  height: 16px;
  background: #1e5fcc;
}

.pv-r__btns i + i {
  width: 46px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #c9c4b9;
}

.pv-r__about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #f1eee7;
}

.pv-r__about i {
  height: 5px;
  background: #d6d1c6;
}

.pv-r__about i:first-child {
  width: 40%;
  background: #1e5fcc;
  opacity: 0.6;
}

.pv-r__about i:nth-child(3) {
  width: 80%;
}

.pv-r__about i:nth-child(4) {
  width: 60%;
}

.pv-r__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 22%;
  min-height: 38px;
}

.pv-r__cards i {
  border-radius: 8px;
  background: #f6f4ef;
  box-shadow: inset 0 0 0 1px #e8e4db;
}

.pv-r__nav,
.pv-r__name,
.pv-r__line,
.pv-r__btns,
.pv-r__about,
.pv-r__cards i {
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
}

.vs-card--recruiter:is(:hover, :focus-visible, .is-preview) :is(.pv-r__name, .pv-r__line, .pv-r__btns, .pv-r__about, .pv-r__cards i) {
  animation: pv-rise 700ms var(--ease-out) both;
}

.vs-card--recruiter:is(:hover, :focus-visible, .is-preview) .pv-r__line--a { animation-delay: 60ms; }
.vs-card--recruiter:is(:hover, :focus-visible, .is-preview) .pv-r__line--b { animation-delay: 110ms; }
.vs-card--recruiter:is(:hover, :focus-visible, .is-preview) .pv-r__btns { animation-delay: 160ms; }
.vs-card--recruiter:is(:hover, :focus-visible, .is-preview) .pv-r__about { animation-delay: 120ms; }
.vs-card--recruiter:is(:hover, :focus-visible, .is-preview) .pv-r__cards i:nth-child(1) { animation-delay: 220ms; }
.vs-card--recruiter:is(:hover, :focus-visible, .is-preview) .pv-r__cards i:nth-child(2) { animation-delay: 280ms; }
.vs-card--recruiter:is(:hover, :focus-visible, .is-preview) .pv-r__cards i:nth-child(3) { animation-delay: 340ms; }

@keyframes pv-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* technical: an editor that types itself, plus a live terminal line */
.pv-t {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line-2), 0 24px 50px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 13px);
}

.pv-t__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-size: 11px;
}

.pv-t__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--light-close);
}

.pv-t__bar i:nth-child(2) {
  background: var(--light-min);
}

.pv-t__bar i:nth-child(3) {
  background: var(--light-max);
}

.pv-t__bar span {
  margin-left: 8px;
}

.pv-t__code {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 0;
  color: var(--text-2);
  min-height: 0;
  overflow: hidden;
}

.pv-t__ln {
  display: block;
  white-space: nowrap;
  overflow: hidden;
}

.pv-t__ln em {
  font-style: normal;
}

.pv-t__ln .k {
  color: var(--syn-kw);
}

.pv-t__ln .f {
  color: var(--syn-fn);
}

.pv-t__ln .s {
  color: var(--syn-str);
}

.vs-card--technical:is(:hover, :focus-visible, .is-preview) .pv-t__ln {
  animation: pv-type 520ms steps(22, end) calc(var(--i) * 240ms) both;
}

@keyframes pv-type {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.pv-t__term {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
}

.pv-t__ps1 {
  color: var(--accent);
}

.pv-t__caret {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--text);
  animation: blink 1.1s steps(1) infinite;
}

.pv-t__wires {
  position: absolute;
  right: 14px;
  top: 46px;
  display: grid;
  gap: 10px;
  width: 26%;
  opacity: 0.8;
}

.pv-t__wires i {
  position: relative;
  height: 1px;
  background: var(--line-3);
  overflow: hidden;
}

.pv-t__wires i::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.vs-card--technical:is(:hover, :focus-visible, .is-preview) .pv-t__wires i::after {
  animation: pv-packet 1.6s var(--ease-in-out) infinite;
}

.pv-t__wires i:nth-child(2)::after {
  animation-delay: 0.4s !important;
}

.pv-t__wires i:nth-child(3)::after {
  animation-delay: 0.8s !important;
}

@keyframes pv-packet {
  to {
    left: 100%;
  }
}

/* picking a card */
.vs.is-leaving .vs-card:not(.is-picked) {
  opacity: 0;
  transform: scale(0.98);
}

.vs.is-leaving .vs-card.is-picked {
  transform: scale(1.015);
}

/* ---- tablet & mobile: an intentional stacked layout ---- */
@media (max-width: 860px) {
  .vs__inner {
    grid-template-rows: auto auto auto;
    align-content: start;
    padding-top: 28px;
  }

  .vs__head {
    justify-items: start;
    text-align: left;
  }

  .vs__title {
    font-size: clamp(28px, 7.4vw, 38px);
  }

  .vs__cards {
    grid-template-columns: minmax(0, 1fr);
    align-self: start;
  }

  .vs-card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "top top"
      "name go"
      "desc go"
      "preview preview";
    align-items: end;
    column-gap: 14px;
  }

  .vs-card__top { grid-area: top; }
  .vs-card__name { grid-area: name; margin-top: 18px; }
  .vs-card__desc { grid-area: desc; margin-top: 6px; }
  .vs-card__go {
    grid-area: go;
    align-self: end;
    margin-top: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .vs-card__go .vs-card__arrow { font-size: 18px; }
  .vs-card:is(:hover, :focus-visible) .vs-card__go { gap: 0; }

  .vs-card__preview {
    grid-area: preview;
    height: clamp(190px, 52vw, 260px);
    flex: none;
    margin-top: 20px;
  }

  .pv-r__cards {
    display: none;
  }

  .pv-t {
    font-size: 11px;
  }

  .pv-t__code {
    padding-top: 10px;
    gap: 2px;
  }

  .vs-card:is(:hover, :focus-visible) {
    transform: none;
  }

  .vs-card:active {
    transform: scale(0.985);
    transition-duration: 120ms;
  }

  .vs__cards:has(.vs-card:hover) .vs-card:not(:hover) {
    opacity: 1;
    filter: none;
  }

  .pv-t__wires {
    display: none;
  }

  .vs__note {
    text-align: left;
  }
}

@media (max-width: 380px) {
  .vs-card__for {
    font-size: 11px;
  }

  .pv-r__about {
    display: none;
  }

  .pv-r__hero {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vs-card__preview,
  .vs-card:is(:hover, :focus-visible) {
    transform: none;
  }

  .vs-card__preview {
    opacity: 1;
  }

  .pv-t__caret {
    animation: none;
  }

  .view-fab,
  .view-fab__arrow,
  .view-fab__label {
    transition: none !important;
  }

  .view-fab__beacon::before {
    animation: none;
  }

  .view-fab__bubble {
    transition: none !important;
  }
}
