: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);
  --font-sans: "Golos Text", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
}

* {
  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: var(--font-sans);
  overflow-x: hidden;
  cursor: auto;
}

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: var(--font-mono);
  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: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .10em;
  cursor: pointer;
  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: pointer;
  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: var(--font-mono);
  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:
    radial-gradient(circle at 14% 18%, rgba(148,169,157,.16), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(238,240,234,.06), transparent 18%),
    radial-gradient(circle at 82% 78%, rgba(106,126,116,.18), transparent 30%),
    linear-gradient(135deg, #171b18 0%, #1b201d 46%, #141816 100%);
}

body[data-theme="dark"] .works::before {
  background:
    radial-gradient(48% 34% at 18% 16%, rgba(240,244,238,.06), transparent 72%),
    radial-gradient(36% 32% at 86% 22%, rgba(148,169,157,.15), transparent 70%),
    radial-gradient(42% 38% at 78% 78%, rgba(148,169,157,.11), transparent 72%);
  opacity: .92;
}

body[data-theme="dark"] .works::after {
  background:
    linear-gradient(118deg, transparent 30%, rgba(238,240,234,.06) 47%, transparent 58%),
    linear-gradient(292deg, transparent 44%, rgba(148,169,157,.14) 54%, transparent 66%);
  opacity: .75;
}

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"] .portfolio-tabs {
  border-color: rgba(238,240,234,.10);
  background: linear-gradient(145deg, rgba(35,40,36,.86), rgba(25,29,27,.72));
  box-shadow: 0 18px 42px rgba(0,0,0,.22), inset 0 1px 0 rgba(238,240,234,.04);
}

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: linear-gradient(135deg, #eef0ea, #d9e1da);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}

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: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
}

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

h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(76px, 13vw, 210px);
  line-height: .82;
  letter-spacing: -.05em;
  font-weight: 820;
}

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


.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: var(--font-mono);
  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: var(--font-mono);
  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);
  pointer-events: none;
  visibility: hidden;
  transition-property: transform, box-shadow, background, visibility;
  transition-duration: .62s, .62s, .5s, 0s;
  transition-delay: 0s, 0s, 0s, .62s;
}

.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);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.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: pointer;
  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: var(--font-mono);
  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;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  padding: 120px clamp(24px, 7vw, 120px) 96px;
  border-top: 1px solid var(--gray-200);
  background:
    radial-gradient(circle at 16% 18%, rgba(111,129,120,.16), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(255,255,255,.72), transparent 18%),
    radial-gradient(circle at 82% 78%, rgba(111,129,120,.12), transparent 30%),
    linear-gradient(135deg, #f5f2e9 0%, #ede8dc 44%, #e7e2d6 100%);
}

.works::before,
.works::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.works::before {
  background:
    radial-gradient(50% 36% at 16% 14%, rgba(255,255,255,.75), transparent 74%),
    radial-gradient(36% 28% at 86% 22%, rgba(111,129,120,.14), transparent 70%),
    radial-gradient(40% 36% at 78% 80%, rgba(111,129,120,.10), transparent 72%);
  opacity: .95;
}

.works::after {
  inset: -12% -8%;
  background:
    linear-gradient(120deg, transparent 28%, rgba(255,255,255,.35) 44%, transparent 57%),
    linear-gradient(300deg, transparent 42%, rgba(111,129,120,.10) 54%, transparent 66%);
  opacity: .6;
  transform: rotate(-4deg);
}

.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: -.05em;
  font-weight: 780;
}

.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: 6px;
  border: 1px solid rgba(27,31,29,.12);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.6), rgba(239,235,226,.72));
  box-shadow: 0 18px 36px rgba(28,35,31,.06), inset 0 1px 0 rgba(255,255,255,.66);
  backdrop-filter: blur(14px);
}

.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: pointer;
  font-weight: 760;
  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: linear-gradient(135deg, var(--black), #314039);
  box-shadow: 0 14px 30px rgba(27,31,29,.16);
}

.tab-index {
  font-family: var(--font-mono);
  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: var(--font-mono);
  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: var(--font-mono);
  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: var(--font-mono);
  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: var(--font-mono);
  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: var(--font-mono);
  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: var(--font-mono);
  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: var(--font-mono);
  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: -.04em;
  font-weight: 680;
}

.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: 740;
}

.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);
}


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;
  }

  .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: var(--font-mono);
  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: var(--font-mono);
  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;
  }
}


/* Mega MultiTok project */
.bot-project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  margin: 64px 0 30px;
  padding: clamp(18px, 2.5vw, 34px);
  border: 1px solid rgba(27,31,29,.13);
  border-radius: 30px;
  background: rgba(248,247,242,.72);
  box-shadow: 0 24px 72px rgba(28,35,31,.06);
  backdrop-filter: blur(12px);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease), border-color .5s ease;
}

.bot-project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(143,35,35,.34);
  box-shadow: 0 34px 92px rgba(28,35,31,.11);
}

.bot-project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(27,31,29,.18);
  border-radius: 20px;
  background: #090909;
  box-shadow: 0 28px 64px rgba(22,10,10,.22);
}

.bot-project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.bot-project-card:hover .bot-project-media img {
  transform: scale(1.025);
}

.bot-project-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  color: #fff;
  background: rgba(7,7,7,.72);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.bot-project-info {
  padding: 8px 4px;
}

.bot-project-info h3 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: .94;
  letter-spacing: -.045em;
  font-weight: 700;
}

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

body[data-theme="dark"] .bot-project-card {
  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"] .bot-project-info > p {
  color: #b2b7b2;
}

