*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg2: #111;
  --white: #f0ece3;
  --gray: #888;
  --gray2: #444;
  --accent: #f0ece3;
  --line: rgba(240,236,227,0.1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* CUSTOM CURSOR */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(240,236,227,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
}
body:has(a:hover) .cursor,
body:has(.project-item:hover) .cursor,
body:has(.contact-icon:hover) .cursor,
body:has(.form-submit:hover) .cursor { width: 14px; height: 14px; background: #fff; }
body:has(a:hover) .cursor-ring,
body:has(.project-item:hover) .cursor-ring,
body:has(.contact-icon:hover) .cursor-ring,
body:has(.form-submit:hover) .cursor-ring,
body:has(.project-modal__nav:hover) .cursor-ring { width: 50px; height: 50px; border-color: rgba(240,236,227,0.6); }
body:has(.project-modal__nav:hover) .cursor { width: 14px; height: 14px; background: #fff; }

@media (hover: hover) and (pointer: fine) {
  body,
  .lang-switch__btn,
  .project-item,
  button.project-item,
  .project-modal__backdrop,
  .project-modal__close,
  .project-modal__nav,
  .contact-icon,
  .form-field input,
  .form-field textarea,
  .form-submit {
    cursor: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor,
  .cursor-ring {
    display: none !important;
  }
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 60px;
  mix-blend-mode: normal;
}
nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 60px; right: 60px;
  height: 1px;
  background: var(--line);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}
.nav-logo__img {
  display: block;
  height: 28px;
  width: auto;
  aspect-ratio: 404 / 269;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.2s ease;
}
.nav-logo:hover .nav-logo__img {
  opacity: 0.72;
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.lang-switch__btn {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--gray);
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch__btn.is-active {
  background: var(--white);
  color: var(--bg);
}
.lang-switch__btn:hover:not(.is-active) {
  color: var(--white);
}
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--white); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 60px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(120px, 20vw, 280px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(240,236,227,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 8px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-content--full { width: 100%; }
.hero-text-block { min-width: 0; }
.hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gray);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gray2);
}
.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 12vw, 160px);
  line-height: 0.92;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 40px;
}
.hero-name em {
  font-style: italic;
  font-family: 'DM Sans', sans-serif;
  font-weight: 200;
  font-size: 0.45em;
  letter-spacing: 0;
  color: var(--gray);
  display: block;
  margin-top: 8px;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}
.hero-desc {
  max-width: 560px;
}
.hero-scroll {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gray2);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 60px;
  background: var(--gray2);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.3); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* SECTIONS */
section { padding: 120px 60px; scroll-margin-top: 96px; }
.section-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 80px;
  min-height: clamp(48px, 7vw, 96px);
}
.section-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-intro {
  max-width: 720px;
  margin: -48px 0 56px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-grid--extended {
  grid-template-columns: 1.1fr 0.9fr;
}
.about-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-block {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 28px 24px;
}
.about-block__title {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gray2);
  margin-bottom: 16px;
}
.about-edu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-edu .about-block__text + .about-block__text {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.about-block__text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.75;
}
.about-block__text strong { color: var(--white); font-weight: 400; }
.about-list {
  list-style: none;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.9;
}
.about-list li {
  padding-left: 16px;
  position: relative;
}
.about-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gray2);
  font-family: 'DM Mono', monospace;
}
.about-text p,
.hero-desc,
.section-intro,
.skills-intro,
.project-desc,
.cv-card__desc,
.project-modal__note {
  font-size: 18px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.9;
}
.about-text p {
  margin-bottom: 24px;
}
.about-text p strong,
.project-desc strong {
  color: var(--white);
  font-weight: 400;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.stat-box {
  background: var(--bg2);
  padding: 36px 28px;
  border: 1px solid var(--line);
}
.stat-box:hover {
  border-color: rgba(240,236,227,0.2);
  transition: border-color 0.3s;
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  line-height: 1;
  color: var(--white);
  display: block;
}
.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray2);
  margin-top: 8px;
}

