:root {
  --white: #f3f1ea;
  --black: #1b1f1d;
  --gray-100: #eeece5;
  --gray-200: #dfdcd3;
  --gray-300: #c9c5ba;
  --gray-500: #777c77;
  --surface: #f8f7f2;
  --accent: #6f8178;
  --accent-soft: #dde5df;
  --panel-width: min(430px, 32vw);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(111,129,120,.09), transparent 34%),
    var(--white);
  color: var(--black);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
  cursor: none;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}


.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: 54px;
  padding: 0 clamp(16px, 3vw, 38px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(27,31,29,.10);
  background: rgba(243,241,234,.74);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition: background .55s var(--ease-soft), border-color .55s var(--ease-soft), color .55s var(--ease-soft);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-name {
  color: var(--black);
  font-weight: 700;
}

.topbar-separator,
.site-version {
  color: var(--gray-500);
}


.topbar-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(248,247,242,.72);
  box-shadow: inset 0 0 0 1px rgba(27,31,29,.11);
  transition: background .45s var(--ease-soft), box-shadow .45s var(--ease-soft);
}

.language-option {
  min-width: 35px;
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  color: var(--gray-500);
  background: transparent;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .10em;
  cursor: none;
  transition: color .35s var(--ease-soft), background .45s var(--ease), box-shadow .45s var(--ease), transform .35s var(--ease);
}

.language-option:hover {
  color: var(--black);
  transform: translateY(-1px);
}

.language-option.is-active {
  color: var(--surface);
  background: var(--black);
  box-shadow: 0 5px 14px rgba(27,31,29,.14);
}

.language-divider {
  width: 1px;
  height: 12px;
  background: rgba(27,31,29,.10);
  transition: background .45s var(--ease-soft);
}

body.language-changing main,
body.language-changing .side-panel {
  opacity: .72;
}

main,
.side-panel {
  transition-property: opacity;
  transition-duration: .18s;
  transition-timing-function: ease;
}

.theme-toggle {
  border: 0;
  padding: 7px 9px 7px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--black);
  background: rgba(248,247,242,.72);
  box-shadow: inset 0 0 0 1px rgba(27,31,29,.11);
  cursor: none;
  transition: color .45s var(--ease-soft), background .45s var(--ease-soft), box-shadow .45s var(--ease-soft), transform .35s var(--ease);
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle-track {
  position: relative;
  width: 35px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  background: rgba(27,31,29,.13);
  transition: background .45s var(--ease-soft);
}

.theme-toggle-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--black);
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  transition: transform .55s var(--ease), background .45s var(--ease-soft);
}

.theme-toggle-text {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-theme="dark"] {
  --white: #151816;
  --black: #eef0ea;
  --gray-100: #1b1f1c;
  --gray-200: #2b302c;
  --gray-300: #3b423c;
  --gray-500: #98a098;
  --surface: #202521;
  --accent: #94a99d;
  --accent-soft: #2c3731;
  background:
    radial-gradient(circle at 50% 12%, rgba(148,169,157,.11), transparent 34%),
    #151816;
  color: var(--black);
}

body[data-theme="dark"]::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(148,169,157,.08), transparent 27%),
    radial-gradient(circle at 82% 74%, rgba(180,161,126,.07), transparent 30%);
}

body[data-theme="dark"] .topbar {
  border-color: rgba(238,240,234,.10);
  background: rgba(21,24,22,.74);
}

body[data-theme="dark"] .theme-toggle {
  color: #eef0ea;
  background: rgba(32,37,33,.82);
  box-shadow: inset 0 0 0 1px rgba(238,240,234,.12);
}

body[data-theme="dark"] .theme-toggle-track {
  background: rgba(148,169,157,.28);
}

body[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(15px);
  background: #eef0ea;
}


body[data-theme="dark"] .language-toggle {
  background: rgba(32,37,33,.82);
  box-shadow: inset 0 0 0 1px rgba(238,240,234,.12);
}

body[data-theme="dark"] .language-option {
  color: #8f9891;
}

body[data-theme="dark"] .language-option:hover {
  color: #eef0ea;
}

body[data-theme="dark"] .language-option.is-active {
  color: #151816;
  background: #eef0ea;
  box-shadow: 0 5px 14px rgba(0,0,0,.22);
}

body[data-theme="dark"] .language-divider {
  background: rgba(238,240,234,.10);
}

