@font-face {
  font-family: "PT Sans Caption Local";
  src: url("assets/fonts/PTSansCaption-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans Caption Local";
  src: url("assets/fonts/PTSansCaption-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond Local";
  src: url("assets/fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond Local";
  src: url("assets/fonts/CormorantGaramond-Italic-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IM Fell English Local";
  src: url("assets/fonts/IMFellEnglish-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IM Fell English Local";
  src: url("assets/fonts/IMFellEnglish-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f4f4f1;
  --white: #fff;
  --ink: #101010;
  --graphite: #2a2a2a;
  --mid: #9e9e9a;
  --line: rgba(16, 16, 16, .16);
  --pad: clamp(22px, 4.15vw, 72px);
  --header-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
  --font-body: "PT Sans Caption Local", "Segoe UI", Arial, sans-serif;
  --font-display: "Cormorant Garamond Local", Georgia, serif;
  --font-english: "IM Fell English Local", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body::selection {
  color: #fff;
  background: #111;
}

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

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

.lang-en-copy,
html[lang="en"] [data-i18n] {
  font-family: var(--font-english);
  font-weight: 400;
}

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

html {
  scrollbar-gutter: auto;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.floating-scrollbar-thumb {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 3px;
  width: 8px;
  height: 52px;
  border-radius: 999px;
  background-color: var(--graphite);
  background-image:
    linear-gradient(100deg, rgba(255,255,255,.06), transparent 45%, rgba(255,255,255,.035)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: auto, 86px 86px;
  box-shadow: inset 1px 0 rgba(255,255,255,.12), inset -1px 0 rgba(0,0,0,.25);
  cursor: grab;
  opacity: .96;
  touch-action: none;
  user-select: none;
  will-change: transform;
}

.floating-scrollbar-thumb:hover,
.floating-scrollbar-thumb.is-dragging {
  background-color: #363636;
}

.floating-scrollbar-thumb.is-dragging {
  cursor: grabbing;
}

html.scrollbar-dragging {
  scroll-behavior: auto !important;
  user-select: none;
}

.topbar {
  position: fixed;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 40;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 26px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 3px;
  background-color: var(--graphite);
  background-image:
    linear-gradient(100deg, rgba(255,255,255,.03), transparent 45%, rgba(255,255,255,.02)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  box-shadow: 0 12px 34px rgba(0,0,0,.13);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  transition: transform .45s var(--ease), opacity .3s ease;
}

.brand:hover {
  opacity: .82;
  transform: translateX(4px);
}

.brand-crop {
  position: relative;
  display: block;
  width: 132px;
  height: 36px;
  overflow: visible;
}

.brand-crop img {
  position: absolute;
  width: 128px;
  max-width: none;
  height: 128px;
  top: -46px;
  left: 0;
  object-fit: contain;
  filter: invert(1) brightness(2);
  pointer-events: none;
  user-select: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.nav a,
.lang-switch button {
  position: relative;
  opacity: .78;
  transition: opacity .25s ease, transform .35s var(--ease), color .25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: #fff;
  transition: right .35s var(--ease);
}

.nav a:hover,
.nav a:focus-visible,
.lang-switch button:hover,
.lang-switch button.active {
  opacity: 1;
}

.nav a:hover,
.nav a:focus-visible {
  transform: translateY(-2px);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  right: 0;
}

.lang-switch {
  position: relative;
  isolation: isolate;
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .05em;
  overflow: hidden;
}

.lang-switch::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.16);
  transform: translate3d(100%, 0, 0);
  transition: transform .58s var(--ease-soft), box-shadow .45s ease;
}

html[lang="en"] .lang-switch::before {
  transform: translate3d(0, 0, 0);
}

html[lang="ru"] .lang-switch::before {
  transform: translate3d(100%, 0, 0);
}

.lang-switch button {
  position: relative;
  z-index: 1;
  min-width: 35px;
  padding: 6px 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  transition: color .42s ease, opacity .32s ease, transform .4s var(--ease);
}

.lang-switch button:hover {
  transform: translateY(-1px);
}

.lang-switch button.active {
  color: #161616;
  background: transparent;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 86px) var(--pad) 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 47%, #fff 0, #efefec 35%, transparent 66%),
    var(--paper);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .44;
  background-image:
    linear-gradient(to right, transparent calc(50% - .5px), rgba(0,0,0,.08) 50%, transparent calc(50% + .5px)),
    linear-gradient(to bottom, transparent calc(50% - .5px), rgba(0,0,0,.06) 50%, transparent calc(50% + .5px));
}

.hero::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero-label {
  position: absolute;
  top: calc(var(--header-h) + 78px);
  left: var(--pad);
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}

.hero-label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  margin: 0 9px 3px 0;
  background: currentColor;
}

.hero-name {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  text-align: center;
  font-family: var(--font-english);
  font-size: clamp(62px, 11vw, 184px);
  font-weight: 400;
  line-height: .69;
  letter-spacing: -.065em;
  text-transform: uppercase;
  user-select: none;
}

.hero-name span {
  display: block;
  white-space: nowrap;
}

.hero-name span:last-child {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  text-stroke: 1.5px var(--ink);
}

.hero-object {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glass-cube-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
}

.webgl-glass-ready .glass-cube-canvas {
  opacity: 1;
}

.webgl-glass-pending .hero-name,
.webgl-glass-ready .hero-name {
  opacity: 0;
}

.hero-copy {
  position: absolute;
  z-index: 4;
  left: var(--pad);
  bottom: clamp(50px, 8vh, 92px);
  width: min(310px, 29vw);
}

.hero-copy p {
  margin: 0 0 22px;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 0 0 7px;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: letter-spacing .4s var(--ease);
}

.text-link span:last-child {
  transition: transform .3s var(--ease);
}

.text-link:hover span:last-child {
  transform: translate(3px, -3px);
}

.text-link:hover {
  letter-spacing: .135em;
}

.hero-meta {
  position: absolute;
  z-index: 3;
  right: var(--pad);
  bottom: clamp(53px, 8vh, 92px);
  display: grid;
  justify-items: end;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.hero-meta span:nth-child(2) {
  color: #777;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  bottom: 32px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  transform: translateX(-50%) rotate(90deg) translateX(50%);
  transform-origin: right center;
}

.scroll-cue i {
  display: block;
  width: 34px;
  height: 1px;
  overflow: hidden;
  background: rgba(0,0,0,.2);
}

.scroll-cue i::after {
  content: "";
  display: block;
  width: 14px;
  height: 100%;
  background: #111;
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

.section-pad {
  padding: clamp(90px, 12vw, 190px) var(--pad);
}

.section-index {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}

.section-index.inverse {
  border-color: rgba(255,255,255,.24);
}

.about {
  position: relative;
  background: #f8f8f6;
}

.about-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .62fr);
  gap: 8vw;
  align-items: end;
  margin: 0 0 clamp(70px, 10vw, 150px);
}

.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(57px, 8.4vw, 140px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.065em;
}

.display-title br {
  display: block;
}

.about-intro {
  margin: 0;
  padding-bottom: .65em;
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.55;
}

.capabilities {
  border-top: 1px solid var(--line);
}

.capability {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2vw;
  align-items: start;
  padding: clamp(28px, 3.5vw, 50px) clamp(16px, 1.8vw, 30px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transform: translateZ(0);
  transition:
    background-color 1s var(--ease-soft),
    border-color .9s ease,
    box-shadow 1s var(--ease-soft);
}

.capability::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.042), rgba(255,255,255,.3) 64%, transparent);
  opacity: 0;
  transform: translate3d(-6%, 0, 0);
  transition: opacity .9s ease, transform 1.2s var(--ease-soft);
}

.capability:hover {
  background-color: #eeeef0;
  box-shadow: inset 0 1px rgba(255,255,255,.62), inset 0 -1px rgba(0,0,0,.025);
}

.capability:hover::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

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

.cap-number {
  padding-top: 7px;
  font-size: 10px;
  font-weight: 700;
}

.capability h3 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 50px);
  font-weight: 500;
  letter-spacing: -.05em;
  transition: transform 1.05s var(--ease-soft), letter-spacing 1.05s var(--ease-soft), color .8s ease;
}

.capability p {
  max-width: 610px;
  margin: 0;
  color: #555;
  font-size: 14px;
  transition: transform 1.15s var(--ease-soft), color .9s ease;
}

.capability:hover h3 {
  letter-spacing: -.04em;
  transform: translate3d(8px, 0, 0);
}

.capability:hover p {
  color: #252525;
  transform: translate3d(8px, 0, 0);
}

.cap-mark {
  font-family: Georgia, serif;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1;
}

.portfolio-scroll {
  position: relative;
  height: 380vh;
  color: #fff;
  background: #161616;
}

.portfolio-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  padding: clamp(94px, 12vh, 118px) 0 24px;
  background:
    radial-gradient(circle at 84% 12%, rgba(255,255,255,.08), transparent 34%),
    #161616;
}

.portfolio-head {
  display: block;
  padding: 0 var(--pad);
}

.portfolio-head .section-index {
  grid-column: 1 / -1;
}

.portfolio-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 110px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.06em;
}

.portfolio-status {
  display: grid;
  grid-template-columns: auto 120px auto;
  align-items: center;
  gap: 13px;
  padding-bottom: 8px;
  font-size: 10px;
}

.portfolio-status i {
  display: block;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.2);
}