@media (max-width: 980px) {
  .bot-project-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .bot-project-card {
    margin-top: 48px;
    padding: 12px;
    gap: 24px;
    border-radius: 22px;
  }

  .bot-project-media {
    border-radius: 15px;
  }

  .bot-project-info {
    padding: 4px 8px 14px;
  }

  .bot-project-info h3 {
    font-size: 42px;
  }

  .bot-project-info > p {
    font-size: 13px;
    line-height: 1.7;
  }

  .bot-project-status {
    left: 10px;
    bottom: 10px;
  }
}


/* ===== V11 / decorative details ===== */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 140;
  height: 2px;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: var(--scroll-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent) 18%, var(--black));
  box-shadow: 0 0 18px rgba(111,129,120,.28);
  transition: width .08s linear;
}

.hero-index-right i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #54a875;
  box-shadow: 0 0 0 4px rgba(84,168,117,.10), 0 0 18px rgba(84,168,117,.42);
  animation: statusGlow 2.4s ease-in-out infinite;
}

@keyframes statusGlow {
  50% { opacity: .52; transform: scale(.78); box-shadow: 0 0 0 7px rgba(84,168,117,0); }
}



.hero-frame {
  position: absolute;
  z-index: 3;
  left: clamp(76px, 9vw, 150px);
  right: clamp(76px, 9vw, 150px);
  top: clamp(96px, 14vh, 150px);
  bottom: clamp(126px, 17vh, 180px);
  pointer-events: none;
  opacity: .68;
}

.frame-corner {
  position: absolute;
  width: 34px;
  height: 34px;
}
.frame-corner::before,
.frame-corner::after {
  content: "";
  position: absolute;
  background: rgba(27,31,29,.32);
}
.frame-corner::before { width: 34px; height: 1px; }
.frame-corner::after { width: 1px; height: 34px; }
.frame-corner-tl { left: 0; top: 0; }
.frame-corner-tr { right: 0; top: 0; transform: scaleX(-1); }
.frame-corner-bl { left: 0; bottom: 0; transform: scaleY(-1); }
.frame-corner-br { right: 0; bottom: 0; transform: scale(-1); }

.frame-label {
  position: absolute;
  bottom: -25px;
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .15em;
}
.frame-label-left { left: 0; }
.frame-label-right { right: 0; }

.hero-index {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.55;
  letter-spacing: .13em;
  text-transform: uppercase;
  pointer-events: none;
}
.hero-index-left { left: clamp(22px, 4vw, 62px); transform: translateY(-50%) rotate(-90deg); transform-origin: left center; }
.hero-index-left b { color: var(--black); font-size: 10px; }
.hero-index-right { right: clamp(22px, 4vw, 62px); transform: translateY(-50%) rotate(90deg); transform-origin: right center; }

.hero-copy h1 {
  position: relative;
  letter-spacing: .022em;
  padding-left: .022em;
  font-weight: 800;
  filter: drop-shadow(0 24px 40px rgba(29,35,31,.07));
}

.hero-copy h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(111,129,120,.20);
  transform: translate(2px, 3px);
  z-index: -1;
  pointer-events: none;
}

.hero-copy h1::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 10%;
  top: 52%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111,129,120,.38), transparent);
  transform: scaleX(.25);
  opacity: 0;
  animation: titleScan 6.4s var(--ease) infinite;
}

@keyframes titleScan {
  0%, 64%, 100% { transform: scaleX(.18) translateX(-65%); opacity: 0; }
  72% { opacity: .7; }
  88% { transform: scaleX(1) translateX(28%); opacity: 0; }
}

.orbit-one::before { box-shadow: 0 0 0 5px rgba(111,129,120,.08), 0 0 22px rgba(111,129,120,.16); }
.orbit-two::after { box-shadow: 0 0 0 4px rgba(111,129,120,.07); }

.project-card,
.bot-project-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.project-browser::after,
.bot-project-media::after {
  content: "";
  position: absolute;
  inset: -60% -120%;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.16) 49%, transparent 56%);
  transform: translateX(-34%) rotate(3deg);
  transition: transform 1.2s var(--ease);
}
.project-card:hover .project-browser::after,
.bot-project-card:hover .bot-project-media::after { transform: translateX(42%) rotate(3deg); }
.project-browser,
.bot-project-media { position: relative; }

body[data-theme="dark"] .frame-corner::before,
body[data-theme="dark"] .frame-corner::after { background: rgba(238,240,234,.22); }
body[data-theme="dark"] .hero-copy h1 { filter: drop-shadow(0 26px 46px rgba(0,0,0,.24)); }
body[data-theme="dark"] .hero-copy h1::after { -webkit-text-stroke-color: rgba(148,169,157,.22); }
body[data-theme="dark"] .project-browser::after,
body[data-theme="dark"] .bot-project-media::after {
  background: linear-gradient(105deg, transparent 42%, rgba(238,240,234,.09) 49%, transparent 56%);
}

@media (max-width: 900px) {
  .hero-frame { left: 22px; right: 22px; top: 88px; bottom: 112px; opacity: .42; }
  .frame-label { display: none; }
  .hero-index { display: none; }
}

@media (max-width: 560px) {
  .hero-frame { left: 14px; right: 14px; }
  .frame-corner { width: 22px; height: 22px; }
  .frame-corner::before { width: 22px; }
  .frame-corner::after { height: 22px; }
  .hero-copy h1::after { transform: translate(1px, 2px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-index-right i,
  .hero-copy h1::before { animation: none; }
  .project-browser::after,
  .bot-project-media::after { display: none; }
  .scroll-progress span { transition: none; }
}


/* === V13: large contact button and social modal === */
.hero-contact.contact-open {
  position: relative;
  isolation: isolate;
  margin: 24px auto 0;
  min-width: min(290px, calc(100vw - 40px));
  min-height: 66px;
  padding: 0 18px 0 26px;
  border: 1px solid rgba(27, 31, 29, .82);
  border-radius: 18px;
  background: rgba(248, 247, 242, .88);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.02em;
  text-transform: none;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(30, 37, 33, .08);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .35s ease, box-shadow .35s ease, background .35s ease;
}

.hero-contact.contact-open::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(94, 255, 210, .18) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}

.hero-contact.contact-open:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 58px rgba(30, 37, 33, .14);
}

