:root {
  --bg: #090c18;
  --panel: rgba(12, 17, 31, 0.88);
  --panel-strong: rgba(16, 22, 38, 0.96);
  --text: #eef3ff;
  --muted: #b7c2d9;
  --accent: #57d5ab;
  --accent-dark: #2faa84;
  --violet: #7e5cff;
  --border: rgba(140, 156, 203, 0.22);
  --shadow: 0 22px 60px rgba(3, 6, 15, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(126, 92, 255, 0.26), transparent 26%),
    radial-gradient(circle at 85% 18%, rgba(87, 213, 171, 0.18), transparent 24%),
    linear-gradient(180deg, #120d26 0%, #0c1120 55%, #090c18 100%);
}

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

.page-shell {
  padding: 24px 6vw 72px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  margin-bottom: 40px;
  background: rgba(10, 14, 28, 0.84);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.hero,
.subpage-header {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(140, 156, 203, 0.14);
}

.subpage-header {
  min-height: auto;
}

.hero-panel,
.info-card,
.info-box,
.portfolio-item {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-panel {
  max-width: 920px;
  padding: 56px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(18, 24, 44, 0.96), rgba(12, 16, 29, 0.92));
}

.subpage-panel {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  margin-bottom: 18px;
  max-width: 22ch;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.hero-text,
.section-heading p,
.info-card p,
.info-box p,
.portfolio-copy p,
.footer p,
li {
  color: var(--muted);
}

.hero-actions,
.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #05120d;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(47, 170, 132, 0.2);
}

.secondary {
  background: rgba(12, 19, 34, 0.64);
  color: var(--accent);
  border: 1px solid rgba(87, 213, 171, 0.28);
}

.section {
  padding: 40px 0;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 28px;
}

.section-heading-tight h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.45rem);
}

.section-divider {
  border-top: 1px solid rgba(140, 156, 203, 0.14);
  padding-top: 56px;
}

.section-alt {
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 18px 0;
  z-index: -1;
  border-radius: 30px;
}

.compact {
  margin-bottom: 0;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.info-card,
.info-box {
  padding: 28px;
  border-radius: 24px;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.about-founder {
  max-width: 850px;
}

.about-founder h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.45rem);
}

.about-founder p {
  color: var(--muted);
}

.info-box {
  background: transparent;
  box-shadow: none;
}

.info-box-plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.info-box ul {
  margin: 0;
  padding-left: 20px;
}

.gallery-main {
  padding: 0 0 32px;
}

.portfolio-scroll {
  position: relative;
  height: var(--portfolio-height, 300vh);
}

.portfolio-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-items: center;
}

.portfolio-dots {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  display: grid;
  gap: 12px;
}

.portfolio-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(216, 249, 238, 0.22);
  box-shadow: inset 0 0 0 1px rgba(84, 211, 168, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-dot:hover,
.portfolio-dot:focus-visible {
  background: rgba(216, 249, 238, 0.44);
  transform: scale(1.08);
}

.portfolio-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(84, 211, 168, 0.16);
}

.portfolio-list {
  position: relative;
  min-height: 76vh;
}

.portfolio-item {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(280px, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 76vh;
  overflow: hidden;
  border-radius: 28px;
  opacity: 0;
  transform: translateY(90px) scale(0.94);
  pointer-events: none;
  will-change: transform, opacity;
}

.portfolio-item-reverse .portfolio-media {
  order: 2;
}

.portfolio-item-reverse .portfolio-copy {
  order: 1;
}

.portfolio-media {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 36px;
}

.photo-placeholder {
  background:
    linear-gradient(135deg, rgba(87, 213, 171, 0.16), rgba(126, 92, 255, 0.28)),
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 12px,
      rgba(132, 111, 229, 0.12) 12px,
      rgba(132, 111, 229, 0.12) 24px
    );
}

.photo-placeholder span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(9, 14, 26, 0.82);
  color: var(--accent);
  font-weight: 700;
}

.portfolio-copy {
  padding: 42px;
  background: linear-gradient(180deg, rgba(14, 20, 35, 0.98), rgba(10, 15, 27, 0.96));
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.portfolio-tags li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(87, 213, 171, 0.08);
  border: 1px solid rgba(87, 213, 171, 0.2);
  color: #d8f9ee;
  font-size: 0.92rem;
}

.portfolio-item.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  z-index: 3;
  pointer-events: auto;
}

.portfolio-item.is-before {
  opacity: 0;
  transform: translateY(-110px) scale(0.93);
  z-index: 1;
}

.portfolio-item.is-after {
  opacity: 0;
  transform: translateY(110px) scale(0.95);
  z-index: 1;
}

.portfolio-item.is-entering-from-bottom {
  opacity: 1;
  z-index: 4;
  pointer-events: auto;
  animation: portfolioEnterFromBottom 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.portfolio-item.is-entering-from-top {
  opacity: 1;
  z-index: 4;
  pointer-events: auto;
  animation: portfolioEnterFromTop 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.portfolio-item.is-leaving-to-top {
  opacity: 1;
  z-index: 3;
  animation: portfolioLeaveToTop 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.portfolio-item.is-leaving-to-bottom {
  opacity: 1;
  z-index: 3;
  animation: portfolioLeaveToBottom 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.footer {
  padding-top: 18px;
  text-align: center;
}

@keyframes portfolioEnterFromBottom {
  from {
    opacity: 0;
    transform: translateY(110px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes portfolioEnterFromTop {
  from {
    opacity: 0;
    transform: translateY(-110px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes portfolioLeaveToTop {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-110px) scale(0.93);
  }
}

@keyframes portfolioLeaveToBottom {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(110px) scale(0.93);
  }
}

@media (max-width: 980px) {
  .split-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .page-shell {
    padding: 18px 20px 44px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .subpage-header {
    min-height: auto;
  }

  .hero-panel {
    padding: 32px 24px;
  }

  .about-founder {
    padding: 0;
  }

  h1 {
    max-width: none;
  }

  .section {
    padding: 28px 0;
  }

  .portfolio-scroll {
    height: auto;
  }

  .portfolio-stage {
    position: relative;
    top: auto;
    height: auto;
  }

  .portfolio-dots {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
  }

  .portfolio-list {
    display: grid;
    gap: 28px;
    min-height: 0;
  }

  .portfolio-item,
  .portfolio-item-reverse {
    position: relative;
    inset: auto;
    margin: 0;
    grid-template-columns: 1fr;
    min-height: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    animation: none;
  }

  .portfolio-item-reverse .portfolio-media,
  .portfolio-item-reverse .portfolio-copy {
    order: initial;
  }

  .portfolio-media {
    min-height: 240px;
    padding: 24px;
  }

  .portfolio-copy {
    padding: 28px 24px 24px;
  }
}