body[data-theme="dark"] .hero-subtitle,
body[data-theme="dark"] .panel-intro,
body[data-theme="dark"] .works-lead,
body[data-theme="dark"] .project-info > p,
body[data-theme="dark"] .works-footer p {
  color: #a9b0aa;
}

body[data-theme="dark"] .hero-contact {
  color: #a9b0aa;
  border-color: rgba(238,240,234,.10);
  background: rgba(32,37,33,.70);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

body[data-theme="dark"] .works-button,
body[data-theme="dark"] .mobile-panel-button {
  border-color: rgba(238,240,234,.72);
  color: #eef0ea;
  background: rgba(32,37,33,.78);
}

body[data-theme="dark"] .works-button:hover {
  color: #151816;
  background: #eef0ea;
}

body[data-theme="dark"] .orbit {
  border-color: rgba(238,240,234,.12);
}

body[data-theme="dark"] .orbit::before,
body[data-theme="dark"] .orbit::after {
  border-color: rgba(238,240,234,.70);
  background: #202521;
}

body[data-theme="dark"] .code-particle {
  color: rgba(238,240,234,var(--alpha));
}

body[data-theme="dark"] .side-panel {
  color: #eef0ea;
  border-color: rgba(238,240,234,.11);
  background: rgba(28,33,29,.97);
}

body[data-theme="dark"] .side-panel-left::after,
body[data-theme="dark"] .side-panel-right::after {
  border-color: rgba(238,240,234,.12);
  background: #202521;
}

body[data-theme="dark"] .panel-line {
  background: #eef0ea;
}

body[data-theme="dark"] .panel-note,
body[data-theme="dark"] .project-meta,
body[data-theme="dark"] .section-number,
body[data-theme="dark"] .eyebrow,
body[data-theme="dark"] .site-version,
body[data-theme="dark"] .topbar-separator {
  color: #8f9891;
}

body[data-theme="dark"] .works {
  border-color: rgba(238,240,234,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 24%),
    #1b1f1c;
}

body[data-theme="dark"] .works::before {
  background-image:
    linear-gradient(to right, rgba(238,240,234,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(238,240,234,.035) 1px, transparent 1px);
}

body[data-theme="dark"] .project-card {
  border-color: rgba(238,240,234,.10);
  background: rgba(32,37,33,.74);
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
}

body[data-theme="dark"] .project-card:hover {
  border-color: rgba(148,169,157,.45);
  box-shadow: 0 34px 94px rgba(0,0,0,.28);
}

body[data-theme="dark"] .project-tags span {
  color: #b9c0ba;
  border-color: rgba(238,240,234,.10);
  background: rgba(255,255,255,.035);
}

body[data-theme="dark"] .project-open {
  color: #eef0ea;
}

body[data-theme="dark"] .works-footer {
  border-color: rgba(238,240,234,.12);
}

body[data-theme="dark"] .works-footer a {
  color: #eef0ea;
}

body[data-theme="dark"] .scroll-link span {
  border-color: #eef0ea;
}

body[data-theme="dark"] .cursor-dot {
  background: #eef0ea;
}

body[data-theme="dark"] .cursor-ring {
  border-color: rgba(238,240,234,.45);
}

body[data-theme="dark"].cursor-active .cursor-ring {
  background: rgba(148,169,157,.14);
}



body[data-theme="dark"] .portfolio-tabs {
  border-color: rgba(238,240,234,.10);
  background: rgba(32,37,33,.66);
}

body[data-theme="dark"] .portfolio-tab {
  color: #9fa79f;
}

body[data-theme="dark"] .portfolio-tab:hover {
  color: #eef0ea;
}

body[data-theme="dark"] .portfolio-tab.is-active {
  color: #151816;
  background: #eef0ea;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

body[data-theme="dark"] .bots-showcase {
  border-color: rgba(238,240,234,.10);
  background: rgba(32,37,33,.74);
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
}

body[data-theme="dark"] .bots-copy > p:not(.section-kicker) {
  color: #a9b0aa;
}

body[data-theme="dark"] .bot-capabilities {
  border-color: rgba(238,240,234,.10);
  background: rgba(238,240,234,.10);
}

body[data-theme="dark"] .bot-capabilities > div {
  background: rgba(32,37,33,.95);
}

body[data-theme="dark"] .bot-contact {
  color: #eef0ea;
  border-color: rgba(238,240,234,.13);
}

body[data-theme="dark"] .bot-contact:hover {
  background: rgba(255,255,255,.04);
}

body,
.topbar,
.side-panel,
.works,
.project-card,
.works-button,
.hero-contact,
.mobile-panel-button,
.portfolio-tabs,
.portfolio-tab,
.bots-showcase,
.bot-contact {
  transition-property: background-color, background, color, border-color, box-shadow, transform;
  transition-duration: .55s;
  transition-timing-function: var(--ease-soft);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 94px 24px 112px;
}

.hero-copy {
  position: relative;
  z-index: 5;
  text-align: center;
  width: min(960px, 90vw);
}

.eyebrow,
.section-kicker,
.panel-kicker,
.section-number {
  margin: 0;
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--gray-500);
}

h1 {
  margin: 0;
  font-size: clamp(76px, 13vw, 210px);
  line-height: .82;
  letter-spacing: -.085em;
  font-weight: 800;
}

.hero-subtitle {
  max-width: 620px;
  margin: 30px auto 0;
  color: #5f655f;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.7;
}


.hero-contact {
  margin: 16px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid rgba(27,31,29,.10);
  border-radius: 999px;
  background: rgba(248,247,242,.72);
  backdrop-filter: blur(8px);
  color: #606660;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(30,37,33,.04);
}

.hero-contact a {
  color: var(--black);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .04em;
  transition: color .35s ease, opacity .35s ease;
}

.hero-contact a:hover {
  color: var(--accent);
}


.works-button {
  position: absolute;
  z-index: 7;
  bottom: 62px;
  left: 50%;
  transform: translateX(-50%);
  width: min(330px, calc(100vw - 48px));
  min-height: 64px;
  padding: 0 24px 0 28px;
  border: 1px solid var(--black);
  border-radius: 14px;
  color: var(--black);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  background: rgba(248,247,242,.82);
  backdrop-filter: blur(10px);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.works-button:hover {
  background: var(--black);
  color: var(--white);
  transform: translateX(-50%) translateY(-3px);
}

.button-arrow {
  font-size: 24px;
  transition: transform .25s ease;
}

.works-button:hover .button-arrow {
  transform: translateX(5px);
}

.scroll-link {
  position: absolute;
  z-index: 7;
  bottom: 22px;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translateX(-50%);
}

.scroll-link span {
  position: absolute;
  width: 10px;
  height: 10px;
  left: 5px;
  top: 2px;
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  transform: rotate(45deg);
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: .45; }
  50% { transform: translateY(6px) rotate(45deg); opacity: 1; }
}

.orbit {
  position: absolute;
  left: 50%;
  top: 47%;
  border: 1px solid rgba(27,31,29,.11);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-7deg);
  pointer-events: none;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--black);
  background: var(--surface);
  border-radius: 50%;
}

