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

::selection {
  background: var(--accent);
  color: #05050a;
}

:root {
  --font: "Poppins", system-ui, sans-serif;
  --bg: #05050a;
  --bg2: #0a1210;
  --accent: #14b8a6;
  --accent2: #cea763;
  --text: #e8f0ee;
  --muted: #6b8a82;
  --glass: rgba(20, 184, 166, 0.06);
  --glass-border: rgba(20, 184, 166, 0.18);
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background 0.4s;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-brand span {
  color: var(--accent);
}
.nav.scrolled {
  background: rgba(5, 10, 9, 0.8);
  backdrop-filter: blur(20px);
}
.nav-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
}
.nav-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.05s linear;
}

.nav-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
.smile-rotating {
  position: relative;
  height: 1.4em;
  width: 620px;
  flex-shrink: 0;
}
.smile-text {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  pointer-events: none;
}
.smile-text.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.smile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #14b8a6;
  color: #fff;
  border: none;
  padding: 0.55rem 1.3rem 0.55rem 1rem;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  box-shadow:
    0 0 18px rgba(20, 184, 166, 0.45),
    0 0 40px rgba(20, 184, 166, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition:
    box-shadow 0.25s,
    transform 0.2s;
  animation: smilePulse 3s ease-in-out infinite;
}
@keyframes smilePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
}
.smile-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 32px rgba(20, 184, 166, 0.7),
    0 0 70px rgba(20, 184, 166, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.smile-btn:active {
  transform: scale(0.96);
}
.smile-count {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.smile-count::after {
  content: "+";
  font-size: 0.75rem;
  margin-left: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  right: 2.5rem;
}
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.nav-icon-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}
.tb-icon-sun {
  display: none;
}
[data-theme="light"] .tb-icon-moon {
  display: none;
}
[data-theme="light"] .tb-icon-sun {
  display: block;
}

.toolbar.right ~ .search-overlay,
.toolbar.right ~ nav .search-overlay {
  left: auto;
  right: 52px;
}
.search-overlay {
  display: none;
  position: fixed;
  top: 50%;
  left: 52px;
  transform: translateY(-50%);
  width: 340px;
  max-width: 80vw;
  z-index: 501;
}
.search-overlay.open {
  display: block;
}
.search-box {
  background: rgba(5, 10, 9, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
}
.search-box input {
  width: 100%;
  padding: 1rem 1.2rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}
.search-box input::placeholder {
  color: var(--muted);
}
.search-results {
  border-top: 1px solid var(--glass-border);
}
.search-results:empty {
  border-top: none;
}
.search-result-item {
  display: block;
  padding: 0.8rem 1.2rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
}
.search-result-item:hover {
  background: rgba(20, 184, 166, 0.1);
}
.search-result-item .sr-tag {
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

[data-theme="light"] {
  --bg: #f5f5f0;
  --bg2: #eaeae5;
  --text: #1a1a1a;
  --muted: #5a6a64;
  --glass: rgba(20, 184, 166, 0.08);
  --glass-border: rgba(20, 184, 166, 0.25);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(245, 245, 240, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .search-box {
  background: rgba(245, 245, 240, 0.96);
}
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(
      ellipse 70% 60% at 60% 40%,
      rgba(20, 184, 166, 0.1) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 50% at 20% 80%,
      rgba(212, 160, 23, 0.05) 0%,
      transparent 50%
    ),
    #f5f5f0;
}
[data-theme="light"] .card-img {
  background: linear-gradient(135deg, #e8e8e3, #deded9);
}
[data-theme="light"] .float-card {
  background: rgba(20, 184, 166, 0.08);
}
[data-theme="light"] .float-card img {
  filter: grayscale(60%);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.nav.nav-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.nav-open .burger span:nth-child(2) {
  opacity: 0;
}
.nav.nav-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-left {
    display: none;
  }
  .nav {
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 0.8rem;
  }
  .nav-brand {
    position: static;
    font-size: 0.85rem;
    right: auto;
  }
  .burger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 10, 9, 0.96);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
  }
  .nav.nav-open .nav-links {
    display: flex;
  }
  .nav-links a {
    font-size: 1rem;
    padding: 0.4rem 0;
  }
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(
      ellipse 70% 60% at 60% 40%,
      rgba(20, 184, 166, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 50% at 20% 80%,
      rgba(212, 160, 23, 0.06) 0%,
      transparent 50%
    ),
    #050a09;
  transform-origin: center;
  transform: scale(1.4);
  will-change: transform;
}
.hero-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5rem;
  max-width: 1100px;
  width: 100%;
  padding: 0 3rem;
}
.hero-name {
  display: block;
  margin-bottom: 1.4rem;
}
.hero-name > span {
  display: block;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}
.hero-bio {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.65;
  max-width: 520px;
}
.hero-photo-wrap {
  width: 300px;
  height: 380px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 80px rgba(20, 184, 166, 0.15),
    0 0 0 1px var(--glass-border);
  flex-shrink: 0;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.5) translateY(-10px);
  }
  50% {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.6);
  }
}
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo-wrap {
    width: 200px;
    height: 250px;
    margin: 0 auto;
  }
  .hero-bio {
    margin: 0 auto;
  }
}

