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

:root {
  --bg: #f2f2f2;
  --text: #1a1a1a;
  --muted: #9e9e9e;
  --icon-bg: #e8e8e8;
  --icon-bg-hover: #dbdbdb;
  --card-radius: 38px;
  --transition: 0.4s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.layout {
  display: grid;
  grid-template-columns: 50.45vw 1fr;
  min-height: 100vh;
}

.left-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #111;
  contain: layout paint style;
}

.slideshow,
.slide-track,
.slide {
  width: 100%;
  height: 100%;
}

.slide-track {
  position: relative;
  transform: translateZ(0);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.25s ease;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.02) translateZ(0);
  will-change: opacity;
  backface-visibility: hidden;
}

.slide.active {
  opacity: 1;
}

.right-panel {
  min-height: 100vh;
  background: var(--bg);
}

.content-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 78px 56px 72px;
}

.hero {
  text-align: center;
  padding-top: 4px;
}

.avatar {
  width: 138px;
  height: 138px;
  object-fit: cover;
  border-radius: 999px;
  display: block;
  margin: 0 auto 22px;
}

.title {
  margin: 0;
  font-size: clamp(3.5rem, 4.6vw, 4.8rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.subtitle {
  margin: 26px auto 0;
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}

.subtitle a:hover {
  color: #696969;
}

.socials {
  margin: 48px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  max-width: 680px;
}

.socials a {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--icon-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.socials a:hover {
  background: var(--icon-bg-hover);
  transform: translateY(-1px);
}

.socials svg {
  width: 21px;
  height: 21px;
  fill: #202020;
}

.stream-section {
  margin-top: 72px;
}

.stream-shell {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #d8d8d8;
  overflow: hidden;
}

.stream-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.projects-cta-wrap {
  padding-top: 56px;
  padding-bottom: 24px;
  text-align: center;
}

.projects-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 198px;
  min-height: 82px;
  padding: 0 34px;
  border-radius: 999px;
  background: #d9d9d9;
  color: #111;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: background var(--transition), transform var(--transition);
}

.projects-cta:hover {
  background: #cdcdcd;
  transform: translateY(-1px);
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .left-panel {
    position: relative;
    height: 56vh;
    min-height: 420px;
  }

  .content-wrap {
    padding: 56px 28px 64px;
  }
}

@media (max-width: 700px) {
  .left-panel {
    height: 48vh;
    min-height: 320px;
  }

  .avatar {
    width: 110px;
    height: 110px;
    margin-bottom: 18px;
  }

  .title {
    font-size: clamp(2.6rem, 10vw, 3.8rem);
  }

  .subtitle {
    font-size: 1rem;
    max-width: 92%;
    margin-top: 18px;
  }

  .socials {
    gap: 10px;
    margin-top: 36px;
  }

  .socials a {
    width: 44px;
    height: 44px;
  }

  .socials svg {
    width: 19px;
    height: 19px;
  }

  .stream-section {
    margin-top: 48px;
  }

  .projects-cta {
    min-width: 185px;
    min-height: 74px;
    padding: 0 26px;
    font-size: 1rem;
  }
}


.stream-section,
.projects-cta-wrap {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}


.stream-shell {
  position: relative;
}

.stream-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #d9d9d9, #ececec);
  z-index: 0;
}

.stream-shell iframe {
  position: relative;
  z-index: 1;
}

.zoom-toggle {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 20;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  -webkit-tap-highlight-color: transparent;
}

.zoom-toggle:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.zoom-toggle:active {
  transform: scale(0.98);
}

.zoom-toggle svg,
.lightbox-close svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -46%) scale(0.97);
  width: min(78vw, 1100px);
  height: min(82vh, 860px);
  padding: 24px;
  border-radius: 28px;
  background: rgba(20, 20, 24, 0.35);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.32s ease;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.lightbox-close:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox.is-open .lightbox-dialog {
  transform: translate(-50%, -50%) scale(1);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .zoom-toggle {
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
  }

  .lightbox-dialog {
    width: min(92vw, 1100px);
    height: min(76vh, 860px);
    padding: 16px;
    border-radius: 22px;
  }

  .lightbox-close {
    width: 42px;
    height: 42px;
    top: 10px;
    right: 10px;
  }
}
