:root {
  --fg: #c8e8dc;
  --accent: #7fffd4;
  --panel: rgba(6, 12, 10, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #020403;
  color: var(--fg);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

#ascii-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  opacity: 0.72;
  filter: saturate(0.88);
}

main {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2.5rem 1.5rem 4rem;
  pointer-events: none;
}

.panel {
  pointer-events: auto;
  max-width: 36rem;
  padding: 2rem 2.25rem;
  background: var(--panel);
  border: 1px solid rgba(127, 255, 212, 0.18);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.panel.cv {
  max-width: min(42rem, 100%);
  width: 100%;
  padding: 2.25rem clamp(1.25rem, 4vw, 2.5rem) 2.75rem;
}

.cv-header {
  font-family: "Onest", ui-sans-serif, system-ui, sans-serif;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(127, 255, 212, 0.12);
}

.cv-updated {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 232, 220, 0.42);
}

.cv-header h1 {
  margin: 0 0 0.35rem;
  font-family: "Onest", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.cv-lead {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--accent);
  opacity: 0.95;
}

.cv-meta-line {
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.78;
}

.cv-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.cv-contacts a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 255, 212, 0.25);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cv-contacts a:hover {
  color: var(--accent);
  border-color: rgba(127, 255, 212, 0.55);
}

.cv-contacts a:focus-visible,
.cv-prose a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cv-section {
  margin-bottom: 2rem;
}

.cv-section--compact {
  margin-bottom: 1.25rem;
}

.cv-section h2 {
  margin: 0 0 1rem;
  font-family: "Onest", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: #eef8f3;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(127, 255, 212, 0.1);
}

.cv-prose p {
  margin: 0 0 0.85rem;
}

.cv-prose p:last-child {
  margin-bottom: 0;
}

.cv-prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 255, 212, 0.35);
}

.cv-prose a:hover {
  border-bottom-color: var(--accent);
}

.cv-stack,
.cv-closing {
  font-size: 0.9rem;
}

.cv-job {
  margin-bottom: 1.75rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(127, 255, 212, 0.22);
}

.cv-job:last-child {
  margin-bottom: 0;
}

.cv-job-head h3 {
  margin: 0 0 0.25rem;
  font-family: "Onest", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #eef8f3;
  letter-spacing: -0.01em;
}

.cv-job-note {
  display: inline;
  font-weight: 400;
  font-size: 0.78rem;
  color: rgba(200, 232, 220, 0.5);
  letter-spacing: 0;
}

.cv-job-role {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  color: var(--accent);
  opacity: 0.92;
}

.cv-job-period {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(200, 232, 220, 0.48);
}

.cv-job-duration {
  text-transform: none;
  letter-spacing: 0;
  color: rgba(200, 232, 220, 0.55);
}

.cv-job-stack {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  opacity: 0.82;
}

.cv-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.88;
}

.cv-list li {
  margin-bottom: 0.35rem;
}

.cv-subproject {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed rgba(127, 255, 212, 0.12);
}

.cv-subproject:first-of-type {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
}

.cv-subproject h4 {
  margin: 0 0 0.35rem;
  font-family: "Onest", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(200, 232, 220, 0.65);
}

.cv-edu h3 {
  margin: 0 0 0.35rem;
  font-family: "Onest", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #eef8f3;
}

.cv-edu p {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
}

.cv-edu-detail {
  font-size: 0.82rem !important;
  opacity: 0.75;
}

.cv-courses {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.65;
}

.cv-courses li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(127, 255, 212, 0.08);
}

.cv-courses li:last-child {
  border-bottom: none;
}

.cv-year {
  flex: 0 0 2.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.85;
}

.cv-skills-intro {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.65;
  opacity: 0.82;
}

.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cv-tags span {
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(200, 232, 220, 0.88);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(127, 255, 212, 0.15);
}

.cv-inline-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.7;
  opacity: 0.88;
}

.cv-inline-list li {
  padding-left: 0.85rem;
  position: relative;
}

.cv-inline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

.cv-drive {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.85;
}

.cv-footer-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(127, 255, 212, 0.1);
}

h1 {
  margin: 0 0 0.5rem;
  font-family: "Onest", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #eef8f3;
}

h1 span {
  color: var(--accent);
  font-style: italic;
  font-family: inherit;
}

p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.88;
}

.meta {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 232, 220, 0.45);
}

body.gate-active {
  overflow: hidden;
}

body.gate-active main {
  filter: blur(12px);
  opacity: 0.35;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(2, 4, 3, 0.55);
  backdrop-filter: blur(6px);
}

.gate[hidden] {
  display: none;
}

.gate-panel {
  width: min(100%, 22rem);
  padding: 1.75rem 1.85rem;
  background: var(--panel);
  border: 1px solid rgba(127, 255, 212, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 20px 64px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.gate-heading {
  margin: 0 0 1.25rem;
  font-family: "Onest", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  color: #eef8f3;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gate-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 232, 220, 0.5);
}

.gate-input {
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(127, 255, 212, 0.2);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.35);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
}

.gate-input:focus {
  outline: none;
  border-color: rgba(127, 255, 212, 0.45);
  box-shadow: 0 0 0 1px rgba(127, 255, 212, 0.15);
}

.gate-error {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.8rem;
  color: #ff9b9b;
}

.gate-submit {
  margin-top: 0.35rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(127, 255, 212, 0.35);
  background: rgba(127, 255, 212, 0.12);
  color: var(--accent);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.gate-submit:hover {
  background: rgba(127, 255, 212, 0.2);
}

.gate-submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
