@font-face {
  font-family: 'ScienceGothic';
  src: url('https://fonts.gstatic.com/s/sciencegothic/v1/Yq6H-LyXKfZlL-1QwQJhWQ.woff2') format('woff2');
}

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

:root {
  --bg: #000000;
  --bg-20: #333333;
  --slide-w: clamp(200px, 22vw, 300px);
  --text-main: #787878;
  --mx: 0;
  --my: 0;
  --angle: 0deg;
  --ring-offset: 0px;
  --ring-width: 1px;
  --bg-blur: 100px;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: system-ui, sans-serif;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}
body[data-page="case"] {
  min-height: auto;
}

body:not(.gallery-active) {
  min-height: 800vh;
}

body.no-long-body {
  min-height: auto !important;
}


body[data-page="case"] {
    min-height: auto;
}
/* ========================== HEADER & NAVIGATION ========================== */
body .no-long-body {min-height: 100%;}

.header {
  position: fixed;
  z-index: 999;
  color: var(--bg-30);
  padding: 20px;
  align-items: center;
  width: 100vw;
  font-family: 'Science Gothic', monospace;
  text-transform: uppercase;
  justify-content: center;
}

.header-content {
  justify-content: space-between;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.nav-dropdown {
    position: relative;
    display: none;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    justify-content: left;
    align-items:center ;

}

.nav-dropdown-toggle {
  font-family: "Science Gothic", sans-serif;
  font-variation-settings: "wdth" 200, "wght" 900;
  transition: font-variation-settings 0.3s ease, color 0.3s ease;
  font-size: 10px;

    border: none;
    color: rgba(255, 255, 255, 0.4);
      background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.08) 25%,
    transparent 65%
  );
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-dropdown-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 50px);
    left: -10px;
    list-style: none;
        font-size: 12px;
        background-color: #000;

 padding: 12px;
    border-radius: 4px;
    margin: 0;

    min-width: 220px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    display: none;
    z-index: 10;
}

.nav-dropdown-menu li {
    font-variation-settings: "wdth" 200, "wght" 600;
  transition: font-variation-settings 0.3s ease, color 0.3s ease;
      font-family: "Science Gothic", sans-serif;
    padding: 10px 20px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    transition: navLampFlicker 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu li:hover {
    font-family: "Science Gothic", sans-serif;

    background: rgba(255,255,255,0.05);
        font-size: 12px;
    color: #fff;
      animation: navLampFlicker 0.2s ease forwards;

}

.nav-dropdown-menu li {
  position: relative;
  padding: 12px 36px 12px 16px;
  cursor: pointer;
  opacity: 0.8;
}

.nav-dropdown-menu li.active {
  opacity: 1;
}

.nav-dropdown-menu li.active::after {
  content: " < ";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}


.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-case a {  font-family: "Science Gothic", sans-serif;
  font-variation-settings: "wdth" 200, "wght" 600;
  transition: font-variation-settings 0.3s ease, color 0.3s ease;
  color: #ffffff;
  opacity: 0.5;
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
  position: relative;
  padding: 4px 8px;
  border-radius: 2px;
  filter: brightness(0.8);
}

.nav-case a:hover {
  font-variation-settings: "wdth" 300, "wght" 900;
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  opacity: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}


.nav a {
  font-family: "Science Gothic", sans-serif;
  font-variation-settings: "wdth" 200, "wght" 600;
  transition: font-variation-settings 0.3s ease, color 0.3s ease;
  color: #ffffff;
  opacity: 0.5;
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
  position: relative;
  padding: 4px 8px;
  border-radius: 2px;
  filter: brightness(0.8);


}

.nav a:hover {
  cursor: none;
  font-variation-settings: "wdth" 300, "wght" 900;
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  opacity: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.nav a.active-filter {
  font-variation-settings: "wdth" 300, "wght" 900;
   text-align: left;
  color: #ffffff;
  opacity: 1;
  animation: navLampFlicker 0.8s ease forwards;
  text-decoration: none;
}

.nav a[data-filter="allworks"].active-filter {
  color: #f0f0f0;
  font-variation-settings: "wdth" 300, "wght" 900;
}

.nav a.active-filter::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 150%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.08) 25%,
    transparent 65%
  );
  z-index: -1;
  opacity: 0;
  animation: navStaticGlow 0.5s ease 0.8s forwards;
  pointer-events: none;
}

@media (max-width: 1200px) {
    .nav {
        display: none;
    }

    .nav-dropdown {
        display: flex;
    }

    .header-content {
        align-items: center;
        gap: 12px;
    }
}


