@font-face {
  font-family: Geist;
  src: url("assets/fonts/geist-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("assets/fonts/geist-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --canvas: #2c2525;
  --deep: #211b1b;
  --text: #e6d9db;
  --secondary: #c3b7b8;
  --accent: #f38d70;
  --rule: #514344;
  --radius: 12px;
  --space-section: clamp(64px, 7vw, 100px);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 108px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: Geist, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--deep); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}
p { margin: 0; color: var(--secondary); text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(48px, 5.25vw, 76px); line-height: 1.08; letter-spacing: -0.065em; }
h2 { font-size: clamp(30px, 3vw, 38px); line-height: 1.2; letter-spacing: -0.045em; }
h3 { font-size: 23px; line-height: 1.3; letter-spacing: -0.025em; }
h4 { font-size: 19px; line-height: 1.35; letter-spacing: -0.02em; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  background: var(--accent);
  color: var(--deep);
  padding: 12px 16px;
  z-index: 3;
}
.skip:focus { top: 10px; }

/* Navigation has one job; the hero already introduces Prajwal. */
.site-header { position: sticky; top: 0; z-index: 2; background: var(--canvas); }
.site-header nav {
  min-height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  border-bottom: 1px solid var(--rule);
}
.site-header a {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 4px 2px;
  font-size: 17px;
  line-height: 1.3;
  color: var(--secondary);
  text-decoration: none;
}
.site-header a:hover, .site-header a[aria-current="location"] { color: var(--text); }
.site-header a::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.site-header a:hover::after, .site-header a[aria-current="location"]::after { transform: scaleX(1); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 350px);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
  padding: clamp(48px, 5vw, 76px) 0 clamp(72px, 7vw, 104px);
}
.hero-content { min-width: 0; }
.intro-label { margin-bottom: 22px; font-size: 16px; }
.hero-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 0.78;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 48% 48% 8px 8px;
  background: var(--deep);
}
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; font-size: 16px; }
.hero-links > a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 7px;
  text-decoration: none;
}
.external { display: inline-block; color: var(--accent); }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--accent);
  color: var(--deep);
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover { color: var(--deep); background: #f8a788; }
.button:active { transform: translateY(1px); }
.section { padding: var(--space-section) 0; border-top: 1px solid var(--rule); scroll-margin-top: calc(0px - var(--space-section)); }
.section-intro { max-width: 58ch; margin-top: 18px; font-size: 18px; }

/* All actual project captures share a frame without cropping away the UI. */
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; margin-top: 38px; }
.project { min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.project-image {
  display: block;
  width: 100%;
  margin: 0 0 24px;
  aspect-ratio: 1.6;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep);
}
.project-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.battlecp-project-image { background: #080808; }
.bluff-project-image { background: #242330; }
.project-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.project-heading h3 { font-size: 26px; }
.status { font-size: 14px; color: var(--secondary); }
.project > p { max-width: 60ch; }
.stack { margin-top: 18px; font-size: 14px; }
.artifact-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: 15px; }
.artifact-links a, .artifact-links > span { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; text-decoration: none; }
.artifact-links > span { color: var(--secondary); }
.artifact-links a:hover { text-decoration: underline; }
.finding {
  margin-top: 20px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--deep) 42%, transparent);
  border-radius: 8px;
  font-size: 15px;
}
.finding strong { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
details { margin-top: 18px; font-size: 15px; }
summary { width: fit-content; min-height: 34px; padding: 5px 0; color: var(--secondary); cursor: pointer; }
summary:hover, details[open] summary { color: var(--text); }
details p { margin-top: 10px; max-width: 65ch; }
.terminal-project-image { background: #161820; }
.discord-project-image { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; background: #242535; }
.discord-capture { display: block; min-width: 0; height: 100%; overflow: hidden; }
.discord-capture img { width: auto; height: 100%; max-width: none; }

.questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 64px; margin-top: 38px; }
.questions h3 { margin-bottom: 10px; font-size: 21px; }
.questions p { max-width: 55ch; }
.publication {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  margin-top: 46px;
  padding: 28px 30px;
  background: color-mix(in srgb, var(--deep) 46%, transparent);
  border-radius: var(--radius);
}
.publication h3 { font-size: 20px; }
.publication-title { max-width: 60ch; font-size: 19px; line-height: 1.5; }
.publication-title a { color: var(--text); text-decoration: none; }
.publication-title a:hover { text-decoration: underline; }
.publication .meta { margin-top: 12px; }
.meta { color: var(--secondary); font-size: 14px; }

.about-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 80px; margin-top: 30px; }
.about-copy { max-width: 42ch; font-size: 18px; }
.about-copy p + p { margin-top: 18px; }
.experience > h3 { font-size: 21px; margin-bottom: 22px; }
.experience article + article { margin-top: 24px; }
.experience article > p { margin-top: 8px; }
.experience article > .meta { margin-top: 4px; }
.competition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); }
.competition-grid section { min-width: 0; }
.competition-grid h3 { font-size: 26px; line-height: 1.25; }
.competition-intro, .security-intro { margin-top: 14px; max-width: 55ch; }
.rating-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  padding: 22px 24px;
  background: color-mix(in srgb, var(--deep) 42%, transparent);
  border-radius: var(--radius);
}
.rating-provider { display: block; width: fit-content; padding: 4px 0; font-size: 19px; font-weight: 600; text-decoration: none; }
.judge-handle { font-size: 14px; }
.rating-details { flex: 1; min-width: 0; text-align: right; }
.rating-value { display: block; font-size: 32px; font-weight: 600; line-height: 1.15; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.rating-caption { margin-top: 5px; font-size: 14px; white-space: pre-line; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.profile-links a, .security-profile-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 15px; text-decoration: none; }
.security-profile-link { margin-top: 14px; }
.profile-links a:hover, .security-profile-link:hover { text-decoration: underline; }
.ctf-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin: 24px 0 18px; }
.ctf-result { display: block; min-width: 0; padding: 0 0 16px; border-bottom: 1px solid var(--rule); color: var(--text); text-decoration: none; }
.ctf-event { font-weight: 600; font-size: 16px; }
.ctf-year { margin-left: 6px; color: var(--secondary); font-size: 14px; }
.ctf-place { display: block; margin-top: 7px; font-size: 22px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ctf-field { display: block; margin-top: 3px; color: var(--secondary); font-size: 13px; line-height: 1.5; }
.ctf-note { font-size: 13px; }
.outside { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 80px; margin-top: 46px; padding-top: 36px; border-top: 1px solid var(--rule); }
.outside h3 { font-size: 23px; }
.outside-copy { max-width: 55ch; }
.outside-copy p + p { margin-top: 16px; }
.contact h2 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.05em; }
.contact > p { max-width: 50ch; margin: 18px 0 24px; font-size: 18px; }
.contact-email { display: inline-block; padding: 4px 0; font-size: clamp(19px, 2.5vw, 32px); letter-spacing: -0.025em; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.contact-email:hover { text-decoration: underline; }
.contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; font-size: 15px; }
.contact-links a, .contact-links span { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; text-decoration: none; }
.contact-links > span { color: var(--secondary); }
.resume-downloads { margin-top: 32px; }
.resume-downloads h3 { font-size: 19px; }
.resume-downloads .artifact-links { margin-top: 8px; }
.quotes { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); }
.quotes > h3 { font-size: clamp(26px, 2.7vw, 34px); line-height: 1.25; }
.quote-list { max-width: 1050px; margin: 40px auto 0; }
.quote { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 48px; margin: 0; padding: 30px 0; }
.quote + .quote { border-top: 1px solid var(--rule); }
.quote:nth-child(even) { grid-template-columns: minmax(0, 1fr) 150px; text-align: right; }
.quote:nth-child(even) .quote-art { grid-column: 2; grid-row: 1; }
.quote:nth-child(even) > div { grid-column: 1; grid-row: 1; }
.quote-art { display: block; width: 100%; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.65; }
.quote-solid, .quote-dot { fill: var(--accent); stroke: none; }
.quote blockquote { margin: 0; }
.quote blockquote p { color: var(--text); font-size: clamp(21px, 2.3vw, 30px); line-height: 1.45; letter-spacing: -0.025em; text-wrap: balance; }
.quote figcaption { margin-top: 14px; color: var(--secondary); font-size: 14px; line-height: 1.6; }
.quote cite { font-style: normal; }
.quote figcaption a { text-decoration-color: var(--rule); }
.quote figcaption a:hover { text-decoration-color: var(--accent); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 28px; border-top: 1px solid var(--rule); font-size: 14px; }
footer a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.not-found { max-width: 720px; padding: 120px 0; }
.not-found h1 { font-size: clamp(36px, 5vw, 60px); }
.not-found p { margin: 26px 0 32px; font-size: 20px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, .button, .site-header a::after { transition: color 180ms ease, background-color 180ms ease, transform 180ms ease; }
}
@media (max-width: 1023px) {
  .wrap { width: calc(100% - 64px); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(220px, 29%); gap: 40px; }
  h1 { font-size: clamp(44px, 5.4vw, 56px); }
  .project-grid { gap: 44px 28px; }
  .project-heading h3 { font-size: 24px; }
  .about-grid, .outside { gap: 40px; }
  .competition-grid { gap: 36px; }
  .rating-feature { padding: 18px; }
  .publication { grid-template-columns: 140px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
  :root { --space-section: 56px; }
  html { scroll-padding-top: 88px; }
  .wrap { width: calc(100% - 40px); }
  .site-header nav { min-height: 68px; gap: clamp(18px, 5.5vw, 36px); }
  .site-header a { font-size: 15px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 32px 0 54px; }
  .hero-portrait { width: clamp(180px, 50vw, 230px); justify-self: center; grid-row: 1; }
  h1 { font-size: clamp(40px, 9.5vw, 64px); letter-spacing: -0.06em; }
  .intro-label { margin-bottom: 16px; font-size: 14px; }
  .hero-links { display: grid; grid-template-columns: repeat(3, max-content); gap: 14px 24px; margin-top: 28px; font-size: 15px; }
  .hero-links > .button { grid-column: 1 / -1; justify-self: start; }
  .button { gap: 18px; padding: 12px 18px; }
  .project-grid, .questions, .about-grid, .competition-grid, .outside, .publication { grid-template-columns: 1fr; }
  .project-grid { gap: 44px; margin-top: 30px; }
  .project-image { margin-bottom: 20px; }
  .project-heading { margin-bottom: 12px; }
  .project-heading h3 { font-size: 25px; }
  .status { font-size: 13px; }
  .questions { gap: 28px; margin-top: 30px; }
  .publication { margin-top: 32px; padding: 22px; gap: 14px; }
  .publication-title { font-size: 18px; }
  .about-grid { gap: 34px; margin-top: 24px; }
  .about-copy { max-width: 55ch; font-size: 17px; }
  .competition-grid { gap: 40px; margin-top: 36px; padding-top: 32px; }
  .competition-grid h3 { font-size: 25px; }
  .outside { gap: 18px; margin-top: 36px; padding-top: 32px; }
  .outside h3 { font-size: 23px; }
  .contact-links { gap: 8px 24px; margin-top: 20px; }
  .quotes { margin-top: 36px; padding-top: 32px; }
  .quote-list { margin-top: 24px; }
  .quote { grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 28px 0; }
  .quote:nth-child(even) { grid-template-columns: minmax(0, 1fr) 64px; }
  .quote blockquote p { font-size: 21px; text-wrap: pretty; }
  .quote figcaption { font-size: 13px; }
  footer { font-size: 13px; }
}
@media (max-width: 359px) {
  .wrap { width: calc(100% - 32px); }
  .site-header nav { gap: 22px; }
  .site-header a { font-size: 14px; }
  .hero-links { gap: 8px 16px; font-size: 14px; }
  .button { padding: 12px 14px; gap: 12px; }
  .rating-feature { padding: 16px; gap: 12px; }
  .rating-provider { font-size: 17px; }
  .rating-caption { font-size: 13px; }
  .ctf-results { gap: 20px; }
}
