:root {
  --edp-bg: #050507;
  --edp-bg-soft: #0b0d12;
  --edp-surface: rgba(18, 21, 30, 0.78);
  --edp-surface-strong: #111620;
  --edp-text: #f6f7fb;
  --edp-muted: #a6adbd;
  --edp-border: rgba(255, 255, 255, 0.12);
  --edp-red: #e02f3f;
  --edp-red-dark: #a81827;
  --edp-cyan: #39d8ff;
  --edp-purple: #8d5cff;
  --edp-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --edp-radius: 18px;
  --edp-radius-sm: 10px;
  --edp-container: 1160px;
  --edp-space: clamp(1.25rem, 3vw, 2.5rem);
  --edp-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --edp-serif: "Instrument Serif", Georgia, serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(224, 47, 63, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 18%, rgba(57, 216, 255, 0.1), transparent 25rem),
    linear-gradient(180deg, #050507 0%, #090b10 46%, #050507 100%);
  color: var(--edp-text);
  font-family: var(--edp-font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--edp-cyan), white 20%);
  outline-offset: 4px;
}

.screen-reader-text,
.edp-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.edp-skip-link:focus {
  z-index: 999;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--edp-red);
  color: white;
}

.edp-container {
  width: min(100% - 2rem, var(--edp-container));
  margin-inline: auto;
}

.edp-site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.edp-site-header.is-scrolled {
  border-color: var(--edp-border);
  background: rgba(5, 5, 7, 0.9);
}

.edp-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.edp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
}

.edp-brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--edp-red), #4f1119);
  box-shadow: 0 0 26px rgba(224, 47, 63, 0.28);
}

.edp-brand__text {
  max-width: 12rem;
  line-height: 1.2;
}

.edp-nav__list,
.edp-footer-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edp-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--edp-muted);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.edp-nav a:hover,
.edp-nav .current-menu-item > a,
.edp-nav .current_page_item > a {
  background: rgba(224, 47, 63, 0.13);
  color: white;
}

.edp-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--edp-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
}

.edp-menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.edp-hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 76px));
  overflow: hidden;
  isolation: isolate;
}

.edp-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.edp-hero__image img,
.edp-page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edp-hero::after,
.edp-page-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.96) 0%, rgba(5, 5, 7, 0.72) 42%, rgba(5, 5, 7, 0.26) 100%),
    linear-gradient(180deg, transparent 55%, var(--edp-bg) 100%);
}

.edp-hero__content {
  display: flex;
  align-items: center;
  min-height: inherit;
  padding-block: 5rem;
}

.edp-hero__copy {
  width: min(720px, 100%);
}

.edp-hero h1,
.edp-page-hero h1,
.edp-single h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.edp-hero p,
.edp-page-hero p,
.edp-single__header p {
  width: min(650px, 100%);
  margin: 1.35rem 0 0;
  color: #d2d6df;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.edp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.edp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.edp-button:hover {
  transform: translateY(-2px);
}

.edp-button--primary {
  background: linear-gradient(135deg, var(--edp-red), var(--edp-red-dark));
  color: white;
  box-shadow: 0 18px 42px rgba(224, 47, 63, 0.25);
}

.edp-button--ghost {
  border-color: var(--edp-border);
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.edp-section {
  padding-block: clamp(4rem, 8vw, 7.5rem);
}

.edp-section--band {
  border-block: 1px solid var(--edp-border);
  background: linear-gradient(135deg, rgba(224, 47, 63, 0.08), rgba(57, 216, 255, 0.04));
}

.edp-section-heading {
  width: min(640px, 100%);
}

.edp-section-heading h2,
.edp-split h2,
.edp-cv-panel h2,
.edp-timeline__group h2,
.edp-contact-layout h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.edp-section-heading p,
.edp-split p,
.edp-cv-panel p,
.edp-contact-layout p {
  color: var(--edp-muted);
}

.edp-intro-grid,
.edp-split,
.edp-contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.edp-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.edp-feature-card,
.edp-card,
.edp-cv-panel,
.edp-timeline__group,
.edp-contact-form,
.edp-book-card {
  border: 1px solid var(--edp-border);
  border-radius: var(--edp-radius);
  background: var(--edp-surface);
  box-shadow: var(--edp-shadow);
  backdrop-filter: blur(18px);
}

.edp-feature-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.3rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.edp-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 47, 63, 0.44);
  background: rgba(26, 29, 40, 0.88);
}