.orbit::before {
  left: 13%;
  top: 17%;
}

.orbit::after {
  right: 10%;
  bottom: 18%;
}

.orbit-one {
  width: min(980px, 70vw);
  height: min(390px, 35vw);
  animation: orbitFloat 12s ease-in-out infinite;
}

.orbit-two {
  width: min(1100px, 80vw);
  height: min(520px, 43vw);
  opacity: .55;
  transform: translate(-50%, -50%) rotate(6deg);
  animation: orbitFloatTwo 15s ease-in-out infinite;
}

.orbit-three {
  width: min(760px, 58vw);
  height: min(300px, 27vw);
  opacity: .35;
  border-style: dashed;
  animation: orbitFloatThree 10s ease-in-out infinite;
}

@keyframes orbitFloat {
  0%,100% { transform: translate(-50%,-50%) rotate(-7deg) scale(1); }
  50% { transform: translate(-50%,-51.5%) rotate(-4deg) scale(1.02); }
}

@keyframes orbitFloatTwo {
  0%,100% { transform: translate(-50%,-50%) rotate(6deg); }
  50% { transform: translate(-50%,-49%) rotate(10deg); }
}

@keyframes orbitFloatThree {
  0%,100% { transform: translate(-50%,-50%) rotate(-1deg); }
  50% { transform: translate(-50%,-52%) rotate(-6deg); }
}