.portfolio-status b {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.portfolio-viewport {
  margin-top: clamp(18px, 2.7vh, 30px);
  overflow: visible;
}

.portfolio-track {
  display: flex;
  gap: clamp(18px, 2.4vw, 40px);
  width: max-content;
  padding: 0 var(--pad);
  will-change: transform;
}

.project-card {
  position: relative;
  width: min(79vw, 1180px);
  height: clamp(490px, 62vh, 680px);
  flex: 0 0 auto;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  color: var(--ink);
  background: #ededeb;
  border-radius: 2px;
  transition: box-shadow .5s var(--ease), filter .45s ease;
}

.project-card:hover {
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
  filter: contrast(1.025);
}

.project-topline,
.project-info {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-topline {
  padding: 17px 22px 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.project-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  transition: transform .7s var(--ease), filter .5s ease;
}

.project-card:hover .project-visual {
  transform: scale(1.012);
}

.project-device {
  position: absolute;
  z-index: 3;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 28px;
  background: #131313;
  box-shadow: 0 28px 68px rgba(0,0,0,.42);
  transition: transform .8s var(--ease), box-shadow .55s ease;
}

.project-device img,
.arch-browser img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.calo-device {
  top: 50%;
  left: 71%;
  width: auto;
  height: 94%;
  aspect-ratio: 636 / 1280;
  transform: translate(-50%, -50%) rotate(3deg);
}

.project-calo:hover .calo-device {
  box-shadow: 0 34px 84px rgba(0,0,0,.52);
  transform: translate(-50%, -52%) rotate(1deg) scale(1.02);
}

.project-info {
  align-items: flex-end;
  gap: 30px;
  padding: 18px 22px 22px;
}

.project-info h3 {
  margin: 0 0 7px;
  font-size: clamp(31px, 3.4vw, 56px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.055em;
}

.project-info p {
  max-width: 610px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.round-link {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 22px;
  transition: color .3s ease, background .3s ease, transform .45s var(--ease), box-shadow .35s ease;
}

.round-link:hover {
  color: #fff;
  background: #111;
  transform: rotate(45deg);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

.project-calo {
  color: #fff;
  background: #262626;
}

.project-calo .round-link:hover {
  color: #111;
  background: #fff;
}

.calo-visual {
  background:
    radial-gradient(circle at 68% 42%, rgba(255,255,255,.12), transparent 25%),
    linear-gradient(100deg, rgba(255,255,255,.04), transparent 55%);
}

.calo-word {
  position: absolute;
  top: 9%;
  left: 4%;
  font-size: clamp(62px, 7.8vw, 128px);
  font-weight: 900;
  line-height: .73;
  letter-spacing: -.095em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.42);
}

.phone {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 68%;
  width: clamp(150px, 18vw, 250px);
  height: 128%;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 34px;
  background: rgba(0,0,0,.65);
  box-shadow: 0 27px 60px rgba(0,0,0,.45), inset 0 0 30px rgba(255,255,255,.04);
  transform: translate(-50%, -49%) rotate(7deg);
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-bar span {
  width: 42%;
  height: 5px;
  border-radius: 10px;
  background: #fff;
  opacity: .7;
}

.phone-bar i {
  width: 8px;
  height: 8px;
  border: 1px solid #fff;
  border-radius: 50%;
}

.meal-orb {
  width: 78%;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  margin: 15% auto 9%;
  text-align: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 48% 52% 42% 58%;
  background:
    radial-gradient(circle at 38% 31%, #f0f0ed 0 9%, #7f7f7b 10% 24%, #111 48%, #555 72%, #080808 73%);
  box-shadow: inset 0 0 22px #000;
}

.meal-orb b {
  font-size: clamp(26px, 3.2vw, 48px);
  line-height: 1;
}

.meal-orb span {
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.macro-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.macro-row span {
  padding: 8px 3px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  font-size: 7px;
  color: #999;
}

.macro-row b {
  color: #fff;
  font-size: 10px;
}

.scan-line {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 52%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, #fff, transparent);
  box-shadow: 0 0 12px #fff;
  animation: scan 3.5s ease-in-out infinite alternate;
}

@keyframes scan {
  to { transform: translateX(290px); }
}

.project-arch {
  background: #dddcd7;
}

.arch-visual {
  margin: 10px 22px 0;
  background: #aaa9a3;
}

.arch-browser {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 92%;
  height: auto;
  aspect-ratio: 2560 / 875;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.22);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 24px 58px rgba(0,0,0,.19);
  transform: translate(-50%, -50%);
  transition: transform .9s var(--ease-soft), box-shadow .8s ease;
}

.arch-browser img {
  object-fit: contain;
}

.project-arch:hover .arch-browser {
  box-shadow: 0 32px 76px rgba(0,0,0,.24);
  transform: translate(-50%, calc(-50% - 5px)) scale(1.008);
}

.plan-grid {
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image:
    linear-gradient(rgba(0,0,0,.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.45) 1px, transparent 1px);
  background-size: 42px 42px;
}

.arch-letter {
  position: absolute;
  z-index: 1;
  left: 2%;
  bottom: -26%;
  font-family: Georgia, serif;
  font-size: clamp(240px, 36vw, 580px);
  line-height: .8;
  color: rgba(235,235,231,.55);
}

.arch-window {
  position: absolute;
  z-index: 2;
  top: 3%;
  left: 51%;
  width: 28%;
  height: 100%;
  overflow: hidden;
  border-radius: 150px 150px 0 0;
  background: linear-gradient(140deg, #e8e5db, #77766f 68%, #2b2b2a);
  box-shadow: 0 24px 45px rgba(0,0,0,.25);
  transform: translateX(-50%);
}

.arch-window i {
  position: absolute;
  bottom: 15%;
  width: 22%;
  height: 23%;
  border: 1px solid rgba(255,255,255,.7);
}

.arch-window i:nth-of-type(1) { left: 8%; }
.arch-window i:nth-of-type(2) { left: 39%; height: 35%; }
.arch-window i:nth-of-type(3) { right: 8%; height: 28%; }

.arch-light {
  position: absolute;
  inset: 8% 12% 44%;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  filter: blur(22px);
}

.arch-caption {
  position: absolute;
  right: 3%;
  bottom: 8%;
  text-align: right;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.project-bash {
  color: #111;
  background: #c7c7c4;
}

.bash-visual {
  margin: 10px 22px 0;
  border-top: 1px solid rgba(0,0,0,.4);
  border-bottom: 1px solid rgba(0,0,0,.4);
  background:
    linear-gradient(115deg, transparent 62%, rgba(255,255,255,.35) 62%),
    #b3b3af;
}

.bash-device {
  top: 50%;
  left: 73%;
  width: auto;
  height: 94%;
  aspect-ratio: 772 / 1280;
  border-color: rgba(255,255,255,.25);
  border-radius: 24px;
  transform: translate(-50%, -50%) rotate(3deg);
}

.project-bash:hover .bash-device {
  transform: translate(-50%, -52%) rotate(1deg) scale(1.02);
}

.bash-giant {
  position: absolute;
  left: 2%;
  top: 6%;
  font-size: clamp(78px, 10vw, 165px);
  font-weight: 900;
  line-height: .69;
  letter-spacing: -.1em;
}

.bash-disc {
  position: absolute;
  left: 66%;
  top: 50%;
  width: clamp(170px, 22vw, 330px);
  aspect-ratio: 1;
  border: 1px solid #111;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #151515 0 2px, #5c5c59 3px 5px, #111 6px 7px);
  box-shadow: 18px 20px 0 rgba(0,0,0,.13);
  transform: translate(-50%, -50%);
}

.bash-disc i {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: #d8d8d4;
  border: 1px solid #111;
}

.bash-disc b {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  font-size: 13px;
  transform: translate(-50%, -50%);
}

.bash-code {
  position: absolute;
  right: 2%;
  top: 5%;
  text-align: right;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .12em;
}

.bash-rule {
  position: absolute;
  left: 34%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(0,0,0,.35);
}

.portfolio-hint {
  position: absolute;
  right: var(--pad);
  bottom: 9px;
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
}

.contact {
  position: relative;
  min-height: clamp(560px, 72svh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(72px, 8vw, 120px);
  color: #fff;
  overflow: hidden;
  background: #262626;
}

.contact::before {
  content: "";
  position: absolute;
  width: 46vw;
  aspect-ratio: 1;
  right: -15vw;
  top: 12%;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  box-shadow: 0 0 0 6vw rgba(255,255,255,.025), 0 0 0 12vw rgba(255,255,255,.02);
}

.contact-grain {
  position: absolute;
  z-index: 0;
  opacity: .13;
  mix-blend-mode: screen;
}

.contact > *:not(.contact-grain) {
  position: relative;
  z-index: 1;
}

.contact-kicker {
  margin: 0 0 20px;
  text-align: center;
  font-size: clamp(14px, 1.3vw, 19px);
}

.contact-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(64px, 10.5vw, 180px);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.055em;
  text-align: center;
}

.contact-bottom {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 40px;
  margin-top: 0;
  padding-top: clamp(30px, 4vw, 44px);
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 17px;
}

.tg-dot {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: #fff;
  font-size: 22px;
  transition: transform .4s var(--ease);
}

.telegram-link:hover .tg-dot {
  transform: rotate(45deg) scale(1.08);
}

.telegram-link small,
.telegram-link strong {
  display: block;
}

.telegram-link small {
  margin-bottom: 4px;
  color: #999;
  font-size: 9px;
  letter-spacing: .16em;
}

.telegram-link strong {
  font-size: clamp(22px, 2.5vw, 38px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .nav {
    display: flex;
    gap: clamp(16px, 3vw, 28px);
    font-size: 11px;
  }

  .lang-switch {
    grid-column: auto;
  }

  .hero-name {
    font-size: clamp(48px, 11.5vw, 110px);
  }

  .hero-copy {
    width: 270px;
  }

  .about-head {
    grid-template-columns: 1fr;
  }

  .about-intro {
    max-width: 660px;
  }

  .project-card {
    width: 86vw;
  }
}

@media (max-width: 720px) {
  html {
    scrollbar-width: none;
    scrollbar-gutter: auto;
  }

  ::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .floating-scrollbar-thumb {
    display: none;
  }

  :root {
    --header-h: 102px;
  }

  .topbar {
    top: 9px;
    left: 9px;
    right: 9px;
    height: var(--header-h);
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 54px 1fr;
    align-items: center;
    padding: 0 14px 10px;
    border-radius: 5px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(255,255,255,.14);
    font-size: clamp(9px, 2.8vw, 11px);
    line-height: 1;
    letter-spacing: .03em;
  }

  .lang-switch {
    grid-column: 2;
    grid-row: 1;
  }

  .brand-crop {
    width: 124px;
    height: 34px;
  }

  .brand {
    width: max-content;
    height: 34px;
    align-self: center;
  }

  .topbar a,
  .topbar button {
    user-select: none;
  }

  .brand-crop img {
    width: 124px;
    height: 124px;
    top: -44px;
  }

  .hero {
    min-height: max(820px, 100svh);
    align-items: start;
    padding-top: calc(var(--header-h) + 52px);
  }

  .hero-name {
    margin-top: 86px;
    font-size: 12.6vw;
    line-height: .72;
    letter-spacing: -.055em;
  }

  .hero-object {
    inset: 0;
    width: 100%;
  }

  .hero-copy {
    left: var(--pad);
    right: var(--pad);
    bottom: 72px;
    width: auto;
  }

  .hero-copy p {
    max-width: 360px;
  }

  .display-title {
    font-size: clamp(53px, 17vw, 92px);
  }

  .capability {
    grid-template-columns: minmax(0, 1fr);
  }

  .capability h3,
  .capability p {
    transform: none !important;
  }

  .portfolio-scroll {
    height: auto !important;
    padding: 86px 0 70px;
  }

  .portfolio-sticky {
    position: relative;
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .portfolio-head {
    display: block;
  }

  .portfolio-status {
    display: none;
  }

  .portfolio-head h2 {
    margin: 0 0 28px;
  }

  .portfolio-viewport {
    overflow: visible;
  }

  .portfolio-viewport::-webkit-scrollbar {
    display: none;
  }

  .portfolio-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    transform: none !important;
    width: auto;
    gap: 22px;
    padding: 0 var(--pad);
  }

  .project-card {
    width: 100%;
    height: auto;
    min-height: 650px;
    grid-template-rows: minmax(455px, 62svh) auto;
    scroll-snap-align: none;
  }

  .calo-word {
    font-size: 19vw;
  }

  .phone {
    left: 67%;
    width: 170px;
  }

  .calo-device {
    left: 69%;
    width: auto;
    height: 91%;
  }

  .arch-browser {
    width: 94%;
  }

  .arch-window {
    width: 48%;
  }

  .arch-letter {
    font-size: 75vw;
  }

  .bash-disc {
    left: 68%;
    width: 210px;
  }

  .bash-device {
    left: 69%;
    width: auto;
    height: 91%;
  }

  .bash-giant {
    font-size: 18vw;
  }

  .portfolio-hint {
    position: static;
    margin: 22px var(--pad) 0;
  }

  .contact {
    min-height: 540px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .contact-title {
    font-size: clamp(42px, 12.2vw, 64px);
    line-height: .84;
  }

  .contact-bottom {
    align-items: center;
    flex-direction: column;
  }

}

@media (max-width: 440px) {
  .hero-name {
    font-size: 12.6vw;
  }

  .topbar {
    padding-inline: 12px;
  }

  .brand-crop {
    width: 116px;
  }

  .brand-crop img {
    width: 116px;
    height: 116px;
    top: -41px;
  }

  .project-card {
    min-height: 610px;
    grid-template-rows: minmax(420px, 57svh) auto;
  }

  .project-info {
    gap: 12px;
  }

  .project-info p {
    font-size: 12px;
  }

  .round-link {
    width: 49px;
    height: 49px;
  }

  .contact-title {
    font-size: clamp(39px, 11.5vw, 50px);
  }

  .bash-device {
    left: 63%;
  }
}

@media (hover: none) {
  .capability:hover {
    background-color: transparent;
    box-shadow: none;
  }

  .capability:hover::before {
    opacity: 0;
    transform: translate3d(-6%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