.edp-feature-card h3,
.edp-card__title,
.edp-book-card h2,
.edp-timeline h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.edp-feature-card p,
.edp-card p,
.edp-book-card p,
.edp-timeline p {
  margin: 0;
  color: var(--edp-muted);
}

.edp-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: rgba(224, 47, 63, 0.12);
  color: var(--edp-red);
}

.edp-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.edp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.edp-stats div {
  padding: 1.25rem;
  border: 1px solid var(--edp-border);
  border-radius: var(--edp-radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.edp-stats strong {
  display: block;
  color: white;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
}

.edp-stats span {
  color: var(--edp-muted);
  font-size: 0.9rem;
}

.edp-page-hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  isolation: isolate;
}

.edp-page-hero__content {
  position: relative;
  display: flex;
  min-height: 460px;
  flex-direction: column;
  justify-content: end;
  padding-block: 5rem;
}

.edp-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--edp-border);
  border-radius: var(--edp-radius);
  background: rgba(255, 255, 255, 0.04);
}

.edp-filter-bar label,
.edp-contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--edp-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.edp-filter-bar input,
.edp-filter-bar select,
.edp-contact-form input,
.edp-contact-form textarea {
  width: 100%;
  border: 1px solid var(--edp-border);
  border-radius: 12px;
  background: rgba(5, 5, 7, 0.72);
  color: white;
  padding: 0.9rem 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.edp-filter-bar input:focus,
.edp-filter-bar select:focus,
.edp-contact-form input:focus,
.edp-contact-form textarea:focus {
  border-color: rgba(224, 47, 63, 0.72);
  box-shadow: 0 0 0 4px rgba(224, 47, 63, 0.12);
  outline: 0;
}

.edp-grid {
  display: grid;
  gap: 1.25rem;
}

.edp-grid--posts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.edp-grid--books {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.edp-card,
.edp-book-card {
  overflow: hidden;
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.edp-card:hover,
.edp-book-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 47, 63, 0.38);
}

.edp-card__media {
  display: block;
  aspect-ratio: 1.35;
  overflow: hidden;
}

.edp-card__media img,
.edp-book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.edp-card:hover img,
.edp-book-card:hover img {
  transform: scale(1.04);
}

.edp-card__body,
.edp-book-card__content {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem;
}

.edp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: #d9deea;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.edp-meta span {
  border: 1px solid rgba(224, 47, 63, 0.26);
  border-radius: 999px;
  background: rgba(224, 47, 63, 0.1);
  padding: 0.25rem 0.55rem;
}

.edp-link {
  color: var(--edp-red);
  font-weight: 800;
}

.edp-book-card__cover {
  display: block;
  aspect-ratio: 0.72;
  overflow: hidden;
  background: #090b10;
}

.edp-book-card__author {
  color: #dce4ee;
  font-weight: 800;
}

.edp-cv-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 1.5rem;
}

.edp-cv-panel {
  position: sticky;
  top: 100px;
  padding: 1.4rem;
}

.edp-skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.edp-skill-cloud span {
  border: 1px solid var(--edp-border);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  color: #dbe2ef;
  font-size: 0.86rem;
  font-weight: 800;
}

.edp-timeline {
  display: grid;
  gap: 1.2rem;
}