@keyframes navLampFlicker {
  0% {
    text-shadow: none;
    color: #3b3b3b;
  }
  10% {
    text-shadow: 0 0 15px #ffffff, 0 0 30px #ffffff;
    color: #ffffff;
  }
  15% {
    text-shadow: none;
    color: rgba(255, 255, 255, 0.4);
  }
  20% {
    text-shadow: 0 0 20px #ffffff, 0 0 40px #ffffff, 0 0 60px #ffffff;
    color: #ffffff;
  }
  30% {
    text-shadow: 0 0 8px #ffffff, 0 0 15px #ffffff;
    color: rgba(255, 255, 255, 0.8);
  }
  40% {
    text-shadow: 0 0 25px #ffffff, 0 0 50px #ffffff, 0 0 75px #ffffff;
    color: #ffffff;
  }
  60% {
    text-shadow: none;
    color: rgba(255, 255, 255, 0.4);
  }
  70% {
    text-shadow: 0 0 12px #ffffff, 0 0 25px #ffffff;
    color: #ffffff;
  }
  85% {
    text-shadow: 0 0 35px #ffffff, 0 0 70px #ffffff, 0 0 100px #ffffff;
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 8px #ffffff, 0 0 15px #ffffff, 0 0 25px #ffffff;
    color: #ffffff;
  }
}

@keyframes navStaticGlow {
  to {
    opacity: 1;
  }
}

