/* ==========================================================================
   Recruiter View — light, editorial presentation of the same portfolio.
   Everything is scoped to .rv (or to html[data-view="recruiter"]), so none
   of it can reach the Technical View.
   ========================================================================== */
html[data-view="recruiter"] {
  color-scheme: light;
  scroll-padding-top: 88px;
}

html[data-view="recruiter"] body {
  background: #f5f3ee;
  color: #121417;
}

html[data-view="recruiter"] body::before {
  display: none;
}

.rv {
  /* palette: warm paper, near-black ink, the technical site's blue made deep enough for light backgrounds */
  --r-bg: #f5f3ee;
  --r-bg-2: #efece5;
  --r-surface: #fffefb;
  --r-ink: #121417;
  --r-ink-2: #464b53;
  --r-ink-3: #686d75;
  --r-line: rgba(18, 20, 23, 0.1);
  --r-line-2: rgba(18, 20, 23, 0.16);
  --r-accent: #1e5fcc;
  --r-accent-ink: #1a4fa8;
  --r-accent-soft: rgba(30, 95, 204, 0.08);
  --r-accent-line: rgba(30, 95, 204, 0.35);
  --r-pill: #f2efe8;
  --r-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --r-header: 68px;
  --r-max: 1200px;
  --r-shadow: 0 1px 0 rgba(18, 20, 23, 0.04), 0 18px 40px -28px rgba(18, 20, 23, 0.25);
  --r-shadow-hi: 0 1px 0 rgba(18, 20, 23, 0.04), 0 30px 60px -30px rgba(18, 20, 23, 0.32);

  background: var(--r-bg);
  color: var(--r-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

.rv ::selection {
  background: rgba(30, 95, 204, 0.18);
}

.rv :focus-visible {
  outline: 2px solid var(--r-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.rv-wrap {
  width: min(var(--r-max), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.rv-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 80;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--r-ink);
  color: var(--r-bg);
  font-size: 14px;
}

.rv-skip:focus {
  top: 12px;
}

.rv-mono {
  font-family: var(--font-mono);
}

.rv-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--r-accent);
  box-shadow: 0 0 0 4px var(--r-accent-soft);
  flex: none;
}

/* ---- buttons ---- */
.rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 240ms, color 240ms, border-color 240ms, transform 240ms var(--ease-out), box-shadow 240ms;
}

.rv-btn svg {
  width: 16px;
  height: 16px;
}

.rv-btn--lg {
  height: 54px;
  padding: 0 26px;
  font-size: 15.5px;
}

.rv-btn--primary {
  background: var(--r-ink);
  color: var(--r-bg);
  box-shadow: 0 10px 24px -14px rgba(18, 20, 23, 0.6);
}

.rv-btn--primary:hover {
  background: var(--r-accent);
  transform: translateY(-1px);
}

.rv-btn--ghost {
  border: 1px solid var(--r-line-2);
  color: var(--r-ink);
  background: rgba(255, 255, 255, 0.4);
}

.rv-btn--ghost:hover {
  border-color: var(--r-ink);
  background: var(--r-surface);
  transform: translateY(-1px);
}

.rv-btn--dark {
  background: var(--r-ink);
  color: var(--r-bg);
}

.rv-btn--dark .rv-mono {
  color: #8cc4ff;
}

/* ==========================================================================
   Header
   ========================================================================== */
.rv-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--r-header);
  background: rgba(245, 243, 238, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms;
}

.rv-header.is-scrolled {
  border-bottom-color: var(--r-line);
}

.rv-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.rv-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* monogram: an "A" whose crossbar is the technical site's blue cursor */
.rv-brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--r-ink);
  color: var(--r-bg);
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 18px -10px rgba(18, 20, 23, 0.7);
  transition: transform 300ms var(--ease-out);
}

.rv-brand__mark svg {
  width: 24px;
  height: 24px;
}

.rv-brand__cursor {
  stroke: #8cc4ff;
}

.rv-brand:hover .rv-brand__mark {
  transform: rotate(-4deg);
}

.rv-brand:hover .rv-brand__cursor {
  animation: rv-cursor 1s steps(1) 2;
}

@keyframes rv-cursor {
  50% {
    opacity: 0;
  }
}

.rv-brand__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rv-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.rv-nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--r-ink-2);
  transition: color 200ms, background 200ms;
}