.story-outer {
  position: relative;
  height: 350vh;
  background: var(--bg2);
}
.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(20, 184, 166, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.story-phase {
  position: absolute;
  text-align: center;
  padding: 0 2rem;
  opacity: 0;
  will-change: opacity, transform;
}
.phase-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.story-phase h2,
.story-phase h1 {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
}
.story-phase p {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.big-num {
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

#phase2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  max-width: 900px;
  width: 100%;
  padding: 0 3rem;
  text-align: center;
}
#phase2 .phase-label {
  margin-bottom: 0;
}
#phase2 h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}
#phase2 p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 600px;
  margin: 0;
}
.phase2-photos {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  justify-content: center;
}
.float-card-wrap {
  position: relative;
}

.float-card-wrap {
  position: relative;
}
.float-card-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  z-index: -1;
}
.float-card-wrap:nth-child(1)::before {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  transform: translate(-2px, 2px);
}
.float-card-wrap:nth-child(2)::before {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transform: translate(2px, 2px);
}
.float-card-wrap:nth-child(3)::before {
  border-radius: 50% 50% 20% 80% / 25% 75% 25% 75%;
  transform: translate(2px, -2px);
}

.float-card {
  position: relative;
  width: 155px;
  height: 205px;
  background: rgba(20, 184, 166, 0.05);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease;
}
.float-card img {
  filter: grayscale(100%);
  transition: filter 0.35s ease;
}
.float-card-wrap:nth-child(1) .float-card {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}
.float-card-wrap:nth-child(2) .float-card {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
.float-card-wrap:nth-child(3) .float-card {
  border-radius: 50% 50% 20% 80% / 25% 75% 25% 75%;
}
.float-card:hover {
  transform: scale(1.08);
}
.float-card:hover img {
  filter: grayscale(0%);
}
.float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.img-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 10, 0.65);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.img-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.img-modal-panel {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(20, 184, 166, 0.2);
  transform: scale(0.88) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.img-modal.open .img-modal-panel {
  transform: scale(1) translateY(0);
}
.img-modal-panel img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
}
.img-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(5, 5, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.img-modal-close:hover {
  background: rgba(20, 184, 166, 0.4);
}
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.horizontal-wrap {
  overflow: hidden;
  position: relative;
}
.h-scroll-hint {
  position: absolute;
  right: 6rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.h-hint-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #fff;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
  animation: hintPulse 2s ease-in-out infinite;
  transition: transform 0.4s;
}
.h-scroll-hint.down {
  transform: translateY(-50%);
}
.h-scroll-hint.down .h-hint-arrow {
  animation: hintPulseDown 2s ease-in-out infinite;
}
@keyframes hintPulse {
  0%,
  100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(8px);
    opacity: 0.5;
  }
}
@keyframes hintPulseDown {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.5;
  }
}
.horizontal-track {
  display: flex;
  width: 500vw;
}
.h-panel {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4rem;
}

.h-panel:nth-child(1) {
  background: #134e4a;
}
.h-panel:nth-child(2) {
  background: #1e3a8a;
}
.h-panel:nth-child(3) {
  background: #3b0764;
}
.h-panel:nth-child(4) {
  background: #21703e;
}
.h-panel:nth-child(5) {
  background: #050a09;
}

.h-panel-inner {
  max-width: 700px;
  width: 100%;
}