.code-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.code-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  color: rgba(0,0,0,var(--alpha));
  font-family: "Space Mono", monospace;
  font-size: var(--size);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: particleMove var(--duration) ease-in-out var(--delay) infinite alternate;
  transition: transform .3s ease-out;
}

@keyframes particleMove {
  from { margin-left: -7px; margin-top: -5px; }
  to { margin-left: 8px; margin-top: 7px; }
}

.edge-trigger {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 92px;
  z-index: 20;
}

.edge-trigger-left { left: 0; }
.edge-trigger-right { right: 0; }

.side-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 30;
  width: var(--panel-width);
  min-width: 310px;
  background: rgba(248,247,242,.965);
  backdrop-filter: blur(20px);
  padding: 48px 42px 42px;
  border-color: #d7d7d7;
  border-style: solid;
  transition: transform .82s var(--ease), box-shadow .82s var(--ease), background .5s ease;
  will-change: transform;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.side-panel-left {
  left: 0;
  border-width: 0 1px 0 0;
  transform: translateX(calc(-100% + 28px));
}

.side-panel-right {
  right: 0;
  border-width: 0 0 0 1px;
  transform: translateX(calc(100% - 28px));
}

.side-panel.is-open {
  transform: translateX(0);
  box-shadow: 0 34px 90px rgba(25,32,28,.13);
}

.side-panel-left::after,
.side-panel-right::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 72px;
  border: 1px solid #d7d7d7;
  background: var(--white);
  transform: translateY(-50%);
}

.side-panel-left::after {
  right: -25px;
  border-left: 0;
  border-radius: 0 14px 14px 0;
}

.side-panel-right::after {
  left: -25px;
  border-right: 0;
  border-radius: 14px 0 0 14px;
}

.panel-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: none;
  opacity: .45;
}

.panel-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 42px;
}

.panel-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-panel h2 {
  margin: 10px 0 18px;
  font-size: clamp(28px, 2vw, 36px);
  letter-spacing: -.04em;
}

.panel-line {
  width: 42px;
  height: 1px;
  background: var(--black);
  margin-bottom: 42px;
}

.panel-intro {
  margin: -14px 0 30px;
  color: #5c625d;
  font-size: 13px;
  line-height: 1.75;
}

.panel-list-compact {
  gap: 20px;
}

.panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 28px;
}

.panel-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.list-symbol {
  font-family: "Space Mono", monospace;
  font-size: 13px;
}

.panel-note {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 32px;
  margin: 0;
  color: #858b86;
  font-size: 11px;
  line-height: 1.5;
}

.mobile-panel-button {
  display: none;
}




/* projects */
.works {
  position: relative;
  min-height: 100svh;
  padding: 120px clamp(24px, 7vw, 120px) 96px;
  border-top: 1px solid var(--gray-200);
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 24%),
    var(--gray-100);
}

.works::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(27,31,29,.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27,31,29,.032) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.works-heading,
.project-grid,
.works-footer {
  position: relative;
  z-index: 1;
}

.works-heading {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  max-width: 1000px;
}

.section-number {
  padding-top: 8px;
  color: var(--gray-500);
}

.works h2 {
  margin: 8px 0 0;
  font-size: clamp(52px, 8vw, 118px);
  line-height: .94;
  letter-spacing: -.065em;
}

.works-lead {
  max-width: 660px;
  margin: 28px 0 0;
  color: #626862;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.75;
}


.portfolio-tabs {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 6px;
  margin-top: 46px;
  padding: 5px;
  border: 1px solid rgba(27,31,29,.13);
  border-radius: 16px;
  background: rgba(248,247,242,.58);
  backdrop-filter: blur(12px);
}

.portfolio-tab {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #626862;
  background: transparent;
  cursor: none;
  font-weight: 800;
  transition: color .4s var(--ease-soft), background .55s var(--ease), transform .4s var(--ease);
}

.portfolio-tab:hover {
  color: var(--black);
  transform: translateY(-1px);
}

.portfolio-tab.is-active {
  color: var(--surface);
  background: var(--black);
  box-shadow: 0 12px 28px rgba(27,31,29,.14);
}

.tab-index {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: .08em;
  opacity: .62;
}

.portfolio-panel {
  position: relative;
  z-index: 1;
  animation: portfolioPanelIn .72s var(--ease) both;
}

.portfolio-panel[hidden] {
  display: none;
}