.rv-nav a:hover {
  color: var(--r-ink);
  background: rgba(18, 20, 23, 0.05);
}

.rv-nav a[aria-current="true"] {
  color: var(--r-ink);
}

.rv-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--r-accent);
  opacity: 0;
  transform: scale(0);
  transition: opacity 240ms, transform 300ms var(--ease-out);
}

.rv-nav a[aria-current="true"]::after {
  opacity: 1;
  transform: none;
}

.rv-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rv-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: var(--r-ink);
  color: var(--r-bg);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 24px -14px rgba(18, 20, 23, 0.7);
  transition: box-shadow 300ms, transform 300ms var(--ease-out);
}

.rv-switch::before {
  /* the technical grid shows through on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0;
  transition: opacity 300ms;
}

.rv-switch:hover,
.rv-switch:focus-visible {
  box-shadow: 0 0 0 4px rgba(30, 95, 204, 0.14), 0 14px 30px -14px rgba(18, 20, 23, 0.8);
  transform: translateY(-1px);
}

.rv-switch:hover::before {
  opacity: 1;
}

.rv-switch__glyph {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #8cc4ff;
}

.rv-switch__arrow {
  transition: transform 300ms var(--ease-out);
}

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

.rv-switch.is-invite .rv-switch__glyph {
  animation: rv-glyph 1.2s steps(1) 2;
}

/* the underscore in ">_" blinks like a terminal cursor */
.rv-blink {
  animation: rv-cursor 1.06s steps(1) infinite;
}

@keyframes rv-glyph {
  50% {
    color: transparent;
  }
}

/* floating Technical View switch, phones only (see the 640px block) */
.rv-fab {
  display: none;
}

.rv-menu-btn {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--r-line-2);
  background: var(--r-surface);
}

.rv-menu-btn__bars {
  display: grid;
  gap: 5px;
  width: 16px;
}

.rv-menu-btn__bars i {
  display: block;
  height: 1.6px;
  border-radius: 2px;
  background: var(--r-ink);
  transition: transform 300ms var(--ease-out);
}

.rv-menu-btn[aria-expanded="true"] .rv-menu-btn__bars i:first-child {
  transform: translateY(3.3px) rotate(45deg);
}

.rv-menu-btn[aria-expanded="true"] .rv-menu-btn__bars i:last-child {
  transform: translateY(-3.3px) rotate(-45deg);
}

.rv-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.rv-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--r-accent), #6a7cf0);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.rv-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--r-bg);
  border-bottom: 1px solid var(--r-line);
  box-shadow: 0 30px 60px -30px rgba(18, 20, 23, 0.35);
  max-height: calc(100vh - var(--r-header));
  max-height: calc(100svh - var(--r-header));
  overflow-y: auto;
}

.rv-menu.is-open {
  animation: rv-menu-in 360ms var(--ease-out);
}

@keyframes rv-menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.rv-menu__inner {
  display: grid;
  padding-block: 12px 24px;
}

.rv-menu__inner > a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--r-line);
  font-family: var(--r-serif);
  font-size: 30px;
  line-height: 1.1;
}

.rv-menu__inner > a span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--r-ink-3);
}

.rv-menu__inner > a[aria-current="true"] {
  color: var(--r-accent);
}

.rv-menu__foot {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.rv-menu__foot .rv-btn {
  height: 52px;
}

/* ==========================================================================
   Shared section furniture
   ========================================================================== */
.rv-section {
  padding-block: clamp(72px, 10vw, 136px) 0;
  scroll-margin-top: var(--r-header);
}

.rv-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}

.rv-chapter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--r-ink-3);
}

.rv-chapter span {
  display: grid;
  place-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--r-accent-line);
  color: var(--r-accent-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0;
}

.rv-chapter::after {
  content: "";
  height: 1px;
  width: 64px;
  background: var(--r-line-2);
  transform-origin: left;
  transition: transform 900ms var(--ease-out) 250ms;
}

.rv-chapter.r-reveal:not(.is-in)::after {
  transform: scaleX(0);
}

.rv-h2 {
  font-family: var(--r-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  max-width: 24ch;
  text-wrap: balance;
}

.rv-h2 span {
  color: var(--r-ink-3);
}

.rv-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-accent-ink);
}

.rv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-tags li {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--r-line);
  font-size: 12.5px;
  color: var(--r-ink-3);
  background: rgba(255, 255, 255, 0.5);
}

