/* ========== Resume page (CV detailed) ========== */
.resume {
  padding: 60px 40px 100px;
}

.resume__back {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-bottom: 24px;
  transition: color .25s;
}
.resume__back:hover { color: var(--accent); }
.resume__back .arr { transition: transform .35s; }
.resume__back:hover .arr { transform: translateX(-6px); }

/* ===== CV container ===== */
.cv {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 64px 40px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.6);
  position: relative;
}
.cv__corner-tl,
.cv__corner-tr,
.cv__corner-bl,
.cv__corner-br {
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid var(--accent);
  pointer-events: none;
}
.cv__corner-tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.cv__corner-tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.cv__corner-bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.cv__corner-br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

/* ===== Head ===== */
.cv__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.cv__head-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.cv__name {
  font-family: var(--font-serif);
  font-size: clamp(54px, 8vw, 100px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.cv__name .first { color: var(--text); }
.cv__name .last { color: var(--accent); }
.cv__role {
  margin-top: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.cv__tags {
  display: flex; gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.cv__tags span {
  border: 1px solid var(--border-strong);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.cv__head-photo {
  width: 200px;
  position: relative;
  aspect-ratio: 1/1.2;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.08), transparent 60%),
    repeating-linear-gradient(180deg, #1c1c1c 0 4px, #131313 4px 8px);
  filter: grayscale(0.5);
  overflow: hidden;
}
.cv__head-photo .label-top {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.15em;
  background: rgba(0,0,0,0.6);
  padding: 2px 6px;
}
.cv__head-photo .label-bottom {
  position: absolute; bottom: 8px; left: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.15em;
}
.cv__head-photo .scan {
  position: absolute;
  left: 8px; right: 8px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: scan 3.5s infinite;
}
.cv__head-photo .corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--accent);
}
.cv__head-photo .corner.tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.cv__head-photo .corner.tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.cv__head-photo .corner.bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.cv__head-photo .corner.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

/* ===== Body ===== */
.cv__body {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 52px;
}

/* === Sidebar === */
.cv__sidebar { font-family: var(--font-sans); }
.cv__block { margin-bottom: 32px; }
.cv__block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.cv__block-head .num {
  color: var(--accent);
  font-size: 10px;
}

.cv__contact-item { margin-bottom: 12px; }
.cv__contact-label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  margin-bottom: 3px;
}
.cv__contact-value {
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}

.cv__skills-group + .cv__skills-group { margin-top: 14px; }
.cv__skills-group .group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}
.cv__skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cv__skills-tags span {
  border: 1px solid var(--border-strong);
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: all .25s;
  cursor: default;
}
.cv__skills-tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.cv__personal-projects {
  list-style: none;
}
.cv__personal-projects li { margin-bottom: 10px; }
.cv__personal-projects a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 2px;
  display: inline-flex;
  gap: 6px;
  transition: color .25s, border-color .25s;
}
.cv__personal-projects a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.cv__access {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
}
.cv__access .small {
  display: block;
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 6px;
  letter-spacing: 0.15em;
}

/* === Main column === */
.cv__bio {
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 18px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 40px;
}

.cv__section { margin-bottom: 44px; }
.cv__section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.cv__section-head .num {
  width: 28px; height: 28px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.cv__section-head .title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  white-space: nowrap;
}
.cv__section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 4px;
}

.cv__entry {
  position: relative;
  padding-left: 22px;
  margin-bottom: 22px;
}
.cv__entry::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 9px; height: 9px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}
.cv__entry-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.cv__entry-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
}
.cv__entry-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 2px 9px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.cv__entry-org {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.cv__entry-org::before { content: '>> '; }
.cv__entry-desc {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.75;
  margin-top: 8px;
  list-style: none;
}
.cv__entry-desc li {
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}
.cv__entry-desc li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.cv__assess {
  border: 1px solid var(--border);
  padding: 18px 22px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.015);
  position: relative;
  transition: border-color .3s, background .3s;
}
.cv__assess:hover {
  border-color: var(--accent-line);
  background: rgba(230, 57, 70, 0.04);
}
.cv__assess-title {
  font-family: var(--font-serif);
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--text);
}
.cv__assess-body {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim);
}

/* === Footer === */
.cv__foot {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.18em;
}
.cv__barcode {
  display: flex;
  gap: 1.5px;
  height: 22px;
  align-items: center;
}
.cv__barcode i {
  display: inline-block;
  background: var(--text-faint);
  height: 100%;
  width: 1.5px;
}
.cv__barcode i.tall { width: 2px; height: 100%; background: var(--text-dim); }
.cv__barcode i.thin { width: 1px; height: 70%; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .cv { padding: 40px 28px 30px; }
  .cv__head { grid-template-columns: 1fr; gap: 30px; }
  .cv__head-photo { width: 160px; justify-self: center; order: -1; }
  .cv__body { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .resume { padding: 40px 14px 60px; }
  .cv { padding: 30px 18px 24px; }
  .cv__name { font-size: clamp(42px, 13vw, 70px); }
  .cv__section-head .title { font-size: 22px; white-space: normal; }
}