.hero-contact.contact-open:hover::before { transform: translateX(120%); }
.hero-contact.contact-open:active { transform: translateY(-1px) scale(.992); }
.hero-contact.contact-open:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 4px;
}

.hero-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 15px;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .35s ease;
}

.hero-contact.contact-open:hover .hero-contact-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #0d1612;
}

body[data-theme="dark"] .hero-contact.contact-open {
  background: rgba(24, 28, 25, .86);
  border-color: rgba(239, 242, 237, .45);
  color: #f1f3ef;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .24);
}

body[data-theme="dark"] .hero-contact-icon {
  background: #eef1ec;
  color: #111512;
}


body.contact-modal-open { overflow: hidden; }

.contact-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility 0s linear .28s;
}

.contact-modal[hidden] { display: none; }

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 16, .48);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
}

.contact-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100dvh - 48px));
  overflow: auto;
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid rgba(27, 31, 29, .13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 255, 205, .13), transparent 34%),
    rgba(248, 247, 242, .96);
  color: var(--black);
  box-shadow: 0 40px 120px rgba(9, 13, 11, .28);
  transform: translateY(24px) scale(.965);
  opacity: 0;
  transition: transform .42s cubic-bezier(.16, 1, .3, 1), opacity .25s ease;
}

.contact-modal.is-open .contact-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.contact-dialog::before,
.contact-dialog::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.contact-dialog::before {
  inset: 12px;
  border: 1px solid rgba(27, 31, 29, .07);
  border-radius: 22px;
}

.contact-dialog::after {
  width: 92px;
  height: 1px;
  left: 48px;
  top: 25px;
  background: var(--accent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent);
}

.contact-dialog-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(27, 31, 29, .12);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .55);
  color: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .3s ease, border-color .3s ease;
}

.contact-dialog-close:hover {
  transform: rotate(90deg);
  border-color: var(--accent);
  background: rgba(255, 255, 255, .9);
}

.contact-dialog-close:focus-visible,
.contact-social-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 4px;
}

.contact-dialog-kicker {
  margin: 10px 0 14px;
  color: #6b716c;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.contact-dialog h2 {
  margin: 0;
  max-width: 420px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: .95;
  letter-spacing: -.065em;
}

.contact-dialog-description {
  margin: 20px 0 30px;
  color: #626962;
  font-size: 15px;
  line-height: 1.7;
}

.contact-socials { display: grid; gap: 12px; }

.contact-social-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 13px 15px;
  border: 1px solid rgba(27, 31, 29, .13);
  border-radius: 22px;
  background: rgba(255, 255, 255, .62);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform .36s cubic-bezier(.16, 1, .3, 1), border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.contact-social-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(53, 196, 255, .12), transparent 76%);
  transform: translateX(-120%);
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}

.contact-social-card:hover {
  transform: translateY(-4px);
  border-color: #2aabee;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 45px rgba(25, 132, 189, .13);
}

.contact-social-card:hover::after { transform: translateX(120%); }

.contact-social-icon {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #36b7f1, #168bd2);
  box-shadow: 0 12px 26px rgba(28, 154, 219, .28);
}

.contact-social-icon svg {
  width: 29px;
  height: 29px;
  fill: #fff;
}

.contact-social-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.contact-social-copy strong {
  font-size: 17px;
  letter-spacing: -.02em;
}

.contact-social-copy small {
  color: #69716b;
  font-family: var(--font-mono);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-social-arrow {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(27, 31, 29, .1);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .3s ease, color .3s ease;
}

.contact-social-card:hover .contact-social-arrow {
  transform: rotate(45deg);
  background: #2aabee;
  color: #fff;
}

.contact-dialog-note {
  margin: 20px 0 0;
  color: #7a807b;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-theme="dark"] .contact-dialog {
  border-color: rgba(239, 242, 237, .11);
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 255, 205, .10), transparent 34%),
    rgba(20, 24, 21, .97);
  color: #f1f3ef;
  box-shadow: 0 44px 130px rgba(0, 0, 0, .58);
}