@keyframes portfolioPanelIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.bots-showcase {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .78fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
  margin-top: 64px;
  padding: clamp(24px, 4vw, 58px);
  border: 1px solid rgba(27,31,29,.13);
  border-radius: 30px;
  background: rgba(248,247,242,.72);
  box-shadow: 0 24px 70px rgba(28,35,31,.055);
  backdrop-filter: blur(12px);
}

.bots-copy h3 {
  max-width: 780px;
  margin: 12px 0 22px;
  font-size: clamp(38px, 5.5vw, 78px);
  line-height: .98;
  letter-spacing: -.06em;
}

.bots-copy > p:not(.section-kicker) {
  max-width: 650px;
  margin: 0;
  color: #606660;
  font-size: 15px;
  line-height: 1.8;
}

.bot-capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 34px;
  border: 1px solid rgba(27,31,29,.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(27,31,29,.12);
}

.bot-capabilities > div {
  min-height: 108px;
  padding: 19px;
  background: rgba(248,247,242,.94);
}

.bot-capabilities span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
}

.bot-capabilities p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.bot-contact {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 13px 16px;
  border: 1px solid rgba(27,31,29,.16);
  border-radius: 12px;
  color: var(--black);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: transform .45s var(--ease), border-color .4s ease, background .4s ease;
}

.bot-contact span:last-child {
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: 10px;
}

.bot-contact:hover {
  transform: translateY(-3px);
  border-color: rgba(111,129,120,.48);
  background: rgba(255,255,255,.32);
}

.telegram-demo {
  position: relative;
  width: min(100%, 430px);
  min-height: 550px;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(27,31,29,.24);
  border-radius: 26px;
  color: #edf0eb;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #171c19;
  background-size: 30px 30px;
  box-shadow: 0 34px 80px rgba(16,22,18,.22);
  transform: translate3d(var(--phone-x, 0), var(--phone-y, 0), 0);
  animation: phoneFloat 7s ease-in-out infinite;
}

.telegram-demo::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px;
  height: 230px;
  background: radial-gradient(circle, rgba(111,129,120,.26), transparent 66%);
  pointer-events: none;
}

.telegram-demo-bar {
  height: 50px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(237,240,235,.10);
  color: rgba(237,240,235,.66);
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: .10em;
}

.telegram-demo-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #90ab9b;
  box-shadow: 0 0 16px rgba(144,171,155,.65);
  animation: statusPulse 2.2s ease-in-out infinite;
}

.telegram-chat {
  position: relative;
  min-height: 500px;
  padding: 28px 18px 34px;
}

.chat-date {
  width: max-content;
  margin: 0 auto 30px;
  padding: 7px 10px;
  border: 1px solid rgba(237,240,235,.10);
  border-radius: 999px;
  color: rgba(237,240,235,.52);
  font-family: "Space Mono", monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.chat-message {
  width: min(86%, 310px);
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(237,240,235,.10);
  border-radius: 15px;
  opacity: 0;
  animation: chatAppear 8s var(--ease) infinite;
}

.chat-message-bot {
  margin-right: auto;
  background: rgba(237,240,235,.075);
  border-bottom-left-radius: 4px;
}

.chat-message-user {
  margin-left: auto;
  background: rgba(111,129,120,.32);
  border-bottom-right-radius: 4px;
}

.chat-one { animation-delay: .2s; }
.chat-two { animation-delay: 1.55s; }
.chat-three { animation-delay: 2.8s; }

.chat-label {
  color: #94a99d;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: .11em;
}

.chat-message p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.chat-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
}

.chat-buttons span {
  padding: 8px 7px;
  border: 1px solid rgba(237,240,235,.13);
  border-radius: 8px;
  text-align: center;
  color: rgba(237,240,235,.78);
  font-size: 9px;
  font-weight: 700;
}

.typing-line {
  display: flex;
  gap: 5px;
  width: max-content;
  margin: 12px 0 0;
  padding: 12px 15px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(237,240,235,.07);
  opacity: 0;
  animation: typingAppear 8s ease infinite;
  animation-delay: 4.1s;
}

.typing-line i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(237,240,235,.65);
  animation: typingDot .9s ease-in-out infinite alternate;
}
.typing-line i:nth-child(2) { animation-delay: .14s; }
.typing-line i:nth-child(3) { animation-delay: .28s; }