.link-button {
    width: 100%;
    height: 60px;
    margin: 20px 0;
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.link-button:hover {
    background-color: #fff;
    color: #000;
      animation: navStaticGlow 0.5s ease 0.8s forwards;
}

.contact {
  color: #ffffff;
  opacity: 1;
}

.logo {
  display: inline-block;
  width: 48px;
  height: auto;
  opacity: 0.5;
  transition: opacity 0.8s ease, transform 0.3s ease;
    mix-blend-mode: difference;
}

.logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.logo img {
  width: 48px;
  height: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.8s ease;
}

.logo:hover img {
  transform: scale(1.1);
  opacity: 1;
}
.project-image.no-padding {
    padding: 0;
}
/* ========================== FOOTER ========================== */

.footer {
  position: fixed;
  z-index: 1000;
  bottom: 0;
  left: 0;
  width: 100%;
  color: var(--bg-30);
  padding: 8px;
  text-align: center;
  font-family: 'Science Gothic', monospace;
  text-transform: uppercase;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}


.footer-content2 {
    font-family: 'Science Gothic', monospace;
  text-transform: uppercase;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px; /* Space between each role-name pair */
  row-gap: 80px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap; /* Wrap to a new line if the content exceeds the width */
  margin-bottom: 108px;
}

.footer-item {
  flex-grow: 1; /* Все элементы занимают равное пространство */
  margin: 10px;
  display: flex;
  flex-direction: column;
}

.footer-item-b {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

.no-scroll {
  overflow: hidden;
}

.footer-item-c {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  column-gap: 32px;
}

.footer-item-b-2 {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.footer-content2 p {
  margin: 0;
  display: flex;
  align-items: baseline;
}

.footer-content2 .role {
  color: rgba(255, 255, 255, 0.5); /* Slightly dimmer color for the role */
  font-size: 12px;

  text-transform: uppercase;

  margin-right: 8px; /* Space between the role and the name */
  margin-bottom: 8px;
}

.footer-content2 .name a {
  display: inline-block;
  font-weight: normal; /* Keeps the name text regular */
  font-size: 16px;

  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none; /* Underlines the name on hover */
}

.footer-content2 .name a:hover {
  color: white; /* Optional: Change color on hover */

  transition: transform 0.5s ease, text-shadow 0.3s ease;

  /* Тень для текста */
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 1);

  /* Увеличение текста */
  transform: scale(1.05);
}


.footer-text {
  color: #ffffff;
  opacity: 0.2;
  line-height: 1.4;
  font-size: 6px;
}

.footer-text:hover {
  opacity: 1;
  animation: navLampFlicker 0.8s ease forwards;
}

.footer-image img {
  display: block;
  opacity: 0.4;
}

/* ========================== BACKGROUND & LAYERS ========================== */
/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */

.pswp {
  --pswp-bg: #000;
  --pswp-placeholder-bg: #222;
  

  --pswp-root-z-index: 100000;
  
  --pswp-preloader-color: rgba(79, 79, 79, 0.4);
  --pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);
  
  /* defined via js:
  --pswp-transition-duration: 333ms; */
  
  --pswp-icon-color: #fff;
  --pswp-icon-color-secondary: #4f4f4f;
  --pswp-icon-stroke-color: #4f4f4f;
  --pswp-icon-stroke-width: 1px;

  --pswp-error-text-color: var(--pswp-icon-color);
}


/*
	Styles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions)
*/

.pswp {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: var(--pswp-root-z-index);
	display: none;
	touch-action: none;
	outline: 0;
	opacity: 0.003;
	contain: layout style size;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Prevents focus outline on the root element,
  (it may be focused initially) */
.pswp:focus {
  outline: 0;
}

.pswp * {
  box-sizing: border-box;
}

.pswp img {
  max-width: none;
}

.pswp--open {
	display: block;
}

.pswp,
.pswp__bg {
	transform: translateZ(0);
	will-change: opacity;
}

.pswp__bg {
  opacity: 0.005;
	background: var(--pswp-bg);
}

.pswp,
.pswp__scroll-wrap {
	overflow: hidden;
}

.pswp__scroll-wrap,
.pswp__bg,
.pswp__container,
.pswp__item,
.pswp__content,
.pswp__img,
.pswp__zoom-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.pswp__img,
.pswp__zoom-wrap {
	width: auto;
	height: auto;
}

.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img {
	cursor: -webkit-zoom-in;
	cursor: -moz-zoom-in;
	cursor: zoom-in;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img {
	cursor: move;
	cursor: -webkit-grab;
	cursor: -moz-grab;
	cursor: grab;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}

/* :active to override grabbing cursor */
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,
.pswp__img {
	cursor: -webkit-zoom-out;
	cursor: -moz-zoom-out;
	cursor: zoom-out;
}


/* Prevent selection and tap highlights */
.pswp__container,
.pswp__img,
.pswp__button,
.pswp__counter {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.pswp__item {
	/* z-index for fade transition */
	z-index: 1;
	overflow: hidden;
}

.pswp__hidden {
	display: none !important;
}

/* Allow to click through pswp__content element, but not its children */
.pswp__content {
  pointer-events: none;
}
.pswp__content > * {
  pointer-events: auto;
}


/*

  PhotoSwipe UI

*/

/*
	Error message appears when image is not loaded
	(JS option errorMsg controls markup)
*/
.pswp__error-msg-container {
  display: grid;
}
.pswp__error-msg {
	margin: auto;
	font-size: 1em;
	line-height: 1;
	color: var(--pswp-error-text-color);
}

/*
class pswp__hide-on-close is applied to elements that
should hide (for example fade out) when PhotoSwipe is closed
and show (for example fade in) when PhotoSwipe is opened
 */
.pswp .pswp__hide-on-close {
	opacity: 0.005;
	will-change: opacity;
	transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);
	z-index: 10; /* always overlap slide content */
	pointer-events: none; /* hidden elements should not be clickable */
}

/* class pswp--ui-visible is added when opening or closing transition starts */
.pswp--ui-visible .pswp__hide-on-close {
	opacity: 0.2;
	pointer-events: auto;
}

/* <button> styles, including css reset */
.pswp__button {
	position: relative;
	display: block;
	width: 50px;
	height: 60px;
	padding: 0;
	margin: 0;
	overflow: hidden;
	cursor: pointer;
	background: none;
	border: 0;
	box-shadow: none;
	opacity: 1;
	-webkit-appearance: none;
	-webkit-touch-callout: none;
}

.pswp__button:hover,
.pswp__button:active,
.pswp__button:focus {
  transition: none;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 1;
}

.pswp__button:disabled {
  opacity: 0.3;
  cursor: auto;
}

.pswp__icn {
  fill: var(--pswp-icon-color);
  color: var(--pswp-icon-color-secondary);
}

.pswp__icn {
  position: absolute;
  top: 14px;
  left: 9px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  pointer-events: none;
}

.pswp__icn-shadow {
  stroke: var(--pswp-icon-stroke-color);
  stroke-width: var(--pswp-icon-stroke-width);
  fill: none;
}

.pswp__icn:focus {
	outline: 0;
}

/*
	div element that matches size of large image,
	large image loads on top of it,
	used when msrc is not provided
*/
div.pswp__img--placeholder,
.pswp__img--with-bg {
	background: var(--pswp-placeholder-bg);
}

.pswp__top-bar {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 60px;
	display: flex;
  flex-direction: row;
  justify-content: flex-end;
	z-index: 10;

	/* allow events to pass through top bar itself */
	pointer-events: none !important;
}
.pswp__top-bar > * {
  pointer-events: auto;
  /* this makes transition significantly more smooth,
     even though inner elements are not animated */
  will-change: opacity;
}


/*

  Close button

*/
.pswp__button--close {
  margin-right: 6px;
}


/*

  Arrow buttons

*/
.pswp__button--arrow {
  position: absolute;
  top: 0;
  width: 75px;
  height: 100px;
  top: 50%;
  margin-top: -50px;
}

.pswp__button--arrow:disabled {
  display: none;
  cursor: default;
}

.pswp__button--arrow .pswp__icn {
  top: 50%;
  margin-top: -30px;
  width: 60px;
  height: 60px;
  background: none;
  border-radius: 0;
}

.pswp--one-slide .pswp__button--arrow {
  display: none;
}

/* hide arrows on touch screens */
.pswp--touch .pswp__button--arrow {
  visibility: hidden;
}

/* show arrows only after mouse was used */
.pswp--has_mouse .pswp__button--arrow {
  visibility: visible;
}

.pswp__button--arrow--prev {
  right: auto;
  left: 0px;
}

.pswp__button--arrow--next {
  right: 0px;
}
.pswp__button--arrow--next .pswp__icn {
  left: auto;
  right: 14px;
  /* flip horizontally */
  transform: scale(-1, 1);
}

/*

  Zoom button

*/
.pswp__button--zoom {
  display: none;
}

.pswp--zoom-allowed .pswp__button--zoom {
  display: block;
}

/* "+" => "-" */
.pswp--zoomed-in .pswp__zoom-icn-bar-v {
  display: none;
}


/*

  Loading indicator

*/
.pswp__preloader {
  position: relative;
  overflow: hidden;
  width: 50px;
  height: 60px;
  margin-right: auto;
}

.pswp__preloader .pswp__icn {
  opacity: 0;
  transition: opacity 0.2s linear;
  animation: pswp-clockwise 600ms linear infinite;
}

.pswp__preloader--active .pswp__icn {
  opacity: 0.85;
}

@keyframes pswp-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.pswp-video-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pswp-video-wrapper video {
  max-width: 100%;
  max-height: 100%;
}

/*

  "1 of 10" counter

*/
.pswp__counter {
  height: 30px;
  margin-top: 15px;
  margin-inline-start: 20px;
  font-size: 14px;
  line-height: 30px;
  color: var(--pswp-icon-color);
  text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
  opacity: 0.85;
    font-family: "Science Gothic", sans-serif;
  font-variation-settings: "wdth" 200, "wght" 600;
}

.pswp--one-slide .pswp__counter {
  display: none;
}




.bg-blur-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform-origin: center;
}

.bg-blur-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-blur-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: url('/images/noise.gif') repeat;
  opacity: 0.02;
  mix-blend-mode: multiply;
}

.bg-blur-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle, rgba(0,0,0,0) 40%, rgba(0,0,0,0.9) 100%);
}