/* ---- motion: hero rises after the loader, everything else on scroll ---- */
.r-rise,
.r-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.r-rise.is-in,
.r-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.rv-hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 96px);
  scroll-margin-top: var(--r-header);
  overflow: clip;
}

.rv-hero::before {
  /* soft light behind the About card */
  content: "";
  position: absolute;
  top: 4%;
  right: -8%;
  width: min(720px, 80vw);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(30, 95, 204, 0.09), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(214, 160, 82, 0.1), transparent 70%);
  filter: blur(10px);
}

.rv-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: clamp(36px, 5.5vw, 80px);
  align-items: center;
}

.rv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--r-ink-2);
}

.rv-hero__name {
  margin-top: 22px;
  font-family: var(--r-serif);
  font-weight: 400;
  font-size: clamp(54px, 8.2vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.022em;
}

.rv-hero__name em {
  font-style: italic;
  color: var(--r-accent);
}

.rv-hero__role {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.rv-hero__role::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--r-ink);
  flex: none;
}

.rv-hero__lead {
  margin-top: 20px;
  max-width: 33em;
  font-size: clamp(16.5px, 1.35vw, 18.5px);
  line-height: 1.62;
  color: var(--r-ink-2);
}

.rv-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.rv-about {
  position: relative;
  padding: clamp(24px, 2.8vw, 38px);
  border-radius: 26px;
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  box-shadow: var(--r-shadow-hi);
  scroll-margin-top: calc(var(--r-header) + 24px);
}

.rv-about__title {
  margin-top: 14px;
  font-family: var(--r-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.rv-about__text {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--r-ink-2);
}

.rv-about__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--r-line);
}

.rv-about__facts dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--r-ink-3);
}

.rv-about__facts dd {
  margin: 5px 0 0;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
}

.rv-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--r-line-2);
}

.rv-strip li {
  display: grid;
  gap: 3px;
  padding: 22px 20px;
  border-left: 1px solid var(--r-line);
}

.rv-strip li:first-child {
  border-left: 0;
  padding-left: 0;
}

.rv-strip b {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rv-strip span {
  font-size: 13.5px;
  color: var(--r-ink-3);
}

/* ==========================================================================
   Skills
   ========================================================================== */
.rv-skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rv-skill {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  box-shadow: var(--r-shadow);
  transition: opacity 700ms var(--ease-out), transform 500ms var(--ease-out), box-shadow 400ms var(--ease-out),
    border-color 400ms;
  transition-delay: var(--d, 0ms);
}

.rv-skill.is-in:hover {
  transform: translateY(-4px);
  box-shadow: var(--r-shadow-hi);
  border-color: var(--r-accent-line);
}

.rv-skill--wide {
  grid-column: span 2;
}

.rv-skill__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rv-skill__cat {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.rv-skill__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--r-ink-3);
}

.rv-skill__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-skill__list li {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--r-pill);
  border: 1px solid rgba(18, 20, 23, 0.05);
  font-size: 14px;
  font-weight: 500;
  transition: background 300ms, border-color 300ms;
}

.rv-skill:hover .rv-skill__list li {
  border-color: rgba(30, 95, 204, 0.14);
}

.rv-skill__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: -4px 0 0;
  padding: 0;
  list-style: none;
}

.rv-skill__sub-label {
  margin-right: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--r-ink-3);
}

.rv-skill__sub li:not(.rv-skill__sub-label) {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--r-line-2);
  font-size: 13px;
  color: var(--r-ink-2);
}

.rv-skill__sub--also li:not(.rv-skill__sub-label) {
  border-style: dashed;
  color: var(--r-ink-3);
}

/* the core card: Python backends */
.rv-skill--core {
  background: var(--r-ink);
  color: var(--r-bg);
  border-color: var(--r-ink);
  overflow: hidden;
  isolation: isolate;
}

.rv-skill--core::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 60%;
  aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(92, 182, 255, 0.25), transparent 70%);
}

.rv-skill--core.is-in:hover {
  border-color: var(--r-ink);
}

.rv-skill--core .rv-skill__cat {
  font-size: 22px;
}

.rv-skill--core .rv-skill__num {
  color: rgba(245, 243, 238, 0.55);
}

.rv-skill__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8cc4ff;
}

.rv-skill__blurb {
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 243, 238, 0.72);
}

.rv-skill--core .rv-skill__list {
  margin-top: auto;
}

