.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: grid;
  align-items: end;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(0.05) contrast(1.05) brightness(0.95);
  transform: translate3d(0, 0, 0);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero.is-ready .hero-media img {
  transform: translate3d(0, 0, 0);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 6, 10, 0.88) 0%, rgba(4, 6, 10, 0.45) 38%, rgba(4, 6, 10, 0.08) 68%, rgba(4, 6, 10, 0.18) 100%),
    linear-gradient(180deg, rgba(4, 6, 10, 0.18) 0%, transparent 42%, rgba(4, 6, 10, 0.55) 100%);
}

.hero-sweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(94, 234, 212, 0.08) 48%,
    transparent 62%
  );
  transform: translateX(-60%);
  animation: light-sweep 9s ease-in-out infinite;
}

@keyframes light-sweep {
  0%,
  30% {
    transform: translateX(-70%);
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  70%,
  100% {
    transform: translateX(70%);
    opacity: 0;
  }
}

.hero-status {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
}

.hero-status .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-status .blink {
  color: var(--phosphor);
}

.hero-status .blink::after {
  content: "▋";
  margin-left: 4px;
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 72px;
  max-width: 720px;
  margin-left: max(24px, calc((100% - var(--max)) / 2));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 18px;
  height: 1px;
  background: var(--phosphor);
  box-shadow: 0 0 8px rgba(94, 234, 212, 0.7);
}

.hero-name {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 650;
  text-shadow: 0 0 40px rgba(4, 6, 10, 0.8);
}

.hero h1 {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--phosphor);
}

.hero-subtitle {
  margin-top: 28px;
  max-width: 560px;
  color: #b7c2d4;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.75;
}

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

.hero-meta {
  position: absolute;
  right: max(24px, calc((100% - var(--max)) / 2));
  bottom: 72px;
  z-index: 2;
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.hero-meta strong {
  color: var(--signal);
  font-weight: 500;
}

section {
  padding: 96px 0;
  scroll-margin-top: 84px;
  position: relative;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.22), transparent);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(140, 220, 255, 0.1);
}

h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.02;
}

.journey {
  position: relative;
  display: grid;
  gap: 18px;
}

.journey::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--phosphor-dim), rgba(125, 211, 252, 0.35), transparent);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey.is-drawn::before {
  transform: scaleY(1);
}

.journey-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.journey-item:nth-child(even) .journey-card {
  grid-column: 2;
}

.journey-card {
  position: relative;
  padding: 22px 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(8px);
}

.journey-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--phosphor), transparent);
}

.journey-card::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 8px;
  height: 8px;
  background: var(--phosphor);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.12), 0 0 12px rgba(94, 234, 212, 0.5);
}

.journey-item:nth-child(odd) .journey-card::after {
  right: -40px;
}

.journey-item:nth-child(even) .journey-card::after {
  left: -40px;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.12), 0 0 12px rgba(125, 211, 252, 0.45);
}

.journey-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  font-size: 1.4rem;
  background: rgba(94, 234, 212, 0.04);
}

.journey-card p {
  color: #b4bfd0;
  line-height: 1.8;
  text-align: justify;
  hyphens: auto;
}

.experience-layout {
  display: grid;
  gap: 18px;
}

.experience-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.text-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 14, 22, 0.55);
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}

.text-card:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(12, 20, 30, 0.85);
}

.text-card p {
  color: #b4bfd0;
  line-height: 1.8;
  font-size: 0.98rem;
}

.image-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #070b12;
  position: relative;
}

.image-panel::before {
  content: "SYS // EXPERIENCE_MAP";
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--phosphor);
}

.image-panel img {
  width: 100%;
  height: auto;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 500ms ease, filter 500ms ease;
}

.image-panel:hover img {
  transform: scale(1.02);
  filter: saturate(1) contrast(1.08);
}

.education-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}

.glass-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.glass-panel p + p {
  margin-top: 16px;
}