/* SKILLS */
.section--skills .section-header {
  margin-bottom: 56px;
}
.skills-intro {
  max-width: 720px;
  margin-top: -32px;
  margin-bottom: 40px;
}
.skills-tags {
  --skill-tag-gap: 12px;
  --skill-tag-cols: 5;
  display: flex;
  flex-wrap: wrap;
  gap: var(--skill-tag-gap);
  padding: 48px 44px;
  background: var(--bg2);
  border: 1px solid var(--line);
}
.skill-tag {
  flex: 1 1 calc((100% - (var(--skill-tag-cols) - 1) * var(--skill-tag-gap)) / var(--skill-tag-cols));
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 14px 12px;
  border-radius: 6px;
  text-align: center;
  text-transform: none;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(240, 236, 227, 0.45);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.skill-tag:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* PROJECTS */
.projects-list { display: flex; flex-direction: column; gap: 2px; }
.project-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: padding-left 0.4s ease;
}
.project-item:last-child { border-bottom: 1px solid var(--line); }
.project-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--bg2);
  transition: width 0.4s ease;
  z-index: -1;
}
.project-item:hover::before { width: 100%; }
.project-item:hover { padding-left: 20px; }
.project-desc {
  margin-top: 14px;
  max-width: 720px;
}
.project-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: none;
  margin-bottom: 8px;
  transition: letter-spacing 0.3s;
}
.project-item:hover .project-name { letter-spacing: 3px; }
.project-tech {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.project-tech span {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gray2);
}
.project-arrow {
  font-size: 24px;
  color: var(--gray2);
  transition: transform 0.3s, color 0.3s;
  align-self: center;
}
.project-item:hover .project-arrow { transform: translate(6px, -6px); color: var(--white); }

button.project-item {
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  background: transparent;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
button.project-item:focus-visible {
  outline: 1px solid var(--gray2);
  outline-offset: 3px;
}

/* PROJECT MODAL */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}
.project-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}
.project-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(920px, 96vw);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.project-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gray);
  font-size: 22px;
  line-height: 1;
  font-family: 'DM Mono', monospace;
  transition: color 0.25s, border-color 0.25s;
}
.project-modal__close:hover {
  color: var(--white);
  border-color: rgba(240, 236, 227, 0.25);
}
.project-modal__gallery {
  position: relative;
  flex-shrink: 0;
  background: #0d0d0d;
  border-bottom: 1px solid var(--line);
  padding: 48px 56px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 280px;
  max-height: min(58vh, 480px);
  overflow: hidden;
}
.project-modal__gallery[hidden] { display: none !important; }
.project-modal__slide-wrap {
  flex: 1;
  min-width: 0;
  min-height: 0;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  max-height: min(52vh, 420px);
  overflow: hidden;
}
.project-modal__slide {
  display: block;
  max-width: 100%;
  max-height: min(52vh, 420px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #111;
}
.project-modal__nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.85);
  color: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  line-height: 1;
  transition: border-color 0.25s, background 0.25s;
}
.project-modal__nav:hover {
  border-color: rgba(240, 236, 227, 0.35);
  background: var(--bg);
}
.project-modal__counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gray2);
}
.project-modal__body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  padding: 32px 36px 36px;
}
.project-modal__title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: none;
  color: var(--white);
  margin-bottom: 20px;
  padding-right: 40px;
}
.project-modal__note {
  margin-bottom: 28px;
}
.project-modal__github {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--white);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--bg);
  background: var(--white);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.project-modal__github:hover {
  background: transparent;
  color: var(--white);
}
.project-modal__meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.project-modal__meta-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gray2);
  margin-bottom: 8px;
}
.project-modal__meta-value {
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.5;
}

body.modal-open { overflow: hidden; }
body.modal-open .cursor,
body.modal-open .cursor-ring {
  z-index: 10030;
}

/* CV */
.section--cv { background: var(--bg); }
.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.cv-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 40px 32px;
  transition: border-color 0.3s;
}
.cv-card:hover { border-color: rgba(240, 236, 227, 0.22); }
.cv-card__lang {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 1;
  color: rgba(240, 236, 227, 0.08);
  margin-bottom: 8px;
}
.cv-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.cv-card__desc {
  margin-bottom: 28px;
}
.cv-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cv-btn[data-cv-download] {
  cursor: pointer;
}
.cv-btn {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 12px 18px;
  border: 1px solid var(--gray2);
  color: var(--gray);
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.cv-btn:hover {
  color: var(--white);
  border-color: rgba(240, 236, 227, 0.35);
}
.cv-btn--primary {
  color: var(--bg);
  background: var(--white);
  border-color: var(--white);
}
.cv-btn--primary:hover {
  background: var(--gray);
  border-color: var(--gray);
  color: var(--white);
}

/* BLOG */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.blog-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 36px 28px;
  transition: border-color 0.3s;
}
.blog-card:hover { border-color: rgba(240, 236, 227, 0.22); }
.blog-card__date {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gray2);
  text-transform: uppercase;
}
.blog-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 16px 0 14px;
}
.blog-card__excerpt {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 20px;
}
.blog-card__tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border: 1px solid var(--gray2);
  color: var(--gray2);
  text-transform: uppercase;
}