.rv-skill--core .rv-skill__list li {
  padding: 9px 16px;
  font-size: 15.5px;
  background: rgba(245, 243, 238, 0.08);
  border-color: rgba(245, 243, 238, 0.14);
  color: var(--r-bg);
}

/* ==========================================================================
   Experience
   ========================================================================== */
.rv-current {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(26px, 4vw, 52px);
  border-radius: 28px;
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  box-shadow: var(--r-shadow-hi);
}

.rv-current__now {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--r-accent-ink);
}

.rv-current__role {
  margin-top: 18px;
  font-family: var(--r-serif);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.rv-current__company {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 600;
}

.rv-current__meta {
  margin-top: 2px;
  font-size: 14.5px;
  color: var(--r-ink-3);
}

.rv-current .rv-tags {
  margin-top: 22px;
}

.rv-current__points {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0 0 0 clamp(0px, 3vw, 40px);
  list-style: none;
  border-left: 1px solid var(--r-line);
  align-content: center;
}

.rv-current__points li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--r-ink-2);
}

.rv-current__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--r-accent);
}

.rv-current__points b {
  color: var(--r-ink);
  font-weight: 600;
}

.rv-history {
  margin-top: clamp(40px, 5vw, 64px);
}

.rv-span {
  margin-bottom: 36px;
}

.rv-span__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(18, 20, 23, 0.06);
}

.rv-span__seg {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--c);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1100ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.rv-span.is-in .rv-span__seg {
  transform: scaleX(1);
}

.rv-span__years {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--r-ink-3);
}

.rv-history__label {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--r-ink-3);
}

.rv-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-role {
  padding: 22px 22px 24px;
  border-radius: 20px;
  border: 1px solid var(--r-line);
  background: rgba(255, 254, 251, 0.6);
  transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out), background 300ms;
  transition-delay: var(--d, 0ms);
}

.rv-role:hover {
  background: var(--r-surface);
}

.rv-role__when {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--r-ink-3);
}

.rv-role__when i {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--c);
}

.rv-role__title {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.rv-role__company {
  margin-top: 2px;
  font-size: 15px;
  color: var(--r-accent-ink);
  font-weight: 500;
}

.rv-role__text {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--r-ink-2);
}

/* ==========================================================================
   Projects
   ========================================================================== */
.rv-projects {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.rv-project {
  --tint: #e6eef9;
  --hue: #1e5fcc;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(14px, 1.6vw, 20px);
  border-radius: 30px;
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  box-shadow: var(--r-shadow);
  transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out), box-shadow 400ms;
  transition-delay: var(--d, 0ms);
}

.rv-project:hover {
  box-shadow: var(--r-shadow-hi);
}

.rv-project:nth-child(even) .rv-project__visual {
  order: 2;
}

.rv-project[data-visual="voice"] { --tint: #ece9f6; --hue: #5b4bc4; }
.rv-project[data-visual="agents"] { --tint: #e3efe8; --hue: #23805d; }
.rv-project[data-visual="flow"] { --tint: #e4ecf8; --hue: #1e5fcc; }
.rv-project[data-visual="report"] { --tint: #f3ebdc; --hue: #a86a12; }
.rv-project[data-visual="mail"] { --tint: #f6e6e1; --hue: #b44a31; }

.rv-project__visual {
  position: relative;
  min-height: 320px;
  border-radius: 22px;
  background: var(--tint);
  overflow: hidden;
  isolation: isolate;
}

.rv-project__visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rv-project__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 254, 251, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -18px rgba(18, 20, 23, 0.45);
}

.rv-project__badge b {
  font-family: var(--r-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  color: var(--hue);
}

.rv-project__badge span {
  font-size: 13px;
  color: var(--r-ink-2);
  line-height: 1.35;
}

.rv-project__body {
  display: flex;
  flex-direction: column;
  padding: clamp(10px, 2vw, 28px) clamp(6px, 1.5vw, 20px) clamp(10px, 2vw, 24px) 0;
}

.rv-project:nth-child(even) .rv-project__body {
  padding-left: clamp(6px, 1.5vw, 20px);
  padding-right: 0;
}

.rv-project__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rv-project__num {
  font-family: var(--r-serif);
  font-size: 22px;
  line-height: 1;
  color: var(--hue);
}

.rv-project__desc {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--r-ink-3);
}

.rv-project__name {
  margin-top: 14px;
  font-family: var(--r-serif);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 50px);
  line-height: 1;
  letter-spacing: -0.012em;
}

.rv-project__summary {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--r-ink-2);
  max-width: 40em;
}

.rv-project__role {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--r-line);
  font-size: 15px;
}

.rv-project__role dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--r-ink-3);
}