@keyframes portfolioPanelIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes chatAppear {
  0%, 6% { opacity: 0; transform: translateY(15px) scale(.98); }
  14%, 78% { opacity: 1; transform: translateY(0) scale(1); }
  92%, 100% { opacity: 0; transform: translateY(-5px) scale(.99); }
}

@keyframes typingAppear {
  0%, 8% { opacity: 0; transform: translateY(8px); }
  18%, 48% { opacity: 1; transform: translateY(0); }
  60%, 100% { opacity: 0; }
}

@keyframes typingDot {
  to { opacity: .28; transform: translateY(-3px); }
}

@keyframes statusPulse {
  50% { opacity: .45; transform: scale(.78); }
}

@keyframes phoneFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.3deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(.3deg); }
}

.project-grid {
  display: grid;
  gap: 64px;
  margin-top: 82px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, .72fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: clamp(20px, 2.4vw, 34px);
  border: 1px solid rgba(27,31,29,.13);
  border-radius: 30px;
  background: rgba(248,247,242,.72);
  box-shadow: 0 22px 70px rgba(28,35,31,.055);
  backdrop-filter: blur(12px);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease), border-color .5s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(111,129,120,.46);
  box-shadow: 0 32px 90px rgba(28,35,31,.10);
}

.project-card-reverse {
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.48fr);
}

.project-card-reverse .project-browser { order: 2; }
.project-card-reverse .project-info { order: 1; }

.project-browser {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(27,31,29,.20);
  border-radius: 19px;
  background: #151917;
  box-shadow: 0 28px 64px rgba(20,26,22,.18);
  transform: translateZ(0);
}

.browser-bar {
  height: 42px;
  display: grid;
  grid-template-columns: 74px 1fr 32px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: rgba(244,244,238,.62);
  background: #1d221f;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: .04em;
}

.browser-dots { display: flex; gap: 6px; }
.browser-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(244,244,238,.30);
}
.browser-dots i:nth-child(2) { background: rgba(111,129,120,.82); }
.browser-address {
  min-width: 0;
  padding: 6px 12px;
  border-radius: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  background: rgba(244,244,238,.06);
}
.browser-mark { text-align: right; color: rgba(244,244,238,.35); }

.project-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.project-preview iframe {
  position: absolute;
  inset: 0;
  width: 160%;
  height: 160%;
  border: 0;
  pointer-events: none;
  transform: scale(.625);
  transform-origin: 0 0;
  background: #fff;
}

.preview-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 22px;
  color: #f4f4ee;
  text-decoration: none;
  font-weight: 700;
  opacity: 0;
  background: linear-gradient(to top, rgba(15,19,17,.82), rgba(15,19,17,.08) 62%, transparent);
  transition: opacity .55s var(--ease-soft);
}

.project-browser:hover .preview-cover { opacity: 1; }
.preview-cover span:last-child { font-size: 22px; }

.project-info { padding: 10px 4px; }
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  color: var(--gray-500);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.project-info h3 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.055em;
}

.project-info > p {
  margin: 0;
  color: #606660;
  font-size: 15px;
  line-height: 1.8;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 30px;
}

.project-tags span {
  padding: 8px 11px;
  border: 1px solid rgba(27,31,29,.13);
  border-radius: 999px;
  color: #555b56;
  background: rgba(255,255,255,.26);
  font-size: 11px;
  font-weight: 700;
}

.project-open {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.project-open span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: var(--surface);
  background: var(--accent);
  transition: transform .6s var(--ease);
}
.project-open:hover span { transform: translate(3px, -3px) rotate(8deg); }

.works-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-300);
}

.works-footer p {
  margin: 0;
  color: #666c66;
  font-size: 13px;
}

.works-footer a {
  color: var(--black);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--black);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0,0,0,.45);
  transition: width .2s ease, height .2s ease, background .2s ease;
}

body.cursor-active .cursor-ring {
  width: 48px;
  height: 48px;
  background: rgba(111,129,120,.10);
}



html { scroll-padding-top: 24px; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 18%, rgba(111,129,120,.07), transparent 27%),
    radial-gradient(circle at 82% 74%, rgba(164,151,126,.06), transparent 30%);
}

.side-panel-left::after,
.side-panel-right::after { background: var(--surface); }

.code-particle {
  will-change: transform, margin;
  transform: translate3d(calc(-50% + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px)), 0);
  transition: none;
}