/* ========================== TUNNEL & SCENE ========================== */

.tunnel-scene {
  position: fixed;
  inset: 0;
  perspective: 200px;
  overflow: hidden;
}

#scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  perspective: 800px;
  pointer-events: none;
}

#gridCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scroll-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* ========================== SLIDER & SLIDES ========================== */

.slider {
  position: absolute;
  inset: 0;
  pointer-events: none;
  perspective: 1000px;
  z-index: 5;
  transform-style: preserve-3d;
  will-change: transform;
}


#glitch-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  pointer-events: none;
  background: url("/images/cursor/Select-Glitch-Cursor.gif") center/contain no-repeat;
  mix-blend-mode: difference;
  z-index: 9999;
  transform: translate(-50%, -50%);
  display: none;
}



.slide {

  position: absolute;
  isolation: isolate;
  min-width: var(--slide-w);
  max-width: var(--slide-w);
  color: var(--text-main);
  background: rgba(0,0,0,0.1);
  border-radius: 0;
  padding: 1rem 1rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
  font-size: .8rem;
  line-height: 1.4;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  pointer-events: auto;
  transition: outline 0.25s ease, outline-offset 0.25s ease, box-shadow 0.25s ease;
}

.slide:hover {
  outline: none;
  box-shadow: 0px 0px 2px rgba(255, 255, 255, 0.424);
}

.slide::after {
  content: "";
  position: absolute;
  inset: calc(var(--ring-offset) * -1);
  padding: var(--ring-width);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, filter .2s ease;
  background: conic-gradient(
    from var(--angle)
    at calc(50% + var(--mx)*12%) calc(50% + var(--my)*10%),
    #00000000, #00000000, #f9f9f9, #00000000, #f9f9f9, #00000000
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

.slide:hover::after {
  opacity: 1;
}

.slide-img {
  width: 100%;
  overflow: hidden;
  display: block;
}

.slide-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.card-title {
  text-transform: uppercase;
  position: relative;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2em;
  min-height: 1.2em;
  font-family: "Science Gothic", sans-serif;
  font-variation-settings: "wdth" 200, "wght" 900;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: white;
}

.card-subtitle {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.434);
}

/* ========================== GALLERY STYLES ========================== */

#gallery {
  display: none;
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 100px 20px 120px;

  opacity: 0;
  transition: opacity 0.4s ease;
  width: 100%;
  animation: fadeIn 0.4s ease;
}

.gallery-active #gallery {
  display: block;
  opacity: 1;
}

.gallery-active .tunnel-scene,
.gallery-active #scene,
.gallery-active .bg-blur-wrap,
.gallery-active .slider,
.gallery-active .bg-blur-layer {
  display: none;
  opacity: 0;
  visibility: hidden;
}

.gallery-active {
  overflow-y: auto;
  overflow-x: hidden;
  cursor: default;
  min-height: 100vh;
}

.gallery-active .scroll-container {
  display: none;
}

.gallery-grid {
  column-count: 3;
  column-gap: 64px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0;
}

.gallery-item {
    break-inside: avoid;
  margin-bottom: 24px;
    transition:
    scale 0.4s ease-in-out,
    box-shadow 0.4s ease;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.gallery-item:hover {
  scale: 1.02;
border: 1px solid rgba(255, 255, 255, 0.2);

}

.figma-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* можно 4 / 3 если прототип высокий */
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.figma-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.gallery-item:hover .g-title {
color: rgb(255, 255, 255, 1);
scale: 1.02;
text-shadow: 0 0 12px rgba(255, 255, 255, 1);

}

.gallery-item:hover .g-meta {
color: rgb(255, 255, 255, 1);
scale: 1.02;
text-shadow: 0 0 12px rgba(255, 255, 255, 1);
}


.gallery-thumb {
  width: 100%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.gallery-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
  object-fit: contain;

  max-width: 100%;
  max-height: none;
}

.gallery-thumb .lazy-img {
  opacity: 0;
  transition: opacity 0.4s ease;
  min-height: 200px;
}

.gallery-thumb img:not(.lazy-img) {
  opacity: 1;
}

.lazy-img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lazy-img.loaded {
  opacity: 1;
}

.gallery-caption {
  padding: 16px;

  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.g-title {
  font-family: "Science Gothic", sans-serif;
  font-variation-settings: "wdth" 180, "wght" 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  transition:
    text-color 0.4s ease,
    text-shadow 0.4s ease,
    scale 0.4s ease;
}
.g-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  line-height: 1.3;
    transition:
    text-color 0.4s ease,
    text-shadow 0.4s ease,
    scale 0.4s ease;
}


.g-sub {
  font-family: "Science Gothic", sans-serif;
  font-variation-settings: "wdth" 150, "wght" 400;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #888;
}

.gallery-empty h3 {
  font-family: "Science Gothic", sans-serif;
  font-variation-settings: "wdth" 200, "wght" 600;
  font-size: 20px;
  margin-bottom: 12px;
  color: #f0f0f0;
}

.gallery-empty p {
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
  color: #666;
}

.gallery-active::-webkit-scrollbar {
  width: 8px;
}

.gallery-active::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.gallery-active::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.gallery-active::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-active .gallery-grid {
  padding-bottom: 60px;
}

/* ========================== VIEW SWITCHER ========================== */
a {  cursor: none;}
.view-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 48px;
  padding: 4px;
  animation: navLampFlicker 0.8s ease forwards;
}

