:root {
  --ink: #242122;
  --muted: #5b5658;
  --line: #d6d1ce;
  --paper: #fbfaf8;
  --soft: #f1efec;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Raleway, Avenir Next, Avenir, Helvetica Neue, Arial, sans-serif;
  line-height: 1.48;
}

a {
  color: inherit;
  text-decoration: none;
}

body.gate-open {
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(22px, 5vw, 86px);
  background: rgba(251, 250, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.wordmark {
  display: grid;
  gap: 1px;
}

.wordmark span,
.wordmark strong,
.nameplate p,
.nameplate h1,
.nameplate span,
.section-label,
.contact-rail h2,
.sidebar h2,
.experience > h2,
.role h3,
.role header span,
.role header p,
.text-button {
  letter-spacing: 0.26em;
}

.wordmark span {
  font-size: 0.8rem;
  font-weight: 400;
}

.wordmark strong {
  font-size: 1rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--ink);
}

.resume-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
  padding: clamp(46px, 8vw, 94px) clamp(22px, 7vw, 106px) clamp(38px, 6vw, 76px);
}

.nameplate {
  min-width: 0;
}

.rule {
  width: 2px;
  height: 68px;
  margin-bottom: 22px;
  background: var(--ink);
}

.nameplate p {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  font-weight: 300;
}

.nameplate h1 {
  margin: 0 0 18px;
  font-size: clamp(3.5rem, 8.2vw, 7.1rem);
  line-height: 0.82;
  font-weight: 900;
}

.nameplate span {
  display: block;
  padding-left: clamp(22px, 6vw, 66px);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 500;
}

.contact-rail {
  display: grid;
  justify-items: start;
  gap: 24px;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.contact-rail img {
  width: min(190px, 100%);
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.contact-rail h2,
.sidebar h2,
.experience > h2 {
  margin: 0 0 18px;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 900;
}

.contact-rail a,
.contact-rail span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
}

.profile-block {
  max-width: 760px;
  padding-top: clamp(26px, 5vw, 58px);
}

.section-label {
  margin: 0 0 18px;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 900;
}

.profile-block p:not(.section-label) {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.16rem, 2vw, 1.46rem);
  line-height: 1.22;
}

.hero-actions,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.text-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}

.text-button:hover {
  background: var(--ink);
  color: var(--white);
}

.captcha-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(36, 33, 34, 0.72);
}

.captcha-gate[hidden] {
  display: none;
}

.captcha-dialog {
  position: relative;
  width: min(100%, 520px);
  padding: clamp(28px, 5vw, 46px);
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.captcha-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.captcha-kicker,
.captcha-dialog h2,
.captcha-question {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.captcha-kicker {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.captcha-dialog h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.05;
}

.captcha-copy {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.captcha-form {
  display: grid;
  gap: 14px;
}

.captcha-question {
  font-size: 0.82rem;
  font-weight: 900;
}

.captcha-form input {
  width: 100%;
  min-height: 50px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 10px 12px;
}

.captcha-trap {
  position: absolute;
  left: -10000px;
}

.captcha-error {
  min-height: 1.4em;
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.noscript-note {
  margin: 0;
  padding: 18px clamp(22px, 7vw, 106px);
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
}

.proof-strip article {
  min-height: 170px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
  border-right: 1px solid var(--ink);
}

.proof-strip article:last-child {
  border-right: 0;
}

.proof-strip strong {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 0.92;
  letter-spacing: 0.08em;
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(34px, 7vw, 92px);
  padding: clamp(48px, 8vw, 88px) clamp(22px, 7vw, 106px);
}

.sidebar {
  display: grid;
  align-content: start;
  gap: clamp(46px, 8vw, 92px);
}

.dot-list,
.role ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dot-list {
  display: grid;
  gap: 13px;
}

.dot-list li,
.role li {
  position: relative;
  padding-left: 28px;
}

.dot-list li::before {
  content: "";
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 12px;
  height: 12px;
  border: 4px solid var(--ink);
  border-radius: 50%;
}

.dot-list li {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.dot-list strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 900;
}

.experience {
  min-width: 0;
}

.role {
  padding: 0 0 34px;
}

.role + .role {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.role header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 10px;
}

.role h3 {
  margin: 0 0 5px;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  font-weight: 900;
}

.role header p {
  margin: 0;
  font-size: clamp(0.88rem, 1.35vw, 1.08rem);
  font-weight: 900;
  line-height: 1.35;
}

.role header span {
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.role ul {
  display: grid;
  gap: 9px;
}

.role li {
  color: var(--ink);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.3;
}

.role li::before {
  content: ".";
  position: absolute;
  left: 5px;
  top: -0.18em;
  font-size: 1.5rem;
  line-height: 1;
}

.closing {
  padding: clamp(48px, 8vw, 88px) clamp(22px, 7vw, 106px);
  background: var(--ink);
  color: var(--white);
}

.closing .section-label {
  color: var(--white);
}

.closing h2 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
}

.text-button.dark {
  border-color: var(--white);
  color: var(--white);
}

.text-button.dark:hover {
  background: var(--white);
  color: var(--ink);
}

@media (max-width: 1040px) {
  .resume-hero {
    grid-template-columns: 1fr 190px;
  }

  .profile-block {
    padding-top: 20px;
  }

  .contact-rail {
    justify-items: end;
  }

  .contact-rail div {
    text-align: right;
  }

  .resume-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
  }

  .nav-links {
    display: none;
  }

  .resume-hero,
  .proof-strip,
  .sidebar,
  .role header {
    grid-template-columns: 1fr;
  }

  .resume-hero {
    gap: 28px;
  }

  .nameplate h1 {
    font-size: clamp(2.95rem, 14vw, 3.9rem);
    letter-spacing: 0.18em;
  }

  .nameplate p {
    letter-spacing: 0.2em;
  }

  .contact-rail {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    grid-column: auto;
    grid-row: auto;
  }

  .contact-rail img {
    width: 112px;
  }

  .contact-rail div {
    text-align: left;
  }

  .proof-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .proof-strip article:last-child {
    border-bottom: 0;
  }

  .role header span {
    white-space: normal;
  }

  .text-button {
    width: 100%;
  }
}