.h-panel-num {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.h-panel:nth-child(1) .h-panel-num {
  color: #14b8a6;
}
.h-panel:nth-child(2) .h-panel-num {
  color: #60a5fa;
}
.h-panel:nth-child(3) .h-panel-num {
  color: #a78bfa;
}
.h-panel:nth-child(4) .h-panel-num {
  color: #86efac;
}
.h-panel:nth-child(5) .h-panel-num {
  color: #cea763;
}

.h-panel-divider {
  width: 60px;
  height: 2px;
  margin-bottom: 2rem;
}
.h-panel:nth-child(1) .h-panel-divider {
  background: #14b8a6;
}
.h-panel:nth-child(2) .h-panel-divider {
  background: #60a5fa;
}
.h-panel:nth-child(3) .h-panel-divider {
  background: #a78bfa;
}
.h-panel:nth-child(4) .h-panel-divider {
  background: #86efac;
}
.h-panel:nth-child(5) .h-panel-divider {
  background: #cea763;
}

.h-panel-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2rem;
  color: #ffffff;
}

.h-panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.h-panel-list li {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  padding-left: 1.2rem;
  position: relative;
}
.h-panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.h-panel:nth-child(1) .h-panel-list li::before {
  background: #14b8a6;
}
.h-panel:nth-child(2) .h-panel-list li::before {
  background: #60a5fa;
}
.h-panel:nth-child(3) .h-panel-list li::before {
  background: #a78bfa;
}
.h-panel:nth-child(4) .h-panel-list li::before {
  background: #86efac;
}
.h-panel:nth-child(5) .h-panel-list li::before {
  background: #cea763;
}

.imgseq-outer {
  position: relative;
  height: 500vh;
}
.imgseq-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.imgseq-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "text  visual"
    "orbit visual";
  align-items: start;
  gap: 4rem;
  max-width: 1100px;
  padding: 0 3rem;
  width: 100%;
}
.imgseq-text .sec-tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.imgseq-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.imgseq-static-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.orbit-period-label {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.6rem;
  transition: opacity 0.2s;
}
.orbit-title {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  transition: opacity 0.2s;
}
.orbit-period-desc {
  font-size: 0.9rem;
  color: var(--text);
  transition: opacity 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.orbit-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.orbit-bullet {
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 0.2rem;
}
.imgseq-text {
  grid-area: text;
}
.imgseq-orbit {
  grid-area: orbit;
}
.imgseq-visual {
  grid-area: visual;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2rem 0;
}
.tl-big-year {
  font-size: clamp(5rem, 11vw, 9rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 0 80px rgba(20, 184, 166, 0.35);
  transition: opacity 0.18s ease;
}
.tl-step-label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -0.4rem;
}
.tl-progress-wrap {
  width: 100%;
  max-width: 360px;
  margin-top: 0.8rem;
}
.tl-progress-track {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
.tl-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
  transition: width 0.08s linear;
}
.tl-dots {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
}
.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
  cursor: default;
}
.tl-dot.filled {
  background: var(--accent);
  border-color: var(--accent);
}
.tl-dot.current {
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.7);
}
.tl-years-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.9rem;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .imgseq-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "visual"
      "orbit";
  }
  .imgseq-text {
    grid-area: text;
  }
  .imgseq-visual {
    grid-area: visual;
  }
  .imgseq-orbit {
    grid-area: orbit;
  }
  .tl-big-year {
    font-size: clamp(4rem, 20vw, 6rem);
  }
}

@media (max-width: 500px) {
  html,
  body {
    overflow-x: hidden;
  }

  .nav-left {
    display: none;
  }
  .nav {
    justify-content: center;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    font-size: 0.72rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
    text-align: center;
    justify-items: center;
  }
  .hero-name > span {
    white-space: normal;
  }
  .hero-bio {
    font-size: 0.95rem;
  }
  .hero-photo-wrap {
    width: 180px;
    height: 230px;
  }

  .story-outer {
    height: auto;
  }
  .story-sticky {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 4rem 1.5rem;
  }
  .story-phase {
    position: relative;
    opacity: 1 !important;
    transform: none !important;
  }
  .story-bg-glow {
    display: none;
  }
  .phase2-photos {
    gap: 0.5rem;
  }
  .float-card {
    width: 90px;
    height: 118px;
  }

  .h-scroll-hint {
    display: none;
  }
  .horizontal-wrap {
    overflow: visible;
    height: auto !important;
  }
  .horizontal-track {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    transform: none !important;
  }
  .h-panel {
    width: 100%;
    height: auto;
    min-height: unset;
    padding: 3rem 1.5rem;
  }

  .imgseq-outer {
    height: auto;
  }
  .imgseq-sticky {
    position: relative;
    height: auto;
  }
  .imgseq-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }
  .imgseq-visual {
    align-items: center;
    padding: 2.5rem 0;
  }
  .tl-big-year {
    font-size: clamp(4rem, 18vw, 5.5rem);
  }
  .tl-progress-wrap {
    max-width: 100%;
  }
  .tl-dot {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    cursor: pointer;
    position: relative;
  }
  .tl-dot::after {
    content: "";
    position: absolute;
    inset: -8px;
  }
  .tl-dot.current {
    transform: scale(1.3);
    box-shadow: 0 0 14px rgba(20, 184, 166, 0.8);
  }
  .orbit-period-desc {
    font-size: 0.82rem;
  }

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

  .kontakt-links {
    flex-direction: column;
    align-items: stretch;
  }
  .kontakt-item {
    width: 100%;
    justify-content: center;
  }
}