.contact-icons {
  display: flex;
  margin-left: 20px;
  align-items: center;
    cursor: none;
  
}

.contact-icons a img {
  width: 24px;
  height: 24px;
  opacity: 0.5;
  margin-left: 20px;
  transition: filter 0.3s ease, transform 0.3s ease;
    cursor: none;
}

.contact-icons a:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
  opacity: 1;
  animation: navLampFlicker 0.8s ease forwards;
  cursor: none;
}
.switch {
                    position: relative;
                    display: inline-block;
                    width: 40px;
                    height: 20px;
                }
                
                .switch input {
                    opacity: 0;
                    width: 0;
                    height: 0;
                }
                
                .slidersq {
                    position: absolute;
                    cursor: pointer;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background-color: rgba(255,255,255,0.1);
                    transition: .2s;
                    border: 1px solid rgba(255,255,255,0.2);
                }
                
                .slidersq:before {
                    position: absolute;
                    content: "";
                    height: 16px;
                    width: 16px;
                    left: 1px;
                    bottom: 1px;
                    background-color: white;
                    transition: .2s;
                }
                
                input:checked + .slidersq {
                    background-color: rgba(255,255,255,0.3);
                }
                
                input:checked + .slidersq:before {
                    transform: translateX(20px);
                }
                
                .blend-tab {
                    flex: 1;
                    padding: 6px 4px;
                    background: rgba(255,255,255,0.05);
                    border: 1px solid rgba(255,255,255,0.1);
                    color: rgba(255,255,255,0.7);
                    cursor: pointer;
                    font-size: 10px;
                    text-transform: uppercase;
                    letter-spacing: 0.5px;
                    transition: all 0.2s;
                }
                
                .blend-tab:hover {
                    background: rgba(255,255,255,0.1);
                }
                
                .blend-tab.active {
                    background: rgba(255,255,255,0.2);
                    border-color: rgba(255,255,255,0.3);
                    color: white;
                    
                }
                
                
                input[type="range"] {
                    -webkit-appearance: none;
                    height: 2px;
                    background: rgba(255,255,255,0.2);
                }
                
                input[type="range"]::-webkit-slider-thumb {
                    -webkit-appearance: none;
                    width: 12px;
                    height: 12px;
                    background: white;
                    cursor: pointer;
                }
                
                input[type="range"]::-moz-range-thumb {
                    width: 12px;
                    height: 12px;
                    background: white;
                    cursor: pointer;
                    border: none;
                }
                
                
                
                .control-group.disabled {
                    opacity: 0.3;
                    pointer-events: none;
                }
#container {
  position: fixed;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background: transparent;
  opacity: 0.4;

  mix-blend-mode: difference;
  z-index: 0;
  cursor: none;
    pointer-events: none; /* 🔑 */

}
#container canvas {
  width: 100%;

  height: 100%;
  pointer-events: none; /* 🔑🔑 */
}

/* Добавьте в конец style.css */



/* Стили для контролов */
.controls-panel {
    font-family: 'Science Gothic', sans-serif;
}

.controls-panel input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.controls-panel input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.controls-panel input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
}

.controls-panel select option {
    background: #000;
    color: white;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.control-item {
    margin-bottom: 10px;
}

.control-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.control-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}


body {
  cursor: auto; /* если используешь кастомный курсор */
}

.view-btn {

  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Science Gothic", sans-serif;
  font-variation-settings: "wdth" 180, "wght" 500;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  cursor: none;
  position: relative;
  transition: all 0.2s ease;
  text-transform: uppercase;
  min-width: 80px;
  text-align: center;
  filter: brightness(0.8);
}

.view-btn:hover {
  color: rgb(255, 255, 255);
  filter: brightness(1.1);
}

.view-btn.active-view {
  color: #ffffff;
  font-variation-settings: "wdth" 300, "wght" 900;
  animation: lampFlicker 0.8s ease forwards;
}