.edp-timeline__group {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.edp-timeline__group::before {
  position: absolute;
  top: 1.6rem;
  bottom: 1.6rem;
  left: 1.4rem;
  width: 2px;
  background: linear-gradient(var(--edp-red), transparent);
  content: "";
}

.edp-timeline__group h2,
.edp-timeline article {
  position: relative;
  padding-left: 1.8rem;
}

.edp-timeline article::before {
  position: absolute;
  top: 0.55rem;
  left: -0.1rem;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--edp-red);
  box-shadow: 0 0 24px rgba(224, 47, 63, 0.72);
  content: "";
}

.edp-timeline__date {
  display: block;
  color: var(--edp-cyan);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.edp-contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.edp-hp {
  position: absolute;
  left: -100vw;
}

.edp-form-message {
  min-height: 1.5rem;
  margin: 0;
  color: var(--edp-muted);
  font-weight: 800;
}

.edp-form-message.is-success {
  color: #72f0a4;
}

.edp-form-message.is-error {
  color: #ff7b86;
}

.edp-single__header {
  padding-block: clamp(4rem, 8vw, 7rem) 2rem;
  background: radial-gradient(circle at 12% 10%, rgba(224, 47, 63, 0.18), transparent 30rem);
}

.edp-single__header-inner {
  display: grid;
  gap: 1rem;
}

.edp-single__image {
  width: min(100% - 2rem, var(--edp-container));
  margin: 2.5rem auto 0;
  overflow: hidden;
  border: 1px solid var(--edp-border);
  border-radius: var(--edp-radius);
}

.edp-content-wrap {
  padding-block: 3rem 6rem;
}

.edp-prose {
  width: min(760px, 100%);
  margin-inline: auto;
  color: #d9deea;
  font-size: 1.08rem;
}

.edp-prose h2,
.edp-prose h3 {
  color: white;
  line-height: 1.15;
}

.edp-prose a {
  color: var(--edp-cyan);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.edp-prose blockquote {
  margin-inline: 0;
  border-left: 3px solid var(--edp-red);
  padding: 0.6rem 0 0.6rem 1.2rem;
  color: white;
}

.edp-site-footer {
  border-top: 1px solid var(--edp-border);
  background: #050507;
}

.edp-site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding-block: 2rem;
  color: var(--edp-muted);
}

.edp-footer-nav a {
  color: var(--edp-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.edp-footer-nav a:hover {
  color: white;
}

.edp-footer-copy {
  margin: 0;
}

.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

.edp-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem;
  border: 1px solid var(--edp-border);
  border-radius: var(--edp-radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--edp-muted);
}

.edp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.edp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .edp-menu-toggle {
    display: block;
  }

  .edp-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    border: 1px solid var(--edp-border);
    border-radius: 16px;
    background: rgba(9, 11, 16, 0.96);
    padding: 0.8rem;
    box-shadow: var(--edp-shadow);
  }

  .edp-nav.is-open {
    display: block;
  }

  .edp-nav__list {
    display: grid;
  }

  .edp-nav a {
    width: 100%;
    justify-content: center;
  }

  .edp-intro-grid,
  .edp-split,
  .edp-contact-layout,
  .edp-cv-layout {
    grid-template-columns: 1fr;
  }

  .edp-cv-panel {
    position: static;
  }

  .edp-grid--posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edp-grid--books {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .edp-site-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .edp-hero {
    min-height: 680px;
  }

  .edp-hero::after,
  .edp-page-hero::after {
    background:
      linear-gradient(180deg, rgba(5, 5, 7, 0.76) 0%, rgba(5, 5, 7, 0.94) 58%, var(--edp-bg) 100%);
  }

  .edp-hero h1,
  .edp-page-hero h1,
  .edp-single h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .edp-actions,
  .edp-stats,
  .edp-feature-list,
  .edp-filter-bar {
    grid-template-columns: 1fr;
  }

  .edp-actions,
  .edp-stats {
    display: grid;
  }

  .edp-button {
    width: 100%;
  }

  .edp-grid--posts,
  .edp-grid--books {
    grid-template-columns: 1fr;
  }

  .edp-page-hero,
  .edp-page-hero__content {
    min-height: 390px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .edp-reveal {
    opacity: 1;
    transform: none;
  }
}