.rv-project__role dd {
  margin: 0;
  font-weight: 600;
}

.rv-project__role dd span {
  font-weight: 400;
  color: var(--r-ink-3);
}

.rv-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 520ms var(--ease-out);
}

.rv-more > div {
  min-height: 0;
  overflow: hidden;
}

.rv-project.is-open .rv-more {
  grid-template-rows: 1fr;
}

.rv-more__inner {
  display: grid;
  gap: 20px;
  padding-top: 22px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out);
}

.rv-project.is-open .rv-more__inner {
  opacity: 1;
  transform: none;
  transition-delay: 120ms;
}

.rv-more h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--r-ink-3);
}

.rv-more p,
.rv-more li {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--r-ink-2);
}

.rv-more p {
  margin-top: 6px;
}

.rv-more ul {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.rv-more li {
  position: relative;
  padding-left: 20px;
}

.rv-more li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--hue);
}

.rv-outcome {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--tint);
}

.rv-outcome b {
  font-family: var(--r-serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  color: var(--hue);
}

.rv-outcome span {
  font-size: 15px;
  color: var(--r-ink);
}

.rv-project__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}

.rv-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 20px;
  border-radius: 999px;
  border: 1px solid var(--r-line-2);
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color 240ms, background 240ms;
}

.rv-toggle:hover {
  border-color: var(--r-ink);
  background: var(--r-bg);
}

.rv-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 400ms var(--ease-out);
}

.rv-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.rv-project .rv-tags {
  flex: 1;
  justify-content: flex-end;
}

/* invitation after the projects: "View more" saves the resume and opens the Technical View's projects */
.rv-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px clamp(24px, 4vw, 56px);
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--r-accent-soft), transparent 55%), var(--r-surface);
  border: 1px solid var(--r-line);
  box-shadow: var(--r-shadow);
}

.rv-invite__title {
  margin-top: 12px;
  font-family: var(--r-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.rv-invite__text {
  margin-top: 12px;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.6;
  color: var(--r-ink-2);
}

.rv-invite .rv-tags {
  margin-top: 18px;
}

.rv-viewmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--r-ink);
  color: var(--r-bg);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 24px -14px rgba(18, 20, 23, 0.6);
  transition: background 240ms, transform 240ms var(--ease-out);
}

.rv-viewmore:hover {
  background: var(--r-accent);
  transform: translateY(-1px);
}

.rv-viewmore span {
  transition: transform 300ms var(--ease-out);
}

.rv-viewmore:hover span {
  transform: translateX(3px);
}

/* ---- abstract project visuals (SVG) ---- */
.rv-viz .st { stroke: var(--hue); fill: none; }
.rv-viz .fl { fill: var(--hue); }
.rv-viz .pp { fill: #fffefb; }
.rv-viz .ln { stroke: rgba(18, 20, 23, 0.14); fill: none; }

.rv-viz .bar {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.rv-project.is-live .rv-viz .bar {
  animation: rv-bar 1.6s var(--ease-in-out) infinite alternate;
  animation-delay: calc(var(--k) * -0.13s);
}

@keyframes rv-bar {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

.rv-viz .dash {
  stroke-dasharray: 4 10;
}

.rv-project.is-live .rv-viz .dash {
  animation: rv-dash 1.8s linear infinite;
}

@keyframes rv-dash {
  to { stroke-dashoffset: -28; }
}

.rv-viz .float {
  transform-box: fill-box;
}

.rv-project.is-live .rv-viz .float {
  animation: rv-float 5s var(--ease-in-out) infinite alternate;
  animation-delay: calc(var(--k, 0) * -1.2s);
}

@keyframes rv-float {
  to { transform: translateY(-8px); }
}

.rv-viz .grow {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0.15);
  transition: transform 1200ms var(--ease-out);
  transition-delay: calc(var(--k) * 90ms);
}

.rv-project.is-seen .rv-viz .grow {
  transform: none;
}

.rv-viz .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1600ms var(--ease-out) 300ms;
}

.rv-project.is-seen .rv-viz .draw {
  stroke-dashoffset: 0;
}

.rv-viz .pulse {
  transform-box: fill-box;
  transform-origin: center;
}

.rv-project.is-live .rv-viz .pulse {
  animation: rv-pulse 3s var(--ease-out) infinite;
  animation-delay: calc(var(--k, 0) * 1s);
}

@keyframes rv-pulse {
  from { transform: scale(0.6); opacity: 0.5; }
  to { transform: scale(1.5); opacity: 0; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.rv-section--contact {
  padding-bottom: clamp(56px, 8vw, 104px);
}

.rv-cta {
  position: relative;
  padding: clamp(32px, 6vw, 80px);
  border-radius: 34px;
  background: var(--r-ink);
  color: var(--r-bg);
  overflow: hidden;
  isolation: isolate;
}

.rv-cta::before {
  content: "";
  position: absolute;
  right: -15%;
  top: -50%;
  width: 70%;
  aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(92, 182, 255, 0.22), transparent 70%);
}

.rv-cta::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -60%;
  width: 60%;
  aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(214, 160, 82, 0.14), transparent 70%);
}