@keyframes lampFlicker {
  0% {
    text-shadow: none;
    color: rgba(255, 255, 255, 0.2);
  }
  10% {
    text-shadow: 0 0 20px #ffffff, 0 0 40px #ffffff;
    color: #ffffff;
  }
  15% {
    text-shadow: none;
    color: rgba(255, 255, 255, 0.4);
  }
  20% {
    text-shadow: 0 0 25px #ffffff, 0 0 50px #ffffff, 0 0 80px #ffffff;
    color: #ffffff;
  }
  30% {
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
    color: rgba(255, 255, 255, 0.8);
  }
  40% {
    text-shadow: 0 0 30px #ffffff, 0 0 60px #ffffff, 0 0 100px #ffffff;
    color: #ffffff;
  }
  60% {
    text-shadow: none;
    color: rgba(255, 255, 255, 0.4);
  }
  70% {
    text-shadow: 0 0 15px #ffffff, 0 0 30px #ffffff;
    color: #ffffff;
  }
  85% {
    text-shadow: 0 0 40px #ffffff, 0 0 80px #ffffff, 0 0 120px #ffffff;
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff;
    color: #ffffff;
  }
}

.view-btn.active-view::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 180%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.1) 30%,
    transparent 70%
  );
  z-index: -1;
  opacity: 0;
  animation: staticGlow 0.5s ease 0.8s forwards;
}

@keyframes staticGlow {
  to {
    opacity: 1;
  }
}

/* ========================== LOADER ========================== */

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.loader-content {
  text-align: center;
  color: #fff;
}

.loader-spinner {
  width: 148px;
  height: 148px;
  background-size: cover;
  background-image: url('./images/head5.gif');
  opacity: 0.4;
}

.loader-spinner:after {
  position: absolute;
  inset: 0;
  background-image: url('./images/head7.gif');
  background-size: cover;
  opacity: 0;
  mix-blend-mode: screen;
  transform: translate(0, 0);
  pointer-events: none;
}

.fullwidth {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;

  background-color: #131313;
}

/* ОБЁРТКА = ГЕОМЕТРИЯ ВИДЕО */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;   /* ← можно менять */
  overflow: hidden;
}

/* iframe */
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ГРАДИЕНТ ТОЛЬКО ПО iframe */
.video-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    #131313 0%,
    rgba(19,19,19,0.4) 10%,
    rgba(19,19,19,0) 15%,
    rgba(19,19,19,0) 85%,
    rgba(19,19,19,0.4) 90%,
    #131313 100%
  );
}

.video-16x9 { aspect-ratio: 16 / 9; }
.video-4x3  { aspect-ratio: 4 / 3; }
.video-1x1  { aspect-ratio: 1 / 1; }


.page-transition {
  position: fixed;
  inset: 0;
  pointer-events: none;
  backdrop-filter: blur(0px);
  background: rgba(0, 0, 0, 0);
  opacity: 0;
transition:
  opacity 0.55s cubic-bezier(.4,0,.2,1),
  backdrop-filter 0.55s cubic-bezier(.4,0,.2,1),
  background 0.55s cubic-bezier(.4,0,.2,1);
  z-index: 9998;
}

/* уход */
.page-transition.is-leaving {
  opacity: 1;
  backdrop-filter: blur(30px);
  background: rgba(0, 0, 0, 0.35);
}

/* начальная загрузка */
.page-transition.is-entering {
  opacity: 1;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.35);
}

/* после загрузки */
.page-transition.is-entered {
  opacity: 0;
  backdrop-filter: blur(0);
  background: rgba(0, 0, 0, 0);
}






.loader-spinner:hover {
  opacity: 1;
    animation: glitch-fade 0.5s steps(2, end);

  background-image: url('./images/head7.gif');
}

