:root {
  --paper: #f7f7fc;
  --surface: rgba(255, 255, 255, .84);
  --surface-solid: #fff;
  --surface-soft: #f0f1fa;
  --ink: #17192b;
  --muted: #6e7188;
  --rule: rgba(39, 42, 71, .11);
  --violet: #675be7;
  --violet-2: #8d7cf4;
  --blue: #4b85e8;
  --pink: #df6da8;
  --accent: #5346c7;
  --shadow: 0 18px 48px rgba(39, 36, 82, .09);
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: ui-rounded, "SF Pro Rounded", Inter, ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
background:
  /* Subtle paper texture */
  radial-gradient(circle, rgba(84, 67, 49, .05) .65px, transparent 1px)
    0 0 / 7px 9px repeat,
  radial-gradient(circle, rgba(84, 67, 49, .03) .55px, transparent .9px)
    3px 4px / 11px 13px repeat,

  /* Broad color washes */
  radial-gradient(ellipse 75% 42% at 92% 12%, #ebe0f5, transparent),
  radial-gradient(ellipse 72% 40% at 6% 42%, #f6e3d9, transparent),
  radial-gradient(ellipse 75% 38% at 14% 90%, #e3ecf7, transparent),

  linear-gradient(150deg, #fbf8f4, #f7f3f8 55%, #f8eee9);
  font: 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  text-wrap: balance;
}

a {
  color: inherit;
  text-underline-offset: .24em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.wrap {
  width: min(100% - clamp(2rem, 9vw, 8rem), 72rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-block-start: .5rem;
  inset-inline-start: .5rem;
  z-index: 1;
  padding: .75rem;
  background: var(--paper);
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.site-header,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.25rem;
}

.site-header {
  min-height: 5rem;
  border-bottom: 1px solid var(--rule);
}

.site-header a {
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1rem, 3vw, 2rem);
}

.site-header nav a,
.site-footer a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: .9375rem;
}

.wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .68rem;
  font: 800 1.0625rem var(--display);
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: .6875rem;
  color: #fff;
  background: linear-gradient(145deg, var(--violet), var(--pink));
  box-shadow: 0 8px 18px rgba(103, 91, 231, .25);
}

.hero h1 span {
  color: var(--violet);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.75rem, 7vw, 5.75rem) clamp(2.75rem, 6vw, 4.75rem);
}

.label {
  color: var(--accent);
  font-weight: 700;
  font-size: .875rem;
  line-height: 1.4;
}

.hero h1 {
  font-size: clamp(2.9rem, 6.5vw, 5.625rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin-top: .6rem;
}

.hero-note {
  max-width: 29rem;
  padding: clamp(1.125rem, 3vw, 1.5rem);
  border: 1px solid var(--rule);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-note p {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1.25rem;
  padding: .62rem 1rem;
  border: 1px solid transparent;
  border-radius: 1.5rem;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(103, 91, 231, .24);
  font-weight: 700;
  font-size: .9375rem;
}

.button:hover {
  color: #fff;
  background: #4436b1;
}

.work,
.professional {
  border-top: 1px solid var(--rule);
  padding-block: clamp(1.75rem, 4.5vw, 3rem) clamp(3rem, 7vw, 5.5rem);
  scroll-margin-top: 1rem;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -.024em;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.card-visual {
  display: grid;
  place-items: center;
  min-height: clamp(11.5rem, 21vw, 16rem);
  padding: clamp(1rem, 4vw, 3rem);
}

.violet-wash {
  background: linear-gradient(145deg, rgba(103, 91, 231, .16), rgba(75, 133, 232, .07));
}

.blue-wash {
  background: linear-gradient(145deg, rgba(75, 133, 232, .14), rgba(141, 124, 244, .09));
}

.preview-chart {
  width: min(100%, 24rem);
}

.preview-heading {
  margin-bottom: .8rem;
  font-weight: 700;
  font-size: .875rem;
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .25rem .625rem;
  margin-top: .45rem;
  font-size: .875rem;
}

.mini-row strong,
td {
  font-variant-numeric: tabular-nums;
}

.track {
  grid-column: 1 / -1;
  display: block;
  height: .45rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(103, 91, 231, .15);
}

.track>span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--blue));
}

.pipeline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(.65rem, 3vw, 1.75rem) minmax(0, 1fr);
  align-items: center;
}

.pipeline-grid div {
  display: grid;
  gap: .2rem;
  border: 1px solid var(--rule);
  border-radius: .6875rem;
  padding: .65rem;
  background: var(--surface);
}

.pipeline-grid strong {
  font-size: .9375rem;
}

.pipeline-grid span {
  font-size: .875rem;
  line-height: 1.35;
}

.connector {
  height: 1px;
  background: var(--violet-2);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1rem, 3vw, 1.8rem);
  gap: .6rem;
}

.card h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.24;
  letter-spacing: -.02em;
}

.card h3 a {
  text-decoration: none;
}

.card-body>p:not(.label),
.professional>p,
.site-footer {
  color: var(--muted);
}

.card-body .text-link {
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--accent);
  font-weight: 600;
}

.professional>p {
  margin-top: .65rem;
}

.site-footer {
  min-height: 5rem;
  border-top: 1px solid var(--rule);
}

.case {
  max-width: 54rem;
  margin-inline: auto;
  padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem);
}

.case-header {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(103, 91, 231, .13), rgba(75, 133, 232, .07));
}

.case-header .label {
  margin-block: 1.25rem .55rem;
}

.case h1 {
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.case-deck {
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
}

.article-body {
  max-width: 46rem;
}

.article-body section,
.related {
  border-top: 1px solid var(--rule);
  padding-block: 1.5rem 2.1rem;
}

.article-body h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: .65rem;
}