.works-button,
.mobile-panel-button,
.project-open,
.preview-cover,
.panel-close,
.language-option,
.portfolio-tab,
.bot-contact { -webkit-tap-highlight-color: transparent; }

@media (max-width: 1100px) {
  .project-card, .project-card-reverse { grid-template-columns: 1fr; }
  .project-card-reverse .project-browser, .project-card-reverse .project-info { order: initial; }
}

@media (max-width: 900px) {
  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring,
  .edge-trigger {
    display: none;
  }

  .hero-stage {
    padding-inline: 18px;
  }

  h1 {
    font-size: clamp(68px, 20vw, 130px);
  }

  .hero-subtitle {
    width: min(420px, 86vw);
  }

  .hero-contact {
    padding: 10px 14px;
    font-size: 10px;
  }


  .orbit-one { width: 88vw; height: 42vw; }
  .orbit-two { width: 105vw; height: 58vw; }
  .orbit-three { width: 72vw; height: 38vw; }

  .side-panel {
    width: min(90vw, 410px);
    min-width: 0;
    cursor: auto;
  }

  .side-panel-left {
    transform: translateX(-100%);
  }

  .side-panel-right {
    transform: translateX(100%);
  }

  .side-panel-left::after,
  .side-panel-right::after {
    display: none;
  }

  .panel-close {
    cursor: pointer;
  }

  .mobile-panel-button {
    display: flex;
    position: absolute;
    top: 50%;
    z-index: 19;
    border: 1px solid var(--gray-300);
    background: rgba(248,247,242,.92);
    backdrop-filter: blur(8px);
    padding: 12px 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 10px;
  }

  .mobile-panel-button-left {
    left: 0;
    border-left: 0;
    border-radius: 0 12px 12px 0;
    transform: translateY(-50%) rotate(180deg);
  }

  .mobile-panel-button-right {
    right: 0;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    transform: translateY(-50%);
  }

  .code-particle:nth-child(n+20) {
    display: none;
  }

  .works { padding-top: 84px; }
}

@media (max-width: 700px) {
  .works { padding-inline: 16px; padding-bottom: 64px; }
  .works-heading { gap: 14px; }
  .works h2 { font-size: clamp(48px, 17vw, 82px); }
  .works-lead { margin-top: 20px; font-size: 14px; }
  .project-grid { margin-top: 48px; gap: 28px; }
  .project-card { padding: 12px; border-radius: 22px; gap: 24px; }
  .project-browser { border-radius: 14px; }
  .browser-bar { height: 36px; grid-template-columns: 58px 1fr 24px; padding-inline: 10px; }
  .project-info { padding: 4px 8px 12px; }
  .project-meta { margin-bottom: 18px; }
  .project-info h3 { font-size: 38px; }
  .project-info > p { font-size: 13px; line-height: 1.7; }
  .project-tags { margin: 18px 0 24px; }
  .project-tags span { font-size: 10px; padding: 7px 9px; }
  .preview-cover { opacity: 1; padding: 14px; font-size: 12px; }
  .works-footer { align-items: flex-start; flex-direction: column; margin-top: 44px; }
}


@media (max-width: 620px) {
  .topbar {
    height: 50px;
    padding-inline: 12px;
  }

  .topbar-brand {
    gap: 7px;
    font-size: 8px;
    letter-spacing: .11em;
  }

  .theme-toggle {
    cursor: pointer;
    padding-right: 7px;
  }


  .topbar-controls {
    gap: 6px;
  }

  .language-toggle {
    min-height: 32px;
  }

  .language-option {
    min-width: 31px;
    height: 26px;
    padding-inline: 7px;
    font-size: 8px;
    cursor: pointer;
  }

  .theme-toggle-text {
    font-size: 8px;
    letter-spacing: .08em;
  }

  .theme-toggle-track {
    width: 32px;
    height: 18px;
  }

  .theme-toggle-thumb {
    width: 12px;
    height: 12px;
  }

  body[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(14px);
  }
}

@media (max-width: 470px) {
  .topbar-name,
  .topbar-separator {
    display: none;
  }

  .theme-toggle-text {
    display: none;
  }

  .theme-toggle {
    padding: 7px;
  }

  .site-version {
    color: var(--black);
    font-weight: 700;
  }
}