.werdegang-mobile {
  display: none;
}

.section {
  padding: 7rem 2rem;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.sec-tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-header h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.portfolio-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(16px);
  transition:
    transform 0.4s,
    box-shadow 0.4s,
    border-color 0.4s;
  cursor: pointer;
}
.portfolio-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 60px rgba(20, 184, 166, 0.15);
  border-color: var(--accent);
}
.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #0a1a18, #0d2020);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card-img.pdf-wrap {
  display: block;
  position: relative;
  aspect-ratio: auto;
  min-height: 200px;
}
.pdf-canvas {
  width: 100%;
  display: block;
}
.pdf-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.4rem 0.6rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.pdf-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.pdf-btn:disabled {
  opacity: 0.25;
  cursor: default;
}
.pdf-info {
  color: #fff;
  font-size: 0.8rem;
  min-width: 4rem;
  text-align: center;
}
.portfolio-card:hover .card-img img {
  transform: scale(1.05);
}
.placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.3;
}
.card-body {
  padding: 1.4rem 1.6rem 1.6rem;
}
.card-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(20, 184, 166, 0.1),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-card:hover .card-glow {
  opacity: 1;
}

.more-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  cursor: default;
}
.more-card-content {
  padding: 2rem;
  text-align: center;
}
.more-card-text {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.kontakt-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.kontakt-inner h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.kontakt-inner > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}
.kontakt-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.kontakt-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.8rem;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.kontakt-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.12);
}
.k-icon {
  color: var(--accent);
  font-size: 1.1rem;
}
.k-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

footer {
  padding: 2.5rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
footer strong {
  color: var(--accent);
}
.footer-links {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}

.smile-indicator {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.smile-indicator.pop {
  transform: scale(1.4);
}

.fly-emoji {
  position: fixed;
  font-size: 1.8rem;
  pointer-events: none;
  z-index: 9999;
  animation: flyUp 1.1s ease-out forwards;
}
@keyframes flyUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.8) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform: translateY(-80px) scale(1.3) rotate(10deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-140px) scale(1) rotate(-5deg);
  }
}

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    border-color 0.2s;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  border-color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.toolbar {
  position: fixed;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px;
  background: rgba(42, 42, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow:
    2px 0 20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transition:
    left 0.3s,
    right 0.3s,
    border-radius 0.3s,
    box-shadow 0.3s;
  animation: tb-glow-intro 1.5s ease-in-out 2s 3;
}
@keyframes tb-glow-intro {
  0%,
  100% {
    box-shadow:
      2px 0 20px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.04);
  }
  50% {
    box-shadow:
      2px 0 25px rgba(20, 184, 166, 0.3),
      0 0 15px rgba(20, 184, 166, 0.15),
      0 0 0 1px rgba(20, 184, 166, 0.2);
  }
}
.toolbar.right {
  left: auto;
  right: 10px;
  border-radius: 12px;
  box-shadow:
    -2px 0 20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}