body[data-theme="dark"] .contact-dialog::before { border-color: rgba(239, 242, 237, .07); }
body[data-theme="dark"] .contact-dialog-close {
  border-color: rgba(239, 242, 237, .13);
  background: rgba(255, 255, 255, .035);
}
body[data-theme="dark"] .contact-dialog-close:hover { background: rgba(255, 255, 255, .08); }
body[data-theme="dark"] .contact-dialog-kicker,
body[data-theme="dark"] .contact-dialog-description,
body[data-theme="dark"] .contact-dialog-note,
body[data-theme="dark"] .contact-social-copy small { color: #9aa29c; }
body[data-theme="dark"] .contact-social-card {
  border-color: rgba(239, 242, 237, .12);
  background: rgba(255, 255, 255, .035);
}
body[data-theme="dark"] .contact-social-card:hover { background: rgba(255, 255, 255, .075); }
body[data-theme="dark"] .contact-social-arrow { border-color: rgba(239, 242, 237, .11); }

@media (max-width: 640px) {
  .hero-contact.contact-open {
    min-width: min(260px, calc(100vw - 36px));
    min-height: 60px;
    margin-top: 20px;
    padding-left: 21px;
    border-radius: 16px;
    font-size: 15px;
  }

  .hero-contact-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .contact-modal { padding: 12px; align-items: end; }
  .contact-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 34px 22px 26px;
    border-radius: 26px;
    transform: translateY(38px) scale(.985);
  }
  .contact-dialog::before { inset: 8px; border-radius: 19px; }
  .contact-dialog::after { left: 28px; top: 18px; width: 68px; }
  .contact-dialog-close { top: 14px; right: 14px; width: 42px; height: 42px; }
  .contact-dialog h2 { font-size: clamp(40px, 13vw, 58px); padding-right: 38px; }
  .contact-dialog-description { margin-bottom: 24px; }
  .contact-social-card {
    grid-template-columns: 52px minmax(0, 1fr) 38px;
    gap: 13px;
    min-height: 78px;
    padding: 12px;
    border-radius: 19px;
  }
  .contact-social-icon { width: 52px; height: 52px; border-radius: 16px; }
  .contact-social-icon svg { width: 26px; height: 26px; }
  .contact-social-arrow { width: 38px; height: 38px; border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal,
  .contact-dialog,
  .hero-contact.contact-open,
  .hero-contact.contact-open::before,
  .contact-social-card,
  .contact-social-card::after,
  .contact-dialog-close { transition-duration: .01ms !important; }
}



/* Final motion pass */
body:not(.site-ready) .topbar,
body:not(.site-ready) .hero-frame,
body:not(.site-ready) .hero-copy > *,
body:not(.site-ready) .works-button,
body:not(.site-ready) .scroll-link {
  opacity: 0;
}

body.site-ready .topbar {
  animation: finalTopbarIn .72s var(--ease) both;
}

body.site-ready .hero-frame {
  animation: finalFrameIn 1.1s var(--ease) .08s both;
}

body.site-ready .hero-copy .eyebrow {
  animation: finalTextIn .72s var(--ease) .16s both;
}

body.site-ready .hero-copy h1 {
  animation: finalLogoIn 1.05s var(--ease) .22s both;
}

body.site-ready .hero-subtitle {
  animation: finalTextIn .78s var(--ease) .38s both;
}

body.site-ready .hero-contact {
  animation: finalTextIn .78s var(--ease) .48s both;
}

body.site-ready .works-button {
  animation: finalButtonIn .78s var(--ease) .58s both;
}

body.site-ready .scroll-link {
  animation: finalTextIn .72s var(--ease) .72s both;
}

@keyframes finalTopbarIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes finalFrameIn {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: .68; transform: scale(1); }
}

@keyframes finalTextIn {
  from { opacity: 0; transform: translateY(18px); filter: blur(7px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes finalLogoIn {
  from { opacity: 0; transform: translateY(26px) scale(.97); letter-spacing: .08em; }
  to { opacity: 1; transform: translateY(0) scale(1); letter-spacing: .022em; }
}

@keyframes finalButtonIn {
  from { opacity: 0; transform: translateX(-50%) translateY(24px) scale(.96); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}


.works::after {
  animation: finalWorksDrift 18s ease-in-out infinite alternate;
}

@keyframes finalWorksDrift {
  from { transform: rotate(-4deg) translate3d(-1.5%, 0, 0); }
  to { transform: rotate(-1deg) translate3d(2%, -1%, 0); }
}

.topbar-name {
  transition: letter-spacing .45s var(--ease), opacity .3s ease;
}

.topbar-name:hover {
  letter-spacing: .22em;
}

.hero-contact-icon {
  animation: finalArrowFloat 2.6s ease-in-out infinite;
}

@keyframes finalArrowFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, -3px); }
}

.portfolio-tab {
  position: relative;
  overflow: hidden;
}

.portfolio-tab::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  opacity: .5;
  transition: transform .5s var(--ease);
}

.portfolio-tab.is-active::after {
  transform: scaleX(1);
}

.project-card.reveal,
.bot-project-card.reveal,
.bots-inquiry.reveal {
  clip-path: inset(0 0 12% 0 round 30px);
  transform: translateY(46px) scale(.985);
  transition: opacity .9s var(--ease), transform 1s var(--ease), clip-path 1s var(--ease);
}

.project-card.reveal.is-visible,
.bot-project-card.reveal.is-visible,
.bots-inquiry.reveal.is-visible {
  clip-path: inset(0 round 30px);
  transform: translateY(0) scale(1);
}

.project-card.reveal .project-browser,
.project-card.reveal .project-info > *,
.bot-project-card.reveal .bot-project-media,
.bot-project-card.reveal .bot-project-info > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .8s var(--ease);
}

.project-card.reveal.is-visible .project-browser,
.bot-project-card.reveal.is-visible .bot-project-media {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .12s;
}

.project-card.reveal.is-visible .project-info > *:nth-child(1),
.bot-project-card.reveal.is-visible .bot-project-info > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: .20s; }
.project-card.reveal.is-visible .project-info > *:nth-child(2),
.bot-project-card.reveal.is-visible .bot-project-info > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: .27s; }
.project-card.reveal.is-visible .project-info > *:nth-child(3),
.bot-project-card.reveal.is-visible .bot-project-info > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: .34s; }
.project-card.reveal.is-visible .project-info > *:nth-child(4),
.bot-project-card.reveal.is-visible .bot-project-info > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: .41s; }
.project-card.reveal.is-visible .project-info > *:nth-child(5),
.bot-project-card.reveal.is-visible .bot-project-info > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: .48s; }

.project-preview iframe {
  transition: transform 1.1s var(--ease), filter .8s ease;
}

.project-browser:hover .project-preview iframe {
  transform: scale(.64);
  filter: saturate(1.06) contrast(1.02);
}

.browser-dots i {
  animation: finalDotPulse 3.4s ease-in-out infinite;
}
.browser-dots i:nth-child(2) { animation-delay: .25s; }
.browser-dots i:nth-child(3) { animation-delay: .5s; }

@keyframes finalDotPulse {
  0%, 72%, 100% { opacity: .42; transform: scale(1); }
  82% { opacity: 1; transform: scale(1.18); }
}