@media (max-width: 560px) {
  .eyebrow { margin-bottom: 14px; }
  .hero-subtitle { margin-top: 22px; font-size: 13px; }
  .hero-contact { margin-top: 14px; max-width: calc(100vw - 32px); }
  .works-button { min-height: 58px; }
  .side-panel { padding: 42px 28px 32px; }
  .panel-note { left: 28px; right: 28px; }
}



@media (max-width: 1000px) {
  .bots-showcase {
    grid-template-columns: 1fr;
  }

  .telegram-demo {
    width: min(100%, 520px);
  }
}

@media (max-width: 700px) {
  .portfolio-tabs {
    display: flex;
    width: 100%;
    margin-top: 32px;
  }

  .portfolio-tab {
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding-inline: 10px;
    cursor: pointer;
    font-size: 12px;
  }

  .bots-showcase {
    margin-top: 28px;
    padding: 18px;
    border-radius: 22px;
    gap: 30px;
  }

  .bots-copy h3 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .bots-copy > p:not(.section-kicker) {
    font-size: 13px;
    line-height: 1.7;
  }

  .bot-capabilities {
    grid-template-columns: 1fr;
  }

  .bot-capabilities > div {
    min-height: 0;
    padding: 16px;
  }

  .bot-contact {
    width: 100%;
    justify-content: space-between;
  }

  .telegram-demo {
    min-height: 480px;
    border-radius: 20px;
  }

  .telegram-chat {
    min-height: 430px;
    padding: 22px 13px 28px;
  }
}

@media (max-width: 420px) {
  .portfolio-tab {
    gap: 7px;
    font-size: 11px;
  }

  .tab-index {
    display: none;
  }

  .telegram-demo-bar {
    padding-inline: 12px;
    font-size: 7px;
  }
}

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


@media (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .orbit {
    margin-left: var(--touch-x, 0);
    margin-top: var(--touch-y, 0);
    transition: margin .5s ease-out;
  }

  .project-card {
    animation: mobileCardBreathe 7s ease-in-out infinite;
  }

  .project-card:nth-child(2) { animation-delay: -2.2s; }
  .project-card:nth-child(3) { animation-delay: -4.4s; }

  @keyframes mobileCardBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
  }
}


/* V8: direct bot inquiry */
.bots-panel {
  min-height: 0;
}

.bots-inquiry {
  position: relative;
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px);
  border: 1px solid rgba(27,31,29,.14);
  border-radius: 30px;
  text-align: center;
  background: rgba(248,247,242,.72);
  box-shadow: 0 24px 72px rgba(28,35,31,.06);
}

.bots-inquiry::before {
  content: "@";
  position: absolute;
  right: clamp(12px, 5vw, 54px);
  top: 50%;
  transform: translateY(-54%);
  color: rgba(111,129,120,.075);
  font-family: "Space Mono", monospace;
  font-size: clamp(150px, 24vw, 330px);
  line-height: 1;
  pointer-events: none;
}

.bots-inquiry > * {
  position: relative;
  z-index: 1;
}

.bots-inquiry h3 {
  max-width: 760px;
  margin: 12px auto 22px;
  font-size: clamp(42px, 7vw, 90px);
  line-height: .96;
  letter-spacing: -.06em;
}

.bots-inquiry > p:not(.section-kicker):not(.bots-note) {
  max-width: 680px;
  margin: 0 auto;
  color: #606660;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.8;
}

.bots-inquiry .bot-contact {
  width: min(430px, 100%);
  margin: 34px auto 0;
}

.bots-note {
  margin: 20px 0 0;
  color: var(--gray-500);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-theme="dark"] .bots-inquiry {
  border-color: rgba(238,236,229,.13);
  background: rgba(26,30,28,.72);
  box-shadow: 0 24px 72px rgba(0,0,0,.18);
}

body[data-theme="dark"] .bots-inquiry > p:not(.section-kicker):not(.bots-note) {
  color: #b2b7b2;
}

body[data-theme="dark"] .bots-inquiry::before {
  color: rgba(173,193,181,.055);
}

@media (max-width: 700px) {
  .bots-inquiry {
    padding: 48px 20px 40px;
    border-radius: 22px;
  }

  .bots-inquiry h3 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .bots-inquiry::before {
    right: -18px;
    top: 38%;
    font-size: 180px;
  }

  .bots-inquiry .bot-contact {
    min-height: 58px;
    padding-inline: 18px;
  }
}