.rv-chapter--light {
  color: rgba(245, 243, 238, 0.6);
}

.rv-chapter--light span {
  color: #8cc4ff;
  border-color: rgba(140, 196, 255, 0.4);
}

.rv-chapter--light::after {
  background: rgba(245, 243, 238, 0.2);
}

.rv-cta__title {
  margin-top: 22px;
  max-width: 22ch;
  font-family: var(--r-serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.rv-cta__title em {
  color: #8cc4ff;
}

.rv-cta__text {
  margin-top: 22px;
  max-width: 36em;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(245, 243, 238, 0.72);
}

.rv-cta__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
  max-width: 760px;
}

.rv-action {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px 18px 18px;
  border-radius: 22px;
  text-align: left;
  background: rgba(245, 243, 238, 0.06);
  border: 1px solid rgba(245, 243, 238, 0.16);
  color: var(--r-bg);
  transition: transform 300ms var(--ease-out), background 300ms, border-color 300ms, box-shadow 300ms;
}

.rv-action:hover {
  transform: translateY(-3px);
  background: rgba(245, 243, 238, 0.1);
  border-color: rgba(245, 243, 238, 0.32);
}

.rv-action--primary {
  background: var(--r-bg);
  border-color: var(--r-bg);
  color: var(--r-ink);
}

.rv-action--primary:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 20px 40px -20px rgba(140, 196, 255, 0.5);
}

.rv-action__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgba(245, 243, 238, 0.1);
  flex: none;
}

.rv-action--primary .rv-action__icon {
  background: var(--r-ink);
  color: var(--r-bg);
}

.rv-action__icon svg {
  width: 24px;
  height: 24px;
}

.rv-action__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rv-action__text b {
  font-size: 17px;
  font-weight: 600;
}

.rv-action__text span {
  font-size: 13.5px;
  opacity: 0.7;
}

.rv-action__arrow {
  margin-left: auto;
  font-size: 18px;
  transition: transform 300ms var(--ease-out);
}

.rv-action:hover .rv-action__arrow {
  transform: translateX(3px);
}

.rv-action--primary:hover .rv-action__arrow {
  transform: translateY(3px);
}


/* ==========================================================================
   Footer
   ========================================================================== */
.rv-footer {
  border-top: 1px solid var(--r-line);
}

.rv-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-block: 32px;
}

.rv-footer__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  font-weight: 600;
}

.rv-footer__role {
  font-size: 14px;
  color: var(--r-ink-3);
}

.rv-footer__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.rv-footer__links a,
.rv-footer__links button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--r-ink-2);
  transition: color 200ms, background 200ms;
}

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

.rv-footer__links a:hover,
.rv-footer__links button:hover {
  color: var(--r-ink);
  background: rgba(18, 20, 23, 0.05);
}

.rv-footer__copy {
  font-size: 13px;
  font-weight: 400;
  color: var(--r-ink-3);
}

/* ==========================================================================
   Contact panel
   ========================================================================== */
.rv-contact {
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  margin: auto;
  padding: 10px;
  border: 0;
  border-radius: 22px;
  background: #fffefb;
  color: #121417;
  box-shadow: 0 40px 100px -30px rgba(18, 20, 23, 0.5), 0 0 0 1px rgba(18, 20, 23, 0.06);
  font-family: var(--font-sans);
}

.rv-contact[open] {
  animation: rv-pop 320ms var(--ease-out);
}