.loader-text {
  font-family: "Science Gothic", sans-serif;
  font-variation-settings: "wdth" 200, "wght" 600;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.loader-progress {
  padding-top: 48px;
  font-family: "Science Gothic", sans-serif;
  font-variation-settings: "wdth" 200, "wght" 900;
  font-size: 20px;
  color: #ffffff;
  opacity: 0.5;
  letter-spacing: 0.05em;
}

/* ========================== MY HEAD / INTERACTIVE ========================== */

.myhead {
  width: 12vh;
  height: 12vh;
  background-image: url('./images/head5.gif');
  background-size: cover;
  position: absolute;
  left: 2vh;
  bottom: 0vh;
  overflow: hidden;
  cursor: none;
  opacity: 0.4;
  transform: scale(1);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, background-image 0.3s ease-in-out;
  z-index: 1001;
  pointer-events: auto;
}

.myhead::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('./images/head7.gif');
  background-size: cover;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.myhead:hover {
  opacity: 1;
  transform: scale(1.1);
  background-image: url('./images/head7.gif');
}

.myhead:hover::after {
  opacity: 1;
  animation: glitch-fade 0.5s steps(2, end);
}

.auto-type {
  padding-top: 40%;
  color: rgba(255, 255, 255, 1);          /* белый текст */
    display: inline-block;    /* для правильного позиционирования курсора Typed.js */
}



@keyframes blink {
  0%, 50%, 100% { opacity: 0.7; }
  25%, 75% { opacity: 0; }
}


@keyframes glitch-fade {
  0% {
    opacity: 0;
    clip-path: inset(0 0 40% 0);
    transform: translate(0, 0);
  }
  20% {
    opacity: 1;
    clip-path: inset(30% 0 0 0);
    transform: translate(-2px, 2px);
  }
  40% {
    opacity: 0.6;
    clip-path: inset(10% 0 20% 0);
    transform: translate(20px, -1px);
  }
  60% {
    opacity: 0.1;
    clip-path: inset(0 0 0 0);
    transform: translate(-10px, 1px);
  }
  80% {
    opacity: 0.7;
    clip-path: inset(20% 0 10% 0);
    transform: translate(1px, 0);
  }
  100% {
    opacity: 1;
    clip-path: none;
    transform: translate(0, 0);
  }
}

/* ========================== PROJECT PAGE STYLES ========================== */

.content-container {
  width: 100%;
  max-width: 900px;
  position: relative;
  margin: 10vh auto 10vh auto;
}

.project-article {
  max-width: 800px;
  margin: 0 auto;
}

.back-link {
  max-width: 800px;
  margin: 0 auto;
  cursor: pointer;
}

.project-hero {
  margin-bottom: 80px;
  padding-top: 60px;
}

.project-title {
  font-family: 'Science Gothic', sans-serif;
  font-variation-settings: "wdth" 150, "wght" 400;
  color: #fff;
  font-size: clamp(42px, 8vw, 80px);
  line-height: 1;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
    word-break: break-word;
  hyphens: auto;

}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
  flex: 0 0 auto;
}

.meta-label {
  font-family: 'Science Gothic', sans-serif;
  font-variation-settings: "wdth" 200, "wght" 600;
  color: #666;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
  display: block;
}

.meta-value {
  font-family: system-ui, sans-serif;
  color: #ccc;
  font-size: 15px;
  line-height: 1.4;
}

.content-section {
  margin: 100px 0;
  max-width: 800px;
}