.article-body p,
.steps dd {
  max-width: 68ch;
  color: var(--muted);
}

.result-box {
  margin-block: 1rem;
  background: var(--surface-soft);
  border-radius: .75rem;
  padding: 1rem;
}

.result-box strong {
  color: var(--ink);
  font-size: 1.125rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.2rem;
  font-size: .9375rem;
}

caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: .4rem;
}

th,
td {
  border-bottom: 1px solid var(--rule);
  text-align: left;
  padding: .6rem .35rem;
  vertical-align: top;
}

thead th {
  vertical-align: bottom;
}

tbody th {
  font-weight: 500;
}

td {
  white-space: nowrap;
}

.steps div {
  padding-block: .8rem;
  border-bottom: 1px solid var(--rule);
}

.steps div:last-child {
  border: 0;
}

.steps dt {
  font-weight: 700;
}

.steps dd {
  margin-top: .2rem;
}

@media (max-width: 47.5rem) {
  .hero {
    grid-template-columns: 1fr;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 28rem) {
  .site-header {
    padding-block: .45rem;
  }

  .case h1 {
    overflow-wrap: anywhere;
  }

  th,
  td {
    padding-inline: .25rem;
  }
}

/* Case study diagrams */
.case-figure {
  margin: 2rem auto;
  text-align: center;
}

.case-figure img {
  max-width: 100%;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.case-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #6b6b7a;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.result-grid .case-figure {
  margin: 0;
}

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


.hero-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(39, 36, 82, 0.4);
}

@media (max-width: 640px) {
  .avatar {
    width: 72px;
    height: 72px;
  }

  .hero-top {
    gap: 0.875rem;
  }
}


.hero {
  display: flex;
  align-items: center;
justify-content: space-between;
gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 320px;
}

.hero-note {
  margin-top: 1.5rem;
  max-width: 30rem;
}

.avatar {
  width: clamp(240px, 37vw, 370px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .avatar {
    width: 140px;
    height: 140px;
  }
}


.hero-text .hero-note {
  background: none;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: 100%;
  max-width: 39rem;
}



.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.profile-links a:hover {
  border-color: var(--violet-2);
  background: var(--surface-soft);
  color: var(--accent);
}

.profile-links img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

:root {
  --paper: #f3eee5;
}

.card,
.hero-note {
  background: #fff;
  border-color: #ded5c9;
  box-shadow: 0 6px 20px rgba(66, 49, 31, .09);
}

.card-visual {
  border-bottom: 1px solid #e5ddd2;
}


.work .card,
.professional .card {
  border-color: #e9e2d8;
  box-shadow: 0 0 14px 2px rgba(66, 49, 31, .25);
}



:root {
  --paper: #faf6f2;
  --ink: #2e2628;
  --muted: #66595d;
  --accent: #793f50;
  --violet: #925568;
  --violet-2: #a97885;
  --pink: #b9736c;
  --blue: #74818a;
  --rule: rgba(85, 55, 64, .12);
}

body {
  background:
    radial-gradient(circle, rgba(83, 56, 49, .05) .65px, transparent 1px)
      0 0 / 7px 9px repeat,
    radial-gradient(circle, rgba(83, 56, 49, .03) .55px, transparent .9px)
      3px 4px / 11px 13px repeat,
    radial-gradient(ellipse 75% 42% at 95% 12%, #eedde2, transparent),
    radial-gradient(ellipse 72% 42% at 4% 46%, #efdfd1, transparent),
    radial-gradient(ellipse 78% 40% at 92% 94%, #e9dce0, transparent),
    var(--paper);
}

.violet-wash {
  background: linear-gradient(145deg, #f0dfe5, #faf4f6);
}

.blue-wash {
  background: linear-gradient(145deg, #e5eaed, #f4f5f5);
}

.case-header {
  background: linear-gradient(145deg, #f0e1e6, #faf5f1);
}

.track {
  background: rgba(121, 63, 80, .14);
}

.button {
  box-shadow: 0 8px 20px rgba(121, 63, 80, .18);
}

.button:hover {
  background: #62303e;
}

.brand-mark {
  box-shadow: 0 8px 18px rgba(121, 63, 80, .18);
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-top: 1.25rem;
}

.hero-actions .button {
  margin-top: 0;
}

.profile-links {
  display: flex;
  gap: .5rem;
}

.profile-links a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
  border-radius: .6875rem;
  background: var(--surface);
}

.profile-links a:hover {
  border-color: var(--accent);
  background: var(--surface-soft);
}

.profile-links img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}


.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
}

.hero-actions .button {
  margin-top: 0;
  white-space: nowrap;
}

.profile-links {
  display: flex;
  align-items: center;
  flex: none;
  gap: .5rem;
}

.profile-links a {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-links img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-links a:hover {
  opacity: .8;
}



.hero-note .hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.15rem;
}

.hero-note .hero-actions > .button,
.hero-note .hero-actions > .profile-links {
  margin: 0;
}

.hero-note .hero-actions > .profile-links {
  display: flex;
  align-items: center;
}

.profile-links a {
  display: grid;
  place-items: center;
}

.hero-note .hero-actions > .profile-links {
  gap: 15px;
}

.profile-links a {
  width: 29px;
}

.profile-links img {
  width: 35px;
  height: 35px;
  border-radius: 100%;
}

.profile-links a[href="https://github.com/krishu22"] img {
  transform: scale(1.1);
  clip-path: inset(5.36% round 50%);
}

.profile-links a[href="https://linkedin.com/in/krishu22"] img {
  transform: scale(1.2);
  clip-path: inset(5.36% round 50%);
}


.footer-profile {
  display: flex;
  align-items: center;
  gap: .5rem;
}