/* CONTACT */
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.contact-icon:hover {
  color: var(--white);
  border-color: rgba(240, 236, 227, 0.35);
  background: var(--bg2);
}
.contact-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0 0 24px;
  max-width: 420px;
}
.contact-form {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 36px 28px;
}
.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gray2);
  margin-bottom: 10px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--white);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--gray2); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(240, 236, 227, 0.35);
}
.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(200, 80, 80, 0.5);
}
.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}
.form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 16px 20px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--bg);
  background: var(--white);
  border: 1px solid var(--white);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.form-submit:hover:not(:disabled) {
  background: transparent;
  color: var(--white);
}
.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-submit__arrow { font-size: 18px; }
.form-status {
  margin-top: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  min-height: 1.2em;
}
.form-status--success { color: var(--white); }
.form-status--error { color: #c85050; }
.form-setup-hint {
  display: none;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 1.6;
  color: var(--gray2);
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px dashed var(--gray2);
}
.form-setup-hint--visible { display: block; }

/* FOOTER */
footer {
  padding: 40px 60px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gray2);
}

/* PAGE LOAD */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease 0.2s, visibility 0.8s ease 0.2s;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  text-align: center;
  animation: loaderFadeIn 1s ease forwards;
}
.loader-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 12vw, 112px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.92;
  color: var(--white);
  margin: 0 0 24px;
}
.loader-tagline {
  font-family: 'DM Mono', monospace;
  font-size: clamp(10px, 2.4vw, 12px);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.loader-tagline::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gray2);
  flex-shrink: 0;
}
@keyframes loaderFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.45s; }
.reveal--delay-5 { transition-delay: 0.1s; }
.reveal--delay-6 { transition-delay: 0.2s; }

.section--skills { background: var(--bg); }

@media (max-width: 900px) {
  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav-links a { font-size: 9px; }
  .nav-end { gap: 16px; }
  .nav-links { gap: 16px; }
}

@media (max-width: 768px) {
  nav { padding: 24px 24px; }
  .nav-logo__img {
    height: 24px;
  }
  nav::after { left: 24px; right: 24px; }
  section { padding: 80px 24px; }
  .section-intro { margin-top: -32px; }
  .hero { padding: 0 24px 60px; }
  .about-grid,
  .about-grid--extended { grid-template-columns: 1fr; gap: 48px; }
  .skills-tags {
    --skill-tag-gap: 10px;
    --skill-tag-cols: 2;
    padding: 28px 20px;
  }
  .skill-tag { font-size: 13px; padding: 12px 10px; }
  .cv-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .project-item { grid-template-columns: 1fr auto; }
  .project-arrow { display: none; }
  .project-modal {
    padding: 0;
    align-items: stretch;
  }
  .project-modal__panel {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    min-height: 0;
    border: none;
    border-radius: 0;
  }
  .project-modal__close {
    top: 10px;
    right: 10px;
    background: rgba(10, 10, 10, 0.9);
  }
  .project-modal__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "image image"
      "prev next"
      "counter counter";
    gap: 10px 12px;
    padding: 52px 16px 16px;
    min-height: unset;
    max-height: none;
    overflow: visible;
  }
  .project-modal__slide-wrap {
    grid-area: image;
    justify-self: center;
    width: min(88vw, 720px);
    max-width: 100%;
    min-height: 0;
    max-height: none;
  }
  .project-modal__slide {
    width: 100%;
    max-width: 100%;
    max-height: min(42dvh, 360px);
    margin: 0 auto;
  }
  .project-modal__nav--prev {
    grid-area: prev;
    justify-self: end;
    width: 100%;
    max-width: 140px;
  }
  .project-modal__nav--next {
    grid-area: next;
    justify-self: start;
    width: 100%;
    max-width: 140px;
  }
  .project-modal__counter {
    position: static;
    grid-area: counter;
    transform: none;
    margin: 0;
    text-align: center;
  }
  .project-modal__nav {
    width: auto;
    height: 40px;
    font-size: 16px;
  }
  .project-modal--portrait-gallery .project-modal__slide-wrap {
    width: min(72vw, 280px);
  }
  .project-modal--portrait-gallery .project-modal__slide {
    max-height: min(48dvh, 420px);
  }
  .project-modal__body {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px 16px 28px;
  }
  .project-modal__title {
    padding-right: 44px;
    font-size: clamp(22px, 6vw, 32px);
    word-break: break-word;
  }
  .project-modal__meta { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .form-row--2 { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
}