.rv-contact::backdrop {
  background: rgba(18, 20, 23, 0.32);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

@keyframes rv-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.rv-contact__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 8px 14px;
}

.rv-contact__title {
  font-size: 15px;
  font-weight: 600;
}

.rv-contact__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px 12px 12px;
  border-radius: 16px;
  transition: background 200ms;
}

.rv-contact__row:hover {
  background: #f5f3ee;
}

.rv-contact__ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #efece5;
  color: #121417;
  flex: none;
}

.rv-contact__ico svg {
  width: 20px;
  height: 20px;
}

.rv-contact__ico--in {
  background: #0a66c2;
  color: #fff;
}

.rv-contact__ico--in svg {
  width: 18px;
  height: 18px;
}

.rv-contact__info {
  display: grid;
  min-width: 0;
  flex: 1;
}

.rv-contact__kind {
  font-size: 12px;
  color: #686d75;
}

.rv-contact__value {
  font-size: 14.5px;
  font-weight: 500;
  /* break at the <wbr> points (before @, after /in/); split a word only as a last resort */
  overflow-wrap: break-word;
  line-height: 1.35;
}

.rv-contact__btns {
  display: flex;
  gap: 4px;
}

.rv-contact__go {
  color: #686d75;
  padding-right: 10px;
}

.rv-icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #464b53;
  transition: background 200ms, color 200ms;
}

.rv-icon-btn:hover {
  background: #efece5;
  color: #121417;
}

.rv-icon-btn svg {
  width: 17px;
  height: 17px;
}

.rv-icon-btn:focus-visible,
.rv-contact__row--link:focus-visible {
  outline: 2px solid #1e5fcc;
  outline-offset: 2px;
}

.rv-copied {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  padding: 3px 8px;
  border-radius: 7px;
  background: #121417;
  color: #f5f3ee;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 200ms, transform 240ms var(--ease-out);
}

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

.rv-copied:empty {
  padding: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .rv-nav a {
    padding: 8px 10px;
  }

  .rv-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rv-strip li:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }

  .rv-strip li:nth-child(n + 4) {
    border-top: 1px solid var(--r-line);
  }

  .rv-skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rv-skill--wide {
    grid-column: span 2;
  }
}