.project-open:hover .project-open-label,
.works-footer a:hover span:first-child {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

@media (prefers-reduced-motion: reduce) {
  body.site-ready .topbar,
  body.site-ready .hero-frame,
  body.site-ready .hero-copy > *,
  body.site-ready .works-button,
  body.site-ready .scroll-link,
  .works::after,
  .hero-contact-icon,
  .browser-dots i {
    animation: none !important;
  }

  .project-card.reveal,
  .bot-project-card.reveal,
  .bots-inquiry.reveal,
  .project-card.reveal .project-browser,
  .project-card.reveal .project-info > *,
  .bot-project-card.reveal .bot-project-media,
  .bot-project-card.reveal .bot-project-info > * {
    clip-path: none;
    opacity: 1;
    transform: none;
  }
}

/* Native cursor: precise, familiar and intentionally understated. */
a[href],
button,
[role="button"],
[role="tab"],
label,
select {
  cursor: pointer;
}

input,
textarea {
  cursor: text;
}

iframe {
  cursor: default;
}


/* FINAL MOBILE FIX */
@media (max-width: 900px), (pointer: coarse) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  body.side-panel-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .edge-trigger {
    display: none;
  }

  .hero-stage {
    min-height: 100svh;
    min-height: 100dvh;
    padding: 128px 18px 150px;
  }

  .mobile-panel-button {
    display: inline-flex;
    position: absolute;
    top: max(68px, calc(env(safe-area-inset-top) + 58px));
    z-index: 18;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    padding: 0 14px;
    border: 1px solid rgba(27,31,29,.13);
    border-radius: 999px;
    color: var(--black);
    background: rgba(248,247,242,.88);
    box-shadow: 0 10px 28px rgba(24,30,27,.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-transform: uppercase;
    letter-spacing: .10em;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    transform: none;
    cursor: pointer;
  }

  .mobile-panel-button:active {
    transform: scale(.97);
  }

  .mobile-panel-button-left {
    left: 16px;
    right: auto;
    border: 1px solid rgba(27,31,29,.13);
    border-radius: 999px;
    transform: none;
  }

  .mobile-panel-button-right {
    right: 16px;
    left: auto;
    border: 1px solid rgba(27,31,29,.13);
    border-radius: 999px;
    transform: none;
  }

  body[data-theme="dark"] .mobile-panel-button {
    color: #eef0ea;
    border-color: rgba(238,240,234,.12);
    background: rgba(28,33,30,.88);
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
  }

  .side-panel,
  .side-panel-left,
  .side-panel-right {
    inset: 0;
    z-index: 130;
    width: 100vw;
    max-width: none;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    padding:
      max(16px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      max(28px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 0;
    border-radius: 0;
    background: rgba(248,247,242,.985);
    transform: translateY(104%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: none;
    transition:
      transform .52s var(--ease),
      opacity .32s ease,
      visibility 0s linear .52s,
      background .45s ease;
  }

  .side-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    transition-delay: 0s;
  }

  body[data-theme="dark"] .side-panel {
    background: rgba(21,24,22,.99);
  }

  .side-panel-left::after,
  .side-panel-right::after,
  .panel-icon,
  .panel-note {
    display: none !important;
  }

  .panel-close {
    position: sticky;
    z-index: 4;
    top: 0;
    right: auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 0 18px auto;
    border: 1px solid rgba(27,31,29,.12);
    border-radius: 15px;
    color: var(--black);
    background: rgba(255,255,255,.72);
    box-shadow: 0 10px 28px rgba(22,28,25,.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 28px;
    line-height: 1;
    opacity: 1;
  }

  body[data-theme="dark"] .panel-close {
    color: #eef0ea;
    border-color: rgba(238,240,234,.13);
    background: rgba(39,45,41,.84);
    box-shadow: 0 12px 30px rgba(0,0,0,.24);
  }

  .side-panel .panel-kicker {
    margin-top: 4px;
    font-size: 10px;
  }

  .side-panel h2 {
    max-width: 92%;
    margin: 10px 0 16px;
    font-size: clamp(34px, 10vw, 48px);
    line-height: .98;
  }

  .panel-line {
    width: 48px;
    margin-bottom: 28px;
  }

  .panel-intro {
    max-width: 620px;
    margin: 0 0 28px;
    font-size: 14px;
    line-height: 1.7;
  }

  .panel-list,
  .panel-list-compact {
    max-width: 680px;
    gap: 18px;
    padding-bottom: 12px;
  }

  .panel-list li {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    font-size: 14px;
    line-height: 1.4;
  }

  .list-symbol {
    padding-top: 1px;
    font-size: 11px;
  }

  .hero-frame {
    left: 12px;
    right: 12px;
    top: 116px;
    bottom: 124px;
  }

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

@media (max-width: 390px) {
  .mobile-panel-button {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 8px;
    letter-spacing: .08em;
  }

  .mobile-panel-button-left { left: 10px; }
  .mobile-panel-button-right { right: 10px; }

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

  .side-panel,
  .side-panel-left,
  .side-panel-right {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
}

@media (max-width: 900px) and (max-height: 620px),
       (pointer: coarse) and (max-height: 620px) {
  .side-panel h2 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .panel-line {
    margin-bottom: 20px;
  }

  .panel-intro {
    margin-bottom: 20px;
  }

  .panel-list,
  .panel-list-compact {
    gap: 14px;
  }
}

/* MOBILE REBUILD: independent phone layout */
.mobile-info-actions {
  display: none;
}

/* The text label must never inherit the round icon dimensions. */
.project-open .project-open-label {
  width: auto;
  height: auto;
  min-width: 0;
  display: block;
  color: inherit;
  background: transparent;
  border-radius: 0;
  transform: none;
}

.project-open > span:last-child {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: var(--surface);
  background: var(--accent);
  transition: transform .6s var(--ease);
}

.project-open:hover > span:last-child {
  transform: translate(3px, -3px) rotate(8deg);
}

@media (max-width: 760px) {
  :root {
    --mobile-page-padding: clamp(14px, 4vw, 20px);
  }

  html {
    width: 100%;
    overflow-x: clip;
    scroll-padding-top: 70px;
  }

  body {
    width: 100%;
    min-width: 0;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
  }

  button,
  a {
    touch-action: manipulation;
  }

  .topbar {
    height: calc(62px + env(safe-area-inset-top));
    min-height: 62px;
    padding:
      env(safe-area-inset-top)
      max(12px, env(safe-area-inset-right))
      0
      max(12px, env(safe-area-inset-left));
    gap: 10px;
  }

  .topbar-brand {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
  }

  .topbar-name {
    display: block !important;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--black);
    font-size: 9px;
    letter-spacing: .14em;
  }

  .topbar-controls {
    flex: 0 0 auto;
    min-width: 0;
    gap: 7px;
  }

  .language-toggle {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 3px;
  }

  .language-option {
    min-width: 30px;
    height: 28px;
    padding: 0 7px;
    font-size: 8px;
  }

  .theme-toggle {
    flex: 0 0 auto;
    min-width: 38px;
    min-height: 34px;
    justify-content: center;
    padding: 7px;
  }

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

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

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

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

  .hero {
    min-height: 100svh;
    overflow: clip;
  }

  .hero-stage {
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding:
      calc(88px + env(safe-area-inset-top))
      var(--mobile-page-padding)
      max(36px, calc(24px + env(safe-area-inset-bottom)));
  }

  .hero-copy {
    width: 100%;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .eyebrow {
    max-width: 100%;
    margin-bottom: 16px;
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: .13em;
  }

  .hero-copy h1 {
    max-width: 100%;
    padding-left: .014em;
    font-size: clamp(54px, 19.5vw, 88px);
    line-height: .9;
    letter-spacing: .014em;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-copy h1::after {
    transform: translate(1px, 2px);
  }

  .hero-subtitle {
    width: min(100%, 360px);
    max-width: 100%;
    margin: 24px auto 0;
    font-size: clamp(13px, 3.8vw, 15px);
    line-height: 1.65;
  }

  .hero-contact.contact-open {
    width: min(100%, 330px);
    min-width: 0;
    min-height: 56px;
    margin: 22px auto 0;
    padding: 8px 10px 8px 18px;
    border-radius: 16px;
    justify-content: space-between;
    font-size: 13px;
    letter-spacing: .05em;
  }

  .hero-contact-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .mobile-info-actions {
    width: min(100%, 330px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
  }

  .mobile-panel-button,
  .mobile-panel-button-left,
  .mobile-panel-button-right {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    min-width: 0;
    min-height: 54px;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px !important;
    border: 1px solid rgba(27,31,29,.12) !important;
    border-radius: 16px !important;
    color: var(--black);
    background: rgba(248,247,242,.78);
    box-shadow: 0 12px 30px rgba(24,30,27,.055);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-transform: none;
    white-space: normal;
    transform: none !important;
  }

  body[data-theme="dark"] .mobile-panel-button {
    border-color: rgba(238,240,234,.12) !important;
    background: rgba(32,37,33,.76);
  }

  .mobile-panel-button-index {
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: .06em;
  }

  .mobile-panel-button-arrow {
    font-family: var(--font-mono);
    font-size: 14px;
    transition: transform .25s ease;
  }

  .mobile-panel-button:active {
    transform: scale(.98) !important;
  }

  .works-button {
    position: relative;
    inset: auto;
    width: min(100%, 330px);
    min-height: 58px;
    margin: 12px auto 0;
    padding: 0 14px 0 18px;
    border-radius: 16px;
    transform: none;
  }

  .works-button:hover,
  .works-button:active {
    transform: translateY(-2px);
  }

  .scroll-link {
    display: none;
  }

  .hero-frame {
    left: 10px;
    right: 10px;
    top: calc(74px + env(safe-area-inset-top));
    bottom: 14px;
    opacity: .72;
  }

  .frame-label,
  .hero-index {
    display: none;
  }

  .orbit {
    top: 40%;
    opacity: .42;
  }

  .orbit-one {
    width: 118vw;
    height: 52vw;
  }

  .orbit-two {
    width: 138vw;
    height: 72vw;
  }

  .orbit-three {
    width: 92vw;
    height: 44vw;
  }

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

  .code-particle {
    opacity: .62;
  }

  body.side-panel-open {
    position: fixed;
    inset: 0;
    width: 100%;
    overflow: hidden;
  }

  .edge-trigger {
    display: none;
  }

  .side-panel,
  .side-panel-left,
  .side-panel-right {
    inset: 0;
    z-index: 150;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 100svh;
    height: 100dvh;
    display: block;
    padding:
      calc(76px + env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      max(28px, calc(18px + env(safe-area-inset-bottom)))
      max(18px, env(safe-area-inset-left));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 100% 0%, rgba(111,129,120,.13), transparent 34%),
      rgba(248,247,242,.99);
    transform: translate3d(0, 102%, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: none;
    transition:
      transform .48s var(--ease),
      opacity .28s ease,
      visibility 0s linear .48s;
  }

  body[data-theme="dark"] .side-panel {
    background:
      radial-gradient(circle at 100% 0%, rgba(148,169,157,.12), transparent 34%),
      rgba(21,24,22,.995);
  }

  .side-panel.is-open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .side-panel::before {
    content: "";
    position: absolute;
    left: max(18px, env(safe-area-inset-left));
    right: max(18px, env(safe-area-inset-right));
    top: calc(62px + env(safe-area-inset-top));
    height: 1px;
    background: rgba(27,31,29,.10);
  }

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

  .side-panel-left::after,
  .side-panel-right::after,
  .panel-icon,
  .panel-note {
    display: none !important;
  }

  .panel-close {
    position: fixed;
    z-index: 3;
    top: calc(12px + env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    margin: 0;
    border: 1px solid rgba(27,31,29,.12);
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--black);
    background: rgba(255,255,255,.76);
    box-shadow: 0 10px 28px rgba(22,28,25,.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 27px;
    line-height: 1;
    opacity: 1;
  }

  body[data-theme="dark"] .panel-close {
    color: #eef0ea;
    border-color: rgba(238,240,234,.12);
    background: rgba(39,45,41,.86);
  }

  .side-panel .panel-kicker {
    margin: 0 0 9px;
    color: var(--gray-500);
    font-size: 9px;
    letter-spacing: .14em;
  }

  .side-panel h2 {
    max-width: calc(100% - 12px);
    margin: 0;
    font-size: clamp(34px, 10.5vw, 48px);
    line-height: 1;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
  }

  .panel-line {
    width: 52px;
    margin: 22px 0 24px;
  }

  .panel-intro {
    width: 100%;
    max-width: 560px;
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid rgba(27,31,29,.10);
    border-radius: 18px;
    color: #5c625d;
    background: rgba(255,255,255,.44);
    font-size: 14px;
    line-height: 1.65;
  }

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

  .panel-list,
  .panel-list-compact {
    width: 100%;
    max-width: 680px;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
  }

  .panel-list li {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(27,31,29,.10);
    border-radius: 18px;
    background: rgba(255,255,255,.44);
    font-size: 14px;
    font-weight: 580;
    line-height: 1.35;
  }

  body[data-theme="dark"] .panel-list li {
    border-color: rgba(238,240,234,.10);
    background: rgba(255,255,255,.035);
  }

  .list-symbol {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 13px;
    color: var(--black);
    background: var(--accent-soft);
    font-size: 10px;
  }

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

  .works {
    min-height: 0;
    padding:
      72px
      var(--mobile-page-padding)
      max(64px, calc(48px + env(safe-area-inset-bottom)));
  }

  .works-heading {
    width: 100%;
    max-width: none;
    display: block;
  }

  .section-number {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 14px;
    padding: 0 10px;
    border: 1px solid rgba(27,31,29,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.38);
    font-size: 8px;
  }

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

  .section-kicker {
    font-size: 9px;
    letter-spacing: .14em;
  }

  .works h2 {
    max-width: 100%;
    margin-top: 9px;
    font-size: clamp(46px, 15.2vw, 68px);
    line-height: .96;
    letter-spacing: -.048em;
    overflow-wrap: anywhere;
  }

  .works-lead {
    max-width: 520px;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.65;
  }

  .portfolio-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 28px;
    padding: 5px;
    border-radius: 17px;
  }

  .portfolio-tab {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    justify-content: center;
    gap: 7px;
    padding: 8px 8px;
    border-radius: 13px;
    text-align: center;
    font-size: clamp(10px, 3.25vw, 12px);
    line-height: 1.18;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .tab-index {
    flex: 0 0 auto;
    font-size: 7px;
  }

  .project-grid {
    width: 100%;
    gap: 24px;
    margin-top: 32px;
  }

  .project-card,
  .project-card-reverse {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 9px;
    border-radius: 24px;
    transform: none;
    animation: none !important;
  }

  .project-card-reverse .project-browser,
  .project-card-reverse .project-info {
    order: initial;
  }

  .project-card:hover,
  .project-card:active {
    transform: none;
  }

  .project-browser {
    width: 100%;
    min-width: 0;
    border-radius: 17px;
  }

  .browser-bar {
    height: 38px;
    grid-template-columns: 52px minmax(0, 1fr) 22px;
    gap: 8px;
    padding: 0 10px;
    font-size: 8px;
  }

  .browser-dots {
    gap: 5px;
  }

  .browser-dots i {
    width: 6px;
    height: 6px;
  }

  .browser-address {
    min-width: 0;
    padding: 5px 7px;
    border-radius: 7px;
  }

  .project-preview {
    width: 100%;
    aspect-ratio: 16 / 10.3;
  }

  .project-preview iframe {
    width: 145%;
    height: 145%;
    transform: scale(.69);
  }

  .preview-cover {
    opacity: 1;
    align-items: flex-end;
    padding: 14px;
    font-size: 12px;
    background: linear-gradient(to top, rgba(15,19,17,.82), rgba(15,19,17,.02) 50%, transparent 72%);
  }

  .project-info {
    width: 100%;
    min-width: 0;
    padding: 22px 9px 12px;
  }

  .project-meta {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 8px;
    line-height: 1.4;
  }

  .project-meta span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .project-meta span:last-child {
    flex: 0 0 auto;
  }

  .project-info h3,
  .bot-project-info h3 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: clamp(32px, 10.8vw, 44px);
    line-height: 1;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
  }

  .project-info > p,
  .bot-project-info > p {
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .project-tags {
    gap: 7px;
    margin: 18px 0 20px;
  }

  .project-tags span {
    max-width: 100%;
    padding: 7px 9px;
    font-size: 9px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .project-open {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 9px 9px 15px;
    border: 1px solid rgba(27,31,29,.12);
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.25;
    overflow: visible;
  }

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

  .project-open .project-open-label {
    flex: 1 1 auto;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    display: block !important;
    place-items: initial !important;
    border-radius: 0 !important;
    color: inherit !important;
    background: transparent !important;
    white-space: normal;
    overflow-wrap: anywhere;
    transform: none !important;
  }

  .project-open > span:last-child {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .bot-project-card {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 32px 0 20px;
    padding: 9px;
    border-radius: 24px;
    animation: none !important;
  }

  .bot-project-media {
    width: 100%;
    min-width: 0;
    border-radius: 17px;
  }

  .bot-project-status {
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    font-size: 8px;
    overflow-wrap: anywhere;
  }

  .bot-project-info {
    width: 100%;
    min-width: 0;
    padding: 22px 9px 12px;
  }

  .bots-inquiry {
    width: 100%;
    min-width: 0;
    margin-top: 18px;
    padding: 34px 16px 18px;
    border-radius: 24px;
  }

  .bots-inquiry::before {
    right: -12px;
    top: 42%;
    font-size: 150px;
  }

  .bots-inquiry h3 {
    max-width: 100%;
    margin: 10px auto 16px;
    font-size: clamp(36px, 11.8vw, 52px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

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

  .bots-inquiry .bot-contact,
  .bot-contact {
    width: 100%;
    min-width: 0;
    min-height: 60px;
    margin-top: 24px;
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
    border-radius: 16px;
    text-align: center;
    font-size: 12px;
    line-height: 1.35;
  }

  .bot-contact span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .works-footer {
    width: 100%;
    align-items: stretch;
    gap: 14px;
    margin-top: 42px;
    padding-top: 22px;
  }

  .works-footer p {
    font-size: 12px;
    line-height: 1.55;
  }

  .works-footer a {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid rgba(27,31,29,.12);
    border-radius: 15px;
  }

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

  .contact-modal {
    align-items: flex-end;
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .contact-dialog {
    width: 100%;
    max-width: 520px;
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
    padding: 32px 18px 20px;
    border-radius: 24px;
  }

  .contact-dialog::before {
    inset: 7px;
    border-radius: 18px;
  }

  .contact-dialog::after {
    left: 24px;
    top: 17px;
    width: 58px;
  }

  .contact-dialog-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .contact-dialog-kicker {
    margin-top: 8px;
    font-size: 9px;
  }

  .contact-dialog h2 {
    max-width: calc(100% - 44px);
    padding-right: 0;
    font-size: clamp(38px, 12vw, 54px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .contact-dialog-description {
    margin: 16px 0 20px;
    font-size: 14px;
    line-height: 1.55;
  }

  .contact-social-card {
    width: 100%;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr) 38px;
    gap: 11px;
    min-height: 72px;
    padding: 10px;
    border-radius: 18px;
  }

  .contact-social-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .contact-social-copy {
    min-width: 0;
  }

  .contact-social-copy strong,
  .contact-social-copy small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-social-arrow {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .contact-dialog-note {
    margin-top: 16px;
    font-size: 9px;
    line-height: 1.5;
  }
}

@media (max-width: 350px) {
  :root {
    --mobile-page-padding: 12px;
  }

  .topbar {
    padding-left: 9px;
    padding-right: 9px;
  }

  .topbar-name {
    font-size: 8px;
    letter-spacing: .10em;
  }

  .topbar-controls {
    gap: 5px;
  }

  .language-option {
    min-width: 28px;
    padding: 0 5px;
  }

  .theme-toggle {
    min-width: 35px;
    padding: 6px 5px;
  }

  .mobile-info-actions {
    grid-template-columns: 1fr;
  }

  .mobile-panel-button {
    min-height: 50px;
  }

  .hero-copy h1 {
    font-size: clamp(51px, 18.2vw, 64px);
  }

  .portfolio-tab {
    min-height: 56px;
    font-size: 10px;
  }

  .tab-index {
    display: none;
  }

  .project-info h3,
  .bot-project-info h3 {
    font-size: 31px;
  }
}

@media (max-width: 760px) and (orientation: landscape),
       (max-height: 560px) and (pointer: coarse) {
  .hero-stage {
    min-height: 620px;
    justify-content: flex-start;
    padding-top: calc(82px + env(safe-area-inset-top));
  }

  .hero-copy h1 {
    font-size: clamp(52px, 14vw, 76px);
  }

  .hero-subtitle {
    margin-top: 16px;
  }

  .hero-contact.contact-open {
    margin-top: 16px;
  }

  .side-panel,
  .side-panel-left,
  .side-panel-right {
    padding-top: calc(68px + env(safe-area-inset-top));
  }

  .side-panel h2 {
    font-size: clamp(31px, 8vw, 42px);
  }

  .panel-line {
    margin: 16px 0 18px;
  }

  .panel-list li {
    min-height: 56px;
  }
}

.project-open:hover .project-open-label {
  transform: none;
}

@media (max-width: 760px) {
  body.site-ready .works-button {
    left: auto !important;
    right: auto !important;
    transform: none !important;
    animation: mobileWorksButtonFade .62s ease .48s both !important;
  }

  @keyframes mobileWorksButtonFade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@media (max-width: 760px) {
  .side-panel,
  .side-panel-left,
  .side-panel-right {
    top: calc(62px + env(safe-area-inset-top));
    bottom: 0;
    height: calc(100dvh - 62px - env(safe-area-inset-top));
    padding-top: 72px;
  }

  .side-panel::before {
    top: 58px;
  }

  .panel-close {
    position: absolute;
    top: 10px;
    right: max(14px, env(safe-area-inset-right));
  }

  body.site-ready .hero-copy .eyebrow {
    animation: mobileHeroRise .52s var(--ease) .08s both;
  }

  body.site-ready .hero-copy h1 {
    animation: mobileLogoRise .7s var(--ease) .14s both;
  }

  body.site-ready .hero-subtitle {
    animation: mobileHeroRise .58s var(--ease) .24s both;
  }

  body.site-ready .hero-contact {
    animation: mobileHeroRise .58s var(--ease) .32s both;
  }

  body.site-ready .mobile-info-actions {
    animation: mobileHeroRise .58s var(--ease) .40s both;
  }

  body.site-ready .works-button {
    animation: mobileHeroFade .55s ease .48s both !important;
  }

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

  @keyframes mobileLogoRise {
    from { opacity: 0; transform: translateY(18px) scale(.98); letter-spacing: .045em; }
    to { opacity: 1; transform: translateY(0) scale(1); letter-spacing: .014em; }
  }

  @keyframes mobileHeroFade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