.toolbar.dragging {
  transition: none;
  opacity: 0.7;
  cursor: grabbing;
}
.tb-drag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 8px;
  cursor: grab;
}
.tb-drag span {
  display: block;
  width: 14px;
  height: 2px;
  background: #555;
  border-radius: 1px;
}
.tb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #888;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
  position: relative;
}
.tb-btn svg {
  width: 18px;
  height: 18px;
}
.tb-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: scale(1.08);
}
.tb-btn.active {
  background: rgba(20, 184, 166, 0.18);
  color: var(--accent);
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.2);
}
.tb-divider {
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 4px 0;
}
.tb-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #14b8a6;
  border: 2px solid #666;
  display: block;
}
.toolbar.right .tb-color-picker,
.toolbar.right .tb-size-picker {
  left: auto;
  right: 44px;
}
.tb-color-picker {
  display: none;
  position: absolute;
  left: 44px;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 6px;
  gap: 4px;
  flex-direction: row;
  box-shadow: 4px 2px 12px rgba(0, 0, 0, 0.5);
  z-index: 501;
}
.tb-color-picker.open {
  display: flex;
}
.tb-cp-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.tb-cp-swatch:hover {
  transform: scale(1.2);
}
.tb-cp-swatch.selected {
  border-color: #fff;
}
.tb-size-preview {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  display: block;
  transition:
    width 0.15s,
    height 0.15s;
}
.tb-size-picker {
  display: none;
  position: absolute;
  left: 44px;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
  box-shadow: 4px 2px 12px rgba(0, 0, 0, 0.5);
  z-index: 501;
  white-space: nowrap;
}
.tb-size-picker.open {
  display: flex;
}
.tb-range {
  width: 90px;
  accent-color: var(--accent);
  cursor: pointer;
}
.tb-size-val {
  color: #ccc;
  font-size: 0.72rem;
  min-width: 28px;
  font-family: monospace;
}

#drawCanvas {
  position: fixed;
  inset: 0;
  z-index: 499;
  pointer-events: none;
}
#drawCanvas.drawing {
  pointer-events: auto;
  cursor: crosshair;
}
#drawCanvas.erasing {
  pointer-events: auto;
  cursor: cell;
}
#drawCanvas.texting {
  pointer-events: auto;
  cursor: text;
}
#drawCanvas.recting {
  pointer-events: auto;
  cursor: crosshair;
}

.draw-text-block {
  position: fixed;
  z-index: 500;
  min-width: 40px;
  min-height: 1.2em;
  padding: 4px 8px;
  font-family: "Poppins", sans-serif;
  line-height: 1.3;
  outline: none;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  white-space: pre-wrap;
  word-break: break-word;
  cursor: text;
  max-width: 50vw;
}
.draw-text-block:focus {
  border-color: var(--accent);
}
.draw-text-block:not(:focus) {
  border-color: transparent;
  background: transparent;
}
.draw-text-drag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 12px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.draw-text-drag::after {
  content: "";
  width: 14px;
  height: 2px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 1px;
}
.draw-text-block:hover .draw-text-drag,
.draw-text-block:focus .draw-text-drag {
  opacity: 1;
}
.draw-text-drag:active {
  cursor: grabbing;
}

.terminal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.terminal-overlay.open {
  display: flex;
}
.terminal-window {
  width: 560px;
  max-width: 92vw;
  max-height: 70vh;
  background: #0d0d0d;
  border: 1px solid #333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}
.terminal-bar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  gap: 10px;
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}
.terminal-dots i:nth-child(1) {
  background: #ff5f57;
}
.terminal-dots i:nth-child(2) {
  background: #ffbd2e;
}
.terminal-dots i:nth-child(3) {
  background: #28c840;
}
.terminal-title {
  flex: 1;
  text-align: center;
  color: #666;
  font-size: 0.78rem;
  font-family: "Courier New", monospace;
}
.terminal-close {
  background: none;
  border: none;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
}
.terminal-close:hover {
  color: #fff;
}
.terminal-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.6;
  max-height: 50vh;
}
.terminal-line {
  margin-bottom: 4px;
}
.terminal-input-wrap {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid #2a2a2a;
  background: #111;
  gap: 8px;
}
.terminal-prompt {
  color: var(--accent);
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 0.9rem;
}
.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
}

@media (max-width: 500px) {
  .toolbar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    justify-content: center;
    border-radius: 12px 12px 0 0;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -2px 20px rgba(20, 184, 166, 0.25);
    overflow-x: auto;
  }
  .tb-divider {
    width: 1px;
    height: 24px;
    margin: 0 3px;
  }
  .tb-color-picker {
    left: auto;
    bottom: 44px;
    flex-direction: row;
  }
  .tb-size-picker {
    left: auto;
    bottom: 44px;
  }
}