.glass-panel p {
  color: #b4bfd0;
  line-height: 1.82;
}

.photo-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #070b12;
  display: flex;
  flex-direction: column;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
  transition: transform 500ms ease, filter 500ms ease;
}

.photo-frame:hover img {
  transform: scale(1.03);
  filter: grayscale(0) contrast(1.08);
}

.caption {
  padding: 12px 14px;
  color: var(--muted);
  border-top: 1px solid rgba(140, 220, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.blog-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 14, 22, 0.6);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.4);
  box-shadow: 0 0 28px rgba(94, 234, 212, 0.08);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
  transition: transform 420ms ease, filter 420ms ease;
}

.blog-card:hover img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.08);
}

.blog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-top: 1px solid rgba(140, 220, 255, 0.1);
}

.blog-meta {
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-card h3 {
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.2;
}

.blog-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 14px;
  color: var(--phosphor);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact {
  padding-bottom: 56px;
}

.contact-card {
  position: relative;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.06), transparent 40%),
    linear-gradient(320deg, rgba(125, 211, 252, 0.05), transparent 35%),
    rgba(8, 14, 22, 0.75);
  text-align: center;
  overflow: hidden;
}

.contact-card::before,
.contact-card::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--phosphor);
  border-style: solid;
}

.contact-card::before {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
}

.contact-card::after {
  right: 10px;
  bottom: 10px;
  border-width: 0 1px 1px 0;
}

.contact-card h2 {
  margin: 0 auto;
  max-width: 720px;
}

.contact-card p {
  max-width: 620px;
  margin: 20px auto 0;
  color: #b4bfd0;
  line-height: 1.75;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.social-link {
  min-width: 132px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: 200ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--phosphor);
  color: var(--phosphor);
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.12);
}

@media (max-width: 980px) {
  .hero-copy {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding: 110px 0 56px;
  }

  .hero-meta {
    display: none;
  }

  .hero-media img {
    inset: 0;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 20%;
    transform: none;
  }

  .hero.is-ready .hero-media img {
    transform: none;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(4, 6, 10, 0.35) 0%, rgba(4, 6, 10, 0.45) 40%, rgba(4, 6, 10, 0.88) 100%),
      linear-gradient(90deg, rgba(4, 6, 10, 0.4), rgba(4, 6, 10, 0.15));
  }

  .education-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .experience-cards {
    grid-template-columns: 1fr;
  }

  .journey::before {
    left: 8px;
  }

  .journey-item,
  .journey-item:nth-child(even) .journey-card {
    grid-template-columns: 1fr;
  }

  .journey-card {
    margin-left: 28px;
  }

  .journey-item:nth-child(odd) .journey-card::after,
  .journey-item:nth-child(even) .journey-card::after {
    left: -28px;
    right: auto;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 86vh;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .blog-card {
    display: grid;
    grid-template-columns: 118px 1fr;
  }

  .blog-card img {
    height: 100%;
    min-height: 128px;
    aspect-ratio: auto;
  }

  .contact-card {
    text-align: left;
  }

  .socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .social-link {
    min-width: 0;
    text-align: center;
  }
}

@media (max-width: 480px) {
  section {
    padding: 64px 0;
  }

  .hero-name {
    font-size: clamp(2.4rem, 13vw, 3.4rem);
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card img {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .socials {
    grid-template-columns: 1fr;
  }

  .journey-card,
  .text-card,
  .glass-panel,
  .blog-card-body {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sweep {
    animation: none;
    opacity: 0;
  }

  .hero-status .blink::after {
    animation: none;
  }

  .hero-media img,
  .journey::before,
  .image-panel img,
  .photo-frame img,
  .blog-card img,
  .text-card,
  .blog-card,
  .social-link {
    transition: none;
  }

  .journey::before {
    transform: scaleY(1);
  }

  .text-card:hover,
  .blog-card:hover,
  .social-link:hover {
    transform: none;
  }
}