@media (max-width: 960px) {
  .rv-nav {
    display: none;
  }

  .rv-header__actions {
    margin-left: auto;
  }

  .rv-menu-btn {
    display: grid;
  }

  .rv-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rv-about {
    max-width: 640px;
  }

  .rv-current {
    grid-template-columns: minmax(0, 1fr);
  }

  .rv-current__points {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--r-line);
    padding-top: 24px;
  }

  .rv-project {
    grid-template-columns: minmax(0, 1fr);
  }

  .rv-project:nth-child(even) .rv-project__visual {
    order: 0;
  }

  .rv-project__visual {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .rv-project__body,
  .rv-project:nth-child(even) .rv-project__body {
    padding: 4px clamp(6px, 2vw, 16px) 10px;
  }

  .rv-roles {
    grid-template-columns: minmax(0, 1fr);
  }

  .rv-role {
    display: grid;
    grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
    column-gap: 24px;
  }

  .rv-role__when {
    grid-column: 1;
  }

  .rv-role__title,
  .rv-role__company {
    grid-column: 1;
  }

  .rv-role__text {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .rv {
    --r-header: 60px;
  }

  html[data-view="recruiter"] {
    scroll-padding-top: 72px;
  }

  .rv-header__inner {
    gap: 12px;
  }

  .rv-brand__name {
    font-size: 14.5px;
  }

  .rv-switch {
    height: 44px;
    padding: 0 14px 0 12px;
    gap: 8px;
    font-size: 13.5px;
  }

  .rv-switch__long {
    display: none;
  }

  /* the header switch becomes a chat-style floating button */
  .rv-header .rv-switch {
    display: none;
  }

  /* a round launcher mid-page; a labelled pill at the top and bottom of the page */
  .rv-fab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 55;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 18px;
    border-radius: 28px;
    background: var(--r-ink);
    color: #8cc4ff;
    box-shadow: 0 0 0 4px rgba(30, 95, 204, 0.12), 0 14px 30px -10px rgba(18, 20, 23, 0.6);
    transition: transform 300ms var(--ease-out), box-shadow 300ms, padding 400ms var(--ease-out);
    -webkit-tap-highlight-color: transparent;
  }

  .rv-fab:active {
    transform: scale(0.94);
  }

  .rv-fab__glyph {
    width: 20px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 600;
    flex: none;
  }

  .rv-fab__label {
    max-width: 0;
    margin-left: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    color: var(--r-bg);
    font-size: 14px;
    font-weight: 600;
    transition: max-width 400ms var(--ease-out), margin-left 400ms var(--ease-out), opacity 250ms;
  }

  .rv-fab.is-expanded {
    padding-right: 20px;
  }

  .rv-fab.is-expanded .rv-fab__label {
    max-width: 160px;
    margin-left: 10px;
    opacity: 1;
  }

  .rv-hero__name {
    font-size: clamp(50px, 15vw, 72px);
  }

  .rv-hero__role::before {
    width: 24px;
  }

  .rv-hero__ctas {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .rv-hero__ctas .rv-btn {
    width: 100%;
  }

  .rv-about {
    border-radius: 22px;
  }

  .rv-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rv-strip li,
  .rv-strip li:nth-child(4) {
    padding: 16px 0 16px 16px;
    border-left: 1px solid var(--r-line);
    border-top: 1px solid var(--r-line);
  }

  .rv-strip li:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .rv-strip li:first-child,
  .rv-strip li:nth-child(2) {
    border-top: 0;
  }

  .rv-strip li:last-child {
    grid-column: span 2;
    border-left: 0;
    padding-left: 0;
  }

  .rv-skills {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .rv-skill--wide {
    grid-column: auto;
  }

  .rv-skill {
    padding: 20px;
  }

  .rv-current {
    border-radius: 22px;
  }

  .rv-role {
    display: block;
  }

  .rv-role__text {
    margin-top: 10px;
  }

  .rv-project {
    border-radius: 24px;
    padding: 10px;
  }

  .rv-project__visual {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  .rv-project__badge {
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 8px 12px;
  }

  .rv-project__badge b {
    font-size: 22px;
  }

  .rv-project__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .rv-toggle {
    justify-content: center;
  }

  .rv-project .rv-tags {
    justify-content: flex-start;
  }

  .rv-cta {
    border-radius: 26px;
  }

  .rv-cta__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .rv-invite {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 22px;
  }

  .rv-viewmore {
    width: 100%;
    justify-content: center;
  }

  /* compact footer: name, year and icons on one line;
     the bottom padding keeps the icons clear of the floating button */
  .rv-footer__inner {
    flex-wrap: nowrap;
    gap: 12px;
    padding-block: 14px 84px;
  }

  .rv-footer__name {
    font-size: 14.5px;
  }

  .rv-footer__role {
    display: none;
  }

  .rv-footer__links {
    gap: 0;
    margin-right: -10px;
  }

  /* contact panel becomes a bottom sheet */
  .rv-contact {
    width: 100%;
    max-height: none;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    padding: 10px 10px calc(14px + env(safe-area-inset-bottom));
  }

  .rv-contact[open] {
    animation-name: rv-sheet;
  }

  @keyframes rv-sheet {
    from {
      transform: translateY(40px);
      opacity: 0;
    }
  }
}

@media (max-width: 400px) {
  .rv-brand__name {
    display: none;
  }

  .rv-section {
    padding-top: 64px;
  }

  /* tighter contact rows so "abdulrehmansohail786" fits on one line at 320px */
  .rv-contact__row {
    gap: 10px;
    padding: 12px 8px 12px 10px;
  }

  .rv-contact__ico {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .rv-contact__value {
    font-size: 13.5px;
  }

  .rv-contact__btns .rv-icon-btn {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .r-rise,
  .r-reveal,
  .rv-skill,
  .rv-role,
  .rv-project {
    opacity: 1 !important;
    transform: none !important;
  }

  .rv-span__seg,
  .rv-viz .grow {
    transform: none;
  }

  .rv-viz .draw {
    stroke-dashoffset: 0;
  }

  .rv-chapter.r-reveal:not(.is-in)::after {
    transform: none;
  }

  .rv-project.is-live .rv-viz * {
    animation: none !important;
  }

  .rv-brand:hover .rv-brand__mark {
    transform: none;
  }

  .rv-brand:hover .rv-brand__cursor {
    animation: none;
  }

  .rv-fab,
  .rv-fab__label {
    transition: none;
  }

  .rv-blink {
    animation: none;
  }
}