.content-subtitle {
  font-family: 'Science Gothic', sans-serif;
  font-variation-settings: "wdth" 180, "wght" 500;
  color: #fff;
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.2;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.content-subtitle::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.content-subtitle2 {
  font-family: 'Science Gothic', sans-serif;
  font-variation-settings: "wdth" 180, "wght" 500;
  color: #fff;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.2;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.content-text {
  font-family: system-ui, sans-serif;
  color: #888;
  line-height: 1.7;
  font-size: 17px;
}

.content-text p {
  margin-bottom: 24px;
}

.content-text ul, .content-text ol {
  margin: 20px 0;
  padding-left: 20px;
}

.content-text li {
  margin-bottom: 10px;
}

.project-image {
  position: relative;
  padding-bottom: 20px;
    padding-top: 20px;
}

.scaled15 {
  width: 150%;
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.scaled20 {
  width: 200%;
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.scaled30 {
  width: 300%;
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.project-image.full-bleed {
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
}

.project-image.full-bleed img {
  width: 100%;
  height: auto;
  display: block;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: 40px;
}



.project-image:hover img {
  transform: scale(1.01);
}

.image-caption {
  font-family: 'Science Gothic', sans-serif;
  font-variation-settings: "wdth" 200, "wght" 300;
  color: #666;
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  line-height: 1.4;
}

.project-grid {
  display: grid;
  gap: 30px;
  margin: 60px 0;
}

.project-grid.images-2 {
  grid-template-columns: 1fr;
}

.project-grid.images-3 {
  grid-template-columns: 1fr;
}

.project-footer {
  margin-top: 120px;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #3b3b3b;
}

.nav-link {
  font-family: 'Science Gothic', sans-serif;
  font-variation-settings: "wdth" 200, "wght" 400;
  color: #666;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link:hover {
  color: #fff;
  font-variation-settings: "wdth" 250, "wght" 600;
}

.nav-link.prev::before {
  content: '←';
}

.nav-link.next::after {
  content: '→';
}

.nav-link.back {
  color: #888;
}

a {
  color: #fff;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.case-study {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin: 25px 0;
}

.case-study h4 {
  margin-top: 0;
  color: #fff;
  font-weight: 600;
  font-family: 'Science Gothic', sans-serif;
  font-variation-settings: "wdth" 180, "wght" 500;
  margin-bottom: 10px;
}

.case-study p {
  margin-bottom: 10px;
  color: #aaa;
}

.case-study p:last-child {
  margin-bottom: 0;
}

.analysis-table-container {
  margin: 40px 0;
  overflow-x: auto;
}

.analysis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  min-width: 800px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.analysis-table th {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 15px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: bottom;
  font-family: 'Science Gothic', sans-serif;
}

.analysis-table th small {
  font-weight: 400;
  opacity: 0.8;
  font-size: 0.85em;
}

.analysis-table td {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
  color: #ccc;
}

.analysis-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.analysis-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.analysis-table td:first-child {
  font-weight: 600;
  color: #fff;
}

.research-visual {
  margin: 40px 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.research-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

.metric {
  padding: 20px;
}

.metric-number {
  display: block;
  font-size: 2.5em;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-family: 'Science Gothic', sans-serif;
}

.metric-label {
  display: block;
  font-size: 0.9em;
  color: #aaa;
  margin-top: 8px;
}

.research-dimensions {
  margin: 30px 0;
}

.dimension {
  margin: 25px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #fff;
}

.dimension h4 {
  margin-top: 0;
  color: #fff;
  font-family: 'Science Gothic', sans-serif;
  font-variation-settings: "wdth" 180, "wght" 500;
  margin-bottom: 10px;
}

.dimension p {
  color: #aaa;
  margin-bottom: 0;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.research-category {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
}

.research-category h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: #fff;
  padding-bottom: 10px;
  font-family: 'Science Gothic', sans-serif;
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.links-container a {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #ccc;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 8px;
}

.links-container a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.parallax {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.parallax img {
  position: absolute;
  height: 200%;
  object-fit: cover;
  transform: translateY(0);
  transition: transform 0.1s linear;
  will-change: transform;
}

.parallax .image-caption {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 4px;
  z-index: 2;
}
.madein{
display:flex; align-items:center; gap: 12px;

}


.head {
  width: 148px;
  height: 148px;
  background-image: url('./images/head5.gif');
  background-size: cover;
  position: absolute;
  left: 16px;
  bottom: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.2;
  transition: opacity 0.3s ease-in-out;
  z-index: 1001;
  pointer-events: auto;
}

.head::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('./images/head7.gif');
  background-size: cover;
  opacity: 0;
  mix-blend-mode: screen;
  transform: translate(0, 0);
  pointer-events: none;
}

.head:hover {
  opacity: 1;
  background-image: url('./images/head7.gif');
}

.head:hover::after {
  opacity: 1;
  animation: glitch-fade 0.5s steps(2, end);
}

.slide-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #888;
  font-size: 16px;
  font-family: "Science Gothic", sans-serif;
  font-variation-settings: "wdth" 200, "wght" 400;
}

/* ========================== RESPONSIVE DESIGN ========================== */

@media (max-width: 1280px) {
  .scaled15 {
    width: 100%;
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

    .scaled20 {
    width: 100%;
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
      .scaled30 {
    width: 100%;
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}



@media (max-width: 1200px) {
  .gallery-grid {
    column-count: 2;
    column-gap: 20px;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
.madein {
    display: none;
}
.header {

  padding: 16px;

}
    .figma-embed {
        aspect-ratio: 9 / 16; /* вертикальный просмотр */
    }

  .gallery-item {
    scale: 1 !important;
    border: none !important;
  }


  .logo {
  display: none;
}

.nav-dropdown-toggle {
  padding: 0;
color: rgba(255, 255, 255, 0.8);
margin-top: 0;
}

.nav-case a {
opacity: 0.5;
}

.contact-icons a img {
  width: 20px;
  height: 20px;
  opacity: 0.5;
  margin-left: 16px;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.contact-icons {

    margin-left: 0px;
}

.myhead{
  opacity: 0.5;
    position: absolute;
  left: calc(50% - 6vh);
}

  .project-article {
    padding: 0 15px 60px;
  }

  .project-hero {
    padding-top: 40px;
    margin-bottom: 50px;
  }

  .project-title {
    font-size: 40px;
    margin-bottom: 30px;
  }

  .project-meta {
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }

  .content-section {
    margin: 60px 0;
  }

  .content-subtitle {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .content-text {
    font-size: 15px;
  }

  .project-image {
    margin: 40px 0;
  }

  .project-image.full-bleed {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
  }

  .project-grid {
    gap: 20px;
    margin: 40px 0;
  }

  .project-footer {
    margin-top: 80px;
    padding-top: 40px;
  }

  .project-navigation {
    flex-direction: column;
    gap: 25px;
    align-items: stretch;
  }

  .nav-link {
    justify-content: space-between;
  }

  .nav-link.back {
    order: -1;
    justify-content: center;
    margin-bottom: 10px;
  }

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

  .research-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    column-count: 2;
    column-gap: 16px;
    padding: 0 16px;
  }

  .gallery-item {
    margin-bottom: 16px;
  }

  .gallery-caption {
    padding: 12px;
  }

  .g-title {
    font-size: 12px;
  }

  .g-sub {
    font-size: 10px;
  }

  .view-switcher {
    margin-left: 20px;
    padding: 3px;
  }

  .view-btn {
    padding: 5px 12px;
    min-width: 70px;
    font-size: 10px;
  }

  .nav a {
    margin-left: 24px;
    font-size: 13px;
  }

  #gallery {
    padding: 80px 16px 100px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    column-count: 1;
    padding: 0 12px;
  }

  .gallery-item {
    margin-bottom: 12px;
  }

  .view-switcher {
    margin-left: 16px;
  }

  .nav a {
    margin-left: 16px;
    font-size: 11px;
  }

  #gallery {
    padding: 70px 12px 90px;
  }

  .footer {
    padding: 6px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .project-title {
    font-size: 64px;
  }

  .project-meta {
    gap: 30px;
  }
}

@media (min-width: 1025px) {
  .project-grid.images-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid.images-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-image.full-bleed {
    width: 180%;
    max-width: none;
    position: relative;
    left: 80%;
    transform: translateX(-80%);
  }
}